[ wxwindows-Patches-1541888 ] wxXML load/save improvements

SourceForge.net noreply at sourceforge.net
Thu Aug 17 04:14:42 PDT 2006


Patches item #1541888, was opened at 2006-08-17 11:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1541888&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Francesco Montorsi (frm)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxXML load/save improvements

Initial Comment:
This patch:

 - makes it possible to obtain perfectly-identic XML
documents doing:

    wxXmlDocument doc;
    doc.Load(wxT("myfile.xml"), wxT("UTF-8"), false);
    doc.Save(wxT("myfile2.xml"), -1);       
// myfile2.xml will be indentic to myfile.xml

This is obtained adding some parameters to
wxXmlDocument::load/save function to disable automatic
indentation when saving and to disable automatic
"whitespace-only" nodes removal.

 - adds the wxXmlNode::ContainsOnlyWhitespaces function
to be able to ignore whitespace-only nodes when
processing xml documents loaded without automatic
"whitespace-only" nodes removal.

 - adds the wxXmlNode::GetDepth function. This is just
a little util which I think should part of the API as
it helps to adds indentations when saving documents
without "automatic indentation" turned on

 - fixes the wxXmlNode::InsertChild() function to work
with before_node == NULL (and a couple of bugs in it).

 - update docs

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1541888&group_id=9863




More information about the wx-dev mailing list