<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body style="direction: ltr;" bidimailui-charset-is-forced="true"
    bidimailui-detected-decoding-type="UTF-8" bgcolor="#ffffff"
    text="#000000">
    <font size="1"><font face="Times New Roman, serif"><big><big>Thanks
            for the replies...but no joy yet. The XML data looks like
            this (I'm minimizing it)<br>
            <br>
            &lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;<br>
            &lt;document&gt;<br>
            Â Â Â  &lt;channels&gt;<br>
            Â Â Â  Â Â Â  &lt;channel&gt;<br>
            Â Â Â  Â Â Â  Â Â Â  &lt;episode&gt;<br>
            Â Â Â  Â Â Â  Â Â Â  Â Â Â  &lt;episode-content&gt;<br>
            Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  &lt;doc&gt;<br>
            Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  &lt;cncpts&gt;<br>
            Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  Â Â Â  &lt;cn doc="true" er="164"
            kw="false" ne="true" sc="9.647706" sr="164" t="unk"&gt;here
            I am&lt;/cn&gt;<br>
            <br>
            and I have<br>
            <br>
            Â Â Â  $t = simplexml_load_file('text.xml','SimpleXMLElement',
            LIBXML_NOCDATA);<br>
            Â Â Â  dsm($t);<br>
            Â Â Â  foreach
            ($t-&gt;channels-&gt;channel-&gt;nlp-&gt;episode-&gt;{episode-content}-&gt;doc-&gt;cncpts-&gt;cn
            as $k) {<br>
            Â Â Â Â Â Â Â  $dsm($k);<br>
            Â Â Â  }<br>
            <br>
            The first dsm immediately after loading the file does not
            show the seven 'cn' elements that I have, and the second is
            empty because the foreach complains.<br>
          </big></big></font></font>
  </body>
</html>