[thelist] xml_parse PHP

Matt Warden mwarden at gmail.com
Tue Nov 1 16:33:15 CST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark Joslyn wrote:
> [snip]
> What do you mean by "blowing up"? Is "joe" in the array $access? Is $access
> an array?
> </snip>
> 
> I get the following errors:
> 
> Warning: xml_parse(): Unable to call handler startElement() in \testXML.php
> 
> Warning: xml_parse(): Unable to call handler characterData() in \testXML.php
> 
> Warning: xml_parse(): Unable to call handler endElement() in \testXML.php
> 
> If I remove the if statement completely, the XML parses - Yes, the value
> "joe" is in the array.

Move the function definitions outside of the if conditional.

- --
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDZ+0rrI3LObhzHRMRAgDvAKCgi1UIo/774Va/YFQkQWmvJUC9lACgwg2l
ZKZ25Sa2QQUUdz4i+adm/IE=
=QS9V
-----END PGP SIGNATURE-----



More information about the thelist mailing list