[ 
https://issues.apache.org/jira/browse/XERCESC-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16342414#comment-16342414
 ] 

Scott Cantor commented on XERCESC-2133:
---------------------------------------

I can tell from the getWholeText implementation that it will do exactly what is 
shown above.

I have no idea what it is supposed to do, but what it's doing doesn't seem 
terribly useful.

In any case, don't use getWholeText since it's been broken probably since it 
was added, and likely hasn't ever been used, since nobody has said anything in 
all this time.

> 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]

Reply via email to