And what does the data look like that you are getting from the URL you specify?
[EDIT] it looks like th data is value since I dropped it into a dicom dump but I'm going to bow out since I've never attempted what you are doing with the document.createTextNode.
Hopefully someone with experience using that will jump in.