private EcmaToXmlString ( System node ) : string | ||
node | System | |
return | string |
internal virtual string ToXmlString(XmlProcessor processor) { return processor.EcmaToXmlString(this.dom); }
internal virtual string EcmaToXMLString(XmlProcessor processor) { if (this.IsElementType()) { XmlElement copy = (XmlElement)this.dom.CloneNode(true); Rhino.Xmlimpl.XmlNode.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); } }
internal virtual string Debug() { XmlProcessor raw = new XmlProcessor(); raw.SetIgnoreComments(false); raw.SetIgnoreProcessingInstructions(false); raw.SetIgnoreWhitespace(false); raw.SetPrettyPrinting(false); return raw.EcmaToXmlString(this.dom); }