All pastes #478257 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-09 01:52 UTC
rendered paste body
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 = <<<XML
<?xml version='1.0' standalone='yes'?>
<order>
	<orderid>1</orderid>
	<name>Scott</name>
	<email>test@test.com</email>
</order>
XML;


$xml = urlencode($xml);
$data = urldecode($xml);
print $data;



$xml = new Xml;
$out = $xml->parse($data, '');

print "<pre>".print_r($xml, 1)."</pre>";