Closed ikorin24 closed 2 years ago
U8Xml.XmlNode
public RawString AsRawString()
const string XmlString = @"<?xml version='1.0' ?> <a> <b> <c>foo</c> </b> </a>"; using XmlObject xml = XmlParser.Parse(XmlString); XmlNode nodeA = xml.Root; // <a>...</a> XmlNode nodeB = nodeA.FindChild("b"); // <b>...</b> RawString nodeString = nodeB.AsRawString(); Console.WriteLine(nodeString);
The output is
<b> <c>foo</c> </b>
NOTE
The indent of the node is ignored at the head.
close #15
🥳 thanks!
Added method(s)
U8Xml.XmlNode
public RawString AsRawString()
How it works
The output is
NOTE
The indent of the node is ignored at the head.