From bd16f5ed1138f269237bd7421cd1d36db735cdd7 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Sun, 13 Aug 2006 02:07:40 +0200 Subject: [PATCH] Finally figure out how to remove attributes in PHP. --- php/xml-template.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php/xml-template.php b/php/xml-template.php index 37f7d65..43132a9 100644 --- a/php/xml-template.php +++ b/php/xml-template.php @@ -42,8 +42,7 @@ function XML_Template_process($node, $obj, $clean = 1) if ($attr->namespace_uri() == 'http://template.sesse.net/' && $attr->name() == 'id') { $id = $attr->value(); if ($clean) { - // FIXME: this won't work since we're not in the right namespace - // $child->remove_attribute($attr->name()); + $attr->unlink_node(); } } } -- 2.39.2