Link to home
Start Free TrialLog in
Avatar of mindwarpltd
mindwarpltd

asked on

How can I get the name of the second element with PHP simplexml?

How can I use simplexml or another means, to get the second element (element might not be the correct phrase).

I know e5Notification, first element will always be e5Notification

But the OrderNotification part will change depending on the type of order.

So I need to be the name OrderNotification ?

I've tried using SimplexmlElement but I can't get it.

<?xml version="1.0" encoding="UTF-8"?>
<e5Notification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://xml.element5.com/2.0/notification.xsd">
<OrderNotification>
--- snip ---
</OrderNotification>
</e5Notification>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of IanTh
IanTh
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial