[
https://issues.apache.org/jira/browse/XERCESC-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16342430#comment-16342430
]
Miguel Provencio commented on XERCESC-2133:
-------------------------------------------
Using the getTextContent method did fix it.
> getWholeText may be incorrectly implemented
> -------------------------------------------
>
> Key: XERCESC-2133
> URL: https://issues.apache.org/jira/browse/XERCESC-2133
> Project: Xerces-C++
> Issue Type: Bug
> Components: DOM
> Affects Versions: 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.2.0, 3.1.3,
> 3.1.4
> 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: [email protected]
For additional commands, e-mail: [email protected]