Parsing XML

Hi, I have problem with parsing XML document.
My XML: http://www.el-po.sk/mtf/xml.php

function set_text(){
if(xmlHttp.readyState == 4){
var xmldoc = xmlHttp.responseXML;
var root = xmldoc.getElementsByTagName('root');
var parameter = xmldoc.getElementsByTagName('parameter');

for(var i=0; i<parameter.length; i++){
//cycle for reading XML, please add code
}

I need this result into HTML element:

pc001
192.168.0.1
08:00:07:26:c0:aa

pc002
192.168.0.2
08:00:07:26:c0:bb

pc003
192.168.0.3
08:00:07:26:c0:cc

Thanks.

So what exactly is your problem?

  • Do you know how to access the data in each parameter?
  • Do you know how to create an element with this data?
  • Do you know how to access the data in each parameter?
  • Do you know how to create an element with this data?

This is part of my functioning ajax application. I only need parse XML document via cycle and display it into HTML element.
I donĀ“t know how to access data in XML document and create element.