title: Use Crawler Component to parse XML
body: <p>I Want to parse XML and I wanto to collect some information</p>
  
  <p>I tried with</p>
  
  <pre><code> $crawler = new Crawler();
   $crawler-&gt;addXmlContent($readXml-&gt;getXml());
  </code></pre>
  
  <p>But I have this result</p>
  
  <pre><code>object(Symfony\Component\DomCrawler\Crawler)[747]
    protected 'uri' =&gt; null
    private 'defaultNamespacePrefix' =&gt; string 'default' (length=7)
    private 'namespaces' =&gt; 
      array (size=0)
        empty
    private 'baseHref' =&gt; null
  </code></pre>
  
  <p>How can I read the xml files?</p>
  
  <p>I tried also</p>
  
  <pre><code>$crawler-&gt;addXmlContent(file_get_contents($readXml-&gt;getXml()));
  </code></pre>
  
  <p>and </p>
  
  <pre><code>    $document = new \DOMDocument();
      $document-&gt;loadXml(file_get_contents($readXml-&gt;getXml()));
  </code></pre>
  
  <p>But in this way I don't know How can I read $document with $crawler</p>