diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 63b8707..cfe2969 100644 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -73,6 +73,13 @@ XMLNode* XMLNode::InsertEndChild( XMLNode* addThis ) void XMLNode::Print( FILE* fp, int depth ) +{ + for( XMLNode* node = firstChild; node; node=node->next ) { + node->Print( fp, depth ); + } +} + +void XMLNode::PrintSpace( FILE* fp, int depth ) { for( int i=0; imem, &node ); + root->InsertEndChild( node ); node->ParseDeep( q ); + return true; } @@ -184,13 +195,19 @@ char* XMLDocument::Identify( char* p, XMLNode** node ) // - Everthing else is unknown to tinyxml. // - const char* xmlHeader = { "