MCPcopy Create free account
hub / github.com/andreikop/python-ws-discovery / getDefaultNamespace

Function getDefaultNamespace

wsdiscovery/util.py:228–235  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

226
227
228def getDefaultNamespace(node):
229 while node != None:
230 if node.nodeType == minidom.Node.ELEMENT_NODE:
231 attr = node.getAttributeNode("xmlns")
232 if attr != None:
233 return attr.nodeValue
234 node = node.parentNode
235 return ""
236
237
238def getQNameFromValue(value, node):

Callers 1

getQNameFromValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected