#include <iostream>
using std::ifstream;
-
+using std::istream;
+using std::string;
\f
////////////////////////////////////////////////////////////////////////
void XMLVisitor::savePosition(void)
{
- column = XML_GetCurrentColumnNumber(parser);
- line = XML_GetCurrentLineNumber(parser);
+ if (parser) {
+ column = XML_GetCurrentColumnNumber(parser);
+ line = XML_GetCurrentLineNumber(parser);
+ }
}
////////////////////////////////////////////////////////////////////////