use of com.evolveum.midpoint.prism.xnode.RootXNode in project midpoint by Evolveum.
the class TestParseSystemConfiguration method testParseToXNode.
@Test
public void testParseToXNode() throws Exception {
PrismContext prismContext = PrismTestUtil.getPrismContext();
RootXNode node = prismContext.parserFor(getFile()).parseToXNode();
System.out.println("Parsed to XNode:");
System.out.println(node.debugDump());
System.out.println("XML -> XNode -> XML:\n" + prismContext.xmlSerializer().serialize(node));
System.out.println("XML -> XNode -> JSON:\n" + prismContext.jsonSerializer().serialize(node));
System.out.println("XML -> XNode -> YAML:\n" + prismContext.yamlSerializer().serialize(node));
}
Aggregations