From 3e6129a126eb0b5f7ea07855cb1e05e62923b007 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Mon, 21 Apr 2008 21:47:31 +0200 Subject: [PATCH] Fix cleaning, using the first undocumented method (yay PHP). simple.xml passes. --- php5/xml-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php5/xml-template.php b/php5/xml-template.php index e6f92c2..7d0ab19 100644 --- a/php5/xml-template.php +++ b/php5/xml-template.php @@ -46,7 +46,7 @@ function XML_Template_process($node, $obj, $clean = 1) if ($attr->namespaceURI == 'http://template.sesse.net/' && $attr->name == 'id') { $id = $attr->value; if ($clean) { - # $attr->unlinkNode(); + $child->removeAttributeNode($attr); } } } -- 2.39.2