Ok, here is what i want.
I need to change a attribute in a element in doc and then copy that
doc to another file. Sofar I am able to locate the attribute but dont
know how to change it.
Here is my code
<j:file name="newfile.xml" prettyPrint="true" xmlns="dummy">
<u:file var="xmlFile" name="oldfile.xml" />
<x:parse var="doc" xml="${xmlFile}"/>
<x:set var="version" select="$doc/configuration/configuration-id/@version" />
${version.setValue('2')}
<ant:echo>${version} </ant:echo>
<x:copyOf select="$doc" />
</j:file>
Dont think my method of alter the attribute working.
Any help is greatly appreciated.
-Dan
On Fri, 17 Sep 2004 08:30:31 -0700, dan tran <[EMAIL PROTECTED]> wrote:
> Thanks martijn, scm plugin.jelly does not use jelly:xml tag ;-)
>
> -D
>
>
>
>
> On Fri, 17 Sep 2004 17:01:30 +0200, Martijn Dashorst
> <[EMAIL PROTECTED]> wrote:
> > dan tran wrote:
> >
> > >Michele,
> > >
> > >The ear's plugin.jelly is excellent. The code shows how to create a brand new
> > >xml file.
> > >
> > >Do you have an example where I can open up a existent xml doc, trarverse
> > >to the desired element, and then insert bunch of sub elements. I am not an
> > >xml novice yet(very newbie), so any example code or pointer to
> > >examnple is very great.
> > >
> > >
> > I think the scm:prepare-release goal does what you want: it inserts into
> > the project.xml the newly created version under <versions>
> >
> > Martijn
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]