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 bu...@apache.org on 2003/02/11 17:03:59 UTC
DO NOT REPLY [Bug 16968] New: -
XercesDOMParser generates whitespace text nodes
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16968>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16968
XercesDOMParser generates whitespace text nodes
Summary: XercesDOMParser generates whitespace text nodes
Product: Xerces-C++
Version: Nightly build (please specify the date)
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: DOM
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: yifanl@profoundeffects.com
I am using nightly build on Jan 11, 2003. This problem is most probably with
other builds too. I used DOMWriter with gFormatPrettyPrint = true and
gMyEOLSequence = XMLString::transcode( "\r\n" ) to add linefeed to the xml
file, hence the xml file generated by DOMWriter contains some empty lines
without text. Then I used XercesDOMParser to read the xml file and build DOM
again. Because XercesDOMParser generates whitespace text nodes with tag
of "#text", and my application will choke on it because it doesn't expect to
get "#text" nodes.
How can I ask XercesDOMParser not to generate whitespace text nodes?
Yifan
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org