xmltest.cpp 267 B

1234567891011121314151617
  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. static const char* test = "<hello></hello>";
  8. XMLDocument doc;
  9. doc.Parse( test );
  10. doc.Print( stdout );
  11. return 0;
  12. }