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

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




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