velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@alaska.net>
Subject Re: XML and velocity
Date Thu, 02 Dec 2004 16:03:43 GMT
Subbiah Raman <donsubbu@hotmail.com> 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 what others have said, you can also use single-quotes inside 
your double-quotes.

#set($temp = "$root.getRootElement().getChild('email').getText()" )

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message