Answer the question
In order to leave comments, you need to log in
How to parse an xml element into a primitive type?
There is this xml:
<order>
<id_address_delivery>4</id_address_delivery>
<order>
@JacksonXmlRootElement(localName = "order")
public static class Order
{
@JacksonXmlProperty(localName = "id_address_delivery")
public String id_address_delivery;
}
XmlMapper XmlMapper = new XmlMapper()
XmlMapper.readValue(xml, cls);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question