libxml-ruby 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. data/CHANGES +21 -0
  2. data/RAKEFILE +213 -0
  3. data/README +32 -11
  4. data/doc/rdoc/classes/LibXML.html +4 -0
  5. data/doc/rdoc/classes/LibXML/XML.html +7 -0
  6. data/doc/rdoc/classes/LibXML/XML/Attr.html +187 -177
  7. data/doc/rdoc/classes/LibXML/XML/Attributes.html +62 -61
  8. data/doc/rdoc/classes/LibXML/XML/Document.html +318 -254
  9. data/doc/rdoc/classes/LibXML/XML/Dtd.html +62 -8
  10. data/doc/rdoc/classes/LibXML/XML/Error.html +6 -0
  11. data/doc/rdoc/classes/LibXML/XML/HTMLParser.html +59 -41
  12. data/doc/rdoc/classes/LibXML/XML/InputCallbacks.html +12 -6
  13. data/doc/rdoc/classes/LibXML/XML/NS.html +65 -50
  14. data/doc/rdoc/classes/LibXML/XML/Node.html +671 -630
  15. data/doc/rdoc/classes/LibXML/XML/Node/FailedModify.html +12 -0
  16. data/doc/rdoc/classes/LibXML/XML/Node/Set.html +64 -60
  17. data/doc/rdoc/classes/LibXML/XML/Node/SetNamespace.html +12 -0
  18. data/doc/rdoc/classes/LibXML/XML/Node/UnknownType.html +12 -0
  19. data/doc/rdoc/classes/LibXML/XML/Parser.html +407 -383
  20. data/doc/rdoc/classes/LibXML/XML/Parser/Context.html +241 -219
  21. data/doc/rdoc/classes/LibXML/XML/Parser/ParseError.html +12 -0
  22. data/doc/rdoc/classes/LibXML/XML/Reader.html +421 -331
  23. data/doc/rdoc/classes/LibXML/XML/RelaxNG.html +237 -0
  24. data/doc/rdoc/classes/LibXML/XML/SaxParser.html +79 -60
  25. data/doc/rdoc/classes/LibXML/XML/Schema.html +109 -22
  26. data/doc/rdoc/classes/LibXML/XML/State.html +6 -0
  27. data/doc/rdoc/classes/LibXML/XML/XInclude.html +6 -0
  28. data/doc/rdoc/classes/LibXML/XML/XInclude/Error.html +6 -0
  29. data/doc/rdoc/classes/LibXML/XML/XPath.html +4 -48
  30. data/doc/rdoc/classes/LibXML/XML/XPath/Context.html +6 -5
  31. data/doc/rdoc/classes/LibXML/XML/XPath/InvalidPath.html +61 -0
  32. data/doc/rdoc/classes/LibXML/XML/XPath/Object.html +12 -8
  33. data/doc/rdoc/classes/LibXML/XML/XPointer.html +14 -8
  34. data/doc/rdoc/classes/LibXML/XML/XPointer/Context.html +6 -0
  35. data/doc/rdoc/classes/LibXML/XML/XPointer/Context/InvalidPath.html +6 -0
  36. data/doc/rdoc/classes/LibXML/XML/XPointer/InvalidExpression.html +13 -0
  37. data/doc/rdoc/created.rid +1 -1
  38. data/doc/rdoc/files/CHANGES.html +38 -10
  39. data/doc/rdoc/files/LICENSE.html +1 -1
  40. data/doc/rdoc/files/README.html +57 -23
  41. data/doc/rdoc/files/VERSION.html +1 -1
  42. data/doc/rdoc/files/ext/libxml/cbg_c.html +1 -1
  43. data/doc/rdoc/files/ext/libxml/libxml_c.html +1 -1
  44. data/doc/rdoc/files/ext/libxml/ruby_xml_attr_c.html +1 -1
  45. data/doc/rdoc/files/ext/libxml/ruby_xml_attributes_c.html +1 -1
  46. data/doc/rdoc/files/ext/libxml/ruby_xml_document_c.html +1 -1
  47. data/doc/rdoc/files/ext/libxml/ruby_xml_dtd_c.html +1 -1
  48. data/doc/rdoc/files/ext/libxml/ruby_xml_html_parser_c.html +1 -1
  49. data/doc/rdoc/files/ext/libxml/ruby_xml_input_cbg_c.html +1 -1
  50. data/doc/rdoc/files/ext/libxml/ruby_xml_node_c.html +1 -1
  51. data/doc/rdoc/files/ext/libxml/ruby_xml_node_set_c.html +1 -1
  52. data/doc/rdoc/files/ext/libxml/ruby_xml_ns_c.html +1 -1
  53. data/doc/rdoc/files/ext/libxml/ruby_xml_parser_c.html +1 -1
  54. data/doc/rdoc/files/ext/libxml/ruby_xml_parser_context_c.html +1 -1
  55. data/doc/rdoc/files/ext/libxml/ruby_xml_reader_c.html +1 -1
  56. data/doc/rdoc/{classes/XML.html → files/ext/libxml/ruby_xml_relaxng_c.html} +16 -35
  57. data/doc/rdoc/files/ext/libxml/ruby_xml_sax_parser_c.html +1 -1
  58. data/doc/rdoc/files/ext/libxml/ruby_xml_schema_c.html +1 -1
  59. data/doc/rdoc/files/ext/libxml/ruby_xml_state_c.html +1 -1
  60. data/doc/rdoc/files/ext/libxml/ruby_xml_xinclude_c.html +1 -1
  61. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_c.html +1 -1
  62. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_context_c.html +1 -1
  63. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_object_c.html +1 -1
  64. data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_c.html +1 -1
  65. data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_context_c.html +1 -1
  66. data/doc/rdoc/files/lib/libxml/attr_rb.html +1 -1
  67. data/doc/rdoc/files/lib/libxml/attributes_rb.html +1 -1
  68. data/doc/rdoc/files/lib/libxml/document_rb.html +1 -1
  69. data/doc/rdoc/files/lib/libxml/node_rb.html +1 -1
  70. data/doc/rdoc/files/lib/libxml/node_set_rb.html +1 -1
  71. data/doc/rdoc/files/lib/libxml/parser_options_rb.html +1 -1
  72. data/doc/rdoc/files/lib/libxml/parser_rb.html +1 -1
  73. data/doc/rdoc/files/lib/libxml/properties_rb.html +1 -1
  74. data/doc/rdoc/files/lib/libxml/tree_rb.html +1 -1
  75. data/doc/rdoc/files/lib/libxml_rb.html +2 -2
  76. data/doc/rdoc/files/lib/xml/libxml_rb.html +12 -2
  77. data/doc/rdoc/files/lib/xml_rb.html +134 -0
  78. data/doc/rdoc/fr_class_index.html +1 -1
  79. data/doc/rdoc/fr_file_index.html +2 -0
  80. data/doc/rdoc/fr_method_index.html +349 -344
  81. data/ext/libxml/libxml.c +2 -1
  82. data/ext/libxml/ruby_libxml.h +1 -0
  83. data/ext/libxml/ruby_xml_attr.c +8 -2
  84. data/ext/libxml/ruby_xml_attributes.c +5 -5
  85. data/ext/libxml/ruby_xml_document.c +41 -2
  86. data/ext/libxml/ruby_xml_dtd.c +169 -169
  87. data/ext/libxml/ruby_xml_html_parser.c +449 -449
  88. data/ext/libxml/ruby_xml_input_cbg.c +165 -165
  89. data/ext/libxml/ruby_xml_node.c +1 -1
  90. data/ext/libxml/ruby_xml_node_set.c +172 -172
  91. data/ext/libxml/ruby_xml_ns.c +145 -145
  92. data/ext/libxml/ruby_xml_parser.c +1398 -1398
  93. data/ext/libxml/ruby_xml_parser_context.c +697 -697
  94. data/ext/libxml/ruby_xml_reader.c +44 -0
  95. data/ext/libxml/ruby_xml_reader.h +14 -14
  96. data/ext/libxml/ruby_xml_relaxng.c +97 -0
  97. data/ext/libxml/ruby_xml_relaxng.h +15 -0
  98. data/ext/libxml/ruby_xml_sax_parser.c +486 -486
  99. data/ext/libxml/ruby_xml_schema.c +1 -1
  100. data/ext/libxml/ruby_xml_state.c +4 -4
  101. data/ext/libxml/ruby_xml_xinclude.c +21 -21
  102. data/ext/libxml/ruby_xml_xpath.c +89 -89
  103. data/ext/libxml/ruby_xml_xpath_context.c +283 -283
  104. data/ext/libxml/ruby_xml_xpath_object.c +5 -5
  105. data/ext/libxml/ruby_xml_xpointer.c +104 -104
  106. data/ext/libxml/ruby_xml_xpointer_context.c +22 -22
  107. data/ext/libxml/version.h +2 -2
  108. data/ext/libxml/version.h.rej +17 -0
  109. data/ext/mingw/Rakefile +41 -0
  110. data/lib/libxml.rb +15 -4
  111. data/lib/xml.rb +14 -0
  112. data/lib/xml/libxml.rb +4 -1
  113. data/test/etc_doc_to_s.rb +1 -1
  114. data/test/ets_copy_bug.rb +1 -1
  115. data/test/ets_copy_bug3.rb +1 -1
  116. data/test/ets_doc_file.rb +1 -1
  117. data/test/ets_doc_to_s.rb +1 -1
  118. data/test/ets_node_gc.rb +1 -1
  119. data/test/ets_tsr.rb +1 -1
  120. data/test/model/shiporder.rnc +28 -0
  121. data/test/model/shiporder.rng +86 -0
  122. data/test/{tc_xml_attributes.rb → tc_attributes.rb} +1 -10
  123. data/test/{tc_xml_document.rb → tc_document.rb} +1 -1
  124. data/test/{tc_xml_document_write.rb → tc_document_write.rb} +1 -1
  125. data/test/{tc_xml_dtd.rb → tc_dtd.rb} +1 -1
  126. data/test/{tc_xml_html_parser.rb → tc_html_parser.rb} +1 -1
  127. data/test/{tc_xml_node.rb → tc_node.rb} +1 -1
  128. data/test/{tc_xml_node_attr.rb → tc_node_attr.rb} +1 -1
  129. data/test/{tc_xml_node_cdata.rb → tc_node_cdata.rb} +24 -5
  130. data/test/{tc_xml_node_comment.rb → tc_node_comment.rb} +1 -1
  131. data/test/{tc_xml_node_copy.rb → tc_node_copy.rb} +1 -1
  132. data/test/{tc_xml_node_edit.rb → tc_node_edit.rb} +1 -1
  133. data/test/{tc_xml_node_set.rb → tc_node_set.rb} +1 -1
  134. data/test/{tc_xml_node_set2.rb → tc_node_set2.rb} +1 -1
  135. data/test/{tc_xml_node_text.rb → tc_node_text.rb} +1 -1
  136. data/test/{tc_xml_node_xlink.rb → tc_node_xlink.rb} +2 -2
  137. data/test/{tc_xml_parser.rb → tc_parser.rb} +1 -1
  138. data/test/{tc_xml_parser_context.rb → tc_parser_context.rb} +1 -1
  139. data/test/{tc_xml_properties.rb → tc_properties.rb} +1 -7
  140. data/test/{tc_xml_reader.rb → tc_reader.rb} +1 -1
  141. data/test/tc_relaxng.rb +39 -0
  142. data/test/{tc_xml_sax_parser.rb → tc_sax_parser.rb} +1 -1
  143. data/test/{tc_xml_schema.rb → tc_schema.rb} +1 -1
  144. data/test/{tc_xml_traversal.rb → tc_traversal.rb} +1 -1
  145. data/test/{tc_xml_xinclude.rb → tc_xinclude.rb} +1 -1
  146. data/test/{tc_xml_xpath.rb → tc_xpath.rb} +1 -1
  147. data/test/{tc_xml_xpath_context.rb → tc_xpath_context.rb} +1 -1
  148. data/test/{tc_xml_xpointer.rb → tc_xpointer.rb} +1 -1
  149. data/test/test_suite.rb +26 -25
  150. metadata +100 -100
  151. data/benchmark/depixelate.rb +0 -632
  152. data/benchmark/hamlet.xml +0 -9055
  153. data/benchmark/sock_entries.xml +0 -507
  154. data/benchmark/throughput.rb +0 -39
  155. data/benchmark/xml_benchmarks.rb +0 -227
  156. data/mingw/libiconv-2.dll +0 -0
  157. data/mingw/libxml2-2.dll +0 -0
  158. data/mingw/libxml_ruby.so +0 -0
  159. data/test/gc.log +0 -0
  160. data/vc/libxml_ruby.sln +0 -20
  161. data/vc/libxml_ruby.vcproj +0 -389
