|
January 23, 2002 Parsing Error Pinpointing Tips: January 2002
Yehuda Shiran, Ph.D.
|
|
Internet Explorer's XML parser provides a lot of information about parsing errors. You can print to the user the location of the error within the XML file, the line number within the XML file, the character position in the line, the reason for the error, the text of the XML line where the error has been detected, and the URL of the XML file. This load() function prints all these attributes for an XML file which includes an error:
We took a valid XML file and modified the </DATA> field to <DATA>. We put the XML file in mydvdwitherror.xml. Try loading this file. You should get an alert box with all the error information described above.
People who read this tip also read these tips: Look for similar tips by subject: |