Jesdisciple
06-08-2009, 02:20 PM
I think I actually have a real problem this time. I have an XML file which PHP parses as being empty. When I var_dump the DOMDocument, I just get this:
object(DOMDocument)#1 (0) {
}
Here's the XML:
<?xml version="1.0"?>
<directory indexable="yes">
<directory name="lib" indexable="yes" />
<directory name="projects" indexable="yes" />
<file name="index.html" indexable="yes"/>
<file name="Index.php" indexable="yes"/>
<file name="phpinfo.php" indexable="yes"/>
<file name="test.js" indexable="no"/>
<file name="test.php" indexable="no"/>
</directory>
EDIT: I've discovered that I get the same result if I instead call loadXML on the file's contents. However, I get NULL when I test similar code by itself.
Help, please.
object(DOMDocument)#1 (0) {
}
Here's the XML:
<?xml version="1.0"?>
<directory indexable="yes">
<directory name="lib" indexable="yes" />
<directory name="projects" indexable="yes" />
<file name="index.html" indexable="yes"/>
<file name="Index.php" indexable="yes"/>
<file name="phpinfo.php" indexable="yes"/>
<file name="test.js" indexable="no"/>
<file name="test.php" indexable="no"/>
</directory>
EDIT: I've discovered that I get the same result if I instead call loadXML on the file's contents. However, I get NULL when I test similar code by itself.
Help, please.