I have a little issue, i'm trying to get the coordinates in XML(Atom-feed) response with Jaxb but i can't. The customs namespaces as < str name="footprint"> are the problem.
Indeed, i already tried with a standard namespace like < summary > and it's working.
It's the first time that i play with xml stuff, so i dont know how to access to those namespaces.
Here's the code:
@XmlRootElement(name = "entry")
@XmlAccessorType(XmlAccessType.FIELD)
public class Entry {
//@XmlElement(name = "footprint")//<str name="footprint"> dont work.
//@XmlAttribute(name="footprint")//dont work
@XmlValue//dont work
private String footprint;
@XmlElement(name = "uuid")
private String id;
@XmlElement(name = "size")
private String size;
public Entry() {}
public String getCoordinates() {
return footprint;
}
public String getId() {
return id;
}
public String getSize() {
return size;
}
public void setCoordinates(String footprint) {
this.footprint=footprint;
}
public void setSize(String size) {
this.size=size;
}
public void setId(String id) {
this.id=id;
}
}
And what i want to get :
Thank you.
EDIT :
Solution => I can't access to the namespace <str name="footprint'> with Jaxb