Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » MOXy XmlPath mapping with multiple attributes
MOXy XmlPath mapping with multiple attributes [message #698336] Tue, 19 July 2011 09:39 Go to next message
haarlaender is currently offline haarlaenderFriend
Messages: 1
Registered: July 2011
Junior Member
Hi,

I want to use MoxY for a project and define an XmlPath mapping not only on one Xml Attribute, but on multiple.
In my object, I have a field like this:

@XmlPath("identifier[@type='isbn' and @invalid='yes']/text()")
private String isbnValid_540a;


What I want to have out of this is an xml like this:
<identifier type="isbn" invalid="yes">
    value
</identifier>


But what I get is this:
<identifier>
    value
</identifier>


So if I'm using the "and" operator, the marshaller ignores the complete attribute condition. If I'm using just one attribute without an operator, it works fine.

Is there any workaround or planned support for operators in XmlPath annotations?

Cheers
Markus
Re: MOXy XmlPath mapping with multiple attributes [message #700040 is a reply to message #698336] Fri, 22 July 2011 18:46 Go to previous message
Blaise Doughan is currently offline Blaise DoughanFriend
Messages: 163
Registered: July 2009
Senior Member

Hi Markus,

We currently don't support the "and" operation. I have entered the following enhancement request that you can use to track the issue:

- https://bugs.eclipse.org/352899

-Blaise
Previous Topic:eclipselink maven repository 404
Next Topic:EclipseLink 2.3.0 maven repository
Goto Forum:
  


Current Time: Thu Apr 18 23:50:57 GMT 2024

Powered by FUDForum. Page generated in 0.01831 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top