[ create a new paste ] login | about

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

PHP, pasted on Apr 20:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

$xmlstr = <<<XMLEND
<?xml version="1.0" encoding="utf-8"?>
<data>
<target>
"<x id="c400c8394f0a"  pid="NLCaption" name="NLCaption" />Caption"
</target>

<target />

<target><x id="a1e6b03cb682"  pid="NLSheets" name="NLSheets" />Sheets"</target>

</data>
XMLEND;
$data = new SimpleXMLElement($xmlstr);
echo $data->target[0] . PHP_EOL;
echo $data->target[0]->x['id'];


Output:
1
2
3
4

"Caption"

c400c8394f0a


Create a new paste based on this one


Comments: