How to read XML through javascript

Joined
Jan 27, 2006
Messages
5
Location
Bangalore
Programming Experience
5-10
i am using Ajax. I get the XML formatted data using XMLHttpRequest object(ResponseXML) using the line :
var objDepartment=XMLHttpRequest.ResponseXML

. That XML formatted data we r creating in server side.
it's structure is
<Department>
<name>name1</name>
<code>code1</code>
</Department>

Now using javascript how to read the elements from objDepartment ?
Please help.
 
Back
Top