I​Xml​Node​Serializer I​Xml​Node​Serializer I​Xml​Node​Serializer Interface

Definition

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

public : interface IXmlNodeSerializerpublic interface IXmlNodeSerializerPublic Interface IXmlNodeSerializer
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

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
Value
PlatForm::String string string

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

Attributes

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()

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

public : PlatForm::String GetXml()public string GetXml()Public Function GetXml() As string
Returns
PlatForm::String string string

The XML representation of the node and all its descendants.

Attributes