Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")
xmlDoc.async = False
xmlDoc.validateOnParse = False
xmlDoc.resolveExternals = False
strFileName = "R:/ErwinFiles/" &
request.QueryString("sf")
xmlDoc.load(strFileName)
If xmlDoc.parseError.errorcode = 0 Then
'Walk from the root to each of its child nodes:
tree_walk(xmlDoc)
Else
response.write ("<br>errorCode: ")
response.write xmlDoc.parseError.errorCode
response.write ("<br>reason: ")
response.write xmlDoc.parseError.reason
response.write ("<br>line: ")
response.write xmlDoc.parseError.line
response.write ("<br>linePos: ")
response.write xmlDoc.parseError.linePos
response.write ("<br>srcText: ")
response.write xmlDoc.parseError.srcText
response.write ("<br>url: ")
response.write xmlDoc.parseError.url
response.write ("<br>filePos: ")
response.write xmlDoc.parseError.filePos
response.write ("<br>")
End If
In the code above, I am receiving this customized
error:
errorCode: -1072898046
reason: Reference to undefined entity 'eacute'.
line: 110
linePos: 23
srcText: Sun Microsystems Fort� 4GL.
url: file:///R:/GartnerFiles/308789.xml
filePos: 14675
The problem is that the special character entity is
not recognized. How can I add recognized entities to a
validating XML parser in asp?
In my XML file, the special characters are not written
in unicode form. Thanks a lot.
Erwin Rommel Y. Felix
Tel. 8410111 loc. 11430
Mobile 09185980706
"Never outshine the Master Chicker"
__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/