[Templates] Using XML::Smart with template toolkit
Paul LeoNerd Evans
leonerd@leonerd.org.uk
Fri, 30 Jun 2006 09:50:08 +0100
--Sig_G38GSsW0PAK8bKVe4OIK_nk
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
On Fri, 30 Jun 2006 09:15:35 +0100
"Robert Clarke" <robert.clarke@gmgrd.co.uk> wrote:
> I have used XML::Simple, though I have found it frustrating when
> dealing with more complex XML. I was investigating XML::Smart as a
> potential replacement, however it's apparent non-compatibility with TT
> is a bit of a show stopper.
What about XML::XPath? Its objects can't be traversed using that TT
syntax, but you could put a real XPath string in; something like
My name is [% getnode("/data[@key=3D'name']") %]
--=20
Paul "LeoNerd" Evans
leonerd@leonerd.org.uk
ICQ# 4135350 | Registered Linux# 179460
http://www.leonerd.org.uk/
--Sig_G38GSsW0PAK8bKVe4OIK_nk
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEpOXEqRXzCRLr5iQRAqwBAJ0TSwklwRnBRxJ7Tfj+7IhgG9ibYwCfZC7r
fudGi5xfWpIpfca9YgXCPmQ=
=AhCE
-----END PGP SIGNATURE-----
--Sig_G38GSsW0PAK8bKVe4OIK_nk--