Jackson Glossary: XmlFactory

Role

This is a specialized JsonFactory implementation used to produce XML-reading JsonParser and XML-writing JsonGenerator instances.

It was added in Jackson 1.7, as "mini-JAXB" feature.

Usage

Note: although resulting parsers and generators can be used directly, usually this is not done; rather, XmlMapper is used for data binding. Reason for this is that some details of conversion (between JSON-supporting API and physical XML format) are done above parser/generator layer by other components that XmlMapper constructs (compared to default ObjectMapper helper components).

This means that most of the time you do not have to instantiate XmlFactory directly.


Back to Jackson Term Glossary


CategoryJackson

XmlFactory (last edited 2010-12-22 00:45:04 by TatuSaloranta)

Copyright ©2009 FasterXML, LLC