(parent, name, ns = None)
| 8 | from opcua.server.standard_address_space import standard_address_space |
| 9 | |
| 10 | def find_elem(parent, name, ns = None): |
| 11 | if ns is None: |
| 12 | try: |
| 13 | return parent.find(parent.tag[0:parent.tag.index('}')+1]+name) |
| 14 | except ValueError: |
| 15 | return parent.find(name) |
| 16 | return parent.find(ns+name) |
| 17 | |
| 18 | def remove_elem(parent, name): |
| 19 | e = find_elem(parent, name) |
no outgoing calls
no test coverage detected