Re: FreeMarker for newbies
Daniel Dekany <[email protected]> Sun, 14 Jul 2013 10:53:48 +0200
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Sunday, July 14, 2013, 6:49:23 AM, Eyal wrote: > Hi Daniel, > > The problem is- I don't know how many profiles I will have, so I need the > maven to update the file on each run You mean, the input of a run is the output of the previous run? Then you could render the template that generates a snippet of XML into a String, and then find the tag in XML, and insert that String there. Of course the role of FreeMarker here ends when that String was done. For inserting into the XML you could just treat it as plain text, although to find where to insert (character position), you may want to use DOM or SAX (assuming implementations report that positions precisely). > Eyal -- Thanks, Daniel Dekany ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk