<?php
$str=<<<XML
<control>
<prop name='prop_id' value='panel_right_5'/>
<prop name='prop_type' value='panel'/>
<prop name='width' value='192px'/>
<prop name='height' value='208px'/>
<prop name='float' value='left'/>
<prop name='margin-left' value='2px'/>
<prop name='margin-top' value='1px'/>
<controls>
<control>
<prop name='prop_id' value='0'/>
<prop name='prop_type' value='button'/>
<prop name='prop_style_class' value='estilo_panel_5'/>
<prop name='prop_action' value='1'/>
<prop name='prop_action_value' value='0'/>
<prop name='prop_text1' value='0'/>
<prop name='prop_text1_valign' value='middle'/>
<prop name='prop_text1_halign' value='center'/>
<prop name='width' value='62px'/>
<prop name='height' value='50px'/>
</control>
<control>
<prop name='prop_id' value='00'/>
<prop name='prop_type' value='button'/>
<prop name='prop_style_class' value='estilo_panel_5'/>
<prop name='prop_action' value='1'/>
<prop name='prop_action_value' value='00'/>
<prop name='prop_text1' value='00'/>
<prop name='prop_text1_valign' value='middle'/>
<prop name='prop_text1_halign' value='center'/>
<prop name='width' value='62px'/>
<prop name='height' value='50px'/>
</control>
<control>
<prop name='prop_id' value=','/>
<prop name='prop_type' value='button'/>
<prop name='prop_style_class' value='estilo_panel_5'/>
<prop name='prop_action' value='1'/>
<prop name='prop_action_value' value=','/>
<prop name='prop_text1' value=','/>
<prop name='prop_text1_valign' value='middle'/>
<prop name='prop_text1_halign' value='center'/>
<prop name='width' value='62px'/>
<prop name='height' value='50px'/>
</control>
</controls>
</control>
XML;
$xml=simplexml_load_string($str);
$result=$xml->xpath("//prop[@name='prop_action'][@value='46']");
foreach($result as $node)
{
echo $node->attributes()->prop_id."\n";
}
- Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
- Output for 4.4.3 - 4.4.9
- Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/6W6YA on line 56
Process exited with code 255. - Output for 4.4.2
- Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/6W6YA on line 57
Process exited with code 255. - Output for 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
- Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/6W6YA on line 56
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error, expecting `','' or `';'' in /in/6W6YA on line 56
Process exited with code 255. - Output for 4.3.0
Process exited with code 137.
preferences:
256.01 ms | 401 KiB | 323 Q