IXmlNodeSerializer.InnerText Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets and sets the text from inside the XML.
public:
property Platform::String ^ InnerText { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring InnerText();
void InnerText(winrt::hstring value);
public string InnerText { get; set; }
var string = iXmlNodeSerializer.innerText;
iXmlNodeSerializer.innerText = string;
Public Property InnerText As String
Property Value
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\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