[symfony-users] Re: XML template for API call

2010-03-27 Thread Richtermeister
Also, there's many ways to skin that cat. I've got one app where I'm indeed using a template for the xml, and in the ups class I instantiate an instance of sfPartialView to render it. Later I've tried another approach where the xml was embedded inside the class via EOL; Both work. Lastly,

Re: [symfony-users] Re: XML template for API call

2010-03-27 Thread Lee Bolding
Or, use XMLWriter / simplexml (XMLWriter is usually easier) Using templated XML often leads to tears ;) On 27 Mar 2010, at 18:15, Richtermeister wrote: Also, there's many ways to skin that cat. I've got one app where I'm indeed using a template for the xml, and in the ups class I

Re: [symfony-users] Re: XML template for API call

2010-03-27 Thread Tom Haskins-Vaughan
I'm just playing with DOMDocument at the moment. Seems to do the job. On Sat, Mar 27, 2010 at 2:32 PM, Lee Bolding l...@leesbian.net wrote: Or, use XMLWriter / simplexml (XMLWriter is usually easier) Using templated XML often leads to tears ;) On 27 Mar 2010, at 18:15, Richtermeister wrote: