diff --git a/docs/latex/wx/xmlnode.tex b/docs/latex/wx/xmlnode.tex index 8c7b9f691c..4afe14b514 100644 --- a/docs/latex/wx/xmlnode.tex +++ b/docs/latex/wx/xmlnode.tex @@ -224,12 +224,13 @@ Returns \true if this node has a property named {\it propName}. \membersection{wxXmlNode::InsertChild}\label{wxxmlnodeinsertchild} -\func{bool}{InsertChild}{\param{wxXmlNode* }{child}, \param{wxXmlNode* }{before\_node}} +\func{bool}{InsertChild}{\param{wxXmlNode* }{child}, \param{wxXmlNode* }{followingNode}} -Inserts the {\it child} node after {\it before\_node} in the children list. -If {\it before\_node} is \NULL, then {\it child} is prepended to the list of children and -becomes the first child of this node. -Returns \true if {\it before\_node} has been found and the {\it child} node has been inserted. +Inserts the {\it child} node immediately before {\it followingNode} in the +children list. If {\it followingNode} is \NULL, then {\it child} is prepended +to the list of children and becomes the first child of this node. Returns +\true if {\it followingNode} has been found and the {\it child} node has been +inserted. \membersection{wxXmlNode::IsWhitespaceOnly}\label{wxxmlnodecontainsiswhitespaceonly} diff --git a/include/wx/xml/xml.h b/include/wx/xml/xml.h index 4f41a29ea5..502b7c27e9 100644 --- a/include/wx/xml/xml.h +++ b/include/wx/xml/xml.h @@ -115,7 +115,7 @@ public: wxXmlNode(wxXmlNodeType type, const wxString& name, const wxString& content = wxEmptyString); virtual void AddChild(wxXmlNode *child); - virtual bool InsertChild(wxXmlNode *child, wxXmlNode *before_node); + virtual bool InsertChild(wxXmlNode *child, wxXmlNode *followingNode); virtual bool RemoveChild(wxXmlNode *child); virtual void AddProperty(const wxString& name, const wxString& value); virtual bool DeleteProperty(const wxString& name);