added qname method
added ns method
shortcut 'a' for 'type'