xml Object ( [parser] => Resource id #3 [pOut] => Array ( [0] => Array ( [order] => Array ( [orderid] => 1 [name] => Scott [email] => test@test.com ) ) ) [wOut] => ) include('lib.xml.php'); $xml = << 1 Scott test@test.com XML; $xml = urlencode($xml); $data = urldecode($xml); print $data; $xml = new Xml; $out = $xml->parse($data, ''); print "
".print_r($xml, 1)."
";