equal
deleted
inserted
replaced
207 |
207 |
208 PLCOpen_v1_file = open(paths.AbsNeighbourFile(__file__, "TC6_XML_V10_B.xsd")) |
208 PLCOpen_v1_file = open(paths.AbsNeighbourFile(__file__, "TC6_XML_V10_B.xsd")) |
209 PLCOpen_v1_xml = PLCOpen_v1_file.read() |
209 PLCOpen_v1_xml = PLCOpen_v1_file.read() |
210 PLCOpen_v1_file.close() |
210 PLCOpen_v1_file.close() |
211 PLCOpen_v1_xml = PLCOpen_v1_xml.replace( |
211 PLCOpen_v1_xml = PLCOpen_v1_xml.replace( |
212 "http://www.plcopen.org/xml/tc6.xsd", |
212 "http://www.plcopen.org/xml/tc6.xsd", |
213 "http://www.plcopen.org/xml/tc6_0201") |
213 "http://www.plcopen.org/xml/tc6_0201") |
214 PLCOpen_v1_xsd = etree.XMLSchema(etree.fromstring(PLCOpen_v1_xml)) |
214 PLCOpen_v1_xsd = etree.XMLSchema(etree.fromstring(PLCOpen_v1_xml)) |
215 |
215 |
216 # XPath for file compatibility process |
216 # XPath for file compatibility process |
217 ProjectResourcesXPath = PLCOpen_XPath("ppx:instances/ppx:configurations/ppx:configuration/ppx:resource") |
217 ProjectResourcesXPath = PLCOpen_XPath("ppx:instances/ppx:configurations/ppx:configuration/ppx:resource") |
218 ResourceInstancesXpath = PLCOpen_XPath("ppx:pouInstance | ppx:task/ppx:pouInstance") |
218 ResourceInstancesXpath = PLCOpen_XPath("ppx:pouInstance | ppx:task/ppx:pouInstance") |