Hi,

On 8 Sep 2005, at 20:16, Antonio Ruiz Martínez wrote:

Hi all!

I need to validate some documents, but these documents may contain several namespaces, each of one refers to different schemas, for
example:

<ns1:Element1 xmlns:ns2="http://schemas/schema2.xsd"; xmlns:ns1="http://schemas/schema1.xsd"; xmlns:ns3="http://schemas/ schema3.xsd">
   <ns2:Element2>
       <ns2:element21>blablaba</ns2:element21>
       <ns3:Element3>
           <ns3:element31>
               <ns3:element32>
                   <ns3:element33>blablabla</ns3:element33>
               </ns3:element32>
           </ns3:element31>
       </ns3:Element3>
   </ns2:Element2>

I would like to know how to validate this kind of documents against the different schemas. Could somebody be so kind to help me, please?


The target namespace of your schema would be ns1. In that schema you would import other schemas (the ones defining ns2 and ns3). In the definition for Element1 in the first schema you would define it having an element Element2 from the namespace ns2 as a child.

Cheers,

Gareth


--
Gareth Reakes, Managing Director               Embrace Mobile
+44-1865-811197                  http://www.embracemobile.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to