B
baggy
Hi,
I need help retrieving the value of node.
My XML looks like:-
origXML = "<gb><customerid type = '1'></customerid><customerid type =
'2'>{EC96CDE1-9C58-4D03-8683-6C03F6C5A404}</customerid><modifiedby>{659BEE75-D47E-4394-872B-EFB5A8D3E055}</modifiedby><modifiedon>2005-08-11T01:22:10Z</modifiedon></gb>";
I have tried this amongst other things and can't get it:-
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.InnerXml = origXML;
XmlNode xmlNode = xmlDoc.SelectSingleNode("/gb/customerid");
string strCustomerId = xmlNode.InnerText.ToString();
Hope somebody can help
thanks in advance,
baggy
I need help retrieving the value of node.
My XML looks like:-
origXML = "<gb><customerid type = '1'></customerid><customerid type =
'2'>{EC96CDE1-9C58-4D03-8683-6C03F6C5A404}</customerid><modifiedby>{659BEE75-D47E-4394-872B-EFB5A8D3E055}</modifiedby><modifiedon>2005-08-11T01:22:10Z</modifiedon></gb>";
I have tried this amongst other things and can't get it:-
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.InnerXml = origXML;
XmlNode xmlNode = xmlDoc.SelectSingleNode("/gb/customerid");
string strCustomerId = xmlNode.InnerText.ToString();
Hope somebody can help
thanks in advance,
baggy