EcmaToXmlString() private method

private EcmaToXmlString ( System node ) : string
node System
return string
Example #1
0
		internal virtual string ToXmlString(XmlProcessor processor)
		{
			return processor.EcmaToXmlString(this.dom);
		}
Example #2
0
		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);
			}
		}
Example #3
0
		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);
		}