IXmlNodeSerializer IXmlNodeSerializer IXmlNodeSerializer IXmlNodeSerializer Interface

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

Syntax

Declaration

public interface IXmlNodeSerializerpublic interface IXmlNodeSerializerPublic Interface IXmlNodeSerializer

Properties summary

Gets and sets the text from inside the XML.

Methods summary

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

Properties

  • InnerText
    InnerText
    InnerText
    InnerText

    Gets and sets the text from inside the XML.

    public string InnerText { get; set; }public string InnerText { get; set; }Public ReadWrite Property InnerText As string

    Property Value

    • string
      string
      string
      string

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

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

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

    public string GetXml()public string GetXml()Public Function GetXml() As string

    Returns

    • string
      string
      string
      string

      The XML representation of the node and all its descendants.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.GuidAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Data.Xml.Dom.dll