Hi,
I want to build xml by replacing existing XML text elements with some other
text.
I built the Document with SAXBuilder and put the root element in the
context.
My template is like this :
#set ($rootelem = $root.getRootElement())
$rootelem
#foreach($elem in $rootelem.getChildren())
#set
I've never used SAXBuilder...
Are you sure that $newelem.toString() always displays the same as
$newelem.getText()
- Original Message -
From: Anagha [EMAIL PROTECTED]
To: velocity-user velocity-user@jakarta.apache.org
Sent: Tuesday, February 07, 2006 12:34 AM
Subject: XML building
Hi Subbiah,
In my particluar hase I though abt creating an obejct and sending it to the
context but the XML was generated from an object suing castor at some other
point in the app and I did not want to convert it into an object again.
I don't know what an object suing castor does, but my
-
From: Mike Kienenberger [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 02, 2004 10:04 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: XML and velocity
Subbiah Raman [EMAIL PROTECTED] wrote:
I am trying to use a SAX parser in Velocity context and I
need to do
the following
#set
but could not get it
to work
Any directions here.
Thanks for your replies though !!!
-Original Message-
From: Shinobu Kawai [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 02, 2004 11:02 PM
To: Velocity Users List
Subject: Re: XML and velocity
Hi Subbiah,
My generic
Hi,
I am trying to use a SAX parser in Velocity context and I need to do the
following
#set($temp = $root.getRootElement().getChild(email).getText() )
But it throws
org.apache.velocity.exception.ParseErrorException: Encountered email
Any suggestions.
Thx
On Thu, 2004-12-02 at 12:48, Subbiah Raman wrote:
Hi,
I am trying to use a SAX parser in Velocity context and I need to do the
following
#set($temp = $root.getRootElement().getChild(email).getText() )
But it throws
org.apache.velocity.exception.ParseErrorException: Encountered email
Subbiah Raman [EMAIL PROTECTED] wrote:
I am trying to use a SAX parser in Velocity context and I need to do the
following
#set($temp = $root.getRootElement().getChild(email).getText() )
But it throws
org.apache.velocity.exception.ParseErrorException: Encountered email
In addition to
: XML and velocity
Subbiah Raman [EMAIL PROTECTED] wrote:
I am trying to use a SAX parser in Velocity context and I
need to do
the following
#set($temp = $root.getRootElement().getChild(email).getText() )
But it throws
org.apache.velocity.exception.ParseErrorException
Hi Subbiah,
My generic question on VELOCITY is this.
1. I see velocity very similar to adding sessions in servlets and accessing
them in the jsp pages. Is this correct ?
In a way, yes. In Velocity, you put stuff in the Context, and then you
can access them from the template. In addition
10 matches
Mail list logo