Removed some debuggin print statements.
[sfa.git] / sfatables / xmlextension.py
index 77219eb..5e298db 100644 (file)
@@ -8,15 +8,15 @@ 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):
+
+        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()