X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1707da0c3773be45553bdc4502a676613b1cfdb7..0758c46ee65053bc70bd0ef5a73fb30aeec7986c:/interface/wx/xml/xml.h?ds=inline diff --git a/interface/wx/xml/xml.h b/interface/wx/xml/xml.h index 17b77e5c65..c3491b4f92 100644 --- a/interface/wx/xml/xml.h +++ b/interface/wx/xml/xml.h @@ -34,9 +34,11 @@ enum wxXmlNodeType Node has a name and may have content and attributes. Most common node types are @c wxXML_TEXT_NODE (name and attributes are irrelevant) - and @c wxXML_ELEMENT_NODE (e.g. in @c \
", @c "src" is attribute with value
- @c "hello.gif" and @c "id" is a attribute with value @c "3".
+ Example: in \
, @c src is an attribute
+ with value @c hello.gif and @c id is an attribute with value @c 3.
@library{wxxml}
@category{xml}
@@ -427,16 +429,16 @@ public:
@code
wxXmlDocument doc;
if (!doc.Load("myfile.xml"))
- return @false;
+ return false;
// start processing the XML file
if (doc.GetRoot()->GetName() != "myroot-node")
- return @false;
+ return false;
wxXmlNode *child = doc.GetRoot()->GetChildren();
while (child) {
- if (child-GetName() == "tag1") {
+ if (child->GetName() == "tag1") {
// process text enclosed by tag1/tag1
wxString content = child->GetNodeContent();
@@ -509,7 +511,7 @@ public:
Loads the XML document from given stream using the given encoding. See Load().
*/
wxXmlDocument(wxInputStream& stream,
- const wxString& encoding = wxT("UTF-8"));
+ const wxString& encoding = "UTF-8");
/**
Virtual destructor. Frees the document root node.
@@ -577,14 +579,14 @@ public:
Returns true on success, false otherwise.
*/
virtual bool Load(const wxString& filename,
- const wxString& encoding = wxT("UTF-8"), int flags = wxXMLDOC_NONE);
+ const wxString& encoding = "UTF-8", int flags = wxXMLDOC_NONE);
/**
Like Load(const wxString&, const wxString&, int) but takes the data from
given input stream.
*/
virtual bool Load(wxInputStream& stream,
- const wxString& encoding = wxT("UTF-8"), int flags = wxXMLDOC_NONE);
+ const wxString& encoding = "UTF-8", int flags = wxXMLDOC_NONE);
/**
Saves XML tree creating a file named with given string.