Re: [xml] DTD validation & whitespace removal
- From: Daniel Veillard <veillard redhat com>
- To: Piotr Sipika <piotreks optonline net>
- Cc: xml gnome org, John Clements <clements brinckerhoff org>
- Subject: Re: [xml] DTD validation & whitespace removal
- Date: Thu, 4 Feb 2010 16:09:01 +0100
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]