Yes, something strange is happening. I am trying to read an xml document which contain few elements that contain base64Encoded Strings. These are very long strings and in this case some 40000+ characters. (They are actually documents that have been encoded and now are part of the xml document) However getNodeValue will return me only part of that particular String. Anyone has an idea what is happening here?
Which parser toolkit are you using? Also - is it possible that your are getting the complete String but the next step somehow cuts it or fails to handle it properly. Bill [ August 28, 2003: Message edited by: William Brogden ]
Hi William, I am using xerces toolkit that came with jwsdp 1.2. And I have already checked what are you suspecting. However that's not the case. This is the way I am getting it:
Right after I will print the length and the actual contents of that string and for 4 different elements the original string is truncated somewhere between 800 and 1000 chars while that string is some 40000+ inside the xml file. Also I have came across this. But his solution didn't work for me. Other than that very few resources on this one. Few other people in java.sun forums reported same thing but I haven't seen the solution yet. Thank you for the response anyway.
Joined: Mar 20, 2000
This is all happening on the client side with the Document that I get as a response message from the web service. If I save that document to a local file system, and then use DOMParser to parse it, getting node values from these elements works fine and returns the whole string. At least now I can proceed and continue what I need to do. William, thanks again.