You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
653 B
30 lines
653 B
|
|
xmlDoc = new ActiveXObject( "Msxml2.DOMDocument" );
|
|
|
|
try
|
|
{
|
|
res = xmlDoc.load( WScript.Arguments(0) );
|
|
}
|
|
catch(e)
|
|
{
|
|
res = false;
|
|
}
|
|
|
|
if(res != true)
|
|
{
|
|
WScript.Echo( "Bad xml "+
|
|
WScript.Arguments(0)+
|
|
"!!\n");
|
|
|
|
err = xmlDoc.parseError;
|
|
|
|
WScript.Echo( "reason : " + err.reason );
|
|
WScript.Echo( "line : " + err.line );
|
|
WScript.Echo( "linepos: " + err.linepos );
|
|
WScript.Echo( "filepos: " + err.filepos + "\n" );
|
|
|
|
WScript.Echo( err.srcText.substr( err.linepos - 10, 60 ) );
|
|
WScript.Echo( "---------^" );
|
|
}
|
|
|
|
|