Posted on: 6/14/2015 5:40:09 PM | Views : 732

I am parsing this XML in C#, how to get the value of Year that is 2008?

I am using this way for parsing so please keep this way.
XmlDocument parsed_xml = new XmlDocument(); parsed_xml.LoadXml(dto.xml); XmlNodeList test = parsed_xml.SelectNodes("/IER/Credit/Loan/LoanApp/Applicant/Personal/Individuals/Individual/Resident/Peyment"); if (xnList != null) PAYMENT = xnList.Item(0).InnerText; <Collateral Type="Auto"> <CollateralInfo Condition="" New="False" Primary="True"> <Spes> <Specification Name=""/> <Specification Name="VIN"/> <Specification Name="Year">2008</Specification> </Spes> </CollateralInfo> </Collateral>

Go to the complete details ...