On Thu, 12 Jun 2003, 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.
You'll have to change it to returning a string which is parsed as XML, so
you may have to manually generate the XML in some form of loop.
What does a Data::Dumper dump of your hash look like, and what do you want
the XML to look like?
Basically all you do is add as_xml=1 to the attributes on the end of your
@EXPORT_TAGLIB entry, and then output something like:
sub mytag {
... code here
return $xml_string;
}
where $xml_string is something like '<foo key="value"/>'
--
<!-- Matt -->
<:->get a SMart net</:->
Spam trap - do not mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]