[ http://issues.apache.org/jira/browse/XERCESC-1355?page=history ]
Alberto Massari updated XERCESC-1355:
-------------------------------------
Attachment: testcase.zip
> DOMBuilder parse wrong node type
> --------------------------------
>
> Key: XERCESC-1355
> URL: http://issues.apache.org/jira/browse/XERCESC-1355
> Project: Xerces-C++
> Type: Bug
> Components: DOM
> Versions: 2.6.0
> Environment: Linux gcc 3.2 Redhat Linux 8.0 3.2-7
> Reporter: Vu Nguyen
> Attachments: testcase.zip
>
> Basically I wrote a simple code (similar to DOMCount) to printout the DOM
> tree content. I found out that all of the node type (node.getNodeType())
> always return 3(which is ELEMENT_NODE) while it should sometimes return
> TEXT_NODE so I can obtain the value via node.getNodeValue(). As the result, I
> always get NULL.
> Not sure if related to this thing, before setFeature(...whitespace = true),
> the DOMTree has a lot of bogus TEXT_NODEs.
> ==================== OUTPUT LOG =========================
> Building CLI tree from data model ...
> Element: command-groups
> Attributes
> ----------
> id=_1
> name=bulk-input
> Rootnode has child: 1
> Element: help = (null) with type 1
> Element: command = (null) with type 1
> Attributes
> ----------
> id=_1
> name=show
> Element: command = (null) with type 1
> Attributes
> ----------
> id=_2
> name=start
> Node type == 1
> Element: help and value (null) at 0
> Node type == 3
> we done
> =============================================================
> Note that: help is a text node and expected to return some value.
> Here the sample of xml and dtd.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]