I am creating a xml file, but am unable to convert the string in the tag <Nb>
<Header>
<Body>
<Nb>13</Nb>
</Body>
</Header>
How do I convert it to an XElement item? I want to avoid using Linq, XmlDoc if possible...
I am creating a xml file, but am unable to convert the string in the tag <Nb>
<Header>
<Body>
<Nb>13</Nb>
</Body>
</Header>
How do I convert it to an XElement item? I want to avoid using Linq, XmlDoc if possible...
Copyright © 2021 Jogjafile Inc.
Try using the XElement.Parse like so
Examples here: How to convert from string to XElement object