extension of my question .
I able to come out with thw xsd for soap xml with the help of kjhughes. Now i want pass the soap xml to my xsd using coldfusion test page, but i get this error
[Error] :2:170: cvc-elt.1: Cannot find the declaration of element 'soap:Envelope'.
I wondering why i able to validation the xsd in here, but cannot validate in my coldfusion test page?
What should I do to eliminate the error?
below is my test page
<cfsavecontent variable="sXML"><?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Cancel_OrderLine xmlns="http://tempuri.org/">
<Data>
<Delivery>
<Delivery_No>1605000194</Delivery_No>
<Reason>qwertyu</Reason>
</Delivery>
<Delivery>
<Delivery_No>1605000194</Delivery_No>
<Reason>qwerty</Reason>
</Delivery>
</Data>
</Cancel_OrderLine>
</soap:Body>
</soap:Envelope>
</cfsavecontent>
<cfset myResults = XMLValidate(sXML, "http://127.0.0.1:8501/test/schema/test_to_validate.xsd")>
<cfoutput>
Did the sample xml validate against test_to_validate.xsd? #myResults.status#<br><br>
</cfoutput>
Dump of myResults structure returned by XMLValidate<br>
<cfdump var="#myResults#">