XML Reading Problem

Dear All;

I am using DOM parser for reading XML file. I am able to read simple XML files but i am unable to read this XML file.

<?xml version="1.0" encoding="UTF-8" ?>

<awsResponse xmlns="http://www.arcwebservices.com/services/v2006_1/rest">

<RouteInfo>

<totalDesc totalDistance="Driving distance: 0.8 mile(s)" totalTime="Driving time: 2

minute(s)" nd="0.85" nt="2.0" du="miles">

<routeExtent en="-117.195726|34.057053|-117.185749|34.059495" cs="4326" />

</totalDesc>

</RouteInfo>

</awsResponse>

I want to get totalDistance, totalTime, minute(s), nt and du. I guess since this xml is complex i am getting this problem. Please help me out to read this XML file.

Thanks and Regards;

Vikash Anand.

[837 byte] By [Vikash.SunJavaa] at [2007-11-26 15:47:58]
# 1
One more thing i am getting null pointer exception when i am invoking nodeLst.getLength method.NodeList nodeLst = doc.getElementsByTagName("totalDesc");
Vikash.SunJavaa at 2007-7-8 22:07:25 > top of Java-index,Java Essentials,Java Programming...