IXmlNodeSerializer
IXmlNodeSerializer
IXmlNodeSerializer
IXmlNodeSerializer
Interface
Definition
Encapsulates the methods needed to serialize a DOM tree or subtree to a string representation.
public : interface IXmlNodeSerializerpublic interface IXmlNodeSerializerPublic Interface IXmlNodeSerializer// You can use this interface in JavaScript.
- 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// You can use this property in JavaScript.
- 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// You can use this method in JavaScript.
Returns
PlatForm::String
string
string
string
The XML representation of the node and all its descendants.