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

XPath: breaks on multiple predicates ( returns empty nodelist) #9

Open
GoogleCodeExporter opened this issue Mar 25, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Expression: "//hasp[@id][feature[@id != 0]]"

XML:

<hasp_info>



<license_manager >
127.0.0.1
Windows 7 Professional
</license_manager>




<license_manager >
192.168.7.235
Windows 7 Professional
</license_manager>



<license_manager>
192.168.7.169
Windows 7 Professional
</license_manager>

</hasp_info>


Correct results returned by

 1. http://www.freeformatter.com/xpath-tester.html
 2. http://xpath.online-toolz.com/tools/xpath-editor.php
 3. http://www.softpedia.com/get/Programming/File-Editors/XMLPad.shtml

Original issue reported on code.google.com by [email protected] on 9 Dec 2014 at 5:33

@the-Arioch
Copy link
Contributor

The XML source in question:

<hasp_info> 
  <hasp id="1299527092" type="HASP-HL"> 
    <feature id="0" /> <feature id="16" />
    <license_manager > <ip>127.0.0.1</ip> <osname>Windows 7 Professional</osname>  </license_manager> 
</hasp> 
<hasp id="45569452" type="HASP-HL">
  <feature id="0" /> <feature id="10" />
  <license_manager > <ip>192.168.7.235</ip> <osname>Windows 7 Professional</osname> </license_manager> 
 </hasp>
 <hasp id="266416965" type="HASP-HL">
   <feature id="0" />
   <license_manager> <ip>192.168.7.169</ip> <osname>Windows 7 Professional</osname> </license_manager>
 </hasp>
</hasp_info>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants