You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Andy Putnins <pu...@lett.com> on 2008/12/04 02:37:24 UTC
Re: How to decode concrete type from abstract element?
Thanks!
The following works as I was asking:
// Extract RPC operation element
op = request.getRpcOperation();
if (op != null) {
// Get concrete type of abstract element
SchemaType opType = op.schemaType();
- Andy
On Wed, 3 Dec 2008 15:16:36 -0500 "Radu Preotiuc-Pietro" wrote:
> If you want the concrete type of an XmlObject, call xmlObject.schemaType(),
> if you want the static type, do MyXmlObjectClass.type.
>
> If you want the name of the enclosing element, you need to do xmlObject.new
> Cursor().getName() (Note that there's no "declared element"). Finally, if y
> ou want to print the object and the enclosing element name, call xmlObject.
> xmlText(new XmlOptions().setSaveOuter()).
>
> Hope this helps,
> Radu
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org