Module: Leptris::XML

Defined in:
lib/leptris/xml.rb,
lib/leptris/xml/ffi.rb,
lib/leptris/xml/sax.rb,
lib/leptris/xml/css_to_xpath.rb

Defined Under Namespace

Modules: CStringArray, CssToXPath, FFI, Pull, SAX, Searchable, Serialization, XSLT Classes: Attr, CDATA, Comment, DocType, Document, DocumentFragment, Element, Error, Iterparse, Namespace, Node, NodeSet, ParseError, ParseOptions, ProcessingInstruction, ReadOnlyError, Text, UseAfterFreeError, XPath, XPathError

Class Method Summary collapse

Class Method Details

.parse(xml_or_io, options: nil, readonly: false, recover: false) ⇒ Object

Nokogiri-style top-level entry points (Nokogiri::XML(...) / Nokogiri::XML.parse). Delegates to Document.parse.



31
32
33
34
# File 'lib/leptris/xml.rb', line 31

def self.parse(xml_or_io, options: nil, readonly: false, recover: false)
  Document.parse(xml_or_io, options: options, readonly: readonly,
                 recover: recover)
end

.parse_file(path) ⇒ Object



36
37
38
# File 'lib/leptris/xml.rb', line 36

def self.parse_file(path)
  Document.parse_file(path)
end