怎么禁止xml异常提示

如何禁止xml错误提示如何禁止读写xml错误所有提示????[解决办法]你应该在doc.Load的时候进行判断,If doc.L

如何禁止xml错误提示
如何禁止读写xml错误所有提示????

[解决办法]
你应该在doc.Load的时候进行判断,
If doc.Load(Server.Mappath("x.xml")) = False Then
Response.Write "Error
End If