[ create a new paste ] login | about

Link: http://codepad.org/djyZMcuW    [ raw code | output | fork ]

PHP, pasted on Jul 5:
1
2
3
4
<?php
$xml = simplexml_load_string('<?xml version="1.0" encoding="UTF-8" ?><node><item><parameter name="a">3</parameter></item></node>');

echo (string)$xml->item->parameter->attributes()->name;


Output:
1
a


Create a new paste based on this one


Comments: