Article:
 |
|
XML Document Validation with an XML Schema
|
| Subject: |
|
Validating more than one schema |
| Date: |
|
2006-05-21 08:51:36 |
| From: |
|
iragoler
|
|
|
|
Hi, very good article, thanks
I have an XML that has more than one schema (it is a SOAP message in my case). I want to validate all the schemas.
I tried to validate only one schema but it fails as the other schema doesn't match.
Here is the XML:
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:m="http://www.example.org/timeouts"
xmlns:xml="http://www.w3.org/XML/1998/namespace">
<env:Body>
<env:Fault>
<env:Code>
<env:Value>env:Sender</env:Value>
<env:Subcode>
<env:Value>m:MessageTimeout</env:Value>
</env:Subcode>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">Sender Timeout</env:Text>
</env:Reason>
<env:Detail>
<m:MaxTime>P5M</m:MaxTime>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>
When validating the SOAP schema, it fails because of the xml:lang.
How can I validate all the schemas?
Thanks
|
Showing messages 1 through 2 of 2.
http://www-128.ibm.com/developerworks/xml/library/x-tipsch.html