xmltest.cpp 471 B

12345678910111213141516171819202122232425262728
  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. #if 0
  8. {
  9. static const char* test = "<!--hello world-->";
  10. XMLDocument doc;
  11. doc.Parse( test );
  12. doc.Print( stdout );
  13. }
  14. #endif
  15. {
  16. static const char* test = "<!--hello world\n"
  17. " line 2\r-->";
  18. XMLDocument doc;
  19. doc.Parse( test );
  20. doc.Print( stdout );
  21. }
  22. return 0;
  23. }