When you use as_xml=1 your function simply returns a string, which is literal 
XML (and it had better be a well-formed chunk of XML...). So you would have 
to rewrite your function to generate XML itself. The advantage is obviously 
infinite flexibility in what you can generate.

Truth is that SimpleTaglib IS better in the long run for this sort of thing, 
but it takes people a while to wrap their heads around the 'compile time vs 
run time' aspect of it (old time FORTH programmers naturally grasp this 
instantly ;o)).

On Thursday 12 June 2003 06:22 am, Mark Cance wrote:
> > I just suggested using as_xml=1
>
> Sounds hopeful, at the risk of making myself sound dumb do you know of any
> examples?
>
> Specifically I have a hash to return as normal but I want to add an
> attribute to one or more of the keys.
>
> Thanks,
> Mark.
>
> On 11/6/03 22:52, "Matt Sergeant" <[EMAIL PROTECTED]> wrote:
> > On Wednesday, Jun 11, 2003, at 17:37 Europe/London, Mark Cance wrote:
> >> Matt was that last email blank or was it just my client?
> >
> > Looks fine here. I just suggested using as_xml=1 rather than switching
> > to SimpleTaglib.
> >
> > Matt.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Tod Harter
Giant Electronic Brain
http://www.giantelectronicbrain.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to