All pastes #535310 Raw Edit

AzMoo

public php v1 · immutable
·published 2007-06-04 01:50 UTC
rendered paste body
<?phpheader('Content-Type: application/xml');$dom = new DOMDocument;$root = $dom->createElement('root');$dom->appendChild($root);$foo = $dom->createElement('foo');$foo->setAttribute('id', 'test');$root->appendChild($foo);// $t = $dom->getElementById('test');echo $dom->saveXML();?>