try (InputStream input = new FileInputStream("data.xml")) {
XmlMapper xmlMapper = new XmlMapper();
JsonParser jsonParser = xmlMapper.getFactory().createParser(input);
while (jsonParser.nextToken() != null) {
}
}
XmlMapper xmlMapper = new XmlMapper();
xmlMapper.setDefaultXmlInclusion(100);
XmlMapper xmlMapper = new XmlMapper();
xmlMapper.enableXmlCompatibility();
public class MyXmlParser {
private static final ObjectMapper mapper = new XmlMapper();
public void parse(String xmlString) {
}
}