RE: Can I get a SchemType from an XPath without a document instance?

2008-08-27 Thread Cezar Andrei
Anthony, You'll need to navigate the SchemaTypeSystem yourself. XMLBeans doesn't include such an utility a this moment. Also, if you know the document class, there is a static field an all the generated interfaces called type that points to its corresponding SchemaType, you can use that

RE: Can I get a SchemType from an XPath without a document instance?

2008-08-27 Thread Anthony Fryer
Cezar, Thanks for replying. I started wondering if what I asked was crazy and had a look at how else I could do this and realized that what I wanted was actually to get the schema type using a restricted xpath that essentially uniquely identifies an element (ie. get the schemaType of

RE: Can I get a SchemType from an XPath without a document instance?

2008-08-27 Thread Cezar Andrei
Anthony, It's an interesting idea, if anybody does it, let us know and we'll add it in. Indeed you can't use the QName (SchemaType.getName()) since inner definitions don't have names. But for this you should use signatures, to get one just use SchemaType.toString(), and for finding it