X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=python%2Fxmltemplate.py;fp=python%2Fxmltemplate.py;h=eb50625a600550b2e8bf38d992db0f8cf82366e1;hb=83e98596f1532628bff5d122735577d9615098e5;hp=16225926876eef7dc95791a7c40401af6681b707;hpb=0ecfe47a8aa78fa065284fe74bba628bde9de181;p=xml-template diff --git a/python/xmltemplate.py b/python/xmltemplate.py index 1622592..eb50625 100644 --- a/python/xmltemplate.py +++ b/python/xmltemplate.py @@ -35,7 +35,7 @@ def process(node, obj, clean = True): attrs_to_remove = [] if not attrs is None: for i in range(attrs.length): - attr = attrs.item(0) + attr = attrs.item(i) if attr.namespaceURI == "http://template.sesse.net/" and attr.localName == "id": id = attr.value if clean: