code: public String toCanonicalXml3(TransformerFactory factory, XMLReader resultParser, String inxml, boolean stripSpace)
  			throws Exception {
  		mStrip = stripSpace;
  		mOut = new StringWriter();
  		Transformer t = factory.newTransformer();
  		SAXSource ss = new SAXSource(resultParser, new InputSource(new StringReader(inxml)));
  		ss.setSystemId("http://localhost/string-input");
  		t.setOutputProperty(OutputKeys.METHOD, "xml");
  		t.setOutputProperty(OutputKeys.INDENT, "no");
  		t.transform(ss, new SAXResult(this));
  		return mOut.toString();
  	}
docs: Create canonical XML silently, throwing exceptions rather than displaying messages. This version
  of the method uses the Saxon identityTransformer rather than parsing directly, because for some reason
  we seem to be able to get XML 1.1 to work this way.