mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Mistake in string parse; interface is ambiguous and must fix. Is char * a file, or a XML buffer ?
This commit is contained in:
parent
0f3e9ae57d
commit
00ebc150ad
@ -68,10 +68,10 @@ std::string XmlWriter::XmlString(void)
|
|||||||
XmlReader::XmlReader(const char *xmlstring,string toplev) : fileName_("")
|
XmlReader::XmlReader(const char *xmlstring,string toplev) : fileName_("")
|
||||||
{
|
{
|
||||||
pugi::xml_parse_result result;
|
pugi::xml_parse_result result;
|
||||||
result = doc_.load_file(xmlstring);
|
result = doc_.load_string(xmlstring);
|
||||||
if ( !result ) {
|
if ( !result ) {
|
||||||
cerr << "XML error description: char * " << result.description() << " "<< xmlstring << "\n";
|
cerr << "XML error description (from char *): " << result.description() << "\nXML\n"<< xmlstring << "\n";
|
||||||
cerr << "XML error offset : char * " << result.offset << " "<<xmlstring <<"\n";
|
cerr << "XML error offset (from char *) " << result.offset << "\nXML\n"<< xmlstring <<"\n";
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
if ( toplev == std::string("") ) {
|
if ( toplev == std::string("") ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user