How is it I use the where() function?
using namespace rapidxml;
xml_document<> doc;
std:string xmlfile = "test.xml";
std::ifstream file ( xmlfile );
std::stringstream buffer;
buffer << file.rdbuf ( );
file.close ( );
std::string content ( buffer.str ( ) );
try
{
doc.parse<0> ( &content [ 0 ] );
}
catch ( rapidxml::parse_error& e )
{
std::cout << "Parsing error: " << e.what ( ) << "\n";
//const Ch* e.where ( );
}
got the what() but was looking to get some kind of indicator from where() like the last node that broke the xml?