@@ -78,6 +78,18 @@
78
78
 
79
79
  <div id="contextContent">
80
80
 
81
+ <div id="description">
82
+ <pre>
83
+ #define RUBY_XML_PARSER_ENABLED_INIT(func, method) \
84
+ </pre>
85
+ <p>
86
+ rb_define_singleton_method(cXMLParser, method, \
87
+ </p>
88
+ <pre>
89
+ ruby_xml_parser_enabled_##func##_q, 0);
90
+ </pre>
91
+
92
+ </div>
81
93
 
82
94
 
83
95
  </div>
@@ -78,6 +78,12 @@
78
78
 
79
79
  <div id="contextContent">
80
80
 
81
+ <div id="description">
82
+ <p>
83
+ Rdoc needs to know.
84
+ </p>
85
+
86
+ </div>
81
87
 
82
88
 
83
89
  </div>
@@ -86,53 +92,54 @@
86
92
  <h3 class="section-bar">Methods</h3>
87
93
 
88
94
  <div class="name-list">
89
- <a href="#M000298">[]</a>&nbsp;&nbsp;
90
- <a href="#M000285">attribute_count</a>&nbsp;&nbsp;
91
- <a href="#M000289">base_uri</a>&nbsp;&nbsp;
92
- <a href="#M000303">byte_consumed</a>&nbsp;&nbsp;
93
- <a href="#M000266">close</a>&nbsp;&nbsp;
94
- <a href="#M000304">column_number</a>&nbsp;&nbsp;
95
- <a href="#M000306">default?</a>&nbsp;&nbsp;
96
- <a href="#M000294">depth</a>&nbsp;&nbsp;
97
- <a href="#M000307">empty_element?</a>&nbsp;&nbsp;
98
- <a href="#M000288">encoding</a>&nbsp;&nbsp;
99
- <a href="#M000302">expand</a>&nbsp;&nbsp;
100
- <a href="#M000263">file</a>&nbsp;&nbsp;
101
- <a href="#M000297">has_attributes?</a>&nbsp;&nbsp;
102
- <a href="#M000299">has_value?</a>&nbsp;&nbsp;
103
- <a href="#M000305">line_number</a>&nbsp;&nbsp;
104
- <a href="#M000287">local_name</a>&nbsp;&nbsp;
105
- <a href="#M000301">lookup_namespace</a>&nbsp;&nbsp;
106
- <a href="#M000267">move_to_attribute</a>&nbsp;&nbsp;
107
- <a href="#M000270">move_to_element</a>&nbsp;&nbsp;
108
- <a href="#M000268">move_to_first_attribute</a>&nbsp;&nbsp;
109
- <a href="#M000269">move_to_next_attribute</a>&nbsp;&nbsp;
110
- <a href="#M000286">name</a>&nbsp;&nbsp;
111
- <a href="#M000308">namespace_declaration?</a>&nbsp;&nbsp;
112
- <a href="#M000290">namespace_uri</a>&nbsp;&nbsp;
113
- <a href="#M000265">new</a>&nbsp;&nbsp;
114
- <a href="#M000271">next</a>&nbsp;&nbsp;
115
- <a href="#M000272">next_sibling</a>&nbsp;&nbsp;
116
- <a href="#M000283">node_type</a>&nbsp;&nbsp;
117
- <a href="#M000284">normalization</a>&nbsp;&nbsp;
118
- <a href="#M000293">prefix</a>&nbsp;&nbsp;
119
- <a href="#M000295">quote_char</a>&nbsp;&nbsp;
120
- <a href="#M000273">read</a>&nbsp;&nbsp;
121
- <a href="#M000274">read_attribute_value</a>&nbsp;&nbsp;
122
- <a href="#M000275">read_inner_xml</a>&nbsp;&nbsp;
123
- <a href="#M000276">read_outer_xml</a>&nbsp;&nbsp;
124
- <a href="#M000277">read_state</a>&nbsp;&nbsp;
125
- <a href="#M000278">read_string</a>&nbsp;&nbsp;
126
- <a href="#M000281">relax_ng_validate</a>&nbsp;&nbsp;
127
- <a href="#M000280">reset_error_handler</a>&nbsp;&nbsp;
128
- <a href="#M000282">schema_validate</a>&nbsp;&nbsp;
129
- <a href="#M000279">set_error_handler</a>&nbsp;&nbsp;
130
- <a href="#M000296">standalone</a>&nbsp;&nbsp;
131
- <a href="#M000309">valid?</a>&nbsp;&nbsp;
132
- <a href="#M000300">value</a>&nbsp;&nbsp;
133
- <a href="#M000264">walker</a>&nbsp;&nbsp;
134
- <a href="#M000291">xml_lang</a>&nbsp;&nbsp;
135
- <a href="#M000292">xml_version</a>&nbsp;&nbsp;
95
+ <a href="#M000302">[]</a>&nbsp;&nbsp;
96
+ <a href="#M000289">attribute_count</a>&nbsp;&nbsp;
97
+ <a href="#M000293">base_uri</a>&nbsp;&nbsp;
98
+ <a href="#M000307">byte_consumed</a>&nbsp;&nbsp;
99
+ <a href="#M000270">close</a>&nbsp;&nbsp;
100
+ <a href="#M000308">column_number</a>&nbsp;&nbsp;
101
+ <a href="#M000310">default?</a>&nbsp;&nbsp;
102
+ <a href="#M000298">depth</a>&nbsp;&nbsp;
103
+ <a href="#M000311">empty_element?</a>&nbsp;&nbsp;
104
+ <a href="#M000292">encoding</a>&nbsp;&nbsp;
105
+ <a href="#M000306">expand</a>&nbsp;&nbsp;
106
+ <a href="#M000266">file</a>&nbsp;&nbsp;
107
+ <a href="#M000301">has_attributes?</a>&nbsp;&nbsp;
108
+ <a href="#M000303">has_value?</a>&nbsp;&nbsp;
109
+ <a href="#M000267">io</a>&nbsp;&nbsp;
110
+ <a href="#M000309">line_number</a>&nbsp;&nbsp;
111
+ <a href="#M000291">local_name</a>&nbsp;&nbsp;
112
+ <a href="#M000305">lookup_namespace</a>&nbsp;&nbsp;
113
+ <a href="#M000271">move_to_attribute</a>&nbsp;&nbsp;
114
+ <a href="#M000274">move_to_element</a>&nbsp;&nbsp;
115
+ <a href="#M000272">move_to_first_attribute</a>&nbsp;&nbsp;
116
+ <a href="#M000273">move_to_next_attribute</a>&nbsp;&nbsp;
117
+ <a href="#M000290">name</a>&nbsp;&nbsp;
118
+ <a href="#M000312">namespace_declaration?</a>&nbsp;&nbsp;
119
+ <a href="#M000294">namespace_uri</a>&nbsp;&nbsp;
120
+ <a href="#M000269">new</a>&nbsp;&nbsp;
121
+ <a href="#M000275">next</a>&nbsp;&nbsp;
122
+ <a href="#M000276">next_sibling</a>&nbsp;&nbsp;
123
+ <a href="#M000287">node_type</a>&nbsp;&nbsp;
124
+ <a href="#M000288">normalization</a>&nbsp;&nbsp;
125
+ <a href="#M000297">prefix</a>&nbsp;&nbsp;
126
+ <a href="#M000299">quote_char</a>&nbsp;&nbsp;
127
+ <a href="#M000277">read</a>&nbsp;&nbsp;
128
+ <a href="#M000278">read_attribute_value</a>&nbsp;&nbsp;
129
+ <a href="#M000279">read_inner_xml</a>&nbsp;&nbsp;
130
+ <a href="#M000280">read_outer_xml</a>&nbsp;&nbsp;
131
+ <a href="#M000281">read_state</a>&nbsp;&nbsp;
132
+ <a href="#M000282">read_string</a>&nbsp;&nbsp;
133
+ <a href="#M000285">relax_ng_validate</a>&nbsp;&nbsp;
134
+ <a href="#M000284">reset_error_handler</a>&nbsp;&nbsp;
135
+ <a href="#M000286">schema_validate</a>&nbsp;&nbsp;
136
+ <a href="#M000283">set_error_handler</a>&nbsp;&nbsp;
137
+ <a href="#M000300">standalone</a>&nbsp;&nbsp;
138
+ <a href="#M000313">valid?</a>&nbsp;&nbsp;
139
+ <a href="#M000304">value</a>&nbsp;&nbsp;
140
+ <a href="#M000268">walker</a>&nbsp;&nbsp;
141
+ <a href="#M000295">xml_lang</a>&nbsp;&nbsp;
142
+ <a href="#M000296">xml_version</a>&nbsp;&nbsp;
136
143
  </div>
137
144
  </div>
138
145
 
@@ -322,11 +329,11 @@
322
329
  <div id="methods">
323
330
  <h3 class="section-bar">Public Class methods</h3>
324
331
 
325
- <div id="method-M000263" class="method-detail">
326
- <a name="M000263"></a>
332
+ <div id="method-M000266" class="method-detail">
333
+ <a name="M000266"></a>
327
334
 
328
335
  <div class="method-heading">
329
- <a href="#M000263" class="method-signature">
336
+ <a href="#M000266" class="method-signature">
330
337
  <span class="method-name">XML::Reader.file(path, encoding=nil, options=0) &rarr; reader<br />
331
338
  </span>
332
339
  </a>
@@ -334,12 +341,13 @@
334
341
 
335
342
  <div class="method-description">
336
343
  <p>
337
- Parse an <a href="../XML.html">XML</a> file from the filesystem or the
338
- network. The parsing flags options are a combination of xmlParserOption.
344
+ Parse an <a href="../XML.html">XML</a> <a
345
+ href="Reader.html#M000266">file</a> from the filesystem or the network. The
346
+ parsing flags options are a combination of xmlParserOption.
339
347
  </p>
340
348
  <p><a class="source-toggle" href="#"
341
- onclick="toggleCode('M000263-source');return false;">[Source]</a></p>
342
- <div class="method-source-code" id="M000263-source">
349
+ onclick="toggleCode('M000266-source');return false;">[Source]</a></p>
350
+ <div class="method-source-code" id="M000266-source">
343
351
  <pre>
344
352
  /*
345
353
  * call-seq:
@@ -371,11 +379,74 @@ ruby_xml_reader_new_file(int argc, VALUE *argv, VALUE self)
371
379
  </div>
372
380
  </div>
373
381
 
374
- <div id="method-M000265" class="method-detail">
375
- <a name="M000265"></a>
382
+ <div id="method-M000267" class="method-detail">
383
+ <a name="M000267"></a>
384
+
385
+ <div class="method-heading">
386
+ <a href="#M000267" class="method-signature">
387
+ <span class="method-name">XML::Reader.io(io, url=nil, encoding=nil, options=0) &rarr; reader<br />
388
+ </span>
389
+ </a>
390
+ </div>
391
+
392
+ <div class="method-description">
393
+ <p>
394
+ Parse an <a href="../XML.html">XML</a> <a
395
+ href="Reader.html#M000266">file</a> from a <a
396
+ href="Reader.html#M000266">file</a> handle. The parsing flags options are a
397
+ combination of xmlParserOption.
398
+ </p>
399
+ <p><a class="source-toggle" href="#"
400
+ onclick="toggleCode('M000267-source');return false;">[Source]</a></p>
401
+ <div class="method-source-code" id="M000267-source">
402
+ <pre>
403
+ /*
404
+ * call-seq:
405
+ * XML::Reader.io(io, url=nil, encoding=nil, options=0) -&gt; reader
406
+ *
407
+ * Parse an XML file from a file handle. The parsing flags options are
408
+ * a combination of xmlParserOption.
409
+ */
410
+ static VALUE
411
+ ruby_xml_reader_new_io(int argc, VALUE *argv, VALUE self)
412
+ {
413
+ xmlTextReaderPtr reader;
414
+ VALUE io, url, encoding, options;
415
+ OpenFile *fptr;
416
+ FILE *f;
417
+
418
+ #ifdef _WIN32
419
+ rb_raise(rb_eRuntimeError, &quot;Reading an io stream is not supported on Windows&quot;);
420
+ #endif
421
+
422
+ rb_scan_args(argc, argv, &quot;13&quot;, &amp;io, &amp;url, &amp;encoding, &amp;options);
423
+
424
+ if (!rb_obj_is_kind_of(io, rb_cIO))
425
+ rb_raise(rb_eTypeError, &quot;need an IO object&quot;);
426
+
427
+ GetOpenFile(io, fptr);
428
+ rb_io_check_readable(fptr);
429
+ f = GetWriteFile(fptr);
430
+
431
+ reader = xmlReaderForIO((xmlInputReadCallback) ctxtRead, NULL, f,
432
+ NIL_P(url) ? NULL : RVAL2CSTR(url),
433
+ NIL_P(encoding) ? NULL : RVAL2CSTR(encoding),
434
+ NIL_P(options) ? 0 : FIX2INT(options));
435
+ if (reader == NULL)
436
+ rb_raise(rb_eRuntimeError, &quot;cannot create text reader for given stream&quot;);
437
+
438
+ return ruby_xml_reader_new(self, reader);
439
+ }
440
+ </pre>
441
+ </div>
442
+ </div>
443
+ </div>
444
+
445
+ <div id="method-M000269" class="method-detail">
446
+ <a name="M000269"></a>
376
447
 
377
448
  <div class="method-heading">
378
- <a href="#M000265" class="method-signature">
449
+ <a href="#M000269" class="method-signature">
379
450
  <span class="method-name">XML::Reader.new(data, url=nil, encoding=nil, options=0) &rarr; reader<br />
380
451
  XML::Reader.string(data, url=nil, encoding=nil, options=0) &rarr; reader<br />
381
452
  </span>
@@ -389,8 +460,8 @@ href="../XML.html">XML</a> in-memory document. The parsing flags options
389
460
  are a combination of xmlParserOption.
390
461
  </p>
391
462
  <p><a class="source-toggle" href="#"
392
- onclick="toggleCode('M000265-source');return false;">[Source]</a></p>
393
- <div class="method-source-code" id="M000265-source">
463
+ onclick="toggleCode('M000269-source');return false;">[Source]</a></p>
464
+ <div class="method-source-code" id="M000269-source">
394
465
  <pre>
395
466
  /*
396
467
  * call-seq:
@@ -425,11 +496,11 @@ ruby_xml_reader_new_data(int argc, VALUE *argv, VALUE self)
425
496
  </div>
426
497
  </div>
427
498
 
428
- <div id="method-M000264" class="method-detail">
429
- <a name="M000264"></a>
499
+ <div id="method-M000268" class="method-detail">
500
+ <a name="M000268"></a>
430
501
 
431
502
  <div class="method-heading">
432
- <a href="#M000264" class="method-signature">
503
+ <a href="#M000268" class="method-signature">
433
504
  <span class="method-name">XML::Reader.walker(doc) &rarr; reader<br />
434
505
  XML::Reader.document(doc) &rarr; reader<br />
435
506
  </span>
@@ -442,8 +513,8 @@ Create an <a href="../XML.html">XML</a> text reader for a preparsed
442
513
  document.
443
514
  </p>
444
515
  <p><a class="source-toggle" href="#"
445
- onclick="toggleCode('M000264-source');return false;">[Source]</a></p>
446
- <div class="method-source-code" id="M000264-source">
516
+ onclick="toggleCode('M000268-source');return false;">[Source]</a></p>
517
+ <div class="method-source-code" id="M000268-source">
447
518
  <pre>
448
519
  /*
449
520
  * call-seq:
@@ -473,11 +544,11 @@ ruby_xml_reader_new_walker(VALUE self, VALUE doc)
473
544
 
474
545
  <h3 class="section-bar">Public Instance methods</h3>
475
546
 
476
- <div id="method-M000298" class="method-detail">
477
- <a name="M000298"></a>
547
+ <div id="method-M000302" class="method-detail">
548
+ <a name="M000302"></a>
478
549
 
479
550
  <div class="method-heading">
480
- <a href="#M000298" class="method-signature">
551
+ <a href="#M000302" class="method-signature">
481
552
  <span class="method-name">reader[key] &rarr; value<br />
482
553
  </span>
483
554
  </a>
@@ -485,13 +556,14 @@ ruby_xml_reader_new_walker(VALUE self, VALUE doc)
485
556
 
486
557
  <div class="method-description">
487
558
  <p>
488
- Provide the value of the attribute with the specified index (if
489
- <tt>key</tt> is an integer) or with the specified name (if <tt>key</tt> is
490
- a string) relative to the containing element, as a string.
559
+ Provide the <a href="Reader.html#M000304">value</a> of the attribute with
560
+ the specified index (if <tt>key</tt> is an integer) or with the specified
561
+ <a href="Reader.html#M000290">name</a> (if <tt>key</tt> is a string)
562
+ relative to the containing element, as a string.
491
563
  </p>
492
564
  <p><a class="source-toggle" href="#"
493
- onclick="toggleCode('M000298-source');return false;">[Source]</a></p>
494
- <div class="method-source-code" id="M000298-source">
565
+ onclick="toggleCode('M000302-source');return false;">[Source]</a></p>
566
+ <div class="method-source-code" id="M000302-source">
495
567
  <pre>
496
568
  /*
497
569
  * call-seq:
@@ -522,11 +594,11 @@ ruby_xml_reader_attribute(VALUE self, VALUE key)
522
594
  </div>
523
595
  </div>
524
596
 
525
- <div id="method-M000285" class="method-detail">
526
- <a name="M000285"></a>
597
+ <div id="method-M000289" class="method-detail">
598
+ <a name="M000289"></a>
527
599
 
528
600
  <div class="method-heading">
529
- <a href="#M000285" class="method-signature">
601
+ <a href="#M000289" class="method-signature">
530
602
  <span class="method-name">reader.attribute_count &rarr; count<br />
531
603
  </span>
532
604
  </a>
@@ -537,8 +609,8 @@ ruby_xml_reader_attribute(VALUE self, VALUE key)
537
609
  Provide the number of attributes of the current node.
538
610
  </p>
539
611
  <p><a class="source-toggle" href="#"
540
- onclick="toggleCode('M000285-source');return false;">[Source]</a></p>
541
- <div class="method-source-code" id="M000285-source">
612
+ onclick="toggleCode('M000289-source');return false;">[Source]</a></p>
613
+ <div class="method-source-code" id="M000289-source">
542
614
  <pre>
543
615
  /*
544
616
  * call-seq:
@@ -556,11 +628,11 @@ ruby_xml_reader_attr_count(VALUE self)
556
628
  </div>
557
629
  </div>
558
630
 
559
- <div id="method-M000289" class="method-detail">
560
- <a name="M000289"></a>
631
+ <div id="method-M000293" class="method-detail">
632
+ <a name="M000293"></a>
561
633
 
562
634
  <div class="method-heading">
563
- <a href="#M000289" class="method-signature">
635
+ <a href="#M000293" class="method-signature">
564
636
  <span class="method-name">reader.base_uri &rarr; URI<br />
565
637
  </span>
566
638
  </a>
@@ -571,8 +643,8 @@ ruby_xml_reader_attr_count(VALUE self)
571
643
  Determine the base URI of the node.
572
644
  </p>
573
645
  <p><a class="source-toggle" href="#"
574
- onclick="toggleCode('M000289-source');return false;">[Source]</a></p>
575
- <div class="method-source-code" id="M000289-source">
646
+ onclick="toggleCode('M000293-source');return false;">[Source]</a></p>
647
+ <div class="method-source-code" id="M000293-source">
576
648
  <pre>
577
649
  /*
578
650
  * call-seq:
@@ -590,11 +662,11 @@ ruby_xml_reader_base_uri(VALUE self)
590
662
  </div>
591
663
  </div>
592
664
 
593
- <div id="method-M000303" class="method-detail">
594
- <a name="M000303"></a>
665
+ <div id="method-M000307" class="method-detail">
666
+ <a name="M000307"></a>
595
667
 
596
668
  <div class="method-heading">
597
- <a href="#M000303" class="method-signature">
669
+ <a href="#M000307" class="method-signature">
598
670
  <span class="method-name">reader.byte_consumed &rarr; value<br />
599
671
  </span>
600
672
  </a>
@@ -606,8 +678,8 @@ This method provides the current index of the parser used by the reader,
606
678
  relative to the start of the current entity.
607
679
  </p>
608
680
  <p><a class="source-toggle" href="#"
609
- onclick="toggleCode('M000303-source');return false;">[Source]</a></p>
610
- <div class="method-source-code" id="M000303-source">
681
+ onclick="toggleCode('M000307-source');return false;">[Source]</a></p>
682
+ <div class="method-source-code" id="M000307-source">
611
683
  <pre>
612
684
  /*
613
685
  * call-seq:
@@ -626,11 +698,11 @@ ruby_xml_reader_byte_consumed(VALUE self)
626
698
  </div>
627
699
  </div>
628
700
 
629
- <div id="method-M000266" class="method-detail">
630
- <a name="M000266"></a>
701
+ <div id="method-M000270" class="method-detail">
702
+ <a name="M000270"></a>
631
703
 
632
704
  <div class="method-heading">
633
- <a href="#M000266" class="method-signature">
705
+ <a href="#M000270" class="method-signature">
634
706
  <span class="method-name">parser.close &rarr; code<br />
635
707
  </span>
636
708
  </a>
@@ -639,11 +711,12 @@ ruby_xml_reader_byte_consumed(VALUE self)
639
711
  <div class="method-description">
640
712
  <p>
641
713
  This method releases any resources allocated by the current instance
642
- changes the state to Closed and close any underlying input.
714
+ changes the state to Closed and <a href="Reader.html#M000270">close</a> any
715
+ underlying input.
643
716
  </p>
644
717
  <p><a class="source-toggle" href="#"
645
- onclick="toggleCode('M000266-source');return false;">[Source]</a></p>
646
- <div class="method-source-code" id="M000266-source">
718
+ onclick="toggleCode('M000270-source');return false;">[Source]</a></p>
719
+ <div class="method-source-code" id="M000270-source">
647
720
  <pre>
648
721
  /*
649
722
  * call-seq:
@@ -662,11 +735,11 @@ ruby_xml_reader_close(VALUE self)
662
735
  </div>
663
736
  </div>
664
737
 
665
- <div id="method-M000304" class="method-detail">
666
- <a name="M000304"></a>
738
+ <div id="method-M000308" class="method-detail">
739
+ <a name="M000308"></a>
667
740
 
668
741
  <div class="method-heading">
669
- <a href="#M000304" class="method-signature">
742
+ <a href="#M000308" class="method-signature">
670
743
  <span class="method-name">reader.column_number &rarr; number<br />
671
744
  </span>
672
745
  </a>
@@ -677,8 +750,8 @@ ruby_xml_reader_close(VALUE self)
677
750
  Provide the column number of the current parsing point.
678
751
  </p>
679
752
  <p><a class="source-toggle" href="#"
680
- onclick="toggleCode('M000304-source');return false;">[Source]</a></p>
681
- <div class="method-source-code" id="M000304-source">
753
+ onclick="toggleCode('M000308-source');return false;">[Source]</a></p>
754
+ <div class="method-source-code" id="M000308-source">
682
755
  <pre>
683
756
  /*
684
757
  * call-seq:
@@ -696,11 +769,11 @@ ruby_xml_reader_column_number(VALUE self)
696
769
  </div>
697
770
  </div>
698
771
 
699
- <div id="method-M000306" class="method-detail">
700
- <a name="M000306"></a>
772
+ <div id="method-M000310" class="method-detail">
773
+ <a name="M000310"></a>
701
774
 
702
775
  <div class="method-heading">
703
- <a href="#M000306" class="method-signature">
776
+ <a href="#M000310" class="method-signature">
704
777
  <span class="method-name">reader.default? &rarr; bool<br />
705
778
  </span>
706
779
  </a>
@@ -708,12 +781,12 @@ ruby_xml_reader_column_number(VALUE self)
708
781
 
709
782
  <div class="method-description">
710
783
  <p>
711
- Return whether an Attribute node was generated from the default value
712
- defined in the DTD or schema.
784
+ Return whether an Attribute node was generated from the default <a
785
+ href="Reader.html#M000304">value</a> defined in the DTD or schema.
713
786
  </p>
714
787
  <p><a class="source-toggle" href="#"
715
- onclick="toggleCode('M000306-source');return false;">[Source]</a></p>
716
- <div class="method-source-code" id="M000306-source">
788
+ onclick="toggleCode('M000310-source');return false;">[Source]</a></p>
789
+ <div class="method-source-code" id="M000310-source">
717
790
  <pre>
718
791
  /*
719
792
  * call-seq:
@@ -732,11 +805,11 @@ ruby_xml_reader_default(VALUE self)
732
805
  </div>
733
806
  </div>
734
807
 
735
- <div id="method-M000294" class="method-detail">
736
- <a name="M000294"></a>
808
+ <div id="method-M000298" class="method-detail">
809
+ <a name="M000298"></a>
737
810
 
738
811
  <div class="method-heading">
739
- <a href="#M000294" class="method-signature">
812
+ <a href="#M000298" class="method-signature">
740
813
  <span class="method-name">reader.depth &rarr; depth<br />
741
814
  </span>
742
815
  </a>
@@ -744,11 +817,11 @@ ruby_xml_reader_default(VALUE self)
744
817
 
745
818
  <div class="method-description">
746
819
  <p>
747
- Get the depth of the node in the tree.
820
+ Get the <a href="Reader.html#M000298">depth</a> of the node in the tree.
748
821
  </p>
749
822
  <p><a class="source-toggle" href="#"
750
- onclick="toggleCode('M000294-source');return false;">[Source]</a></p>
751
- <div class="method-source-code" id="M000294-source">
823
+ onclick="toggleCode('M000298-source');return false;">[Source]</a></p>
824
+ <div class="method-source-code" id="M000298-source">
752
825
  <pre>
753
826
  /*
754
827
  * call-seq:
@@ -766,11 +839,11 @@ ruby_xml_reader_depth(VALUE self)
766
839
  </div>
767
840
  </div>
768
841
 
769
- <div id="method-M000307" class="method-detail">
770
- <a name="M000307"></a>
842
+ <div id="method-M000311" class="method-detail">
843
+ <a name="M000311"></a>
771
844
 
772
845
  <div class="method-heading">
773
- <a href="#M000307" class="method-signature">
846
+ <a href="#M000311" class="method-signature">
774
847
  <span class="method-name">reader.empty_element? &rarr; bool<br />
775
848
  </span>
776
849
  </a>
@@ -781,8 +854,8 @@ ruby_xml_reader_depth(VALUE self)
781
854
  Check if the current node is empty.
782
855
  </p>
783
856
  <p><a class="source-toggle" href="#"
784
- onclick="toggleCode('M000307-source');return false;">[Source]</a></p>
785
- <div class="method-source-code" id="M000307-source">
857
+ onclick="toggleCode('M000311-source');return false;">[Source]</a></p>
858
+ <div class="method-source-code" id="M000311-source">
786
859
  <pre>
787
860
  /*
788
861
  * call-seq:
@@ -800,11 +873,11 @@ ruby_xml_reader_empty_element(VALUE self)
800
873
  </div>
801
874
  </div>
802
875
 
803
- <div id="method-M000288" class="method-detail">
804
- <a name="M000288"></a>
876
+ <div id="method-M000292" class="method-detail">
877
+ <a name="M000292"></a>
805
878
 
806
879
  <div class="method-heading">
807
- <a href="#M000288" class="method-signature">
880
+ <a href="#M000292" class="method-signature">
808
881
  <span class="method-name">reader.encoding &rarr; encoding<br />
809
882
  </span>
810
883
  </a>
@@ -812,11 +885,12 @@ ruby_xml_reader_empty_element(VALUE self)
812
885
 
813
886
  <div class="method-description">
814
887
  <p>
815
- Determine the encoding of the document being read.
888
+ Determine the <a href="Reader.html#M000292">encoding</a> of the document
889
+ being <a href="Reader.html#M000277">read</a>.
816
890
  </p>
817
891
  <p><a class="source-toggle" href="#"
818
- onclick="toggleCode('M000288-source');return false;">[Source]</a></p>
819
- <div class="method-source-code" id="M000288-source">
892
+ onclick="toggleCode('M000292-source');return false;">[Source]</a></p>
893
+ <div class="method-source-code" id="M000292-source">
820
894
  <pre>
821
895
  /*
822
896
  * call-seq:
@@ -834,11 +908,11 @@ ruby_xml_reader_encoding(VALUE self)
834
908
  </div>
835
909
  </div>
836
910
 
837
- <div id="method-M000302" class="method-detail">
838
- <a name="M000302"></a>
911
+ <div id="method-M000306" class="method-detail">
912
+ <a name="M000306"></a>
839
913
 
840
914
  <div class="method-heading">
841
- <a href="#M000302" class="method-signature">
915
+ <a href="#M000306" class="method-signature">
842
916
  <span class="method-name">reader.expand &rarr; node<br />
843
917
  </span>
844
918
  </a>
@@ -847,15 +921,16 @@ ruby_xml_reader_encoding(VALUE self)
847
921
  <div class="method-description">
848
922
  <p>
849
923
  Read the contents of the current node and the full subtree. It then makes
850
- the subtree available until the next read call.
924
+ the subtree available until the <a href="Reader.html#M000275">next</a> <a
925
+ href="Reader.html#M000277">read</a> call.
851
926
  </p>
852
927
  <p>
853
928
  Return an <a href="Node.html">XML::Node</a> object, or nil in case of
854
929
  error.
855
930
  </p>
856
931
  <p><a class="source-toggle" href="#"
857
- onclick="toggleCode('M000302-source');return false;">[Source]</a></p>
858
- <div class="method-source-code" id="M000302-source">
932
+ onclick="toggleCode('M000306-source');return false;">[Source]</a></p>
933
+ <div class="method-source-code" id="M000306-source">
859
934
  <pre>
860
935
  /*
861
936
  * call-seq:
@@ -894,11 +969,11 @@ ruby_xml_reader_expand(VALUE self)
894
969
  </div>
895
970
  </div>
896
971
 
897
- <div id="method-M000297" class="method-detail">
898
- <a name="M000297"></a>
972
+ <div id="method-M000301" class="method-detail">
973
+ <a name="M000301"></a>
899
974
 
900
975
  <div class="method-heading">
901
- <a href="#M000297" class="method-signature">
976
+ <a href="#M000301" class="method-signature">
902
977
  <span class="method-name">reader.has_attributes? &rarr; bool<br />
903
978
  </span>
904
979
  </a>
@@ -909,8 +984,8 @@ ruby_xml_reader_expand(VALUE self)
909
984
  Get whether the node has attributes.
910
985
  </p>
911
986
  <p><a class="source-toggle" href="#"
912
- onclick="toggleCode('M000297-source');return false;">[Source]</a></p>
913
- <div class="method-source-code" id="M000297-source">
987
+ onclick="toggleCode('M000301-source');return false;">[Source]</a></p>
988
+ <div class="method-source-code" id="M000301-source">
914
989
  <pre>
915
990
  /*
916
991
  * call-seq:
@@ -928,11 +1003,11 @@ ruby_xml_reader_has_attributes(VALUE self)
928
1003
  </div>
929
1004
  </div>
930
1005
 
931
- <div id="method-M000299" class="method-detail">
932
- <a name="M000299"></a>
1006
+ <div id="method-M000303" class="method-detail">
1007
+ <a name="M000303"></a>
933
1008
 
934
1009
  <div class="method-heading">
935
- <a href="#M000299" class="method-signature">
1010
+ <a href="#M000303" class="method-signature">
936
1011
  <span class="method-name">reader.has_value? &rarr; bool<br />
937
1012
  </span>
938
1013
  </a>
@@ -940,11 +1015,12 @@ ruby_xml_reader_has_attributes(VALUE self)
940
1015
 
941
1016
  <div class="method-description">
942
1017
  <p>
943
- Get whether the node can have a text value.
1018
+ Get whether the node can have a text <a
1019
+ href="Reader.html#M000304">value</a>.
944
1020
  </p>
945
1021
  <p><a class="source-toggle" href="#"
946
- onclick="toggleCode('M000299-source');return false;">[Source]</a></p>
947
- <div class="method-source-code" id="M000299-source">
1022
+ onclick="toggleCode('M000303-source');return false;">[Source]</a></p>
1023
+ <div class="method-source-code" id="M000303-source">
948
1024
  <pre>
949
1025
  /*
950
1026
  * call-seq:
@@ -962,11 +1038,11 @@ ruby_xml_reader_has_value(VALUE self)
962
1038
  </div>
963
1039
  </div>
964
1040
 
965
- <div id="method-M000305" class="method-detail">
966
- <a name="M000305"></a>
1041
+ <div id="method-M000309" class="method-detail">
1042
+ <a name="M000309"></a>
967
1043
 
968
1044
  <div class="method-heading">
969
- <a href="#M000305" class="method-signature">
1045
+ <a href="#M000309" class="method-signature">
970
1046
  <span class="method-name">reader.line_number &rarr; number<br />
971
1047
  </span>
972
1048
  </a>
@@ -977,8 +1053,8 @@ ruby_xml_reader_has_value(VALUE self)
977
1053
  Provide the line number of the current parsing point.
978
1054
  </p>
979
1055
  <p><a class="source-toggle" href="#"
980
- onclick="toggleCode('M000305-source');return false;">[Source]</a></p>
981
- <div class="method-source-code" id="M000305-source">
1056
+ onclick="toggleCode('M000309-source');return false;">[Source]</a></p>
1057
+ <div class="method-source-code" id="M000309-source">
982
1058
  <pre>
983
1059
  /*
984
1060
  * call-seq:
@@ -996,11 +1072,11 @@ ruby_xml_reader_line_number(VALUE self)
996
1072
  </div>
997
1073
  </div>
998
1074
 
999
- <div id="method-M000287" class="method-detail">
1000
- <a name="M000287"></a>
1075
+ <div id="method-M000291" class="method-detail">
1076
+ <a name="M000291"></a>
1001
1077
 
1002
1078
  <div class="method-heading">
1003
- <a href="#M000287" class="method-signature">
1079
+ <a href="#M000291" class="method-signature">
1004
1080
  <span class="method-name">reader.local_name &rarr; name<br />
1005
1081
  </span>
1006
1082
  </a>
@@ -1008,11 +1084,11 @@ ruby_xml_reader_line_number(VALUE self)
1008
1084
 
1009
1085
  <div class="method-description">
1010
1086
  <p>
1011
- Return the local name of the node.
1087
+ Return the local <a href="Reader.html#M000290">name</a> of the node.
1012
1088
  </p>
1013
1089
  <p><a class="source-toggle" href="#"
1014
- onclick="toggleCode('M000287-source');return false;">[Source]</a></p>
1015
- <div class="method-source-code" id="M000287-source">
1090
+ onclick="toggleCode('M000291-source');return false;">[Source]</a></p>
1091
+ <div class="method-source-code" id="M000291-source">
1016
1092
  <pre>
1017
1093
  /*
1018
1094
  * call-seq:
@@ -1030,11 +1106,11 @@ ruby_xml_reader_local_name(VALUE self)
1030
1106
  </div>
1031
1107
  </div>
1032
1108
 
1033
- <div id="method-M000301" class="method-detail">
1034
- <a name="M000301"></a>
1109
+ <div id="method-M000305" class="method-detail">
1110
+ <a name="M000305"></a>
1035
1111
 
1036
1112
  <div class="method-heading">
1037
- <a href="#M000301" class="method-signature">
1113
+ <a href="#M000305" class="method-signature">
1038
1114
  <span class="method-name">reader.lookup_namespace(prefix) &rarr; value<br />
1039
1115
  </span>
1040
1116
  </a>
@@ -1042,12 +1118,13 @@ ruby_xml_reader_local_name(VALUE self)
1042
1118
 
1043
1119
  <div class="method-description">
1044
1120
  <p>
1045
- Resolve a namespace prefix in the scope of the current element. To return
1046
- the default namespace, specify nil as <tt>prefix</tt>.
1121
+ Resolve a namespace <a href="Reader.html#M000297">prefix</a> in the scope
1122
+ of the current element. To return the default namespace, specify nil as
1123
+ <tt><a href="Reader.html#M000297">prefix</a></tt>.
1047
1124
  </p>
1048
1125
  <p><a class="source-toggle" href="#"
1049
- onclick="toggleCode('M000301-source');return false;">[Source]</a></p>
1050
- <div class="method-source-code" id="M000301-source">
1126
+ onclick="toggleCode('M000305-source');return false;">[Source]</a></p>
1127
+ <div class="method-source-code" id="M000305-source">
1051
1128
  <pre>
1052
1129
  /*
1053
1130
  * call-seq:
@@ -1066,11 +1143,11 @@ ruby_xml_reader_lookup_namespace(VALUE self, VALUE prefix)
1066
1143
  </div>
1067
1144
  </div>
1068
1145
 
1069
- <div id="method-M000267" class="method-detail">
1070
- <a name="M000267"></a>
1146
+ <div id="method-M000271" class="method-detail">
1147
+ <a name="M000271"></a>
1071
1148
 
1072
1149
  <div class="method-heading">
1073
- <a href="#M000267" class="method-signature">
1150
+ <a href="#M000271" class="method-signature">
1074
1151
  <span class="method-name">parser.move_to_attribute(val) &rarr; code<br />
1075
1152
  </span>
1076
1153
  </a>
@@ -1079,12 +1156,13 @@ ruby_xml_reader_lookup_namespace(VALUE self, VALUE prefix)
1079
1156
  <div class="method-description">
1080
1157
  <p>
1081
1158
  Move the position of the current instance to the attribute with the
1082
- specified index (if <tt>val</tt> is an integer) or name (if <tt>val</tt> is
1083
- a string) relative to the containing element.
1159
+ specified index (if <tt>val</tt> is an integer) or <a
1160
+ href="Reader.html#M000290">name</a> (if <tt>val</tt> is a string) relative
1161
+ to the containing element.
1084
1162
  </p>
1085
1163
  <p><a class="source-toggle" href="#"
1086
- onclick="toggleCode('M000267-source');return false;">[Source]</a></p>
1087
- <div class="method-source-code" id="M000267-source">
1164
+ onclick="toggleCode('M000271-source');return false;">[Source]</a></p>
1165
+ <div class="method-source-code" id="M000271-source">
1088
1166
  <pre>
1089
1167
  /*
1090
1168
  * call-seq:
@@ -1116,11 +1194,11 @@ ruby_xml_reader_move_to_attr(VALUE self, VALUE val)
1116
1194
  </div>
1117
1195
  </div>
1118
1196
 
1119
- <div id="method-M000270" class="method-detail">
1120
- <a name="M000270"></a>
1197
+ <div id="method-M000274" class="method-detail">
1198
+ <a name="M000274"></a>
1121
1199
 
1122
1200
  <div class="method-heading">
1123
- <a href="#M000270" class="method-signature">
1201
+ <a href="#M000274" class="method-signature">
1124
1202
  <span class="method-name">reader.move_to_element &rarr; code<br />
1125
1203
  </span>
1126
1204
  </a>
@@ -1132,8 +1210,8 @@ Move the position of the current instance to the node that contains the
1132
1210
  current attribute node.
1133
1211
  </p>
1134
1212
  <p><a class="source-toggle" href="#"
1135
- onclick="toggleCode('M000270-source');return false;">[Source]</a></p>
1136
- <div class="method-source-code" id="M000270-source">
1213
+ onclick="toggleCode('M000274-source');return false;">[Source]</a></p>
1214
+ <div class="method-source-code" id="M000274-source">
1137
1215
  <pre>
1138
1216
  /*
1139
1217
  * call-seq:
@@ -1152,11 +1230,11 @@ ruby_xml_reader_move_to_element(VALUE self)
1152
1230
  </div>
1153
1231
  </div>
1154
1232
 
1155
- <div id="method-M000268" class="method-detail">
1156
- <a name="M000268"></a>
1233
+ <div id="method-M000272" class="method-detail">
1234
+ <a name="M000272"></a>
1157
1235
 
1158
1236
  <div class="method-heading">
1159
- <a href="#M000268" class="method-signature">
1237
+ <a href="#M000272" class="method-signature">
1160
1238
  <span class="method-name">reader.move_to_first_attribute &rarr; code<br />
1161
1239
  </span>
1162
1240
  </a>
@@ -1168,8 +1246,8 @@ Move the position of the current instance to the first attribute associated
1168
1246
  with the current node.
1169
1247
  </p>
1170
1248
  <p><a class="source-toggle" href="#"
1171
- onclick="toggleCode('M000268-source');return false;">[Source]</a></p>
1172
- <div class="method-source-code" id="M000268-source">
1249
+ onclick="toggleCode('M000272-source');return false;">[Source]</a></p>
1250
+ <div class="method-source-code" id="M000272-source">
1173
1251
  <pre>
1174
1252
  /*
1175
1253
  * call-seq:
@@ -1188,11 +1266,11 @@ ruby_xml_reader_move_to_first_attr(VALUE self)
1188
1266
  </div>
1189
1267
  </div>
1190
1268
 
1191
- <div id="method-M000269" class="method-detail">
1192
- <a name="M000269"></a>
1269
+ <div id="method-M000273" class="method-detail">
1270
+ <a name="M000273"></a>
1193
1271
 
1194
1272
  <div class="method-heading">
1195
- <a href="#M000269" class="method-signature">
1273
+ <a href="#M000273" class="method-signature">
1196
1274
  <span class="method-name">reader.move_to_next_attribute &rarr; code<br />
1197
1275
  </span>
1198
1276
  </a>
@@ -1200,12 +1278,13 @@ ruby_xml_reader_move_to_first_attr(VALUE self)
1200
1278
 
1201
1279
  <div class="method-description">
1202
1280
  <p>
1203
- Move the position of the current instance to the next attribute associated
1204
- with the current node.
1281
+ Move the position of the current instance to the <a
1282
+ href="Reader.html#M000275">next</a> attribute associated with the current
1283
+ node.
1205
1284
  </p>
1206
1285
  <p><a class="source-toggle" href="#"
1207
- onclick="toggleCode('M000269-source');return false;">[Source]</a></p>
1208
- <div class="method-source-code" id="M000269-source">
1286
+ onclick="toggleCode('M000273-source');return false;">[Source]</a></p>
1287
+ <div class="method-source-code" id="M000273-source">
1209
1288
  <pre>
1210
1289
  /*
1211
1290
  * call-seq:
@@ -1224,11 +1303,11 @@ ruby_xml_reader_move_to_next_attr(VALUE self)
1224
1303
  </div>
1225
1304
  </div>
1226
1305
 
1227
- <div id="method-M000286" class="method-detail">
1228
- <a name="M000286"></a>
1306
+ <div id="method-M000290" class="method-detail">
1307
+ <a name="M000290"></a>
1229
1308
 
1230
1309
  <div class="method-heading">
1231
- <a href="#M000286" class="method-signature">
1310
+ <a href="#M000290" class="method-signature">
1232
1311
  <span class="method-name">reader.name &rarr; name<br />
1233
1312
  </span>
1234
1313
  </a>
@@ -1236,11 +1315,11 @@ ruby_xml_reader_move_to_next_attr(VALUE self)
1236
1315
 
1237
1316
  <div class="method-description">
1238
1317
  <p>
1239
- Return the qualified name of the node.
1318
+ Return the qualified <a href="Reader.html#M000290">name</a> of the node.
1240
1319
  </p>
1241
1320
  <p><a class="source-toggle" href="#"
1242
- onclick="toggleCode('M000286-source');return false;">[Source]</a></p>
1243
- <div class="method-source-code" id="M000286-source">
1321
+ onclick="toggleCode('M000290-source');return false;">[Source]</a></p>
1322
+ <div class="method-source-code" id="M000290-source">
1244
1323
  <pre>
1245
1324
  /*
1246
1325
  * call-seq:
@@ -1258,11 +1337,11 @@ ruby_xml_reader_name(VALUE self)
1258
1337
  </div>
1259
1338
  </div>
1260
1339
 
1261
- <div id="method-M000308" class="method-detail">
1262
- <a name="M000308"></a>
1340
+ <div id="method-M000312" class="method-detail">
1341
+ <a name="M000312"></a>
1263
1342
 
1264
1343
  <div class="method-heading">
1265
- <a href="#M000308" class="method-signature">
1344
+ <a href="#M000312" class="method-signature">
1266
1345
  <span class="method-name">reader.namespace_declaration? &rarr; bool<br />
1267
1346
  </span>
1268
1347
  </a>
@@ -1274,8 +1353,8 @@ Determine whether the current node is a namespace declaration rather than a
1274
1353
  regular attribute.
1275
1354
  </p>
1276
1355
  <p><a class="source-toggle" href="#"
1277
- onclick="toggleCode('M000308-source');return false;">[Source]</a></p>
1278
- <div class="method-source-code" id="M000308-source">
1356
+ onclick="toggleCode('M000312-source');return false;">[Source]</a></p>
1357
+ <div class="method-source-code" id="M000312-source">
1279
1358
  <pre>
1280
1359
  /*
1281
1360
  * call-seq:
@@ -1294,11 +1373,11 @@ ruby_xml_reader_namespace_declaration(VALUE self)
1294
1373
  </div>
1295
1374
  </div>
1296
1375
 
1297
- <div id="method-M000290" class="method-detail">
1298
- <a name="M000290"></a>
1376
+ <div id="method-M000294" class="method-detail">
1377
+ <a name="M000294"></a>
1299
1378
 
1300
1379
  <div class="method-heading">
1301
- <a href="#M000290" class="method-signature">
1380
+ <a href="#M000294" class="method-signature">
1302
1381
  <span class="method-name">reader.namespace_uri &rarr; URI<br />
1303
1382
  </span>
1304
1383
  </a>
@@ -1309,8 +1388,8 @@ ruby_xml_reader_namespace_declaration(VALUE self)
1309
1388
  Determine the namespace URI of the node.
1310
1389
  </p>
1311
1390
  <p><a class="source-toggle" href="#"
1312
- onclick="toggleCode('M000290-source');return false;">[Source]</a></p>
1313
- <div class="method-source-code" id="M000290-source">
1391
+ onclick="toggleCode('M000294-source');return false;">[Source]</a></p>
1392
+ <div class="method-source-code" id="M000294-source">
1314
1393
  <pre>
1315
1394
  /*
1316
1395
  * call-seq:
@@ -1328,11 +1407,11 @@ ruby_xml_reader_namespace_uri(VALUE self)
1328
1407
  </div>
1329
1408
  </div>
1330
1409
 
1331
- <div id="method-M000271" class="method-detail">
1332
- <a name="M000271"></a>
1410
+ <div id="method-M000275" class="method-detail">
1411
+ <a name="M000275"></a>
1333
1412
 
1334
1413
  <div class="method-heading">
1335
- <a href="#M000271" class="method-signature">
1414
+ <a href="#M000275" class="method-signature">
1336
1415
  <span class="method-name">reader.next &rarr; code<br />
1337
1416
  </span>
1338
1417
  </a>
@@ -1344,8 +1423,8 @@ Skip to the node following the current one in document order while avoiding
1344
1423
  the subtree if any.
1345
1424
  </p>
1346
1425
  <p><a class="source-toggle" href="#"
1347
- onclick="toggleCode('M000271-source');return false;">[Source]</a></p>
1348
- <div class="method-source-code" id="M000271-source">
1426
+ onclick="toggleCode('M000275-source');return false;">[Source]</a></p>
1427
+ <div class="method-source-code" id="M000275-source">
1349
1428
  <pre>
1350
1429
  /*
1351
1430
  * call-seq:
@@ -1364,11 +1443,11 @@ ruby_xml_reader_next(VALUE self)
1364
1443
  </div>
1365
1444
  </div>
1366
1445
 
1367
- <div id="method-M000272" class="method-detail">
1368
- <a name="M000272"></a>
1446
+ <div id="method-M000276" class="method-detail">
1447
+ <a name="M000276"></a>
1369
1448
 
1370
1449
  <div class="method-heading">
1371
- <a href="#M000272" class="method-signature">
1450
+ <a href="#M000276" class="method-signature">
1372
1451
  <span class="method-name">reader.next_sibling &rarr; code<br />
1373
1452
  </span>
1374
1453
  </a>
@@ -1381,8 +1460,8 @@ the subtree if any. Currently implemented only for Readers built on a
1381
1460
  document.
1382
1461
  </p>
1383
1462
  <p><a class="source-toggle" href="#"
1384
- onclick="toggleCode('M000272-source');return false;">[Source]</a></p>
1385
- <div class="method-source-code" id="M000272-source">
1463
+ onclick="toggleCode('M000276-source');return false;">[Source]</a></p>
1464
+ <div class="method-source-code" id="M000276-source">
1386
1465
  <pre>
1387
1466
  /*
1388
1467
  * call-seq:
@@ -1402,11 +1481,11 @@ ruby_xml_reader_next_sibling(VALUE self)
1402
1481
  </div>
1403
1482
  </div>
1404
1483
 
1405
- <div id="method-M000283" class="method-detail">
1406
- <a name="M000283"></a>
1484
+ <div id="method-M000287" class="method-detail">
1485
+ <a name="M000287"></a>
1407
1486
 
1408
1487
  <div class="method-heading">
1409
- <a href="#M000283" class="method-signature">
1488
+ <a href="#M000287" class="method-signature">
1410
1489
  <span class="method-name">reader.node_type &rarr; type<br />
1411
1490
  </span>
1412
1491
  </a>
@@ -1418,8 +1497,8 @@ Get the node type of the current node. Reference: <a
1418
1497
  href="http://dotgnu.org/pnetlib-doc/System/Xml/XmlNodeType.html">dotgnu.org/pnetlib-doc/System/Xml/XmlNodeType.html</a>
1419
1498
  </p>
1420
1499
  <p><a class="source-toggle" href="#"
1421
- onclick="toggleCode('M000283-source');return false;">[Source]</a></p>
1422
- <div class="method-source-code" id="M000283-source">
1500
+ onclick="toggleCode('M000287-source');return false;">[Source]</a></p>
1501
+ <div class="method-source-code" id="M000287-source">
1423
1502
  <pre>
1424
1503
  /*
1425
1504
  * call-seq:
@@ -1438,11 +1517,11 @@ ruby_xml_reader_node_type(VALUE self)
1438
1517
  </div>
1439
1518
  </div>
1440
1519
 
1441
- <div id="method-M000284" class="method-detail">
1442
- <a name="M000284"></a>
1520
+ <div id="method-M000288" class="method-detail">
1521
+ <a name="M000288"></a>
1443
1522
 
1444
1523
  <div class="method-heading">
1445
- <a href="#M000284" class="method-signature">
1524
+ <a href="#M000288" class="method-signature">
1446
1525
  <span class="method-name">reader.normalization &rarr; value<br />
1447
1526
  </span>
1448
1527
  </a>
@@ -1450,18 +1529,20 @@ ruby_xml_reader_node_type(VALUE self)
1450
1529
 
1451
1530
  <div class="method-description">
1452
1531
  <p>
1453
- The value indicating whether to normalize white space and attribute values.
1454
- Since attribute value and end of line normalizations are a MUST in the <a
1455
- href="../XML.html">XML</a> specification only the value true is accepted.
1456
- The broken bahaviour of accepting out of range character entities like
1457
- &amp;0; is of course not supported either.
1532
+ The <a href="Reader.html#M000304">value</a> indicating whether to normalize
1533
+ white space and attribute values. Since attribute <a
1534
+ href="Reader.html#M000304">value</a> and end of line normalizations are a
1535
+ MUST in the <a href="../XML.html">XML</a> specification only the <a
1536
+ href="Reader.html#M000304">value</a> true is accepted. The broken bahaviour
1537
+ of accepting out of range character entities like &amp;0; is of course not
1538
+ supported either.
1458
1539
  </p>
1459
1540
  <p>
1460
1541
  Return 1 or -1 in case of error.
1461
1542
  </p>
1462
1543
  <p><a class="source-toggle" href="#"
1463
- onclick="toggleCode('M000284-source');return false;">[Source]</a></p>
1464
- <div class="method-source-code" id="M000284-source">
1544
+ onclick="toggleCode('M000288-source');return false;">[Source]</a></p>
1545
+ <div class="method-source-code" id="M000288-source">
1465
1546
  <pre>
1466
1547
  /*
1467
1548
  * call-seq:
@@ -1485,11 +1566,11 @@ ruby_xml_reader_normalization(VALUE self)
1485
1566
  </div>
1486
1567
  </div>
1487
1568
 
1488
- <div id="method-M000293" class="method-detail">
1489
- <a name="M000293"></a>
1569
+ <div id="method-M000297" class="method-detail">
1570
+ <a name="M000297"></a>
1490
1571
 
1491
1572
  <div class="method-heading">
1492
- <a href="#M000293" class="method-signature">
1573
+ <a href="#M000297" class="method-signature">
1493
1574
  <span class="method-name">reader.prefix &rarr; prefix<br />
1494
1575
  </span>
1495
1576
  </a>
@@ -1500,8 +1581,8 @@ ruby_xml_reader_normalization(VALUE self)
1500
1581
  Get a shorthand reference to the namespace associated with the node.
1501
1582
  </p>
1502
1583
  <p><a class="source-toggle" href="#"
1503
- onclick="toggleCode('M000293-source');return false;">[Source]</a></p>
1504
- <div class="method-source-code" id="M000293-source">
1584
+ onclick="toggleCode('M000297-source');return false;">[Source]</a></p>
1585
+ <div class="method-source-code" id="M000297-source">
1505
1586
  <pre>
1506
1587
  /*
1507
1588
  * call-seq:
@@ -1519,11 +1600,11 @@ ruby_xml_reader_prefix(VALUE self)
1519
1600
  </div>
1520
1601
  </div>
1521
1602
 
1522
- <div id="method-M000295" class="method-detail">
1523
- <a name="M000295"></a>
1603
+ <div id="method-M000299" class="method-detail">
1604
+ <a name="M000299"></a>
1524
1605
 
1525
1606
  <div class="method-heading">
1526
- <a href="#M000295" class="method-signature">
1607
+ <a href="#M000299" class="method-signature">
1527
1608
  <span class="method-name">reader.quote_char &rarr; char<br />
1528
1609
  </span>
1529
1610
  </a>
@@ -1531,12 +1612,13 @@ ruby_xml_reader_prefix(VALUE self)
1531
1612
 
1532
1613
  <div class="method-description">
1533
1614
  <p>
1534
- Get the quotation mark character used to enclose the value of an attribute,
1535
- as an integer value (and -1 in case of error).
1615
+ Get the quotation mark character used to enclose the <a
1616
+ href="Reader.html#M000304">value</a> of an attribute, as an integer <a
1617
+ href="Reader.html#M000304">value</a> (and -1 in case of error).
1536
1618
  </p>
1537
1619
  <p><a class="source-toggle" href="#"
1538
- onclick="toggleCode('M000295-source');return false;">[Source]</a></p>
1539
- <div class="method-source-code" id="M000295-source">
1620
+ onclick="toggleCode('M000299-source');return false;">[Source]</a></p>
1621
+ <div class="method-source-code" id="M000299-source">
1540
1622
  <pre>
1541
1623
  /*
1542
1624
  * call-seq:
@@ -1555,11 +1637,11 @@ ruby_xml_reader_quote_char(VALUE self)
1555
1637
  </div>
1556
1638
  </div>
1557
1639
 
1558
- <div id="method-M000273" class="method-detail">
1559
- <a name="M000273"></a>
1640
+ <div id="method-M000277" class="method-detail">
1641
+ <a name="M000277"></a>
1560
1642
 
1561
1643
  <div class="method-heading">
1562
- <a href="#M000273" class="method-signature">
1644
+ <a href="#M000277" class="method-signature">
1563
1645
  <span class="method-name">reader.read &rarr; code<br />
1564
1646
  </span>
1565
1647
  </a>
@@ -1567,16 +1649,18 @@ ruby_xml_reader_quote_char(VALUE self)
1567
1649
 
1568
1650
  <div class="method-description">
1569
1651
  <p>
1570
- Move the position of the current instance to the next node in the stream,
1571
- exposing its properties.
1652
+ Move the position of the current instance to the <a
1653
+ href="Reader.html#M000275">next</a> node in the stream, exposing its
1654
+ properties.
1572
1655
  </p>
1573
1656
  <p>
1574
- Return 1 if the node was read successfully, 0 if there is no more nodes to
1575
- read, or -1 in case of error.
1657
+ Return 1 if the node was <a href="Reader.html#M000277">read</a>
1658
+ successfully, 0 if there is no more nodes to <a
1659
+ href="Reader.html#M000277">read</a>, or -1 in case of error.
1576
1660
  </p>
1577
1661
  <p><a class="source-toggle" href="#"
1578
- onclick="toggleCode('M000273-source');return false;">[Source]</a></p>
1579
- <div class="method-source-code" id="M000273-source">
1662
+ onclick="toggleCode('M000277-source');return false;">[Source]</a></p>
1663
+ <div class="method-source-code" id="M000277-source">
1580
1664
  <pre>
1581
1665
  /*
1582
1666
  * call-seq:
@@ -1598,11 +1682,11 @@ ruby_xml_reader_read(VALUE self)
1598
1682
  </div>
1599
1683
  </div>
1600
1684
 
1601
- <div id="method-M000274" class="method-detail">
1602
- <a name="M000274"></a>
1685
+ <div id="method-M000278" class="method-detail">
1686
+ <a name="M000278"></a>
1603
1687
 
1604
1688
  <div class="method-heading">
1605
- <a href="#M000274" class="method-signature">
1689
+ <a href="#M000278" class="method-signature">
1606
1690
  <span class="method-name">reader.read_attribute_value &rarr; code<br />
1607
1691
  </span>
1608
1692
  </a>
@@ -1610,16 +1694,17 @@ ruby_xml_reader_read(VALUE self)
1610
1694
 
1611
1695
  <div class="method-description">
1612
1696
  <p>
1613
- Parse an attribute value into one or more Text and EntityReference nodes.
1697
+ Parse an attribute <a href="Reader.html#M000304">value</a> into one or more
1698
+ Text and EntityReference nodes.
1614
1699
  </p>
1615
1700
  <p>
1616
1701
  Return 1 in case of success, 0 if the reader was not positionned on an
1617
- attribute node or all the attribute values have been read, or -1 in case of
1618
- error.
1702
+ attribute node or all the attribute values have been <a
1703
+ href="Reader.html#M000277">read</a>, or -1 in case of error.
1619
1704
  </p>
1620
1705
  <p><a class="source-toggle" href="#"
1621
- onclick="toggleCode('M000274-source');return false;">[Source]</a></p>
1622
- <div class="method-source-code" id="M000274-source">
1706
+ onclick="toggleCode('M000278-source');return false;">[Source]</a></p>
1707
+ <div class="method-source-code" id="M000278-source">
1623
1708
  <pre>
1624
1709
  /*
1625
1710
  * call-seq:
@@ -1641,11 +1726,11 @@ ruby_xml_reader_read_attr_value(VALUE self)
1641
1726
  </div>
1642
1727
  </div>
1643
1728
 
1644
- <div id="method-M000275" class="method-detail">
1645
- <a name="M000275"></a>
1729
+ <div id="method-M000279" class="method-detail">
1730
+ <a name="M000279"></a>
1646
1731
 
1647
1732
  <div class="method-heading">
1648
- <a href="#M000275" class="method-signature">
1733
+ <a href="#M000279" class="method-signature">
1649
1734
  <span class="method-name">reader.read_inner_xml &rarr; data<br />
1650
1735
  </span>
1651
1736
  </a>
@@ -1661,8 +1746,8 @@ nil if the current node is neither an element nor attribute, or has no
1661
1746
  child nodes.
1662
1747
  </p>
1663
1748
  <p><a class="source-toggle" href="#"
1664
- onclick="toggleCode('M000275-source');return false;">[Source]</a></p>
1665
- <div class="method-source-code" id="M000275-source">
1749
+ onclick="toggleCode('M000279-source');return false;">[Source]</a></p>
1750
+ <div class="method-source-code" id="M000279-source">
1666
1751
  <pre>
1667
1752
  /*
1668
1753
  * call-seq:
@@ -1683,11 +1768,11 @@ ruby_xml_reader_read_inner_xml(VALUE self)
1683
1768
  </div>
1684
1769
  </div>
1685
1770
 
1686
- <div id="method-M000276" class="method-detail">
1687
- <a name="M000276"></a>
1771
+ <div id="method-M000280" class="method-detail">
1772
+ <a name="M000280"></a>
1688
1773
 
1689
1774
  <div class="method-heading">
1690
- <a href="#M000276" class="method-signature">
1775
+ <a href="#M000280" class="method-signature">
1691
1776
  <span class="method-name">reader.read_outer_xml &rarr; data<br />
1692
1777
  </span>
1693
1778
  </a>
@@ -1703,8 +1788,8 @@ nil if the current node is neither an element nor attribute, or has no
1703
1788
  child nodes.
1704
1789
  </p>
1705
1790
  <p><a class="source-toggle" href="#"
1706
- onclick="toggleCode('M000276-source');return false;">[Source]</a></p>
1707
- <div class="method-source-code" id="M000276-source">
1791
+ onclick="toggleCode('M000280-source');return false;">[Source]</a></p>
1792
+ <div class="method-source-code" id="M000280-source">
1708
1793
  <pre>
1709
1794
  /*
1710
1795
  * call-seq:
@@ -1725,11 +1810,11 @@ ruby_xml_reader_read_outer_xml(VALUE self)
1725
1810
  </div>
1726
1811
  </div>
1727
1812
 
1728
- <div id="method-M000277" class="method-detail">
1729
- <a name="M000277"></a>
1813
+ <div id="method-M000281" class="method-detail">
1814
+ <a name="M000281"></a>
1730
1815
 
1731
1816
  <div class="method-heading">
1732
- <a href="#M000277" class="method-signature">
1817
+ <a href="#M000281" class="method-signature">
1733
1818
  <span class="method-name">reader.read_state &rarr; state<br />
1734
1819
  </span>
1735
1820
  </a>
@@ -1737,11 +1822,11 @@ ruby_xml_reader_read_outer_xml(VALUE self)
1737
1822
 
1738
1823
  <div class="method-description">
1739
1824
  <p>
1740
- Get the read state of the reader.
1825
+ Get the <a href="Reader.html#M000277">read</a> state of the reader.
1741
1826
  </p>
1742
1827
  <p><a class="source-toggle" href="#"
1743
- onclick="toggleCode('M000277-source');return false;">[Source]</a></p>
1744
- <div class="method-source-code" id="M000277-source">
1828
+ onclick="toggleCode('M000281-source');return false;">[Source]</a></p>
1829
+ <div class="method-source-code" id="M000281-source">
1745
1830
  <pre>
1746
1831
  /*
1747
1832
  * call-seq:
@@ -1759,11 +1844,11 @@ ruby_xml_reader_read_state(VALUE self)
1759
1844
  </div>
1760
1845
  </div>
1761
1846
 
1762
- <div id="method-M000278" class="method-detail">
1763
- <a name="M000278"></a>
1847
+ <div id="method-M000282" class="method-detail">
1848
+ <a name="M000282"></a>
1764
1849
 
1765
1850
  <div class="method-heading">
1766
- <a href="#M000278" class="method-signature">
1851
+ <a href="#M000282" class="method-signature">
1767
1852
  <span class="method-name">reader.read_string &rarr; string<br />
1768
1853
  </span>
1769
1854
  </a>
@@ -1778,8 +1863,8 @@ Return a string containing the contents of the Element or Text node, or nil
1778
1863
  if the reader is positioned on any other type of node.
1779
1864
  </p>
1780
1865
  <p><a class="source-toggle" href="#"
1781
- onclick="toggleCode('M000278-source');return false;">[Source]</a></p>
1782
- <div class="method-source-code" id="M000278-source">
1866
+ onclick="toggleCode('M000282-source');return false;">[Source]</a></p>
1867
+ <div class="method-source-code" id="M000282-source">
1783
1868
  <pre>
1784
1869
  /*
1785
1870
  * call-seq:
@@ -1800,11 +1885,11 @@ ruby_xml_reader_read_string(VALUE self)
1800
1885
  </div>
1801
1886
  </div>
1802
1887
 
1803
- <div id="method-M000281" class="method-detail">
1804
- <a name="M000281"></a>
1888
+ <div id="method-M000285" class="method-detail">
1889
+ <a name="M000285"></a>
1805
1890
 
1806
1891
  <div class="method-heading">
1807
- <a href="#M000281" class="method-signature">
1892
+ <a href="#M000285" class="method-signature">
1808
1893
  <span class="method-name">reader.relax_ng_validate(rng) &rarr; code<br />
1809
1894
  </span>
1810
1895
  </a>
@@ -1812,17 +1897,18 @@ ruby_xml_reader_read_string(VALUE self)
1812
1897
 
1813
1898
  <div class="method-description">
1814
1899
  <p>
1815
- Use RelaxNG to validate the document as it is processed. Activation is only
1816
- possible before the first read. If <tt>rng</tt> is nil, the RelaxNG
1817
- validation is desactivated.
1900
+ Use <a href="RelaxNG.html">RelaxNG</a> to validate the document as it is
1901
+ processed. Activation is only possible before the first <a
1902
+ href="Reader.html#M000277">read</a>. If <tt>rng</tt> is nil, the <a
1903
+ href="RelaxNG.html">RelaxNG</a> validation is desactivated.
1818
1904
  </p>
1819
1905
  <p>
1820
- Return 0 in case the RelaxNG validation could be (des)activated and -1 in
1821
- case of error.
1906
+ Return 0 in case the <a href="RelaxNG.html">RelaxNG</a> validation could be
1907
+ (des)activated and -1 in case of error.
1822
1908
  </p>
1823
1909
  <p><a class="source-toggle" href="#"
1824
- onclick="toggleCode('M000281-source');return false;">[Source]</a></p>
1825
- <div class="method-source-code" id="M000281-source">
1910
+ onclick="toggleCode('M000285-source');return false;">[Source]</a></p>
1911
+ <div class="method-source-code" id="M000285-source">
1826
1912
  <pre>
1827
1913
  /*
1828
1914
  * call-seq:
@@ -1845,11 +1931,11 @@ ruby_xml_reader_relax_ng_validate(VALUE self, VALUE rng)
1845
1931
  </div>
1846
1932
  </div>
1847
1933
 
1848
- <div id="method-M000280" class="method-detail">
1849
- <a name="M000280"></a>
1934
+ <div id="method-M000284" class="method-detail">
1935
+ <a name="M000284"></a>
1850
1936
 
1851
1937
  <div class="method-heading">
1852
- <a href="#M000280" class="method-signature">
1938
+ <a href="#M000284" class="method-signature">
1853
1939
  <span class="method-name">reader.reset_error_handler<br />
1854
1940
  </span>
1855
1941
  </a>
@@ -1860,8 +1946,8 @@ ruby_xml_reader_relax_ng_validate(VALUE self, VALUE rng)
1860
1946
  Restore the default error and warning handlers.
1861
1947
  </p>
1862
1948
  <p><a class="source-toggle" href="#"
1863
- onclick="toggleCode('M000280-source');return false;">[Source]</a></p>
1864
- <div class="method-source-code" id="M000280-source">
1949
+ onclick="toggleCode('M000284-source');return false;">[Source]</a></p>
1950
+ <div class="method-source-code" id="M000284-source">
1865
1951
  <pre>
1866
1952
  /*
1867
1953
  * call-seq:
@@ -1880,11 +1966,11 @@ ruby_xml_reader_reset_error_handler(VALUE self)
1880
1966
  </div>
1881
1967
  </div>
1882
1968
 
1883
- <div id="method-M000282" class="method-detail">
1884
- <a name="M000282"></a>
1969
+ <div id="method-M000286" class="method-detail">
1970
+ <a name="M000286"></a>
1885
1971
 
1886
1972
  <div class="method-heading">
1887
- <a href="#M000282" class="method-signature">
1973
+ <a href="#M000286" class="method-signature">
1888
1974
  <span class="method-name">reader.schema_validate(schema) &rarr; code<br />
1889
1975
  </span>
1890
1976
  </a>
@@ -1893,17 +1979,17 @@ ruby_xml_reader_reset_error_handler(VALUE self)
1893
1979
  <div class="method-description">
1894
1980
  <p>
1895
1981
  Use W3C XSD schema to validate the document as it is processed. Activation
1896
- is only possible before the first read. If <tt>schema</tt> is nil, then <a
1897
- href="../XML.html">XML</a> <a href="Schema.html">Schema</a> validation is
1898
- desactivated.
1982
+ is only possible before the first <a href="Reader.html#M000277">read</a>.
1983
+ If <tt>schema</tt> is nil, then <a href="../XML.html">XML</a> <a
1984
+ href="Schema.html">Schema</a> validation is desactivated.
1899
1985
  </p>
1900
1986
  <p>
1901
1987
  Return 0 in case the schemas validation could be (de)activated and -1 in
1902
1988
  case of error.
1903
1989
  </p>
1904
1990
  <p><a class="source-toggle" href="#"
1905
- onclick="toggleCode('M000282-source');return false;">[Source]</a></p>
1906
- <div class="method-source-code" id="M000282-source">
1991
+ onclick="toggleCode('M000286-source');return false;">[Source]</a></p>
1992
+ <div class="method-source-code" id="M000286-source">
1907
1993
  <pre>
1908
1994
  /*
1909
1995
  * call-seq:
@@ -1926,11 +2012,11 @@ ruby_xml_reader_schema_validate(VALUE self, VALUE xsd)
1926
2012
  </div>
1927
2013
  </div>
1928
2014
 
1929
- <div id="method-M000279" class="method-detail">
1930
- <a name="M000279"></a>
2015
+ <div id="method-M000283" class="method-detail">
2016
+ <a name="M000283"></a>
1931
2017
 
1932
2018
  <div class="method-heading">
1933
- <a href="#M000279" class="method-signature">
2019
+ <a href="#M000283" class="method-signature">
1934
2020
  <span class="method-name">reader.set_error_handler { ... }<br />
1935
2021
  </span>
1936
2022
  </a>
@@ -1943,8 +2029,8 @@ block will be called with 5 parameters: the reader, the error message, the
1943
2029
  severity, the base URI and the line number.
1944
2030
  </p>
1945
2031
  <p><a class="source-toggle" href="#"
1946
- onclick="toggleCode('M000279-source');return false;">[Source]</a></p>
1947
- <div class="method-source-code" id="M000279-source">
2032
+ onclick="toggleCode('M000283-source');return false;">[Source]</a></p>
2033
+ <div class="method-source-code" id="M000283-source">
1948
2034
  <pre>
1949
2035
  /*
1950
2036
  * call-seq:
@@ -1979,11 +2065,11 @@ ruby_xml_reader_set_error_handler(VALUE self)
1979
2065
  </div>
1980
2066
  </div>
1981
2067
 
1982
- <div id="method-M000296" class="method-detail">
1983
- <a name="M000296"></a>
2068
+ <div id="method-M000300" class="method-detail">
2069
+ <a name="M000300"></a>
1984
2070
 
1985
2071
  <div class="method-heading">
1986
- <a href="#M000296" class="method-signature">
2072
+ <a href="#M000300" class="method-signature">
1987
2073
  <span class="method-name">reader.standalone &rarr; code<br />
1988
2074
  </span>
1989
2075
  </a>
@@ -1991,16 +2077,19 @@ ruby_xml_reader_set_error_handler(VALUE self)
1991
2077
 
1992
2078
  <div class="method-description">
1993
2079
  <p>
1994
- Determine the standalone status of the document being read.
2080
+ Determine the <a href="Reader.html#M000300">standalone</a> status of the
2081
+ document being <a href="Reader.html#M000277">read</a>.
1995
2082
  </p>
1996
2083
  <p>
1997
- Return 1 if the document was declared to be standalone, 0 if it was
1998
- declared to be not standalone, or -1 if the document did not specify its
1999
- standalone status or in case of error.
2084
+ Return 1 if the document was declared to be <a
2085
+ href="Reader.html#M000300">standalone</a>, 0 if it was declared to be not
2086
+ <a href="Reader.html#M000300">standalone</a>, or -1 if the document did not
2087
+ specify its <a href="Reader.html#M000300">standalone</a> status or in case
2088
+ of error.
2000
2089
  </p>
2001
2090
  <p><a class="source-toggle" href="#"
2002
- onclick="toggleCode('M000296-source');return false;">[Source]</a></p>
2003
- <div class="method-source-code" id="M000296-source">
2091
+ onclick="toggleCode('M000300-source');return false;">[Source]</a></p>
2092
+ <div class="method-source-code" id="M000300-source">
2004
2093
  <pre>
2005
2094
  /*
2006
2095
  * call-seq:
@@ -2022,11 +2111,11 @@ ruby_xml_reader_standalone(VALUE self)
2022
2111
  </div>
2023
2112
  </div>
2024
2113
 
2025
- <div id="method-M000309" class="method-detail">
2026
- <a name="M000309"></a>
2114
+ <div id="method-M000313" class="method-detail">
2115
+ <a name="M000313"></a>
2027
2116
 
2028
2117
  <div class="method-heading">
2029
- <a href="#M000309" class="method-signature">
2118
+ <a href="#M000313" class="method-signature">
2030
2119
  <span class="method-name">reader.valid? &rarr; bool<br />
2031
2120
  </span>
2032
2121
  </a>
@@ -2037,8 +2126,8 @@ ruby_xml_reader_standalone(VALUE self)
2037
2126
  Retrieve the validity status from the parser context.
2038
2127
  </p>
2039
2128
  <p><a class="source-toggle" href="#"
2040
- onclick="toggleCode('M000309-source');return false;">[Source]</a></p>
2041
- <div class="method-source-code" id="M000309-source">
2129
+ onclick="toggleCode('M000313-source');return false;">[Source]</a></p>
2130
+ <div class="method-source-code" id="M000313-source">
2042
2131
  <pre>
2043
2132
  /*
2044
2133
  * call-seq:
@@ -2056,11 +2145,11 @@ ruby_xml_reader_valid(VALUE self)
2056
2145
  </div>
2057
2146
  </div>
2058
2147
 
2059
- <div id="method-M000300" class="method-detail">
2060
- <a name="M000300"></a>
2148
+ <div id="method-M000304" class="method-detail">
2149
+ <a name="M000304"></a>
2061
2150
 
2062
2151
  <div class="method-heading">
2063
- <a href="#M000300" class="method-signature">
2152
+ <a href="#M000304" class="method-signature">
2064
2153
  <span class="method-name">reader.value &rarr; text<br />
2065
2154
  </span>
2066
2155
  </a>
@@ -2068,11 +2157,12 @@ ruby_xml_reader_valid(VALUE self)
2068
2157
 
2069
2158
  <div class="method-description">
2070
2159
  <p>
2071
- Provide the text value of the node if present.
2160
+ Provide the text <a href="Reader.html#M000304">value</a> of the node if
2161
+ present.
2072
2162
  </p>
2073
2163
  <p><a class="source-toggle" href="#"
2074
- onclick="toggleCode('M000300-source');return false;">[Source]</a></p>
2075
- <div class="method-source-code" id="M000300-source">
2164
+ onclick="toggleCode('M000304-source');return false;">[Source]</a></p>
2165
+ <div class="method-source-code" id="M000304-source">
2076
2166
  <pre>
2077
2167
  /*
2078
2168
  * call-seq:
@@ -2090,11 +2180,11 @@ ruby_xml_reader_value(VALUE self)
2090
2180
  </div>
2091
2181
  </div>
2092
2182
 
2093
- <div id="method-M000291" class="method-detail">
2094
- <a name="M000291"></a>
2183
+ <div id="method-M000295" class="method-detail">
2184
+ <a name="M000295"></a>
2095
2185
 
2096
2186
  <div class="method-heading">
2097
- <a href="#M000291" class="method-signature">
2187
+ <a href="#M000295" class="method-signature">
2098
2188
  <span class="method-name">reader.xml_lang &rarr; value<br />
2099
2189
  </span>
2100
2190
  </a>
@@ -2105,8 +2195,8 @@ ruby_xml_reader_value(VALUE self)
2105
2195
  Get the xml:lang scope within which the node resides.
2106
2196
  </p>
2107
2197
  <p><a class="source-toggle" href="#"
2108
- onclick="toggleCode('M000291-source');return false;">[Source]</a></p>
2109
- <div class="method-source-code" id="M000291-source">
2198
+ onclick="toggleCode('M000295-source');return false;">[Source]</a></p>
2199
+ <div class="method-source-code" id="M000295-source">
2110
2200
  <pre>
2111
2201
  /*
2112
2202
  * call-seq:
@@ -2124,11 +2214,11 @@ ruby_xml_reader_xml_lang(VALUE self)
2124
2214
  </div>
2125
2215
  </div>
2126
2216
 
2127
- <div id="method-M000292" class="method-detail">
2128
- <a name="M000292"></a>
2217
+ <div id="method-M000296" class="method-detail">
2218
+ <a name="M000296"></a>
2129
2219
 
2130
2220
  <div class="method-heading">
2131
- <a href="#M000292" class="method-signature">
2221
+ <a href="#M000296" class="method-signature">
2132
2222
  <span class="method-name">reader.xml_version &rarr; version<br />
2133
2223
  </span>
2134
2224
  </a>
@@ -2137,11 +2227,11 @@ ruby_xml_reader_xml_lang(VALUE self)
2137
2227
  <div class="method-description">
2138
2228
  <p>
2139
2229
  Determine the <a href="../XML.html">XML</a> version of the document being
2140
- read.
2230
+ <a href="Reader.html#M000277">read</a>.
2141
2231
  </p>
2142
2232
  <p><a class="source-toggle" href="#"
2143
- onclick="toggleCode('M000292-source');return false;">[Source]</a></p>
2144
- <div class="method-source-code" id="M000292-source">
2233
+ onclick="toggleCode('M000296-source');return false;">[Source]</a></p>
2234
+ <div class="method-source-code" id="M000296-source">
2145
2235
  <pre>
2146
2236
  /*
2147
2237
  * call-seq: