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

Function getNamespaceValue

wsdiscovery/util.py:218–225  ·  view source on GitHub ↗
(node, prefix)

Source from the content-addressed store, hash-verified

216
217
218def getNamespaceValue(node, prefix):
219 while node != None:
220 if node.nodeType == minidom.Node.ELEMENT_NODE:
221 attr = node.getAttributeNode("xmlns:" + prefix)
222 if attr != None:
223 return attr.nodeValue
224 node = node.parentNode
225 return ""
226
227
228def getDefaultNamespace(node):

Callers 1

getQNameFromValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected