Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1015

Node.getTextContent() does not function

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: SVG DOM
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC

      Description

      I opened an SVG document using the DOM parser, find a node in the tree, and then attempt to get the original text corresponding to that node (for the purpose of splitting an SVG document into multiple smaller ones).

      The problem is that Node.getTextContent() returns only whitespace (variable amount of newlines) without any actual content.

      Example code attached.

        Attachments

        1. svg_dom_bug.txt
          0.6 kB
          sbheinric

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              sbheinric@gmail.com sbheinric
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: