X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfatables%2Fxmlextension.py;h=809ea367abe144f747c82db697e21347ac84f289;hb=c451060afdf4ef60cdfea767ba6f00d6ffce66f8;hp=77219eb2488f180a6d2cbbfaa73c5c18aea13331;hpb=3a11c9b8a4c647d8635b4fce8eb249c5cf4fb4ce;p=sfa.git diff --git a/sfatables/xmlextension.py b/sfatables/xmlextension.py index 77219eb2..809ea367 100644 --- a/sfatables/xmlextension.py +++ b/sfatables/xmlextension.py @@ -8,15 +8,16 @@ import libxml2 from sfatables.globals import * class Xmlextension: - context = "" - processor = "" - operand = "VALUE" - arguments = [] - terminal = 0 - - def __init__(self, dir, component_name): - filename = dir+"/"+component_name+".xml" - self.xmldoc = libxml2.parseFile(filename) + def __init__(self, file_path): + + print file_path + self.context = "" + self.processor = "" + self.operand = "VALUE" + self.arguments = [] + self.terminal = 0 + + self.xmldoc = libxml2.parseFile(file_path) # TODO: Check xmldoc against a schema p = self.xmldoc.xpathNewContext()