hello group,
I need to extract information from an XML file (http://
wurfl.sourcefor ge.net/wurfl.xml). Now, using following function I'm
able to read the user_agent's value:
$devices = $xml->xpath('devic es/device/@user_agent');
But when I try to read "Capability " element vlaue which is "Audivox" I
don't get anything. or if I try to read "model_name " it will return
nothing!
$capability = $xml->xpath('devic es/device/group/capability/
@value');
How should I address value="Audiovox " ?
Thanks.
A block sample of the XML I'm reading.
<devices>
<device user_agent="AUD IOVOX-CDM180" actual_device_r oot="true"
fall_back="gene ric" id="audiovox_cd m180_ver1">
<group id="product_inf o">
<capability name="brand_nam e" value="Audiovox "/>
<capability name="model_nam e" value="CDM-180"/>
</group>
</device>
</devices>