Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Using PHP to parse specific XML tag content? >Thread Next - Re: Using PHP to parse specific XML tag content? Re: Using PHP to parse specific XML tag content?To: NULL Date: 12/2/2008 9:10:00 AM On Dec 2, 10:52=A0am, "=C1lvaro G. Vicario"
<alvaroNOSPAMTHA...@demogracia.com> wrote:
> Mechphisto escribi=F3:
>
>
>
> > On Dec 2, 9:14 am, Mechphisto <mechphi...@gmail.com> wrote:
> > [..snip all..]
> > Based on the fact the above works, it's just not doing exactly what I
> > want, I tried the following adjustments to the PHP.
> > Logically, I don't see any reason why it's not working, but it's
> > simply not displaying anything on the echo's.
> > Any ideas?
>
> > <?php
> > $file =3D "xml_test.xml";
> > function startTag($parser, $data){
> > =A0 =A0global $msg1;
> > =A0 =A0global $msg2;
> > =A0 =A0global $current;
> > =A0 =A0$current =3D $data;
> > =A0 =A0if ($current =3D=3D "message1") {
>
> Try:
>
> =A0 =A0 =A0 =A0 if ($current =3D=3D "MESSAGE1") {
>
Yep, that was the deal. It all has to be uppercase. :)
Thanks for your time and assistance!
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
