Re: [xml] xmllint --noblanks will not strip ignoreable whitespaces



On Thu, May 16, 2002 at 12:49:04PM +0200, Christian Glahn wrote:
hi,

i found this problem with libxml2 2.4.21 and did not try if it was introduced
with older versions:

when calling xmllint --noblanks it will not strip ignoreable whitespaces.

if seems "xmlKeepBlanksDefaultValue" is simply ignored on any parsing 
process, since either setting this variable directly or by using 
xmlKeepBlanksDefault(). 

  Sorry, I can't reproduce this !

paphio:~/XML -> /usr/bin/xmllint tst.xml
<?xml version="1.0"?>
<a>
              <b/>
         </a>
paphio:~/XML -> /usr/bin/xmllint --noblanks tst.xml
<?xml version="1.0"?>
<a><b/></a>
paphio:~/XML -> /usr/bin/xmllint --version
xmllint: using libxml version 20421
paphio:~/XML ->

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
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]