[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Schema Validation in MSXML
MSXML does not validate when the loadXML method is used to parse a string (anyone know why?). Validation is only possible if the load method is used on an object that supports IStream, or using the ASP Request object. Is there a way around this, other than parsing the string in one XMLDOM object, and passing it as an IStream object to another, as in the following VBScript: Dim xmlRawDocument Dim xmlValidDocument Set xmlRawDocument = Server.CreateObject("Microsoft.XMLDOM") xmlRawDocument.async = false xmlRawDocument.loadXML(strIncomingDocument) Set xmlValidDocument = Server.CreateObject("Microsoft.XMLDOM") xmlValidDocument.async = false xmlValidDocument.resolveExternals = true xmlValidDocument.validateOnParse = true xmlValidDocument.load(xmlRawDocument) Is there a better way to validate against a schema, assuming that validation is all we're interested in (ie: we're not validating, then building a DOM object at this time). Our only purpose, at the moment, anyway, is to validate xml received from webMethods against a schema, since webMethods only validates against a DTD. Thanks in advance, Mike Sharp *************************************************************************** This is xml-dev, the mailing list for XML developers. To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev List archives are available at http://xml.org/archives/xml-dev/ ***************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|