Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367921 - @XmlPath support for In-equality/existance/negative predicates
Summary: @XmlPath support for In-equality/existance/negative predicates
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://stackoverflow.com/questions/87...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 04:21 EST by Michael Gallagher CLA
Modified: 2022-06-09 10:19 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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