From: sgunderson@bigfoot.com <> Date: Mon, 21 Apr 2008 19:47:31 +0000 (+0200) Subject: Fix cleaning, using the first undocumented method (yay PHP). simple.xml X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3e6129a126eb0b5f7ea07855cb1e05e62923b007;hp=19ada1f1ca1872cfe3210d62b0633702b8d46f51;p=xml-template Fix cleaning, using the first undocumented method (yay PHP). simple.xml passes. --- 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); } } }