[ https://issues.apache.org/jira/browse/XERCESC-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16342410#comment-16342410 ]
Scott Cantor commented on XERCESC-2133: --------------------------------------- I wouldn't be at all surprised if getWholeText were broken, and have no idea what it's supposed to do, but directly printing the text of each node would produce correct results. > If there is a space between tags then the text in the first tag is duplicated > when traversing DOM > ------------------------------------------------------------------------------------------------- > > Key: XERCESC-2133 > URL: https://issues.apache.org/jira/browse/XERCESC-2133 > Project: Xerces-C++ > Issue Type: Bug > Components: DOM > Affects Versions: 3.1.0 > Environment: Xerces-C++ version: 3.1 > Platform: Linux x86_64 > OS: Ubuntu 16.04 > Binary distribution > (sudo apt install libxerces-c-dev) > Reporter: Miguel Provencio > Priority: Major > Attachments: example.xml, main.cpp > > > When there is a space between two tags then the first tag text shows up twice > when traversing the DOM. > Example XML: > <text><u>one</u> <i>two</i></text> > When traversing the DOM the text "one" shows up twice. > Sample output: > <text> > <u> > [one ] > </u> > [one ] > <i> > [two] > </i> > </text> > When you delete the space between the two tags the problem no longer happens. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org