IXmlNodeSerializer IXmlNodeSerializer IXmlNodeSerializer IXmlNodeSerializer Interface

Definition

Encapsulates the methods needed to serialize a DOM tree or subtree to a string representation.

public : interface IXmlNodeSerializer
public interface IXmlNodeSerializer
Public Interface IXmlNodeSerializer
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

InnerText InnerText InnerText InnerText

Gets and sets the text from inside the XML.

public : Platform::String InnerText { get; set; }
public string InnerText { get; set; }
Public ReadWrite Property InnerText As string
var string = iXmlNodeSerializer.innerText;
iXmlNodeSerializer.innerText = string;
Value
Platform::String string string string

The text from inside the XML. Returns an empty string if there is no text.

Examples

var doc = new Window.Data.Xml.Dom.XmlDocument();
doc.loadXml('<root>\r
<foo>hello</foo>\r
<bar>world</bar>\r
</root>'); var xml = doc.getXml(); var txt = doc.InnerText;

The XML in this example is as follows.

<root>
  <foo>hello</foo>
  <bar>world</bar>
</root>

The txt variable receives the following value from the InnerText member:

hello world

Methods

GetXml() GetXml() GetXml() GetXml()

Returns the XML representation of the node and all its descendants.

public : Platform::String GetXml()
public string GetXml()
Public Function GetXml() As string
var string = iXmlNodeSerializer.getXml();
Returns
Platform::String string string string

The XML representation of the node and all its descendants.