Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-621

Error when get element(node) of XmlObject by selecPath()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • XmlObject
    • None

    Description

      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)
      2) Next function: It can not get schemaGlobalElement and return XmlAnyTypeImpl for the element which we try to select by xpath in our XMLObject.

      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.

      Attachments

        1. image-2022-08-12-09-54-54-168.png
          137 kB
          Huynh Long Thang
        2. image-2022-08-12-10-05-58-838.png
          106 kB
          Huynh Long Thang
        3. xmlObjectExample.xml
          0.7 kB
          Huynh Long Thang

        Activity

          People

            Unassigned Unassigned
            lthang221198 Huynh Long Thang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: