Click here to Skip to main content
14,426,749 members
Rate this:
Please Sign up or sign in to 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.
<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 20:34pm
v3
Comments
Not Active 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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100