39 case wxXML_ELEMENT_NODE:
43 out->
Print( 0,
")\n" );
57 for(
XATTR* attr = (
XATTR*) GetAttributes(); attr; attr = (
XATTR*) attr->GetNext() )
59 out->
Print( 0,
" (%s %s)",
61 out->
Quotew( attr->GetValue() ).c_str() );
67 case wxXML_ELEMENT_NODE:
72 if( kid->GetType() != wxXML_TEXT_NODE )
75 out->
Print( 0,
"\n" );
76 kid->Format( out, nestLevel+1 );
80 kid->Format( out, 0 );
86 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.