Class: LibXML::XML::Parser
- Inherits:
-
Object
- Object
- LibXML::XML::Parser
- Defined in:
- lib/libxml/ext/default_prefix.rb
Instance Method Summary collapse
Instance Method Details
#_libxml_ext_original_parse ⇒ Object
35 |
# File 'lib/libxml/ext/default_prefix.rb', line 35 alias_method :_libxml_ext_original_parse, :parse |
#parse(*args) ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/libxml/ext/default_prefix.rb', line 37 def parse(*args) document = _libxml_ext_original_parse(*args) ns = document.root.namespaces ns.default_prefix = DEFAULT_PREFIX if ns.default document end |