X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fxmlextension.py;h=809ea367abe144f747c82db697e21347ac84f289;hb=c451060afdf4ef60cdfea767ba6f00d6ffce66f8;hp=4fc1ab5867629de98d4d338a8c18970e8a8ecaf4;hpb=57a9d9950b38dc3b3a98d38c60edcf47aedb24df;p=sfa.git diff --git a/sfatables/xmlextension.py b/sfatables/xmlextension.py index 4fc1ab58..809ea367 100644 --- a/sfatables/xmlextension.py +++ b/sfatables/xmlextension.py @@ -8,15 +8,16 @@ import libxml2 from sfatables.globals import * class Xmlextension: - def __init__(self, dir, component_name): + def __init__(self, file_path): + + print 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()