String ecmaToXMLString(XmlProcessor processor) {
   if (this.isElementType()) {
     Element copy = (Element) this.dom.cloneNode(true);
     Namespace[] inScope = this.getInScopeNamespaces();
     for (int i = 0; i < inScope.length; i++) {
       declareNamespace(copy, inScope[i].getPrefix(), inScope[i].getUri());
     }
     return processor.ecmaToXmlString(copy);
   } else {
     return processor.ecmaToXmlString(dom);
   }
 }
 String debug() {
   XmlProcessor raw = new XmlProcessor();
   raw.setIgnoreComments(false);
   raw.setIgnoreProcessingInstructions(false);
   raw.setIgnoreWhitespace(false);
   raw.setPrettyPrinting(false);
   return raw.ecmaToXmlString(this.dom);
 }
 String toXmlString(XmlProcessor processor) {
   return processor.ecmaToXmlString(this.dom);
 }