Solved

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

Posted on 2009-05-20
1
200 Views
Last Modified: 2013-12-13
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

0
Comment
Question by:mindwarpltd
1 Comment
 
LVL 30

Accepted Solution

by:
IanTh earned 500 total points
ID: 24434888
you will need to use a loop for all the form elements in a php script
foreach ($_POST as $key => $value)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now