Parsing a string in the format of XML element

I have a string that is in the form of an XML element:

<action type="2">Calculate</action> 

It's not part of a larger XML document. However, I would like to use one of the XML parsing libraries to parse this.

Everything I find assumes that the element is part of a full document with all that implies.

Thanks,

by nufsven via /r/csharp

Leave a Reply