<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=111092916-15022006>You're
not in the "tips and tricks" stage yet.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=111092916-15022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=111092916-15022006>Read
these articles, learn a little, then come back when you are
stuck...</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><A
href="http://www.javaworld.com/javaworld/jw-05-2000/jw-0518-jdom.html">http://www.javaworld.com/javaworld/jw-05-2000/jw-0518-jdom.html</A></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><A
href="http://www.javaworld.com/javaworld/jw-07-2000/jw-0728-jdom2.html">http://www.javaworld.com/javaworld/jw-07-2000/jw-0728-jdom2.html</A></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Roberto Marra
[mailto:rmarra@montefiore.ch]<BR><B>Sent:</B> Wednesday, February 15, 2006
10:31 AM<BR><B>To:</B> jdom-interest@jdom.org<BR><B>Subject:</B>
[jdom-interest] Modify an xml thru JDOM<BR><BR></FONT></DIV>
<DIV><FONT face="Trebuchet MS">Hi guys Im new in this list & new with
JDOM, so "hi" to everybody & thanx for your precious comments &
helps.</FONT></DIV>
<DIV><FONT face="Trebuchet MS"></FONT> </DIV>
<DIV><FONT face="Trebuchet MS">My question is:</FONT></DIV>
<DIV><FONT face="Trebuchet MS"></FONT> </DIV>
<DIV><FONT face="Trebuchet MS">Let say that I got an XML file like this
one:</FONT></DIV>
<DIV><FONT face="Lucida Sans Unicode"></FONT> </DIV>
<DIV><FONT face="Lucida Sans Unicode"><FONT face=Courier size=1><?xml
version="1.0" encoding="ISO-8859-1"?><BR><righeOrdine
nrOrd="1"><BR> <id
art="292"><BR> <sequenza>1.1</sequenza><BR> <codice>110061</codice><BR> <descrizione>PET
FILM CORONA
OUTSIDE</descrizione><BR> <tipologia>PTR</tipologia><BR> <trattamento>CR2</trattamento><BR> </id><BR> <id
art="293"><BR> <sequenza>2.1</sequenza><BR> <codice>110071</codice><BR> <descrizione>PET
PVDC
COATED</descrizione><BR> <tipologia>PTR</tipologia><BR> <trattamento>PC1</trattamento><BR> </id><BR></righeOrdine></FONT></FONT></DIV>
<DIV><FONT face="Lucida Sans Unicode"><FONT face=Courier
size=1></FONT></FONT> </DIV>
<DIV><FONT face="Lucida Sans Unicode"></FONT> </DIV>
<DIV><FONT face="Trebuchet MS">what I would like to do is thru JDOM update
just some value of the <id art="293">, let say I would update the
"codice" from 110071 to 112071. Im sure is possible to do that, can you just
suggest me some tips&tricks to do it? (of course using java)</FONT></DIV>
<DIV><FONT face="Trebuchet MS"></FONT> </DIV>
<DIV><FONT face="Trebuchet MS">Any help is appriciated</FONT></DIV>
<DIV><FONT face="Trebuchet MS"></FONT> </DIV>
<DIV><FONT face="Trebuchet MS">Cheers</FONT></DIV>
<DIV><FONT face="Trebuchet MS">Roberto</FONT></DIV>
<DIV><FONT face="Trebuchet MS"></FONT> </DIV>
<DIV><FONT face="Trebuchet MS"><BR></FONT></DIV>
<DIV><FONT face="Trebuchet MS"></FONT> </DIV>
<DIV><FONT face="Lucida Sans Unicode"></FONT> </DIV>
<DIV><FONT
face="Lucida Sans Unicode"> </DIV></BLOCKQUOTE></FONT></BODY></HTML>