Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367921

Summary: @XmlPath support for In-equality/existance/negative predicates
Product: z_Archived Reporter: Michael Gallagher <michael.gallagher>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: blaise.doughan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
URL: http://stackoverflow.com/questions/8729285/eclipselink-moxy-xmlpath-support-for-predicate-inequality
Whiteboard:

Description Michael Gallagher CLA 2012-01-05 04:21:41 EST
For the following XML:

<root>
   <tag attr1="a" attr2="x">1</tag>
   <tag attr1="b">2</tag>
   <tag attr1="b">3</tag>
</root>

Assuming the context node is /root

Examples of XPaths currently not supported:

tag[@attr1 != 'a']  - 2 elements
tag[@attr2]         - 1 element
tag[not(@attr2)]    - 2 elements

Related Stackoverflow question:
http://stackoverflow.com/questions/8729285/eclipselink-moxy-xmlpath-support-for-predicate-inequality
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:19:05 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink