refactoring
authorlaurent
Fri, 18 May 2012 18:51:07 +0200
changeset 2051 13dee9322beb
parent 2047 b0b7bd288b6e
child 2052 bf9d93a06a18
refactoring
etherlab/etherlab.py
--- a/etherlab/etherlab.py	Mon May 14 07:43:40 2012 +0900
+++ b/etherlab/etherlab.py	Fri May 18 18:51:07 2012 +0200
@@ -338,7 +338,7 @@
             
             for child in tree.childNodes:
                 if child.nodeType == tree.ELEMENT_NODE and child.nodeName == "EtherCATConfig":
-                    self.Config.loadXMLTree(child, ["xmlns:xsi", "xsi:noNamespaceSchemaLocation"])
+                    self.Config.loadXMLTree(child)
                     self.CreateConfigBuffer(True)
         else:
             self.CreateConfigBuffer(False)
@@ -1366,7 +1366,7 @@
                 for child in xml_tree.childNodes:
                     if child.nodeType == xml_tree.ELEMENT_NODE and child.nodeName == "EtherCATInfo":
                         modules_infos = EtherCATInfoClasses["EtherCATInfo.xsd"]["EtherCATInfo"]()
-                        modules_infos.loadXMLTree(child, ["xmlns:xsi", "xsi:noNamespaceSchemaLocation"])
+                        modules_infos.loadXMLTree(child)
                 
                 if modules_infos is not None:
                     vendor = modules_infos.getVendor()