X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8dfd4fade8a2cffbe7865dcec41bca68a13ac97c..d77d8c0719173311669c52b96aa5a35023a827d0:/src/xml/xml.cpp diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index c17c12e9c3..619f93ab51 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -32,6 +32,11 @@ #include "wx/app.h" WX_CHECK_BUILD_OPTIONS("wxXML") + +IMPLEMENT_CLASS(wxXmlDocument, wxObject) + + + //----------------------------------------------------------------------------- // wxXmlNode //----------------------------------------------------------------------------- @@ -268,6 +273,20 @@ bool wxXmlNode::DeleteProperty(const wxString& name) } } +wxString wxXmlNode::GetNodeContent() const +{ + wxXmlNode *n = GetChildren(); + + while (n) + { + if (n->GetType() == wxXML_TEXT_NODE || + n->GetType() == wxXML_CDATA_SECTION_NODE) + return n->GetContent(); + n = n->GetNext(); + } + return wxEmptyString; +} + //-----------------------------------------------------------------------------