Class: XMLToRuby Deprecated
- Includes:
- Mongo
- Defined in:
- lib/mongo/util/xml_to_ruby.rb
Overview
Deprecated.
Converts a .xson file (an XML file that describes a Mongo-type document) to an OrderedHash.
Constant Summary
Constants included from Mongo
Mongo::ASCENDING, Mongo::DESCENDING, Mongo::VERSION
Instance Method Summary collapse
Instance Method Details
#xml_to_ruby(io) ⇒ Object
27 28 29 30 31 |
# File 'lib/mongo/util/xml_to_ruby.rb', line 27 def xml_to_ruby(io) warn "XMLToRuby is deprecated. The .xson format is not longer in use." doc = REXML::Document.new(io) doc_to_ruby(doc.root.elements['doc']) end |