Tuesday, 10 September 2013

Can this fragment of XML be parsed with LINQ?

Can this fragment of XML be parsed with LINQ?

Can below XML format parsed using linq? It has multiple attributes, and i
need to parse every record in the LogRecord node.
<?xml version="1.0"?>
<SignedLogs>
<Header IP="::000.000.000.000" Port="0000" ET="0021" CS="568 47"
FormatVersion="01.01.01" RefName="CE42xx" />
<Logs NumOfRec="1" CreationDate="2013/09/05 07:42">
<LogRecord DeliveryDate="Mon Jul 29 02:40:32 2013 UTC" AK="00" SN=""
RC2="xxxxx2" NC="0000000000000000" C="00000000" NUID="ascdsadas"
ViD="0000000000000000"/>
<LogRecord DeliveryDate="Tue Jul 30 02:40:32 2013 UTC" AK="10" SN=""
RC2="xxdsdx2" NC="0000000000000000" C="00000000" NUID="789"
ViD="0000900000000000"/>
</Logs>
</SignedLogs>
the data that i need for each row in the LogRecord : DeliveryDate, AK, SN,
RC2, NC, C, NUID, ViD
thanks

No comments:

Post a Comment