sengathir 0 Newbie Poster

I am not sure whether I am placing a Q in the correct section or not.
let me give the scenaria
I have the xml tag infos

<credentials>
 <userId>raj</userid>
 <password>raj</password>
</credentials>

i wanted to give this info to logger,(ie)

log.append(taginfo);//taginfo will be having this credentials

Now i want to remove the tag <password> not to be displayed in the log file.

I want to mask the tag infos. is it possbile....