title: Get Child Node value using parent Node in XML
body: <p>How to Get the Value of the node by using the parent tag name.</p>
  
  <p>Here is my XML format.</p>
  
  <pre><code>&lt;ListOrderItemsResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01"&gt;
   &lt;ListOrderItemsResult&gt;
     &lt;AmazonOrderId&gt;Order Id&lt;/AmazonOrderId&gt;
   &lt;OrderItems&gt;
     &lt;OrderItem&gt;
       &lt;ASIN&gt;Asin Value&lt;/ASIN&gt;
       &lt;SellerSKU&gt;SKU&lt;/SellerSKU&gt;
       &lt;OrderItemId&gt;SKU Value&lt;/OrderItemId&gt;
       &lt;Title&gt;Product Title&lt;/Title&gt;
       &lt;QuantityOrdered&gt;1&lt;/QuantityOrdered&gt;
       &lt;QuantityShipped&gt;0&lt;/QuantityShipped&gt;
       &lt;ItemPrice&gt;
           &lt;CurrencyCode&gt;INR&lt;/CurrencyCode&gt;
           &lt;Amount&gt;30.00&lt;/Amount&gt;
       &lt;/ItemPrice&gt;
       &lt;ShippingPrice&gt;
          &lt;CurrencyCode&gt;INR&lt;/CurrencyCode&gt;
          &lt;Amount&gt;5.00&lt;/Amount&gt;
       &lt;/ShippingPrice&gt;
    &lt;/OrderItem&gt;
  &lt;/OrderItems&gt;
  &lt;/ListOrderItemsResult&gt;
  </code></pre>
  
  <p>How to get Item Price Amount and Shipping Price Amount.</p>
  
  <p>Here i tried so far..</p>
  
  <p>Method 1:</p>
  
  <pre><code>XmlNode node12 = xd1.SelectSingleNode("/ListOrderItemsResponse[@*]/ListOrderItemsResult/OrderItems/OrderItem/ItemPrice");
  string id = node12["Amount"].InnerText;
  </code></pre>
  
  <p>Method 2:</p>
  
  <pre><code>int i = 0;
                  XmlNodeList nodeAMT = xd1.GetElementsByTagName("Amount");
                  string[] AMT = new string[TotalCount];
                  foreach (XmlElement node in nodeAMT)
                  {
                      AMT[i] = node.InnerText;
                      i++;
                  }
  </code></pre>
  
  <p>How to Get ItemPrice 30 and ShippingPrice 5.</p>
  
  <p>Any Suggestions??</p>