aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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
Author

Problems reading an xml from a url

Weber Christopher
Greenhorn

Joined: Jun 06, 2007
Posts: 1
hi,

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: http://aspose.com/file-tools
 
subject: Problems reading an xml from a url