add XML::GetError function

This commit is contained in:
2020-09-18 21:53:03 +08:00
parent b84ae361a1
commit 62b5267cdc
2 changed files with 10 additions and 0 deletions

View File

@@ -161,6 +161,14 @@ namespace hgl
}
}
void XMLParse::GetError(int *err_code,int *row,int *col)
{
*err_code=XML_GetErrorCode(xml);
*row=XML_GetErrorLineNumber(xml);
*col=XML_GetErrorColumnNumber(xml);
}
/**
* 解晰一个XML文件
*/