RE: [xml] xmllint add newline after each return ...
- From: "Lofquist, David R" <david lofquist nwa com>
- To: <veillard redhat com>, "Jean-Charles Preaux" <Jean-Charles Preaux alternative-advice com>
- Cc: "Gnome XML" <xml gnome org>
- Subject: RE: [xml] xmllint add newline after each return ...
- Date: Fri, 24 Aug 2001 08:56:54 -0500
To strip the "ignorable" whitespace nodes from the xmllint result,
use the --noblanks option. <caution> This may not match the
tree the parser returns....</caution>
-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com]
Sent: Friday, August 24, 2001 5:48 AM
To: Jean-Charles Preaux
Cc: Gnome XML
Subject: Re: [xml] xmllint add newline after each return ...
On Fri, Aug 24, 2001 at 12:39:00PM +0200, Jean-Charles Preaux wrote:
Hello
I tried to appply the xmllint script to an XML document
./xmllint --debug /opt/studio/htdocs/html/vcard/vcard.xml
But in th result, i see "TEXT" where there is newline (indentation) in
the
XML document.
Because all characters in the content of an XML document are
significatif
You may be able to interpret them as indentation space, but the parser
is not allowed to do so per the XML specification itself.
http://www.w3.org/TR/REC-xml#sec-white-space
"An XML processor must always pass all characters in a document that
are not markup through to the application."
Your application will have to handle those.
Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]