XML building - velocity 1.4

2006-02-07 Thread Anagha
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

Re: XML building - velocity 1.4

2006-02-07 Thread Will Glass-Husain
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

Re: XML and velocity

2004-12-04 Thread Shinobu Kawai
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

Re: XML and velocity

2004-12-04 Thread Geir Magnusson Jr
- 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

RE: XML and velocity

2004-12-03 Thread Subbiah
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

XML and velocity

2004-12-02 Thread Subbiah Raman
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

Re: XML and velocity

2004-12-02 Thread Claude Brisson
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

Re: XML and velocity

2004-12-02 Thread Mike Kienenberger
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

RE: XML and velocity

2004-12-02 Thread Subbiah
: 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

Re: XML and velocity

2004-12-02 Thread Shinobu Kawai
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