I am trying to parse an XML file that is given by "xmlurl".

The following code does parse the xml as I wish. But some parts need a proper encoding.
Could anyone show me how to set the encoding ?

Thanks in advance.

soichi

//----------CODE--------------------

URL url = new URL(xmlurl);
InputStream in = url.openStream();

DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse (in);
doc.getDocumentElement().normalize();
NodeList nodeLst = doc.getElementsByTagName("entry");

...