xmltest.cpp 414 B

123456789101112131415161718192021222324252627
  1. #include "tinyxml2.h"
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. using namespace tinyxml2;
  5. int main( int argc, const char* argv )
  6. {
  7. {
  8. static const char* test = "<!--hello world-->";
  9. XMLDocument doc;
  10. doc.Parse( test );
  11. doc.Print( stdout );
  12. }
  13. /*
  14. {
  15. static const char* test = "<hello></hello>";
  16. XMLDocument doc;
  17. doc.Parse( test );
  18. doc.Print( stdout );
  19. }
  20. */
  21. return 0;
  22. }