Let's say I have the following content in an XElement
object
<root>Hello<child>Wold</child></root>
If I use XElement.ToString()
, this gives me
"<root xmnls="someschemauri">Hello<child>World</child></root>"
If I use XElement.Value, I will get
"Hello World"
I need to get
"Hello <child>World</child>"
What is the proper function to do this(if there is one)?