Method: Atom::Element#get_elem
- Defined in:
- lib/atom/element.rb
#get_elem(xml, ns, name) ⇒ Object
gets a single namespaced child element
350 351 352 |
# File 'lib/atom/element.rb', line 350 def get_elem xml, ns, name REXML::XPath.first xml, "./ns:#{name}", { 'ns' => ns } end |