BOM is killing me
Posted: Sat Aug 05, 2006 12:00 am
"Could not associate XSD! Content is not allowed in prolog".
I am trying to associate a schema with a document. The above message is the result. From much googling, I gather that the schema (and possibly the doc) have a hidden first character, namely, a BOM. And in fact I've looked at the schema with a hex-editor, and discovered the dreaded ef bb bf. Changing the encoding to UTF-16 or iso-8859-1 doesn't fix it. If I remove the offending bytes in the hex editor, I just get gibberish. Same result from using a script to do same.
What to do? And could this have anything to do with the fact that I'm running on XP, editing files that reside on a Solaris box via sftp?
Any and all suggestions appreciated.
Thanks,
bom
I am trying to associate a schema with a document. The above message is the result. From much googling, I gather that the schema (and possibly the doc) have a hidden first character, namely, a BOM. And in fact I've looked at the schema with a hex-editor, and discovered the dreaded ef bb bf. Changing the encoding to UTF-16 or iso-8859-1 doesn't fix it. If I remove the offending bytes in the hex editor, I just get gibberish. Same result from using a script to do same.
What to do? And could this have anything to do with the fact that I'm running on XP, editing files that reside on a Solaris box via sftp?
Any and all suggestions appreciated.
Thanks,
bom