Reading values from xml document in c#

mini-opera

New Member
Hello Guys I have an cXML that I am trying to read some values from....I can read the node values using following code. But I am having hard time reading the "payloadID" from the same document. Any suggestions how to go about it. Thanks \[code\]XmlDocument xmlRequest = new XmlDocument();XmlNodeList name = xmlRequest.GetElementsByTagName("NetworkID");string sSecret = name[0].InnerText;<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.023/cXML.dtd"> <cXML payloadID="[email protected]" timestamp="2012-09-11T11:55:53-07:00" version="1.2.023" xml:lang="en-US"> <From> <Credential domain="NetworkID"> <Identity>tnt</Identity> </Credential> </From> <To> <Credential domain="NetworkID1"> <Identity>abc</Identity> </Credential> </To> </cXML>\[/code\]
 
Back
Top