IXmlNodeSerializer.InnerText IXmlNodeSerializer.InnerText IXmlNodeSerializer.InnerText IXmlNodeSerializer.InnerText IXmlNodeSerializer.InnerText Property

Definition

Gets and sets the text from inside the XML.

public : Platform::String InnerText { get; set; }
winrt::hstring InnerText();

void InnerText(winrt::hstring innertext);
public string InnerText { get; set; }
Public ReadWrite Property InnerText As string
var string = iXmlNodeSerializer.innerText;
iXmlNodeSerializer.innerText = string;

Property Value

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