Re: [Templates] XML::Simple XMLout
[prev]
[thread]
[next]
[Date index for 2004/08/09]
--raC6veAxrt5nqIoY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
* Tosh Cooey <tosh at 1200group.com> [2004/08/09 20:47]:
> This leads me to believe that the plugin is only a one-way
> transmogrification of XML. Am I believing wrong? Is there access to
> the XMLout function that I am overlooking?
No, you're right. The entirety of the XML.Simple plugin is:
sub new {
my $class =3D shift;
my $context =3D shift;
my $input =3D shift;
my $args =3D ref $_[-1] eq 'HASH' ? pop(@_) : { };
XMLin($input, %$args);
}
If you wanted to do something more complex with XML::Simple, you should
look into the Class plugin:
[% USE xml =3D Class('XML::Simple');
# now xml isa XML::Simple instance %]
Or you could write a more featureful front end to XML::Simple yourself.
(darren)
--=20
The only real advantage to punk music is that nobody can whistle it.
--raC6veAxrt5nqIoY
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBF8jJzsinjrVhZaoRAgDRAJsELgW1/BQQi4zQfbSxaPgM2gLtZQCePvde
GlKLmqbpMnXIdoZXoBmQG38=
=JWSG
-----END PGP SIGNATURE-----
--raC6veAxrt5nqIoY--
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
 |
Re: [Templates] XML::Simple XMLout
Darren Chamberlain 18:56 on 09 Aug 2004
|