DOMImplementationLS impl =
(DOMImplementationLS)registry.getDOMImplementation("LS");
long time = System.currentTimeMillis();
new UnmarshalImpl().unmarshal(msg, root);
System.out.println("time="+(System.currentTimeMillis()-time));
LSSerializer writer = impl.createLSSerializer();
writer.getDomConfig().setParameter("format-pretty-print", Boolean.TRUE);
String str = writer.writeToString(new UnmarshalImpl().unmarshal(msg, root));
System.out.println(str);
/*String reg = root.calcRegex(new CalcContext());
System.out.println("---->"+reg);