more refactoring. cleaning out container classes.
diff --git a/xmltest.cpp b/xmltest.cpp
index 8d09bc6..5df3feb 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -52,5 +52,14 @@
printf( "----------------------------------------------\n" );
}
}
+ {
+ static const char* test = "<element>Text before.</element>";
+ XMLDocument doc;
+ doc.Parse( test );
+ XMLElement* root = doc.FirstChildElement();
+ XMLElement* newElement = doc.NewElement( "Subelement" );
+ root->InsertEndChild( newElement );
+ doc.Print();
+ }
return 0;
}
\ No newline at end of file