I always wondered what that flag was for! -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Boris Kolpackov Sent: Tuesday, February 06, 2007 3:11 PM To: c-dev@xerces.apache.org Subject: Re: parsing xml
Hi Jesse, "Jesse Pelton" <[EMAIL PROTECTED]> writes: > Alternatively, you can write a DTD or schema for your documents and let > Xerces sort out which nodes are white space in element content. You'll > still need to check whether the node you're processing is a text node; > if it is, DOMText::getIsWhitespaceInElementContent() will tell you > whether it's white space in element content. There is actually a parsing feature, fgDOMWhitespaceInElementContent, when set to false it results in all ignorable whitespaces being removed from the resulting DOM document. Very handy. hth, -boris -- Boris Kolpackov Code Synthesis Tools CC http://www.codesynthesis.com Open-Source, Cross-Platform C++ XML Data Binding --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]