Re: $format doesn't work in XML::LibXML::Document->toString($format)

Michael Ludwig <[email protected]> Thu, 24 Feb 2011 23:54:33 +0100
Newsgroups gmane.comp.lang.perl.xml
Message-ID <20110224225433.GK388@wladimir>
Tom Metro schrieb am 23.02.2011 um 19:00 (-0500):
> According to:
> http://search.cpan.org/~pajas/XML-LibXML-1.70/lib/XML/LibXML/Document.pod
> 
>   toString is a DOM serializing function...
> 
>   The optional $format parameter sets the indenting of the output.
>   ...
>   If $format is 1, libxml2 will add ignorable white spaces, so the
>   nodes content is easier to read. Existing
> 
> Yet when I call $doc->toString(1) I get back a string of XML with no
> whitespace between tags.

Do you have mixed content? That will not be formatted.

-- 
Michael Ludwig
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs