Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OmniXML XPath finds only first node in some situations #23

Open
StoneEngineer opened this issue Jan 20, 2020 · 0 comments
Open

OmniXML XPath finds only first node in some situations #23

StoneEngineer opened this issue Jan 20, 2020 · 0 comments

Comments

@StoneEngineer
Copy link

StoneEngineer commented Jan 20, 2020

I encountered an issue with XPath.
Here is XML structure I tested:

  <record>
    <column name="name">testing_field1</column>
    <column name="table">testing</column>
    <column name="type">int(11)</column>
    <column name="upload">Y</column>
    <column name="description"/>
  </record>

This expression works:
/data/record[column='testing_field1']/column[.='testing']
and returns
<column name="table">testing</column>

This expression
/data/record[column='testing']/column[.='testing_field1']
does not work. Second node (column='testing') is not found.

I tested both expressions with online xpath evaluators and both work

@StoneEngineer StoneEngineer changed the title OmniXML XPath does finds only first node in ome situations OmniXML XPath does finds only first node in some situations Jan 20, 2020
@StoneEngineer StoneEngineer changed the title OmniXML XPath does finds only first node in some situations OmniXML XPath finds only first node in some situations Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant