Page 1 of 1

using nusoap, getting these chars:  error??

Posted: Wed Dec 13, 2006 9:20 am
by p0wn
I keep getting this error, and i'm not sure why
XML Parsing Error: not well-formed
Line Number 1, Column 2:
<?xml version="1.0" encoding="ISO-8859-1"?>

I don't think it has to do with nusoap as much as for some reason i'm saving the php file wrong or something. Has anyone had these problems before?
Thanks

Posted: Wed Dec 13, 2006 9:27 am
by feyd
I would guess that it is a UTF-8 BOM (Byte-order-marker).

Posted: Wed Dec 13, 2006 11:21 am
by Ollie Saunders
I second feyd's diagnosis. Look for an option to turn of BOMs in your XML editor make sure you are in fact saving as ISO-8859-1. That should stop the problem reoccuring but no necessarily fix files that already have a BOM in them. If that is the case get a primitive text editor out such as Windows notepad that doesn't recognise the BOMs and manually delete the characters -- hex editor is good too.