Validate against XSD

28/12/2004 - 10:30 por CK | Informe spam
I am doing a

Doc.Loadxml(myxml)
and I have an xsd schema that I want to validate the myxml against. How can
I do this. code would help.


Thanks in advance.
 

Leer las respuestas

#1 skar
28/12/2004 - 14:23 | Informe spam
Habla espaniol? :)
here's the code:
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0");
xmlDoc.async = false;
xmlDoc.validateOnParse = true;
xmlDoc.load("books.xml");
if (xmlDoc.parseError.errorCode <> 0) {
var myErr = xmlDoc.parseError;
alert("You have error " + myErr.reason);
}"CK" wrote in message
news:
I am doing a

Doc.Loadxml(myxml)
and I have an xsd schema that I want to validate the myxml against. How


can
I do this. code would help.


Thanks in advance.


Preguntas similares