hi,
i am getting a problem of org.xml.sax.SAXParseException, as iam generating a xml file , with the excel file as input.

when i tried to print it i realised that excel macro ( which is generatin the xml)is adding a spl charanter  , in front of the root element <?xml version="1.0" encoding="UTF-8"?> like this instead of <?xml version="1.0" encoding="UTF-8"?>.

when i copied it to a textpad and save it...this is getting removed.

plz help me out how to resolve this.

1) why the excel macro adding a spl character infront of the root element
2) how come its getting removed when i saves it in text pad.


Exception :
org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213