LSSerializer writer = impl.createLSSerializer();
writer.getDomConfig().setParameter("format-pretty-print", Boolean.TRUE);
Document doc = new UnmarshalImpl().unmarshal(msg, root);
String str = writer.writeToString(doc);
System.out.println(str);
System.out.println(new MarshalImpl().marshal(doc, root));
/* long time = System.currentTimeMillis();
for (int i = 0;i < 10000;i++)
new UnmarshalImpl().unmarshal(msg, root);
System.out.println("time="+(System.currentTimeMillis() - time));