kXML: PI must not start with xml

Just for future googlers: if you get a message "PI must not start with xml" from kXML, be absolutely certain that the typical XML processing instruction (<?xml version...>) appears on the very first line of your document, with no leading whitespace.