title: advanced xml? multi level .. php parsing
body: <p>My knowledge of xml and php is somewhat basic but have been able to parse a simple xml document (one level):</p>
  
  <pre><code>&lt;numbers&gt;
     &lt;number&gt;1&lt;/number&gt;
     &lt;number&gt;2&lt;/number&gt;
  &lt;/numbers&gt;
  </code></pre>
  
  <p>I'm attempting to parse an XML document from a website providing the latest market prices for gold bullion. I think I'm going to need a paid professional but want to give it a shot myself.</p>
  
  <p>the XML file looks like this:</p>
  
  <pre><code>&lt;envelope&gt;
    &lt;message type="MARKET_DEPTH_A" version="0.1"&gt;
      &lt;market&gt;
        &lt;pitches&gt;
              &lt;pitch
              securityClassNarrative="GOLD"
              securityId="AUXLN"
              considerationCurrency="GBP"
              &gt;
                &lt;buyPrices&gt;
                      &lt;price
                      actionIndicator="B"
                      quantity="0.153"
                      limit="23477"
                /&gt;
            &lt;/buyPrices&gt;
  
            &lt;sellPrices&gt;
                      &lt;price
                      actionIndicator="S"
                      quantity="0.058"
                      limit="23589"
                /&gt;
            &lt;/sellPrices&gt;
  
          &lt;/pitch&gt;
        &lt;/pitches&gt;
      &lt;/market&gt;
    &lt;/message&gt;
  &lt;/envelope&gt;
  </code></pre>
  
  <p>and simply O have no idea how to access the values within the "headings". (whatever the term is)</p>
  
  <p>It may sound like I'm asking for someone to do it for me, which I don't want, but I don't know what to search for ~ it doesn't look like a regular xml structure to me.</p>