|
List Info
Thread: XML doc validation against multiple XSD's
|
|
| XML doc validation against multiple
XSD's |

|
2007-04-02 03:25:05 |
|
Hi All,
Sorry
for the incomplete question.
I
am using libxml 2.2-6 version.
I
also want to know how to validate xml against multiple XSD’s (one XSD has
the reference of other XSD’s).
Following
is the sample XSD which contains reference to other XSD’s:
<?xml
version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:ts="urn:ietf:params ml:ns:pidf:timed-status"
xmlns:pidf="urn:ietf:params ml:ns:pidf"
xmlns s="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:ietf:params ml:ns:pidf:timed-status"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:import
namespace="urn:ietf:params ml:ns:pidf"/>
<xs:annotation>
<xs:documentation>
Describes timed-status tuple extensions for PIDF.
</xs:documentation>
</xs:annotation>
<xs:element
name="timed-status" type="ts:timed-status"/>
<xs:complexType
name="timed-status">
<xs:sequence>
<xs:element name="basic" type="pidf:basic"
minOccurs="0"/>
<xs:element name="note"
type="pidf:note" minOccurs="0"/>
<xs:any namespace="##other"
processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute
name="from" type="xs:dateTime"
use="required"/>
<xs:attribute
name="until" type="xs:dateTime"/>
</xs:complexType>
</xs:schema>
Thanks
in Advance for your help.
Thanks & Regards,
Sai Reddy
From: Sai Thatikonda,
TLS-Chennai
Sent: Monday, April 02, 2007 1:47
PM
To: 'xml gnome.org'
Subject: XML doc validation
against multiple XSD's
Hi All,
I am getting the following errors while validating the xml against the XSD
“;Unable to lookup type ID:http://www.w3.org/2001/XMLSchema”
and XSD is as follows
<?xml
version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:ietf:params ml:ns:pidf"
xmlns:tns="urn:ietf:params ml:ns:pidf"
xmlns s="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!-- This import brings in the XML language attribute xml:lang-->
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
----------------------------
--------------------------------
Thanks & Regards,
Sai Reddy
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|