It's not a secret anymore!
The moose likes XML and Related Technologies and the fly likes Problems reading an xml from a url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Problems reading an xml from a url" Watch "Problems reading an xml from a url" New topic

Problems reading an xml from a url

Weber Christopher

Joined: Jun 06, 2007
Posts: 1

i've got a problem with an xml file, that i read from a url. when i run my class locally, it works just fine. but after i intergrate into our cms system i am getting following exception:

Does anyone know how i can change the encoding in the inputstream befor i parse it with the sax parser?

Thank you very much (hope my english is getting better here )
my code:

Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
I do not think that you have to specify the encoding to the parser.It figures this itself if the encoding attribute is not specified in the XML prolog.

Rahul Bhattacharjee
LinkedIn - Blog
I agree. Here's the link:
subject: Problems reading an xml from a url
jQuery in Action, 3rd edition