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

Huynh Long Thang edited comment on XMLBEANS-621 at 8/15/22 8:02 AM:
--------------------------------------------------------------------

We have a schema which is built into a jar1 package and another schema which is 
built into a jar2 package.

For above example, the exp:Txn is a node (childelement) which its classes is in 
jar1. The parent xmlobject which its classes is in jar2.  We have tried and it 
will be worked well when calling selectPath() if they are built into a same 
jar. Otherwise, it will cause the above issue if we have two jars for them. Can 
you help to try to have a similar example to check this case? Many thanks.


was (Author: JIRAUSER291735):
We have a schema which is built into a jar1 package and another schema which is 
built into a jar2 package.

For above example, the exp:Txn is a node (childelement) which its classes is in 
jar1. The parent xmlobject which its classes is in jar2.  We have tried and it 
will be worked well when calling selectPath() if they are built into a same 
jar. Otherwise, it will caused the above issue if we have two jars for them. 
Can you help to try to have a similar example to check this case? Many thanks.

> Error when get element(node) of XmlObject by selecPath()
> --------------------------------------------------------
>
>                 Key: XMLBEANS-621
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-621
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: XmlObject
>            Reporter: Huynh Long Thang
>            Priority: Major
>         Attachments: image-2022-08-12-09-54-54-168.png, 
> image-2022-08-12-10-05-58-838.png, xmlObjectExample.xml
>
>
> Hi XMLBeans team,
> We have a problem when using Xpath with selectPath method in newest version. 
> *It worked as well in version 3.1.0.*
> Our xmlObject is built directly using the class built from the schema . For 
> example:
> SelectGenerateDeliverDocument xml = 
> SelectGenerateDeliverDocument.Factory.newInstance();
> When we try to debug, there is a difference as below:
> 1)
> !image-2022-08-12-09-54-54-168.png! 2) Next function: It can not get 
> schemaGlobalElement and return XmlAnyTypeImpl for the element which we try to 
> select by xpath in our XMLObject.
> !image-2022-08-12-10-05-58-838.png!
> Our Xpath is: /req:SelectGenerateDeliver/req:request/data:TransactionData/Txn 
> and a example xml is attached.
> Please help to review and support us for this issue. It is very nice if we 
> can provide you more information if needing. Thank you.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to