Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365840 - @XmlPath support for XPath Axes and/or Parent
Summary: @XmlPath support for XPath Axes and/or Parent
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal with 5 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL: http://stackoverflow.com/questions/84...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-07 04:14 EST by Michael Gallagher CLA
Modified: 2022-06-09 10:05 EDT (History)
6 users (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 2011-12-07 04:14:07 EST
For the following XML:

<root>
   <header>a</header>
   <tag>1</tag>
   <tag>2</tag>
   <tag>3</tag>
</root>

Assuming the context node is /root/tag

Examples of XPaths currently not supported:

../header/text()
parent::*/header/text()


Related Stackoverflow question:
http://stackoverflow.com/questions/8404134/eclipselink-moxy-xmlpath-support-for-axes-parent
Comment 1 Terence Kent CLA 2012-07-14 18:35:22 EDT
I'm currently running into the same need trying to support a very complex schema (MISMO v3.0.CR.201005 if that's interesting).
Comment 2 Chris Kohle CLA 2014-01-07 09:07:19 EST
Getting this issue resolved would also be very useful for us.
Comment 3 barangay sincang CLA 2014-01-21 21:55:12 EST
same here. we badly need this feature. for now we will go back to the old school xpath parsing. our project is heavy with xml that we dont control the schema. thanks in advance.
Comment 4 mr dev CLA 2016-02-04 20:20:22 EST
would be great to have 'parent' or 'child' checks.
ie: Customer/Field[child::Type/text()='Code']/Value/text()
http://stackoverflow.com/questions/35214678/object-mapping-for-xml-moxy-alternative
Comment 5 William Van Woensel CLA 2019-04-10 08:43:32 EDT
Yes, moxy is really great but it's quite unfortunate that axis are not supported - this turns it from a tool with quite some promise into something that's simply incomplete and doesn't support many real-world use cases.
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:05:13 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink