Module: VCDOM

Defined in:
lib/vcdom.rb,
lib/vcdom/attr.rb,
lib/vcdom/text.rb,
lib/vcdom/child.rb,
lib/vcdom/xpath.rb,
lib/vcdom/xml_ls.rb,
lib/vcdom/attr_ns.rb,
lib/vcdom/element.rb,
lib/vcdom/document.rb,
lib/vcdom/node_list.rb,
lib/vcdom/element_ns.rb,
lib/vcdom/attr_node_map.rb,
lib/vcdom/character_data.rb

Overview

This Module object can be used as the DOMImplementation object of W3C DOM Core.

Defined Under Namespace

Modules: Child, XMLLS, XPath Classes: Attr, AttrNS, AttrNodeMap, CharacterData, Document, Element, ElementNS, NodeList, Text

Class Method Summary collapse

Class Method Details

.create_document(namespace_uri, qualified_name, doctype = nil) ⇒ Document

Creates a DOM Document object with its document element. Now, the vcdom library doesn’t support a XML Doctype, so the third argument doctype has no effect.

Returns:



19
20
21
22
# File 'lib/vcdom.rb', line 19

def self.create_document( namespace_uri, qualified_name, doctype = nil )
  doc = Document._new()
  doc << doc.create_element_ns( namespace_uri, qualified_name )
end