Skip to content
Snippets Groups Projects
Commit 11f6cb44 authored by Oliver Charles Schubert's avatar Oliver Charles Schubert
Browse files

Adds main file to test boost library as xml parser.

parent 6cb0079b
Branches
No related tags found
No related merge requests found
#include <iostream>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/property_tree/ptree.hpp>
int main () {
boost::property_tree::ptree tree1, tree2;
try
{
boost::property_tree::read_xml("oldFormat-CSR.xml", tree1);
}
catch(const std::exception& e)
{
std::cerr << "Error parsing XML: " << e.what() << std::endl;
return 1;
}
std::cout << "Hello World!" << std::endl;
return 0;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment