Originally posted by rajanikanth bhagavan kanth: Is this error due to my code problem??
Probably. The error message says that you are reading the XML using the UTF-8 encoding, but it was produced using some other encoding, I think. You should first check that when you give the XML document to the parser, you don't enforce an encoding that might be incorrect by using a Reader of any kind. Use an InputStream if at all possible.
Or it's possible that the person who produced the XML document made that kind of error, and it is really malformed. But if you have to ask, it's a good idea to check your code first. Post your parsing code if you like.
rajanikanth bhagavan kanth
Joined: May 20, 2008
Here is my code..Its working fine some times but getting error some times.defnetly error due to thirdparty xml file but i want to kow how to fix that one
Thnks [ November 27, 2008: Message edited by: Paul Sturrock ]
Your code would be more readable if you enclosed in the "CODE" tags. (There's a button for creating them.) Let me remind you, I asked you to check whether you were using Readers or InputStreams or what as input to your parser, didn't I? So... which is it? Have a look at the code you posted and see if you can tell from that.
Does that help? If not, post some relevant code. [ November 26, 2008: Message edited by: Paul Clapham ]