access to AttributeName of a node. returns an instance of the AttributeName class for the given AttributeName.
>>> NameParser('foo:bar').attr('spangle')
AttributeName('foo:bar.spangle')
Returns a new instance of the object with its namespace removed. The calling instance is unaffected. The optional levels keyword specifies how many levels of cascading namespaces to strip, starting with the topmost (leftmost). The default is 0 which will remove all namespaces.
>>> NameParser('foo:bar.spangle').stripNamespace()
AttributeName('bar.spangle')