From df6f199b4e158d1d6cfb99d45258efa22afee715 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 11 Oct 2006 15:24:42 +0000 Subject: Fixed a wierd bug that caused each element of any part of a copied node tree to be partially cross-linked to the node that was the root of the copy. Also fixed a bug in the xmlfilewriter that should make it both faster, and not mess up % style replacements. --- src/test/xmlwritetest/xmlwritetest.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/test/xmlwritetest/xmlwritetest.cpp') diff --git a/src/test/xmlwritetest/xmlwritetest.cpp b/src/test/xmlwritetest/xmlwritetest.cpp index fc93510..54c7a80 100644 --- a/src/test/xmlwritetest/xmlwritetest.cpp +++ b/src/test/xmlwritetest/xmlwritetest.cpp @@ -30,19 +30,19 @@ int main() { printf("Testing XmlWriter...\n"); - XmlStringReader *xsr = new XmlStringReader(""); + //XmlStringReader *xsr = new XmlStringReader(""); - printf("%08X\n%08X\n%08X\n", xsr, (XmlReader *)xsr, (XmlDocument *)xsr ); + //printf("%08X\n%08X\n%08X\n", xsr, (XmlReader *)xsr, (XmlDocument *)xsr ); - delete (XmlDocument *)xsr; - //XmlFileWriter wf("test.xml", "\t"); + //delete (XmlDocument *)xsr; + XmlFileWriter wf("test.xml", "\t"); - //fillItIn( wf ); + fillItIn( wf ); - //XmlStringWriter ws("\t"); - //fillItIn( ws ); + XmlStringWriter ws("\t"); + fillItIn( ws ); - //printf("Now the string version:\n\n%s\n", ws.getString().c_str() ); + printf("Now the string version:\n\n%s\n", ws.getString().c_str() ); return 0; } -- cgit v1.2.3