Just like in the DOM, only text, ctype etc. nodes have textual content,
elements don't.
See #13297.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68283
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_lineNo(lineNo),
m_noConversion(false)
{
+ wxASSERT_MSG ( type != wxXML_ELEMENT_NODE || content.empty(), "element nodes can't have content" );
+
if (m_parent)
{
if (m_parent->m_children)
m_attrs(NULL), m_parent(NULL),
m_children(NULL), m_next(NULL),
m_lineNo(lineNo), m_noConversion(false)
-{}
+{
+ wxASSERT_MSG ( type != wxXML_ELEMENT_NODE || content.empty(), "element nodes can't have content" );
+}
wxXmlNode::wxXmlNode(const wxXmlNode& node)
{