× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Yep! That did it!

I forgot about var_dump(). I should have looked at your handouts again!
:-)



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Jon Paris
Sent: Wednesday, December 09, 2009 10:26 AM
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] Getting XML child Elements PHP

No time to test Shannon but I think you need:

$caseID = $mydata->batch->Report['caseID'];

Always remember - var_dump() is your friend!


Jon Paris

www.Partner400.com
www.SystemiDeveloper.com



On Dec 9, 2009, at 10:55 AM, web400-request@xxxxxxxxxxxx wrote:

However, at the start of certain blocks of data, I have lines like
this:

<Report caseID="122" number="000900006S">

The element is <Report> but as you can see, it has child elements of
caseID and number.

I cannot figure out how to get the values of those child elements.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.