[XML-SIG] soapy hacking -- getAttributeNS
Mark Bucciarelli
mark@easymailings.com
Wed, 26 Feb 2003 22:48:23 +0000
Stupid question ... what's the proper way to retrieve the value of the name
attribute using pnode.getAttributeNS()?
>>> pnode = pnodes[0]
>>> xml.dom.ext.PrettyPrint(pnode)
<port xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:typens='urn:BarCodes'
xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
binding='typens:BarCodesBinding' name='BarCodesPort'>
<soap:address location='http://www.flash-db.com/services/ws/barCodes.php'/>
</port>
>>> pnode.getAttributeNS('', 'name')
''
>>> pnode.getAttribute('name')
u'BarCodesPort'
>>> pnode.getAttributeNS('http://schemas.xmlsoap.org/wsdl/', 'name')
''
>>> pnode.getAttributeNS('urn:BarCodes', 'name')
''