Re: [xml] DTD validation & whitespace removal



On Thu, Feb 04, 2010 at 08:53:42AM -0500, Piotr Sipika wrote:
John,
Try parsing the document using:
xmlReadFile(URI, encoding, options)
with options set to XML_PARSE_NOBLANKS (in addition to anything else
you want to use)

  Honnestly, I think it's a bad advice in general. The blank nodes
used for "formatting" are an integral part of the XML document content
and users should rather learn XML and do the right thing than tweak the
parser to become non conformant.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]