sandbox.cpp 690 B

12345678910111213141516171819202122
  1. // ----------------------------------------------------------------------------
  2. // Copyright (C) 2009 Sebastian Redl
  3. //
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. // For more information, see www.boost.org
  9. // ----------------------------------------------------------------------------
  10. #define _CRT_SECURE_NO_DEPRECATE
  11. #include <boost/property_tree/xml_parser.hpp>
  12. #include <boost/property_tree/info_parser.hpp>
  13. #include <iostream>
  14. int main()
  15. {
  16. using namespace boost::property_tree;
  17. ptree pt;
  18. read_xml("simple_all.xml", pt);
  19. write_info(std::cout, pt);
  20. }