Error on line 1: Content is not allowed in prolog, getting this error while trying to read any xml
I am getting this error while trying to read any XML file using any XML file, tried many changes in the XML but still not successful, is there anything else I need to take care in HPOO settings??
Usually this error is caused by having incorrect xml start. The xml file should always start with the <xml> tag and should have no linebrakes, spaces or any other character before it. Check for linebrakes or invisible characters before the xml tag.
If that doesn't help you and it is possible post a sample xml you are having trouble with and we will try to investigate further.
As Vlad said you most likely have some characters you can't readily see. I read in my xml file and then have an output with filters that strip everything before <compute> (my starting tag). This solves the exact problem you are seeing.