Click here to Skip to main content
15,885,123 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I have the following xml and I would like an example how to read the value for the Extrinsic node "Size" using LINQ in Vb.net or c#.net.
HTML
<itemdetail>

  <unitprice>
    <money currency="USD">0.000000</money>
  </unitprice>
  <description xml:lang="en-US">Standard<description>
  <unitofmeasure>EA</unitofmeasure>
  <extrinsic name="lineItemID">3zhmadlUuAqQ-e-e</extrinsic>
  <extrinsic name="productType">Static</extrinsic>
  <extrinsic name="quantityMultiplier">1</extrinsic>
  <extrinsic name="costCenter">0001-0</extrinsic>
  <extrinsic name="costCenterInteropID" />
  <extrinsic name="ProductSpecs">
    <extrinsic name="Size">8.5 x 11</extrinsic>
    <extrinsic name="Paper Weight">20#</extrinsic>
    <extrinsic name="Paper Color">pink</extrinsic>
    <extrinsic name="Ink (black)">one side</extrinsic>
    <extrinsic name="Folding">Half Fold</extrinsic>
    <extrinsic name="Staple">Staple</extrinsic>
  </extrinsic>
  <extrinsic name="productInteropID" />
  <extrinsic name="variantInteropID" />
  <extrinsic name="shippingAddressInteropID" />
  <extrinsic name="shipWeight" />
  <extrinsic name="Four51UserName">testdakota</extrinsic>
</description></description>

</itemdetail>

Thanks
Posted
Updated 12-Nov-11 19:34pm
v3
Comments
[no name] 13-Nov-11 9:23am    
And what have you tried?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900