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

Node.getTextContent() does not function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.8
    • None
    • SVG DOM
    • None
    • 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

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

            Dates

              Created:
              Updated: