[ create a new paste ] login | about

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

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

$xml = <<< XML
<response>
	<readCalls>
		<classify>
			<classification>
				<class>Foo</class>
			</classification>
		</classify>
	</readCalls>
</response>
XML;

$resXml = simplexml_load_string($xml);
echo $resXml->readCalls->classify->classification->class;


Output:
1
Foo


Create a new paste based on this one


Comments: