Module: Makiri::XML
- Defined in:
- lib/makiri/xml.rb,
lib/makiri/xml/builder.rb,
lib/makiri/xml/document.rb,
lib/makiri/compat_aliases.rb,
lib/makiri/xml/node_methods.rb,
ext/makiri/makiri.c
Overview
XML-specific node leaves and document conveniences (§12), mirroring Makiri::HTML. The XML nodes and the document are defined in C (ext/makiri/glue/ruby_xml*.c); the per-class Ruby additions live in this namespace’s files (xml/document.rb).
Defined Under Namespace
Modules: NodeMethods Classes: Attr, Builder, CDATASection, Comment, Document, DocumentFragment, DocumentType, Element, LimitExceeded, Namespace, Node, ProcessingInstruction, SyntaxError, Text
Constant Summary collapse
- CDATA =
CDATASection- DTD =
DocumentType
Class Method Summary collapse
-
.__decode(str) ⇒ Object
Makiri::XML.__decode(str) -> validated, UTF-8-tagged String, or raises Makiri::XML::SyntaxError.
Class Method Details
.__decode(str) ⇒ Object
Makiri::XML.__decode(str) -> validated, UTF-8-tagged String, or raises Makiri::XML::SyntaxError. Internal test hook exercising the strict input decode (§2.1) on its own, until the full Makiri::XML(…) parse pipeline (tokenizer + tree builder) lands and subsumes it.
129 130 131 132 133 134 |
# File 'ext/makiri/makiri.c', line 129
static VALUE
mkr_xml_s_decode(VALUE self, VALUE str)
{
(void)self;
return mkr_xml_decode_input(rb_String(str), 0); /* decode-only: no arena, no budget */
}
|