help me sun!!!!!!!!!1

hi ,

i have a jsp page which receives the user name and pass word by two simple methods like getPass()and getuser() , this method works fine by getting the password and username . what i need is that after getting this username and password i need to store them in a xml file which is existing , to be more clear this is my existing xml file say abc.xml has a code something like this.

<XArC version="1.0" service="GetMetaInfo" type="Request">

<login>

<user>tort</user>

<password>sysadm</password>

<host>rttrprt</host>

<port>trtrtrt</port></login>

<query><type>jgjgjgj</type></query>

</XArC>

after getting the value from my jsp page i need to store the getUser() value exactly in the <user> </user> tag of my abc.xml file !!! how can i do it. i need to insert values obatained from my jsp page to this xml field.

[1002 byte] By [siv-viv] at [2007-9-26 2:54:06]
# 1
Hello Vivek,one way is make from your XML-File a XML-Document (org.apache.crimson.tree.XmlDocument). Here you can edit the node for the user or insert/append a new Node for a new user. After edit write the document as your file.Roland
rkunzke at 2007-6-29 10:43:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...