[FX.php List] Illegal characters in FMPro's XML

Brion Vibber brion at pobox.com
Wed Jan 19 06:45:10 MST 2005


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

Michael Layne wrote:
> Another possibility (I've seen a similar error many times) is that
> FX.php is set to use cURL (= true).  , when your version of PHP doesn't
> support it. If you switch to false, that error goes away.  look for
> this around line 486 or 436 (from memory...) you can set at line 99 in
> the latest version of the class.

Well, in my case there really is a bad character -- I can load the XML 
request straight into Mozilla and get the same XML parsing error, and I 
can cut-and-paste the character it from the field in FileMaker into a 
text editor, save it to a file, and hex dump it.

The bad character is an 0x15; I'm not really sure how it got there 
originally, but it seems to be somehow garbled from what should have 
been a greater-than-or-equal-to sign. Replacing it with the correct 
character works around the problem as well, until the day when another 
record gets slipped a bogus control character and FileMaker sends 
unparseable XML down the wire again...

(A side note: the current version of FX.php doesn't die() on an XML 
parse error, but actually stops parsing and returns an error object. 
Script execution continues, but I've still got no data to work with 
unless I remove the bad character.)

- -- brion vibber (brion @ pobox.com)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (Darwin)

iD8DBQFB7mSLwRnhpk1wk44RAkdPAKCgWjp+J9qlqZZ1cQ2zuAKBlndyPACfQJWe
uKhI+/ycJ7Sdx34ZxzVmJRg=
=y3nj
-----END PGP SIGNATURE-----



More information about the FX.php_List mailing list