If I parse a file with
------------------------------
string FileName("test.xml");
TiXmlDocument doc(FileName);
bool loadOkay = doc.LoadFile();
if ( !loadOkay )
{
cerr << "File " << FileName << ": " << \ doc.ErrorDesc() << " Column: " << doc.ErrorCol() \
<< " Row: " << doc.ErrorRow();
}
------------------------------
and I have a syntax error in "test.xml" I receive the correct error string with doc.ErrorDesc() but doc.ErrorCol() and doc.ErrorRow() always return 1.
If the parser encountered an error and was note able to get the location ErrorCol and ErrorRow should return 0 according to the Documentation.
What am I doing wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I parse a file with
------------------------------
string FileName("test.xml");
TiXmlDocument doc(FileName);
bool loadOkay = doc.LoadFile();
if ( !loadOkay )
{
cerr << "File " << FileName << ": " << \ doc.ErrorDesc() << " Column: " << doc.ErrorCol() \
<< " Row: " << doc.ErrorRow();
}
------------------------------
and I have a syntax error in "test.xml" I receive the correct error string with doc.ErrorDesc() but doc.ErrorCol() and doc.ErrorRow() always return 1.
If the parser encountered an error and was note able to get the location ErrorCol and ErrorRow should return 0 according to the Documentation.
What am I doing wrong?
I found my mistake:
The value I set with SetTabSize was wrong...
blattjoe