有将一些简单的方法的XmlElement
到字符串
?
Is there some simple way to convert XmlElement
to string
?
感谢。
这将得到元素的内容,如果内容是文本:
This will get the content of the element if the content is text:
element.Value
这会得到元素的含量为XML:
This will get the content of the element as XML:
element.InnerXml
这将得到元素和它的XML内容
This will get the element and its content as XML
element.OuterXml