Hi,
 
Are you doing a straight 'validate schema.xsd instance.xml' to test this or is it part of a more complex scenario? If you do straight validation I am confident that it works like you expect.
 
Radu


From: Ole Matzura [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 2:57 PM
To: [email protected]
Subject: error validating xsi:type with unprefixed namespace

Hi!

 

I have a validation issue where the qname of an xsi:type isn’t liked by xmlbeans;

 

This validates ok (the namespace is prefixed):

 

 <ns:SampleRequest xmlns:ns="urn:SampleDataNamespace">

    

<ns:Content xsi:type="ns:SubTypeA">

         <ns:Foo></ns:Foo>

           <ns:Bar></ns:Bar>

    

</ns:Content>

      </ns:SampleRequest>

 

 

But this doesn’t (no prefix):

 

      <SampleRequest xmlns="urn:SampleDataNamespace">

     <Content xsi:type="SubTypeA">

         <Foo></Foo>

           <Bar></Bar>

    

</Content>

      </SampleRequest>

 

Here I get an “Invalid xsi:type qname” error on the SubTypeA type, although it seems to me that it should be ok as far as I can understand from the rules at http://www.w3.org/TR/xmlschema-1/#src-qname)

 

Is this a bug or am I missing something?

 

Thanks for any help!

Regards,

 

/Ole

Eviware.ecom

 

 

eviware 

 Ole Matzura
 [EMAIL PROTECTED]
 tel: +46 (0)703 555 000
 fax: +46 (0)8 790 61 19

 

 

Reply via email to