Error parsing UTF8 XML using TXMLDocument lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- dago71 · 2012-12-27 00:57 I were having trouble reading some XML files that where encoded in UTF-8. I sometimes get 'XML declaration is not allowed here', and after a thorough investigation and much search in the forums, i had arrived to the conclusion that the problem was the BOM. I'm using 1.0.4, but tried with latest SVN and the error persisted. Finally, today i noted that on line 1186 of laz2_XMLRead.pas it says Code: [Select]  FBufSize := 6;             //  possible BOM and '