tiny_xml_test.cpp 590 B

12345678910111213141516171819
  1. // tiny XML test program ---------------------------------------------------//
  2. // (C) Copyright Beman Dawes 2002. Permission to copy,
  3. // use, modify, sell and distribute this software is granted provided this
  4. // copyright notice appears in all copies. This software is provided "as is"
  5. // without express or implied warranty, and with no claim as to its
  6. // suitability for any purpose.
  7. #include "tiny_xml.hpp"
  8. #include <iostream>
  9. int main()
  10. {
  11. boost::tiny_xml::element_ptr tree( boost::tiny_xml::parse( std::cin ) );
  12. boost::tiny_xml::write( *tree, std::cout );
  13. return 0;
  14. }
粤ICP备19079148号