How to access custom XML elements via SimpleXML?

You'd need to add a string to this before you'll get a result. E. G?

Php $xml = " hello world "; $result = simplexml_load_string($xml); print_r($result) See php.net/manual/en/function.simplexml-loa....

You'd need to add a string to this before you'll get a result. E.g. $result = simplexml_load_string($xml); print_r($result); See php.net/manual/en/function.simplexml-loa....

Also check out blog.sherifmansour. Com/? P=302 – Aaron Newton Feb 1 at 4:06 Yes, I've done that.

Print_r doesn't show custom:element – Webnet Feb 1 at 14:27 I see what you're saying. I'm not completely sure about this, other than to say you could try and loop through every element (see stackoverflow. Com/questions/2129241/…) and add the namespace there.

The gotcha is that I just tried this and it doesn't work as intuitively as I might have hoped. If you look at uk.php. Net/manual/en/simplexmlelement.

Getdocnamespaces. Php there is an example of getting the namespace, and it looks like you'd want to get the key from this result as you loop through. I'll keep trying tomorrow.

– Aaron Newton Feb 2 at 13:21.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions