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
string string string

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

Attributes

Remarks

Examples

var doc = new Window.Data.Xml.Dom.XmlDocument();
doc.loadXml('<root>\r\n  <foo>hello</foo>\r\n  <bar>world</bar>\r\n  </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
string string string

The XML representation of the node and all its descendants.

Attributes