Hi all,

I have an XML Schema in which the following element is defined :

<xsd:element name="internationalPrice" type="xsd:anyType"/>

I'm executing the following test code using castor :
SchemaReader reader = new SchemaReader("mySchema.xsd");

           Schema schema = reader.read();
ElementDecl element = schema.getElementDecl("internationalPrice"); Schema typeSchema = element.getType().getSchema(); System.out.println(typeSchema.getTargetNamespace());

I expect that http://www.w3.org/2001/XMLSchema will be printed as a result but it is not.The target namespace of mySchema.xsd is printed. Is this the right behaviour or there is some problem in the castor ? Or maybe I'm missing something...

Thanks in advance,
Boris




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to