class Moxml::Context
def create_document
def create_document Document.new(config.adapter.create_document, self) end
def default_options
def default_options { encoding: config.default_encoding, strict: config.strict_parsing, indent: config.default_indent } end
def initialize(adapter = nil)
def initialize(adapter = nil) @config = Config.new(adapter) end
def parse(xml, options = {})
def parse(xml, options = {}) config.adapter.parse(xml, default_options.merge(options)) end