You are getting the Element "name". That element contains a child text
node. That node in turn has the value you want.
Try:
String name =
action.getElementsByTagName("name").item(0).getFirstChild().getNodeValue();
Jim.
[EMAIL PROTECTED] wrote:
>
> Hi,
>
> I have got your mail id from Apache site. I getting Null when I use
> getNodeValue();
> I need to read the data between a Tag. Example, <name>Srinivas</name>. I
> need the name value 'Srinivas'. I am using the following for it.
>
> Element name=(Element)(action.getElementsByTagName("name").item(0));
>
> where action is parent tag.
> But when I use name.getNodeValue(); I am getting null. Can u please help in
> this case.
>
> I appreciate your help.
>
> Thanks
> > _________________________________________________________
> Srinivas Konduru