DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22324>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22324

getNodeValue on a Node.TEXT type of node truncates the returned value

           Summary: getNodeValue on a Node.TEXT type of node truncates the
                    returned value
           Product: Xerces2-J
           Version: 2.5.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have an XML document which has a text node containing a Base64 encoded string.
Suppose that cipherNode is the Element node containing the encoded text, my 
code does the following:

 Node textNode = cipherNode.getFirstChild();
 String cipherValue = ( (Text) textNode ).getNodeValue();

always, cipherValue is a String of length 1690 (the value of the text node is 
much larger). There are no special characters in the text value.
Is this normal behavior? Why 1690? Is there a limitation of a text node's value 
size?

THanks,
 Marius

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to