Have a little problem here while parsing xml from a stream and getting: "org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed."

I found this but unfortunately it isn't working!

h t tp://w w w.java-tips.org/blog/uncategorized/saxparseexception-xxmmll-is-not-allowed.html#more-601

I have a program that generates xml as output, but after it has finished 10 xml 'records' it produces a new XML declaration (<?xml....). I haven't wrote this program so i can't do anything about this and i don't now another solution. I'm hoping that someone else can help. :)