[ 
https://issues.apache.org/jira/browse/XMLBEANS-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147119#comment-13147119
 ] 

Paul Galbraith commented on XMLBEANS-199:
-----------------------------------------

And further to what I'm trying to do (and I think what the author is trying to 
do as well), can query and selectPath be modified to return the correctly typed 
object, even when the result is surrounded by an unkown container document?

<unkownEnvelope>
   <unknown>
      <knownSchemaElement>
...

I want be able to write this java code.  The current workaround with XmlCursor 
is a little painful, and seems uneccesary.

   XmlObject envelope = XmlObject.Factory.parse(document);
   KnownSchemaElement myElement = (KnownSchemaElement) 
envelope.selectPath("unknownEvelope/unkown/knownSchemaElement")[0];

                
> Make XmlObject.changeType Work For non-document Types
> -----------------------------------------------------
>
>                 Key: XMLBEANS-199
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-199
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: XmlObject
>    Affects Versions: Version 2
>         Environment: N/A
>            Reporter: James Couball
>
> Currently, XmlObject.changeType only works if the object it is performed on 
> is a document type.  Please make it work for non-document types too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: dev-h...@xmlbeans.apache.org

Reply via email to