I have a xml-object looks like this:
<search typ="car" sub="all" out="test" epc="2" tsc="1" rcc="111" tpc="111" cur="DOL" itc="10">
Or with var_dump():
object(SimpleXMLElement)[1012]
public 'search' =>
object(SimpleXMLElement)[1078]
public '@attributes' =>
array (size=9)
'typ' => string 'car' (length=8)
'sub' => string 'all' (length=3)
'out' => string 'test' (length=11)
'epc' => string '2' (length=1)
'tsc' => string '1' (length=1)
'rcc' => string '111' (length=3)
'tpc' => string '111' (length=3)
'cur' => string 'DOL' (length=3)
'itc' => string '10' (length=2)
How do I get access to the attributes of the xml knot?