Re: [xml] Add new pretty-printing and sorting options for saving XML
- From: Daniel Veillard <veillard redhat com>
- To: Adam Spragg <adam spra gg>
- Cc: xml gnome org
- Subject: Re: [xml] Add new pretty-printing and sorting options for saving XML
- Date: Tue, 12 Oct 2010 09:40:52 +0200
On Tue, Oct 12, 2010 at 09:34:11AM +0200, Daniel Veillard wrote:
On Tue, Oct 05, 2010 at 10:22:22PM +0100, Adam Spragg wrote:
libxml developers,
Please find for your consideration a series of patches to add 2 new
"xmlSaveOption"s to libxml.
XML_SAVE_WSNONSIG is a new pretty-printing format which adds whitespace
*within* tags, where permitted by the XML standard, to re-line and
indent XML files, without changing any element content at all. No
whitespace is added to, removed from, or altered in any text node of
the document, and no text nodes are are added or removed either.
Still *any* text node is significant in XML. Any indenting is by
definition destructive.
Hum, relooking at your patch here, I may have misunderstood how you
tried to do this, I will recheck... Maybe this can be isolated from
the canonicalization attempt and useful as such...
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]