This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Retreival / Adding to xml file
- To: "XML-L at LISTSERV dot HEANET dot IE" <XML-L at LISTSERV dot HEANET dot IE>, "xsl-list at mulberrytech dot com" <xsl-list at mulberrytech dot com>
- Subject: Retreival / Adding to xml file
- From: "Priya Pinto" <itfresher at rediffmail dot com>
- Date: 11 Sep 2000 12:13:14 -0000
- Reply-To: xsl-list at mulberrytech dot com
Hi,
I've got an XML file which am using as a database and I am able to add a field to it by using jsp and the sun's jaxp parser. But while adding I need to find out the last id so that I can increment it while adding a new record. How do I retreive the id and do this?
the xml structure is like this
<books>
<bm>
<id>b001</id>
<title>XML</title>
<description>A beginners tutorial</description>
<urls>http://www.xml.com</urls>
<category>General</category>
</bm>
<bm>
<id>b002</id>
<title>Complete Reference JAVA</title>
<description>For the basics in Java</description>
<urls>http://www.sun.java.com</urls>
<category>personal</category>
</bm>
</books>
Thanks
Priya
_________________________________________________
Get Your Free Email At, http://www.rediffmail.com
For fabulous shopping deals visit: http://www.rediff.co.in/shopping/index.html
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list