Answer the question
In order to leave comments, you need to log in
How to get to the value of an XML element if there is a prefix (:) in it?
You need to get the value of the f:length XML element from the following code.
(The colon interferes. Escaping with a slash does not work.)
<f:table>
<f:name>Африканский кофейный столик</f:name>
<f:width>80</f:width>
<f:length>120</f:length>
</f:table>
$smpl_xml=simplexml_load_file($dirLocal.$value);
$nado_length = $smpl_xml->f:table->f:length;
$nado_length = $smpl_xml->ftable->flength;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question