Module: Nokogiri::XML
- Defined in:
- lib/nokogiri/xml.rb,
lib/nokogiri/xml/sax.rb,
lib/nokogiri/xml/node.rb,
lib/nokogiri/xml/text.rb,
lib/nokogiri/xml/xpath.rb,
lib/nokogiri/xml/reader.rb,
lib/nokogiri/xml/builder.rb,
lib/nokogiri/xml/document.rb,
lib/nokogiri/xml/node_set.rb,
lib/nokogiri/xml/sax/parser.rb,
lib/nokogiri/xml/sax/document.rb,
lib/nokogiri/xml/after_handler.rb,
lib/nokogiri/xml/before_handler.rb,
ext/nokogiri/xml_cdata.c,
ext/nokogiri/xml_xpath.c,
ext/nokogiri/xml_reader.c,
ext/nokogiri/xml_xpath_context.c
Defined Under Namespace
Modules: SAX
Classes: AfterHandler, BeforeHandler, Builder, CData, Document, Node, NodeSet, Reader, Text, XPath, XPathContext
Class Method Summary
collapse
Class Method Details
.load_external_subsets=(value = true) ⇒ Object
24
25
26
|
# File 'lib/nokogiri/xml.rb', line 24
def load_external_subsets=(value = true)
Document.load_external_subsets = value
end
|
.parse(string, url = nil, encoding = nil, options = 1) ⇒ Object
15
16
17
18
|
# File 'lib/nokogiri/xml.rb', line 15
def parse(string, url = nil, encoding = nil, options = 1)
return Document.new if string.nil? or string.empty? Document.read_memory(string, url, encoding, options)
end
|
.substitute_entities=(value = true) ⇒ Object
20
21
22
|
# File 'lib/nokogiri/xml.rb', line 20
def substitute_entities=(value = true)
Document.substitute_entities = value
end
|