哄女朋友睡觉故事大全:asp如何检验xml的有效性

来源:百度文库 编辑:神马品牌网 时间:2024/07/08 20:33:38

function CheckXML(XmlPath)
CheckXML=true
on error resume next
dim strSourceFile,strError
strSourceFile = Server.MapPath(XmlPath)
Set XMLMorntekDocument = Server.CreateObject("Microsoft.XMLDOM")
XMLMorntekDocument.async = false
XMLMorntekDocument.load(strSourceFile)
errorcode=XMLMorntekDocument.parseerror.errorcode
If Err Then
CheckXML=false
Err.clear
end if
end function

那个要用Schema来做的