I have this part of an XML file :
          <post xml:id="cmr-politweets-a445917194569134080" who="#cmr-politweets-p102397481"
        when="2014-03-18T14:38:38" xml:lang="fra">
        <p><distinct type="twitter-retweet"><ident>RT</ident>
            <addressingTerm><addressMarker>@</addressMarker><addressee type="twitter-account"
                ref="https://twitter.com/UDI_off 819772525"
            >UDI_off</addressee></addressingTerm>:</distinct>
              .<addressingTerm><addressMarker>@</addressMarker><addressee type="twitter-account"
              ref="#cmr-politweets-p102397481">Chantal_Jouanno</addressee></addressingTerm> : «
          La lutte contre la pédophilie ne peut fonctionner que par la dénonciation » => <ref
            target="http://t.co/qVd4gfPfs2 http://bit.ly/1dkQWKu"
          >http://t.co/qVd4gfPfs2</ref></p>
        ..................
      </post>
So, i want to get the xml:id using the simpleXML in PHP. Thanks