You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2005/03/04 15:47:43 UTC

DO NOT REPLY [Bug 33846] - Node.getChildNodes returns different results depend on XML formatting

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33846>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33846





------- Additional Comments From nddelima@ca.ibm.com  2005-03-04 15:47 -------
In your second XML document, a text node (probably whitespace) exists between 
nodes "PARAMETER" and "VERGLEICHE", hence the differences.  If you are using 
JAXP, you could invoke setIgnoringElementContentWhitespace[1] on your 
DocumentBuilderFactory to indicate that the parser created by this factory 
eliminate whitespace in element content.

FYI:  You should be using JIRA[2] instead of Bugzilla to report Xerces-2J 
defects.

[1] 
http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/parsers/DocumentBuilderFactory
.html#setIgnoringElementContentWhitespace(boolean)
[2] http://issues.apache.org/jira/secure/Dashboard.jspa

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org