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 5:52:00 PM Mechphisto escribió:
> 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 = "xml_test.xml";
> function startTag($parser, $data){
> global $msg1;
> global $msg2;
> global $current;
> $current = $data;
> if ($current == "message1") {
Try:
if ($current == "MESSAGE1") {
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
