public class JacksonXMLToJsonNodeMapper extends JacksonXMLToObjectMapper<com.fasterxml.jackson.databind.JsonNode> implements Mapper<com.fasterxml.jackson.databind.JsonNode>
Mapper that loads the contents of a valid XML Source
(e.g.: file, URL, string) and converts it into a JsonNode, using Jackson's
XmlMapper.
Because of differences between XML and JSON formats, the document structure may suffer modifications in this transformation. XML uses elements, attributes, and content text, while JSON uses unordered collections of name/value pairs and arrays of values. JSON does not distinguish between elements and attributes.
Additional details may be found at Jackson's official documentation.
Note: Conversion from XML to JSON may vary depending on the
Mapper implementation.
| Constructor and Description |
|---|
JacksonXMLToJsonNodeMapper()
Builds a new XML-to-JSON mapper.
|
applyconfigurationHelperequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, configurationHelperCopyright © 2021. All rights reserved.