You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Scott Cantor (JIRA)" <xe...@xml.apache.org> on 2018/01/28 02:59:00 UTC
[jira] [Updated] (XERCESC-2133) getWholeText may be incorrectly
implemented
[ https://issues.apache.org/jira/browse/XERCESC-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Cantor updated XERCESC-2133:
----------------------------------
Summary: getWholeText may be incorrectly implemented (was: If there is a space between tags then the text in the first tag is duplicated when traversing DOM)
> 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.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-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org