]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xml/xml.cpp
don't send EVT_CHOICE events while the dropdown is opened for consistency with the...
[wxWidgets.git] / src / xml / xml.cpp
index c17c12e9c3451f84c13c70409ee6b98799929393..619f93ab51dffc8cf0cf82d6e9a41f2c86a2d4b7 100644 (file)
 #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;
+}
+
 
 
 //-----------------------------------------------------------------------------