Applied patch [ 1432449 ] wxXml API documentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user