xml-xmlbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Bau" <david....@bea.com>
Subject Re: SchemaTypes
Date Thu, 15 Jan 2004 14:52:22 GMT
What you're doing _should_ work - unless you've misspelled the name or
omitted the jar from your classpath (or have other classloader issues).

Another thing you can try, if the compiled class is "MyFooType"...

You can try saying

SchemaType sType = MyFooType.type.

If you can get things working that way, you can make sure that

sType.getName() is equal to the QName that you're using etc.

David

----- Original Message ----- 
From: "mg" <mg@subscribe.audumla.net>
To: <xmlbeans-dev@xml.apache.org>
Sent: Thursday, January 15, 2004 1:06 AM
Subject: [xmlbeans-dev] SchemaTypes


> I am trying to get the SchemaType implementation that maps to a
> particular namespace but cannot find how to do this,
> I have tried the following,
>
> XmlBeans.getContextTypeLoader().findType(new
> javax.xml.namespace.QName(namespaceURI,localName));
>
> But this returns null.
>
> Any ideas?
> Thanks,
> Marius Gleeson
>
> - ---------------------------------------------------------------------
> To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
> Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
>
>


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message