Hi Michael,
Thanks for the answers.
I therefore modified definition of schema type "TEST_TYPE" in my
example as follows:
<xs:complexType name="TEST_TYPE">
<xs:complexContent>
<xs:extension base="xs:anyType" />
</xs:complexContent>
</xs:complexType>
OR
<xs:complexType name="TEST_TYPE">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:sequence>
<xs:any processContents="lax" />
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
And both of these approaches solved the problem I mentioned earlier.
Many thanks.
On Mon, Nov 8, 2010 at 6:23 AM, Michael Glavassevich
<[email protected]> wrote:
> Hi Mukul,
>
> The content allowed by your restricted type must also be allowed by the base
> type. In your example it seems like you're trying to change the namespace of
> element "y" to "http://test2", but that element isn't allowed by "TEST_TYPE"
> (only an element "y" with no namespace is) and so this isn't a valid
> restriction.
>
> Thanks.
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: [email protected]
> E-mail: [email protected]
--
Regards,
Mukul Gandhi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]