Reading an XML Post

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

Well

I have xml in variable and now i need parse it.

xml is something like this:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<soap:Body>
		<GetVenueListResponse xmlns="http://www.eventinventory.com/webservices/">
			<GetVenueListResult>
				<ROOT xmlns="">
					<METHODINFO>
						<channelName>Basic View</channelName>
						<methodName>GetVenueList</methodName>
						<parameters>APPCLIENT_ID=2220&EVENT_ID=6&STARTDATE=&INCDAYS=</parameters>
						<processTime type="milliseconds">4.2844</processTime>
					</METHODINFO>
					<DATA xmlns:sql="urn:schemas-microsoft-com:xml-sql">
						<row THISID="945" THISNAME="Lowell Memorial Auditorium" ST="MA" />
						<row THISID="1598" THISNAME="Stage Theatre" ST="CO" />
						<row THISID="2963" THISNAME="Walnut Street Theatre" ST="PA" />
					</DATA>
				</ROOT>
			</GetVenueListResult>
		</GetVenueListResponse>
	</soap:Body>
</soap:Envelope>
and i need to parse information in data element mainly.
Please tell me how can i do using nusoap, I am using nusoap.

thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

*edited*
I wish you all the best with solving your problem but will stay out of it. Good bye.
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

volka wrote:*edited*
I wish you all the best with solving your problem but will stay out of it. Good bye.
SOLVED

by the way its been solved now, i was parsing some other file and getting problems. just checked it.
:)
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

Post Reply