public void testOutputElementIgnoreTrAXEscapingPIs() {
Element root = new Element("root");
root.addContent(new Text("&"));
root.addContent(new ProcessingInstruction(Result.PI_DISABLE_OUTPUT_ESCAPING, ""));
root.addContent(new Text(" && "));
root.addContent(new ProcessingInstruction(Result.PI_ENABLE_OUTPUT_ESCAPING, ""));
root.addContent(new Text("&"));
String expect = "<root>& && &</root>";
String excompact = "<root>&&&&</root>";
String expretty = "<root>\n &\n \n &&\n \n &\n</root>";
String extfw = "<root>\n &\n \n && \n \n &\n</root>";