Re: [xml] Add new pretty-printing and sorting options for saving XML

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 Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

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