Re: [xml] xmllint add newline after each return ...

On Fri, Aug 24, 2001 at 12:39:00PM +0200, Jean-Charles Preaux wrote:

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.

 "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 Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

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