- Index
- »
- xml
- »
- func:xmlPrefix
def
func:xmlPrefix
xmlPrefix(node)
Get the namespace prefix of an element or attribute. If node is an element in the default namespace then return "". If no namespace is specified return null.
Examples:
<foo> >> null <x:foo> >> "x" <foo xmlns='...'/> >> ""