Module: XRDSUtil
- Included in:
- XRDS
- Defined in:
- lib/yadis/xrds.rb
Overview
Class that handles XRDS parsing and XRD Service element extraction.
Constant Summary collapse
- @@namespaces =
{ 'xrdsns' => 'xri://$xrds', 'xrdns' => 'xri://$xrd*($v*2.0)' }
Instance Method Summary collapse
Instance Method Details
#last_xrd(root_element) ⇒ Object
13 14 15 16 |
# File 'lib/yadis/xrds.rb', line 13 def last_xrd(root_element) REXML::XPath.match(root_element, '/xrdsns:XRDS/xrdns:XRD', @@namespaces)[-1] end |