<!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>