Module: MobyUtil::XML::LibXML::Document
- Includes:
- Abstraction
- Defined in:
- lib/tdriver/util/xml/parsers/libxml/libxml.rb
Overview
Abstraction
Instance Method Summary collapse
Methods included from Abstraction
#empty?, #name, #nil?, #size, #to_s
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MobyUtil::XML::LibXML::Abstraction
Instance Method Details
#parse(xml_string) ⇒ Object
71 72 73 |
# File 'lib/tdriver/util/xml/parsers/libxml/libxml.rb', line 71 def parse( xml_string ) ::LibXML::XML::Parser.string( xml_string ).parse end |
#root ⇒ Object
79 80 81 |
# File 'lib/tdriver/util/xml/parsers/libxml/libxml.rb', line 79 def root element_object( @xml.root ) end |
#xpath(xpath_query) ⇒ Object
75 76 77 |
# File 'lib/tdriver/util/xml/parsers/libxml/libxml.rb', line 75 def xpath( xpath_query ) nodeset_object( @xml.find( xpath_query ) ) end |