I have a xml URL file in which there are white spaces i want to replace white spaces with %20.. how to do this????
SAXParserFactory spf = SAXParserFactory.ne
Try using URIUtil.encodePath method from the api org.apache.commons.httpclient.util.URIUtil.
org.apache.commons.httpclient.util.URIUtil
This should do the trick for you.