How to get a sub tag in xml file

As the xml file is the below thing

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

<addRequest xmlns:spml="urn:oasis:names:tc:SPML:2:0">

<data>

<attributes>

<attr name="Objectclass">

<value>SafePolicy</value>

</attr>

<attr name="name">

<value>NewPolicy</value>

</attr>

<attr name="Resource">

<value>NewResourceclass</value>

</attr>

<attr name="Description">

<value>This is a New AccessPolicy</value>

</attr>

</attributes>

</data>

</addRequest>

The Schema has only the data and i was able to get the data object and the data can contain any namespace ,so i had the attributes and which inturn contain the attr and value .I have to get the Attributes , so that i can get the attr(name) and value pairs.Initially i did the unmarshal stuff and got until data but giving an error when i try to obtain the other tags .Can any body send the code for obtaining that by using the unmarshalling concept please.I need it .

Thank you,

[1185 byte] By [Reply_mea] at [2007-11-26 21:41:30]
# 1
What are you actually trying to do? Marshalling and unmarshalling normally refer to mapping XML to a Java object and back (ala XMLBeans or JAXB). Are you trying to do that or simply to parse the file into DOM?- Saish
Saisha at 2007-7-10 3:27:01 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Thank you,As i was trying to obtain the input to UI from an xml file by which the axis converts to java objects and inturn have to get the reply as xml file . The error was in the jar files ,when i loaded the jar files another time my code started working.
Reply_mea at 2007-7-10 3:27:01 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...