method
prefixes
v1_9_3_125 -
Show latest stable
- Class:
REXML::Element
prefixes()public
Evaluates to an Array containing the prefixes (names) of all defined namespaces at this context node. doc = Document.new(“<a xmlns:x=‘1’ xmlns:y=‘2’><c xmlns:z=‘3’/>”) doc.elements[‘//b’].prefixes # -> [‘x’, ‘y’]