X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=sfatables%2Fxmlextension.py;h=813cd6d3bb8cf88609a89e8b025b6f9ceab59a79;hp=4fc1ab5867629de98d4d338a8c18970e8a8ecaf4;hb=e57b7150dee76d42fc15f9477a3045e5171c8878;hpb=4b2e86d099a60df5fb6b9732c080a3d10512c029 diff --git a/sfatables/xmlextension.py b/sfatables/xmlextension.py index 4fc1ab58..813cd6d3 100644 --- a/sfatables/xmlextension.py +++ b/sfatables/xmlextension.py @@ -8,15 +8,14 @@ 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()