Xerces2-J
  1. Xerces2-J
  2. XERCESJ-778

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 2.5.0
    • Fix Version/s: None
    • Component/s: DOM (Level 3 Core)
    • Labels:
      None
    • Environment:
      Operating System: Windows NT/2K
      Platform: PC

      Description

      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

        Activity

        Marius Constantin created issue -
        Serge Knystautas made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 22324 20838
        Mark Thomas made changes -
        Workflow jira [ 30833 ] Default workflow, editable Closed status [ 12575152 ]
        Mark Thomas made changes -
        Assignee Xerces-J Developers Mailing List [ xerces-j-dev@xml.apache.org ]
        Mark Thomas made changes -
        Assignee Xerces-J Developers Mailing List [ xerces-j-dev@xml.apache.org ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12575152 ] jira [ 12597869 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Marius Constantin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development