Answer the question
In order to leave comments, you need to log in
How to keep part of the markup in the field as is when unmarshaling an xml document?
I struggle with the task for the second week. There is a document
<catalog>
<books>
...........постоянно меняется структура
</books>
<address>Павлова 45</address>
</catalog>
@XmlRootElement
@Data
@XmlAccessorType(XmlAccessType.NONE)
@ToString
static class Catalog{
@XmlElement(name = "books")
protected String books;
@XmlElement(name = "address")
protected String address;
}
protected String books
pure xml get into the property during mashaling and get the original xml back when unmarshaling?
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