Aadithya

Aadithya

  • NA
  • 1
  • 2.8k

C# XML How to Read all the nodes

Apr 26 2011 8:48 PM
I am new to C#. I am using it in HP ServiceTest tool.
I am trying to use selectnodes method. I dont have the xpath information.

How do I read all the nodes of this XML ?

<?xml version="1.0" ?>
- <ServiceTestRun>
- <Response>
  <InputMemberNumber>111804661725</InputMemberNumber>
  <InputFacility>99</InputFacility>
  <InputDate>2011-04-25</InputDate>
- <Account>
  <MembershipAccountRenewalTermStartDate>Need to Fetch Term Start Date</MembershipAccountRenewalTermStartDate>
  <MembershipAccountRenewalTermEndDate>Need to Fetch Term End Date</MembershipAccountRenewalTermEndDate>
- <Member>
  <MembershipIPK>107882939</MembershipIPK>
  <MostRecentMembershipCardNumber>Need to Fetch Most Recent Card Number</MostRecentMembershipCardNumber>
  <MemberType>1</MemberType>
  <MemberTypeDescription>Need to Fetch Member Type Description</MemberTypeDescription>
  <MemberName>Need to Fetch Member Name</MemberName>
  <RenewalFee>50.00</RenewalFee>
  </Member>
- <Member>
  <MembershipIPK>107883000</MembershipIPK>
  <MostRecentMembershipCardNumber>Need to Fetch Most Recent Card Number</MostRecentMembershipCardNumber>
  <MemberType>2</MemberType>
  <MemberTypeDescription>Need to Fetch Member Type Description</MemberTypeDescription>
  <MemberName>Need to Fetch Member Name</MemberName>
  <RenewalFee>.00</RenewalFee>
  </Member>
  </Account>
  </Response>


Answers (1)