Use
Xml.Linq
to get required values. Try with below code:
string temp = @"<items to="3" hasmore="false" from="0">
<vcnauthitem vcardalias="NT-AED" username="SAM" txntype="0" txnid="3792664853" systemdate="2016-02-02 16:32:31.00 +0000" status="A" settled="U" respcode="51" purchaseid="44926647" merchantname="TRUMP INTERNATIONAL HO NEW YORK NY " expirydate="1604" effectoncpnamount="0" description="Cumul limit fail" currencycodetransaction="840" cpnpan="0000000000" corporatename="NTT-VA" cardacceptorid="000067070700018" amounttransaction="8000" acquirerid="007660" />
<vcnauthitem vcardalias="NT-AED" username="SAM" txntype="0" txnid="3792649391" systemdate="2016-02-02 15:34:51.00 +0000" status="A" settled="U" respcode="05" purchaseid="44927835" merchantname="PAYPAL 4029357733 LUX" expirydate="1604" effectoncpnamount="0" description="MCC Limit Fail" currencycodetransaction="840" cpnpan="00000000" corporatename="NTT-VA" cardacceptorid="000980020014992" amounttransaction="1" acquirerid="011407" />
</items>";
XDocument doc = XDocument.Parse(temp);
var tempobj = (from rec in doc.Descendants("VCNAuthItem")
select new
{
TxnId = rec.Attribute("TxnId").Value,
SystemDate = rec.Attribute("SystemDate").Value,
PurchaseId = rec.Attribute("PurchaseId").Value,
Description = rec.Attribute("Description").Value,
CardAcceptorId = rec.Attribute("CardAcceptorId").Value
}).ToList();
foreach (var p in tempobj)
{
string tempo = p.TxnId;
}
Note: You may need to add more attribute names in above Linq as per your need.