title: How to parse/extract url from an xml file?
body: <p>I have an XML file that contains the following type of data </p>
  
  <pre><code>&lt;definition name="/products/phone" path="/main/something.jsp" &gt; &lt;/definition&gt;
  </code></pre>
  
  <p>There are dozens of  nodes in the xml file.</p>
  
  <p>What I want to do is extract the url under the 'name' parameter so my end result will be:</p>
  
  <p><a href="http://www.mysite.com" rel="nofollow">http://www.mysite.com</a><strong>/products/phone</strong>.jsp</p>
  
  <p>Can I do this with a so called XML parser? I have no idea where to begin. Can someone steer me to a direction. What tools do I need to achieve something like that?</p>
  
  <p>I am particularly interested in doing this with <strong>PHP</strong>. </p>