running localhost:8080 on firefox gives error .

I have copied a simple.xml file into the folder /var/www/html and trying to access it on the brower by giving the command "http://localhost:8080/simple.xml"
but it gives "Connection Failed " Error .

While if i type "http://localhost/" It dispays the contents of the index.html file in the folder "/var/www/html"

"http://localhost/" -> this means port 80

"http://localhost:8080/simple.xml" -> port 8080?

in wich port are you Apache listening xD

You have to have a web server software package installed and configured for that to work. The most popular is Apache, also called httpd. It's excellent, though not simple.

But there are lots of others, such as lighttpd and thttpd. I ran dhttpd for a while under Cygwin (also available on Ubuntu) and was delighted at how simple and reliable it is.