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?To: NULL Date: 12/2/2008 11:00:00 PM On Dec 2, 10:09=A0pm, Mechphisto <mechphi...@gmail.com> wrote:
> 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!
Dear you can subscribe to www.phpclasses.org. I wanted to a similar
kind of task but from HTML(4). You should visit this link and get a SAX
(Simple API for XML) parser. I got a SAX parser named as saxy_parser
classes from this website. So, visit it and there you can get lots of
things of your interest.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
