36 case wxXML_ELEMENT_NODE:
40 out->
Print( 0,
")\n" );
54 for(
XATTR* attr = (
XATTR*) GetAttributes(); attr; attr = (
XATTR*) attr->GetNext() )
56 out->
Print( 0,
" (%s %s)",
58 out->
Quotew( attr->GetValue() ).c_str() );
64 case wxXML_ELEMENT_NODE:
69 if( kid->GetType() != wxXML_TEXT_NODE )
72 out->
Print( 0,
"\n" );
73 kid->Format( out, nestLevel+1 );
77 kid->Format( out, 0 );
83 out->
Print( 0,
" %s", out->
Quotew( GetContent() ).c_str() );
Hold an XML or S-expression element.
XNODE * GetChildren() const
virtual void FormatContents(OUTPUTFORMATTER *out, int nestLevel)
Write the contents of object as UTF8 out to an OUTPUTFORMATTER as an S-expression.
virtual void Format(OUTPUTFORMATTER *out, int nestLevel)
Write this object as UTF8 out to an OUTPUTFORMATTER as an S-expression.
#define TO_UTF8(wxstring)
Convert a wxString to a UTF8 encoded C string for all wxWidgets build modes.