Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Map property to XML attribute #16

Open
hpehl opened this issue Oct 8, 2013 · 0 comments
Open

Map property to XML attribute #16

hpehl opened this issue Oct 8, 2013 · 0 comments
Assignees
Milestone

Comments

@hpehl
Copy link
Owner

hpehl commented Oct 8, 2013

I'm using piriti for XML mapping in GWT application. I have not found the ability to map XML value. For example for this class:

public class Option
{
   private String id;
   private String text;
}

I want to get this XML:

<option id="1">Java</option>

With pirti I only can get this:

<option id="1">
<text>Java</text>
</option>

My question is whether there is a possibility to get XML value or maybe are you going to upgrade piriti?

A mapping like this

public class Option {

    @Path("@id") private String id;
    @Path("text()") private String name;

    // getters & setters
}

does work for reading, but not for writing.

@ghost ghost assigned hpehl Oct 8, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant