1

I do load an XML string using :

$xml = simplexml_load_string($data['MyXml']['xml']);

And could get the value from all the nodes using this sintax:

$xml->MyNode->AnotherNode->MyFinalNode[0];

But there is a node that uses : as a separator and i could not get the value :

$xml->MyNode->AnotherNode->abc:MyFinalNode[0];

How can i access the value from this node using PHP simplexml functions ?

For example, how can i access the D node into :

<my:A>  
    <my:B>
        <my:C>  
            <my:D>
2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.