Files are not used in this application.
I received a string object from another process and must extract tag
values.
I think I got soemthing working, but not sure if its the best approach.
Comments welcome:
(It uses XmlDocument)
http://pastebin.com/709199
Here is the complete listing for future reference:
XmlDocument doc = new XmlDocument();
xmlString = "<?xml version='1.0'
encoding='utf-8'?><Transaction><CardDetails>4561</CardDetails><MessageTy
pe>1</MessageType><TID>88888888</TID></Transaction>";
doc.LoadXml(xmlString);
XmlNodeList elemList = doc.GetElementsByTagName("MessageType");
string test = elemList[0].InnerXml;
*** Sent via Developersdex
http://www.developersdex.com ***