You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/08/11 22:27:24 UTC

DO NOT REPLY [Bug 22324] New: - getNodeValue on a Node.TEXT type of node truncates the returned value

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: xerces-j-dev@xml.apache.org
        ReportedBy: mconstantin@digev.com


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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org