I'm trying to run the domxml_open_mem function, I pass it what I beleive to be proper xml data but an echo after the function call doesnt happen telling me that the execution hasnt gone any further than domxml_open_mem.
Heres the PHP code:
<?php
if(isset($xml))
{
$data = stripslashes($xml);
domxml_open_mem($data);
echo "!";
}
?>
The XML I'm sending it is:
<?xml version="1.0"?>
<!DOCTYPE request SYSTEM "request.dtd">
<request type="get">
</request>
The contents of request.dtd (in the same directory as php code)
<!ELEMENT request (username,password,count,key,class,search)>
<!ATTLIST request type CDATA #REQUIRED>
<!ELEMENT username (#PCDATA)>
<!ELEMENT password (#PCDATA)>
<!ELEMENT count (#PCDATA)>
<!ELEMENT key (#PCDATA)>
<!ELEMENT class (#PCDATA)>
<!ELEMENT search (#PCDATA)>
I can't seem to find out whats going wrong, or whats makeing it "stall" at the domxml function call.
Thanks
Skydrop