X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fxmlextension.py;h=5e298db9c358358419d0232be2aee3de7556323a;hb=b436db52dc72f2c2e0f271b4d164f477c7672845;hp=4fc1ab5867629de98d4d338a8c18970e8a8ecaf4;hpb=57a9d9950b38dc3b3a98d38c60edcf47aedb24df;p=sfa.git diff --git a/sfatables/xmlextension.py b/sfatables/xmlextension.py index 4fc1ab58..5e298db9 100644 --- a/sfatables/xmlextension.py +++ b/sfatables/xmlextension.py @@ -8,15 +8,15 @@ import libxml2 from sfatables.globals import * class Xmlextension: - def __init__(self, dir, component_name): + def __init__(self, file_path): + self.context = "" self.processor = "" self.operand = "VALUE" self.arguments = [] self.terminal = 0 - filename = dir+"/"+component_name+".xml" - self.xmldoc = libxml2.parseFile(filename) + self.xmldoc = libxml2.parseFile(file_path) # TODO: Check xmldoc against a schema p = self.xmldoc.xpathNewContext()