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.
- data/CHANGES +21 -0
- data/RAKEFILE +213 -0
- data/README +32 -11
- data/doc/rdoc/classes/LibXML.html +4 -0
- data/doc/rdoc/classes/LibXML/XML.html +7 -0
- data/doc/rdoc/classes/LibXML/XML/Attr.html +187 -177
- data/doc/rdoc/classes/LibXML/XML/Attributes.html +62 -61
- data/doc/rdoc/classes/LibXML/XML/Document.html +318 -254
- data/doc/rdoc/classes/LibXML/XML/Dtd.html +62 -8
- data/doc/rdoc/classes/LibXML/XML/Error.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/HTMLParser.html +59 -41
- data/doc/rdoc/classes/LibXML/XML/InputCallbacks.html +12 -6
- data/doc/rdoc/classes/LibXML/XML/NS.html +65 -50
- data/doc/rdoc/classes/LibXML/XML/Node.html +671 -630
- data/doc/rdoc/classes/LibXML/XML/Node/FailedModify.html +12 -0
- data/doc/rdoc/classes/LibXML/XML/Node/Set.html +64 -60
- data/doc/rdoc/classes/LibXML/XML/Node/SetNamespace.html +12 -0
- data/doc/rdoc/classes/LibXML/XML/Node/UnknownType.html +12 -0
- data/doc/rdoc/classes/LibXML/XML/Parser.html +407 -383
- data/doc/rdoc/classes/LibXML/XML/Parser/Context.html +241 -219
- data/doc/rdoc/classes/LibXML/XML/Parser/ParseError.html +12 -0
- data/doc/rdoc/classes/LibXML/XML/Reader.html +421 -331
- data/doc/rdoc/classes/LibXML/XML/RelaxNG.html +237 -0
- data/doc/rdoc/classes/LibXML/XML/SaxParser.html +79 -60
- data/doc/rdoc/classes/LibXML/XML/Schema.html +109 -22
- data/doc/rdoc/classes/LibXML/XML/State.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/XInclude.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/XInclude/Error.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/XPath.html +4 -48
- data/doc/rdoc/classes/LibXML/XML/XPath/Context.html +6 -5
- data/doc/rdoc/classes/LibXML/XML/XPath/InvalidPath.html +61 -0
- data/doc/rdoc/classes/LibXML/XML/XPath/Object.html +12 -8
- data/doc/rdoc/classes/LibXML/XML/XPointer.html +14 -8
- data/doc/rdoc/classes/LibXML/XML/XPointer/Context.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/XPointer/Context/InvalidPath.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/XPointer/InvalidExpression.html +13 -0
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +38 -10
- data/doc/rdoc/files/LICENSE.html +1 -1
- data/doc/rdoc/files/README.html +57 -23
- data/doc/rdoc/files/VERSION.html +1 -1
- data/doc/rdoc/files/ext/libxml/cbg_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/libxml_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_attr_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_attributes_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_document_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_dtd_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_html_parser_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_input_cbg_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_node_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_node_set_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_ns_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_parser_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_parser_context_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_reader_c.html +1 -1
- data/doc/rdoc/{classes/XML.html → files/ext/libxml/ruby_xml_relaxng_c.html} +16 -35
- data/doc/rdoc/files/ext/libxml/ruby_xml_sax_parser_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_schema_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_state_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xinclude_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_context_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_object_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_context_c.html +1 -1
- data/doc/rdoc/files/lib/libxml/attr_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/attributes_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/document_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/node_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/node_set_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/parser_options_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/parser_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/properties_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/tree_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml_rb.html +2 -2
- data/doc/rdoc/files/lib/xml/libxml_rb.html +12 -2
- data/doc/rdoc/files/lib/xml_rb.html +134 -0
- data/doc/rdoc/fr_class_index.html +1 -1
- data/doc/rdoc/fr_file_index.html +2 -0
- data/doc/rdoc/fr_method_index.html +349 -344
- data/ext/libxml/libxml.c +2 -1
- data/ext/libxml/ruby_libxml.h +1 -0
- data/ext/libxml/ruby_xml_attr.c +8 -2
- data/ext/libxml/ruby_xml_attributes.c +5 -5
- data/ext/libxml/ruby_xml_document.c +41 -2
- data/ext/libxml/ruby_xml_dtd.c +169 -169
- data/ext/libxml/ruby_xml_html_parser.c +449 -449
- data/ext/libxml/ruby_xml_input_cbg.c +165 -165
- data/ext/libxml/ruby_xml_node.c +1 -1
- data/ext/libxml/ruby_xml_node_set.c +172 -172
- data/ext/libxml/ruby_xml_ns.c +145 -145
- data/ext/libxml/ruby_xml_parser.c +1398 -1398
- data/ext/libxml/ruby_xml_parser_context.c +697 -697
- data/ext/libxml/ruby_xml_reader.c +44 -0
- data/ext/libxml/ruby_xml_reader.h +14 -14
- data/ext/libxml/ruby_xml_relaxng.c +97 -0
- data/ext/libxml/ruby_xml_relaxng.h +15 -0
- data/ext/libxml/ruby_xml_sax_parser.c +486 -486
- data/ext/libxml/ruby_xml_schema.c +1 -1
- data/ext/libxml/ruby_xml_state.c +4 -4
- data/ext/libxml/ruby_xml_xinclude.c +21 -21
- data/ext/libxml/ruby_xml_xpath.c +89 -89
- data/ext/libxml/ruby_xml_xpath_context.c +283 -283
- data/ext/libxml/ruby_xml_xpath_object.c +5 -5
- data/ext/libxml/ruby_xml_xpointer.c +104 -104
- data/ext/libxml/ruby_xml_xpointer_context.c +22 -22
- data/ext/libxml/version.h +2 -2
- data/ext/libxml/version.h.rej +17 -0
- data/ext/mingw/Rakefile +41 -0
- data/lib/libxml.rb +15 -4
- data/lib/xml.rb +14 -0
- data/lib/xml/libxml.rb +4 -1
- data/test/etc_doc_to_s.rb +1 -1
- data/test/ets_copy_bug.rb +1 -1
- data/test/ets_copy_bug3.rb +1 -1
- data/test/ets_doc_file.rb +1 -1
- data/test/ets_doc_to_s.rb +1 -1
- data/test/ets_node_gc.rb +1 -1
- data/test/ets_tsr.rb +1 -1
- data/test/model/shiporder.rnc +28 -0
- data/test/model/shiporder.rng +86 -0
- data/test/{tc_xml_attributes.rb → tc_attributes.rb} +1 -10
- data/test/{tc_xml_document.rb → tc_document.rb} +1 -1
- data/test/{tc_xml_document_write.rb → tc_document_write.rb} +1 -1
- data/test/{tc_xml_dtd.rb → tc_dtd.rb} +1 -1
- data/test/{tc_xml_html_parser.rb → tc_html_parser.rb} +1 -1
- data/test/{tc_xml_node.rb → tc_node.rb} +1 -1
- data/test/{tc_xml_node_attr.rb → tc_node_attr.rb} +1 -1
- data/test/{tc_xml_node_cdata.rb → tc_node_cdata.rb} +24 -5
- data/test/{tc_xml_node_comment.rb → tc_node_comment.rb} +1 -1
- data/test/{tc_xml_node_copy.rb → tc_node_copy.rb} +1 -1
- data/test/{tc_xml_node_edit.rb → tc_node_edit.rb} +1 -1
- data/test/{tc_xml_node_set.rb → tc_node_set.rb} +1 -1
- data/test/{tc_xml_node_set2.rb → tc_node_set2.rb} +1 -1
- data/test/{tc_xml_node_text.rb → tc_node_text.rb} +1 -1
- data/test/{tc_xml_node_xlink.rb → tc_node_xlink.rb} +2 -2
- data/test/{tc_xml_parser.rb → tc_parser.rb} +1 -1
- data/test/{tc_xml_parser_context.rb → tc_parser_context.rb} +1 -1
- data/test/{tc_xml_properties.rb → tc_properties.rb} +1 -7
- data/test/{tc_xml_reader.rb → tc_reader.rb} +1 -1
- data/test/tc_relaxng.rb +39 -0
- data/test/{tc_xml_sax_parser.rb → tc_sax_parser.rb} +1 -1
- data/test/{tc_xml_schema.rb → tc_schema.rb} +1 -1
- data/test/{tc_xml_traversal.rb → tc_traversal.rb} +1 -1
- data/test/{tc_xml_xinclude.rb → tc_xinclude.rb} +1 -1
- data/test/{tc_xml_xpath.rb → tc_xpath.rb} +1 -1
- data/test/{tc_xml_xpath_context.rb → tc_xpath_context.rb} +1 -1
- data/test/{tc_xml_xpointer.rb → tc_xpointer.rb} +1 -1
- data/test/test_suite.rb +26 -25
- metadata +100 -100
- data/benchmark/depixelate.rb +0 -632
- data/benchmark/hamlet.xml +0 -9055
- data/benchmark/sock_entries.xml +0 -507
- data/benchmark/throughput.rb +0 -39
- data/benchmark/xml_benchmarks.rb +0 -227
- data/mingw/libiconv-2.dll +0 -0
- data/mingw/libxml2-2.dll +0 -0
- data/mingw/libxml_ruby.so +0 -0
- data/test/gc.log +0 -0
- data/vc/libxml_ruby.sln +0 -20
- 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
|
+
<p>
|
83
|
+
call-seq:
|
84
|
+
</p>
|
85
|
+
<pre>
|
86
|
+
XML::Node.new_text(content = nil) -> XML::Node
|
87
|
+
</pre>
|
88
|
+
<p>
|
89
|
+
Create a new text node, optionally setting the node‘s content.
|
90
|
+
</p>
|
91
|
+
|
92
|
+
</div>
|
81
93
|
|
82
94
|
|
83
95
|
</div>
|
@@ -96,15 +96,15 @@ Includes Enumerable.
|
|
96
96
|
<h3 class="section-bar">Methods</h3>
|
97
97
|
|
98
98
|
<div class="name-list">
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
99
|
+
<a href="#M000218">[]</a>
|
100
|
+
<a href="#M000210">each</a>
|
101
|
+
<a href="#M000211">empty?</a>
|
102
|
+
<a href="#M000212">first</a>
|
103
|
+
<a href="#M000213">length</a>
|
104
|
+
<a href="#M000214">size</a>
|
105
|
+
<a href="#M000215">to_a</a>
|
106
|
+
<a href="#M000216">xpath</a>
|
107
|
+
<a href="#M000217">xpath_ctxt</a>
|
108
108
|
</div>
|
109
109
|
</div>
|
110
110
|
|
@@ -134,11 +134,11 @@ Includes Enumerable.
|
|
134
134
|
<div id="methods">
|
135
135
|
<h3 class="section-bar">Public Instance methods</h3>
|
136
136
|
|
137
|
-
<div id="method-
|
138
|
-
<a name="
|
137
|
+
<div id="method-M000218" class="method-detail">
|
138
|
+
<a name="M000218"></a>
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
|
-
<a href="#
|
141
|
+
<a href="#M000218" class="method-signature">
|
142
142
|
<span class="method-name">[]</span><span class="method-args">(i, count = nil)</span>
|
143
143
|
</a>
|
144
144
|
</div>
|
@@ -148,8 +148,8 @@ Includes Enumerable.
|
|
148
148
|
inefficient, but maybe can find a way to cache the ary and dump on change?
|
149
149
|
</p>
|
150
150
|
<p><a class="source-toggle" href="#"
|
151
|
-
onclick="toggleCode('
|
152
|
-
<div class="method-source-code" id="
|
151
|
+
onclick="toggleCode('M000218-source');return false;">[Source]</a></p>
|
152
|
+
<div class="method-source-code" id="M000218-source">
|
153
153
|
<pre>
|
154
154
|
<span class="ruby-comment cmt"># File lib/libxml/node_set.rb, line 13</span>
|
155
155
|
13: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">i</span>, <span class="ruby-identifier">count</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -164,11 +164,11 @@ inefficient, but maybe can find a way to cache the ary and dump on change?
|
|
164
164
|
</div>
|
165
165
|
</div>
|
166
166
|
|
167
|
-
<div id="method-
|
168
|
-
<a name="
|
167
|
+
<div id="method-M000210" class="method-detail">
|
168
|
+
<a name="M000210"></a>
|
169
169
|
|
170
170
|
<div class="method-heading">
|
171
|
-
<a href="#
|
171
|
+
<a href="#M000210" class="method-signature">
|
172
172
|
<span class="method-name">nodeset.each { |node| ... } → self<br />
|
173
173
|
</span>
|
174
174
|
</a>
|
@@ -176,11 +176,12 @@ inefficient, but maybe can find a way to cache the ary and dump on change?
|
|
176
176
|
|
177
177
|
<div class="method-description">
|
178
178
|
<p>
|
179
|
-
Call the supplied block for each node in
|
179
|
+
Call the supplied block for <a href="Set.html#M000210">each</a> node in
|
180
|
+
this set.
|
180
181
|
</p>
|
181
182
|
<p><a class="source-toggle" href="#"
|
182
|
-
onclick="toggleCode('
|
183
|
-
<div class="method-source-code" id="
|
183
|
+
onclick="toggleCode('M000210-source');return false;">[Source]</a></p>
|
184
|
+
<div class="method-source-code" id="M000210-source">
|
184
185
|
<pre>
|
185
186
|
/*
|
186
187
|
* call-seq:
|
@@ -196,11 +197,11 @@ ruby_xml_node_set_each(VALUE self) {
|
|
196
197
|
</div>
|
197
198
|
</div>
|
198
199
|
|
199
|
-
<div id="method-
|
200
|
-
<a name="
|
200
|
+
<div id="method-M000211" class="method-detail">
|
201
|
+
<a name="M000211"></a>
|
201
202
|
|
202
203
|
<div class="method-heading">
|
203
|
-
<a href="#
|
204
|
+
<a href="#M000211" class="method-signature">
|
204
205
|
<span class="method-name">nodeset.empty? → (true|false)<br />
|
205
206
|
</span>
|
206
207
|
</a>
|
@@ -211,8 +212,8 @@ ruby_xml_node_set_each(VALUE self) {
|
|
211
212
|
Determine whether this nodeset is empty (contains no nodes).
|
212
213
|
</p>
|
213
214
|
<p><a class="source-toggle" href="#"
|
214
|
-
onclick="toggleCode('
|
215
|
-
<div class="method-source-code" id="
|
215
|
+
onclick="toggleCode('M000211-source');return false;">[Source]</a></p>
|
216
|
+
<div class="method-source-code" id="M000211-source">
|
216
217
|
<pre>
|
217
218
|
/*
|
218
219
|
* call-seq:
|
@@ -228,11 +229,11 @@ ruby_xml_node_set_empty_q(VALUE self) {
|
|
228
229
|
</div>
|
229
230
|
</div>
|
230
231
|
|
231
|
-
<div id="method-
|
232
|
-
<a name="
|
232
|
+
<div id="method-M000212" class="method-detail">
|
233
|
+
<a name="M000212"></a>
|
233
234
|
|
234
235
|
<div class="method-heading">
|
235
|
-
<a href="#
|
236
|
+
<a href="#M000212" class="method-signature">
|
236
237
|
<span class="method-name">nodeset.first → node<br />
|
237
238
|
</span>
|
238
239
|
</a>
|
@@ -240,11 +241,12 @@ ruby_xml_node_set_empty_q(VALUE self) {
|
|
240
241
|
|
241
242
|
<div class="method-description">
|
242
243
|
<p>
|
243
|
-
Returns the first node in this node set, or
|
244
|
+
Returns the <a href="Set.html#M000212">first</a> node in this node set, or
|
245
|
+
nil if none exist.
|
244
246
|
</p>
|
245
247
|
<p><a class="source-toggle" href="#"
|
246
|
-
onclick="toggleCode('
|
247
|
-
<div class="method-source-code" id="
|
248
|
+
onclick="toggleCode('M000212-source');return false;">[Source]</a></p>
|
249
|
+
<div class="method-source-code" id="M000212-source">
|
248
250
|
<pre>
|
249
251
|
/*
|
250
252
|
* call-seq:
|
@@ -260,11 +262,11 @@ ruby_xml_node_set_first(VALUE self) {
|
|
260
262
|
</div>
|
261
263
|
</div>
|
262
264
|
|
263
|
-
<div id="method-
|
264
|
-
<a name="
|
265
|
+
<div id="method-M000213" class="method-detail">
|
266
|
+
<a name="M000213"></a>
|
265
267
|
|
266
268
|
<div class="method-heading">
|
267
|
-
<a href="#
|
269
|
+
<a href="#M000213" class="method-signature">
|
268
270
|
<span class="method-name">nodeset.length → num<br />
|
269
271
|
</span>
|
270
272
|
</a>
|
@@ -272,11 +274,11 @@ ruby_xml_node_set_first(VALUE self) {
|
|
272
274
|
|
273
275
|
<div class="method-description">
|
274
276
|
<p>
|
275
|
-
Obtain the length of this nodeset.
|
277
|
+
Obtain the <a href="Set.html#M000213">length</a> of this nodeset.
|
276
278
|
</p>
|
277
279
|
<p><a class="source-toggle" href="#"
|
278
|
-
onclick="toggleCode('
|
279
|
-
<div class="method-source-code" id="
|
280
|
+
onclick="toggleCode('M000213-source');return false;">[Source]</a></p>
|
281
|
+
<div class="method-source-code" id="M000213-source">
|
280
282
|
<pre>
|
281
283
|
/*
|
282
284
|
* call-seq:
|
@@ -292,11 +294,11 @@ ruby_xml_node_set_length(VALUE self) {
|
|
292
294
|
</div>
|
293
295
|
</div>
|
294
296
|
|
295
|
-
<div id="method-
|
296
|
-
<a name="
|
297
|
+
<div id="method-M000214" class="method-detail">
|
298
|
+
<a name="M000214"></a>
|
297
299
|
|
298
300
|
<div class="method-heading">
|
299
|
-
<a href="#
|
301
|
+
<a href="#M000214" class="method-signature">
|
300
302
|
<span class="method-name">nodeset.length → num<br />
|
301
303
|
</span>
|
302
304
|
</a>
|
@@ -304,11 +306,11 @@ ruby_xml_node_set_length(VALUE self) {
|
|
304
306
|
|
305
307
|
<div class="method-description">
|
306
308
|
<p>
|
307
|
-
Obtain the length of this nodeset.
|
309
|
+
Obtain the <a href="Set.html#M000213">length</a> of this nodeset.
|
308
310
|
</p>
|
309
311
|
<p><a class="source-toggle" href="#"
|
310
|
-
onclick="toggleCode('
|
311
|
-
<div class="method-source-code" id="
|
312
|
+
onclick="toggleCode('M000214-source');return false;">[Source]</a></p>
|
313
|
+
<div class="method-source-code" id="M000214-source">
|
312
314
|
<pre>
|
313
315
|
/*
|
314
316
|
* call-seq:
|
@@ -324,11 +326,11 @@ ruby_xml_node_set_length(VALUE self) {
|
|
324
326
|
</div>
|
325
327
|
</div>
|
326
328
|
|
327
|
-
<div id="method-
|
328
|
-
<a name="
|
329
|
+
<div id="method-M000215" class="method-detail">
|
330
|
+
<a name="M000215"></a>
|
329
331
|
|
330
332
|
<div class="method-heading">
|
331
|
-
<a href="#
|
333
|
+
<a href="#M000215" class="method-signature">
|
332
334
|
<span class="method-name">nodeset.to_a → [node, ..., node]<br />
|
333
335
|
</span>
|
334
336
|
</a>
|
@@ -339,8 +341,8 @@ ruby_xml_node_set_length(VALUE self) {
|
|
339
341
|
Obtain an array of the nodes in this set.
|
340
342
|
</p>
|
341
343
|
<p><a class="source-toggle" href="#"
|
342
|
-
onclick="toggleCode('
|
343
|
-
<div class="method-source-code" id="
|
344
|
+
onclick="toggleCode('M000215-source');return false;">[Source]</a></p>
|
345
|
+
<div class="method-source-code" id="M000215-source">
|
344
346
|
<pre>
|
345
347
|
/*
|
346
348
|
* call-seq:
|
@@ -356,11 +358,11 @@ ruby_xml_node_set_to_a(VALUE self) {
|
|
356
358
|
</div>
|
357
359
|
</div>
|
358
360
|
|
359
|
-
<div id="method-
|
360
|
-
<a name="
|
361
|
+
<div id="method-M000216" class="method-detail">
|
362
|
+
<a name="M000216"></a>
|
361
363
|
|
362
364
|
<div class="method-heading">
|
363
|
-
<a href="#
|
365
|
+
<a href="#M000216" class="method-signature">
|
364
366
|
<span class="method-name">nodeset.xpath → xpath<br />
|
365
367
|
</span>
|
366
368
|
</a>
|
@@ -368,11 +370,12 @@ ruby_xml_node_set_to_a(VALUE self) {
|
|
368
370
|
|
369
371
|
<div class="method-description">
|
370
372
|
<p>
|
371
|
-
Obtain the xpath corresponding to this
|
373
|
+
Obtain the <a href="Set.html#M000216">xpath</a> corresponding to this
|
374
|
+
nodeset, if any.
|
372
375
|
</p>
|
373
376
|
<p><a class="source-toggle" href="#"
|
374
|
-
onclick="toggleCode('
|
375
|
-
<div class="method-source-code" id="
|
377
|
+
onclick="toggleCode('M000216-source');return false;">[Source]</a></p>
|
378
|
+
<div class="method-source-code" id="M000216-source">
|
376
379
|
<pre>
|
377
380
|
/*
|
378
381
|
* call-seq:
|
@@ -388,11 +391,11 @@ ruby_xml_node_set_xpath_get(VALUE self) {
|
|
388
391
|
</div>
|
389
392
|
</div>
|
390
393
|
|
391
|
-
<div id="method-
|
392
|
-
<a name="
|
394
|
+
<div id="method-M000217" class="method-detail">
|
395
|
+
<a name="M000217"></a>
|
393
396
|
|
394
397
|
<div class="method-heading">
|
395
|
-
<a href="#
|
398
|
+
<a href="#M000217" class="method-signature">
|
396
399
|
<span class="method-name">nodeset.xpath_ctxt → context<br />
|
397
400
|
</span>
|
398
401
|
</a>
|
@@ -400,11 +403,12 @@ ruby_xml_node_set_xpath_get(VALUE self) {
|
|
400
403
|
|
401
404
|
<div class="method-description">
|
402
405
|
<p>
|
403
|
-
Return the xpath context corresponding to
|
406
|
+
Return the <a href="Set.html#M000216">xpath</a> context corresponding to
|
407
|
+
this nodeset, if any.
|
404
408
|
</p>
|
405
409
|
<p><a class="source-toggle" href="#"
|
406
|
-
onclick="toggleCode('
|
407
|
-
<div class="method-source-code" id="
|
410
|
+
onclick="toggleCode('M000217-source');return false;">[Source]</a></p>
|
411
|
+
<div class="method-source-code" id="M000217-source">
|
408
412
|
<pre>
|
409
413
|
/*
|
410
414
|
* call-seq:
|
@@ -78,6 +78,18 @@
|
|
78
78
|
|
79
79
|
<div id="contextContent">
|
80
80
|
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
call-seq:
|
84
|
+
</p>
|
85
|
+
<pre>
|
86
|
+
XML::Node.new_text(content = nil) -> XML::Node
|
87
|
+
</pre>
|
88
|
+
<p>
|
89
|
+
Create a new text node, optionally setting the node‘s content.
|
90
|
+
</p>
|
91
|
+
|
92
|
+
</div>
|
81
93
|
|
82
94
|
|
83
95
|
</div>
|
@@ -78,6 +78,18 @@
|
|
78
78
|
|
79
79
|
<div id="contextContent">
|
80
80
|
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
call-seq:
|
84
|
+
</p>
|
85
|
+
<pre>
|
86
|
+
XML::Node.new_text(content = nil) -> XML::Node
|
87
|
+
</pre>
|
88
|
+
<p>
|
89
|
+
Create a new text node, optionally setting the node‘s content.
|
90
|
+
</p>
|
91
|
+
|
92
|
+
</div>
|
81
93
|
|
82
94
|
|
83
95
|
</div>
|
@@ -82,6 +82,19 @@
|
|
82
82
|
|
83
83
|
<div id="contextContent">
|
84
84
|
|
85
|
+
<div id="description">
|
86
|
+
<p>
|
87
|
+
call-seq:
|
88
|
+
</p>
|
89
|
+
<pre>
|
90
|
+
context.well_formed? -> (true|false)
|
91
|
+
</pre>
|
92
|
+
<p>
|
93
|
+
Determine whether this <a href="Parser.html#M000076">context</a> contains
|
94
|
+
well-formed <a href="../XML.html">XML</a>.
|
95
|
+
</p>
|
96
|
+
|
97
|
+
</div>
|
85
98
|
|
86
99
|
|
87
100
|
</div>
|
@@ -90,66 +103,66 @@
|
|
90
103
|
<h3 class="section-bar">Methods</h3>
|
91
104
|
|
92
105
|
<div class="name-list">
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
117
|
-
<a href="#
|
118
|
-
<a href="#
|
119
|
-
<a href="#
|
120
|
-
<a href="#
|
121
|
-
<a href="#
|
122
|
-
<a href="#
|
123
|
-
<a href="#
|
124
|
-
<a href="#
|
125
|
-
<a href="#
|
126
|
-
<a href="#
|
127
|
-
<a href="#
|
128
|
-
<a href="#
|
129
|
-
<a href="#
|
130
|
-
<a href="#
|
131
|
-
<a href="#
|
132
|
-
<a href="#
|
133
|
-
<a href="#
|
134
|
-
<a href="#
|
135
|
-
<a href="#
|
136
|
-
<a href="#
|
137
|
-
<a href="#
|
138
|
-
<a href="#
|
139
|
-
<a href="#
|
140
|
-
<a href="#
|
141
|
-
<a href="#
|
142
|
-
<a href="#
|
143
|
-
<a href="#
|
144
|
-
<a href="#
|
145
|
-
<a href="#
|
146
|
-
<a href="#
|
147
|
-
<a href="#
|
148
|
-
<a href="#
|
149
|
-
<a href="#
|
150
|
-
<a href="#
|
151
|
-
<a href="#
|
152
|
-
<a href="#
|
106
|
+
<a href="#M000039">catalog_dump</a>
|
107
|
+
<a href="#M000040">catalog_remove</a>
|
108
|
+
<a href="#M000041">check_lib_versions</a>
|
109
|
+
<a href="#M000076">context</a>
|
110
|
+
<a href="#M000042">debug_entities</a>
|
111
|
+
<a href="#M000043">debug_entities=</a>
|
112
|
+
<a href="#M000044">default_compression</a>
|
113
|
+
<a href="#M000045">default_compression=</a>
|
114
|
+
<a href="#M000046">default_keep_blanks</a>
|
115
|
+
<a href="#M000047">default_keep_blanks=</a>
|
116
|
+
<a href="#M000050">default_line_numbers</a>
|
117
|
+
<a href="#M000051">default_line_numbers=</a>
|
118
|
+
<a href="#M000048">default_load_external_dtd</a>
|
119
|
+
<a href="#M000049">default_load_external_dtd=</a>
|
120
|
+
<a href="#M000052">default_pedantic_parser</a>
|
121
|
+
<a href="#M000053">default_pedantic_parser=</a>
|
122
|
+
<a href="#M000054">default_substitute_entities</a>
|
123
|
+
<a href="#M000055">default_substitute_entities=</a>
|
124
|
+
<a href="#M000056">default_tree_indent_string</a>
|
125
|
+
<a href="#M000057">default_tree_indent_string=</a>
|
126
|
+
<a href="#M000058">default_validity_checking</a>
|
127
|
+
<a href="#M000059">default_validity_checking=</a>
|
128
|
+
<a href="#M000060">default_warnings</a>
|
129
|
+
<a href="#M000061">default_warnings=</a>
|
130
|
+
<a href="#M000021">enabled_automata?</a>
|
131
|
+
<a href="#M000022">enabled_c14n?</a>
|
132
|
+
<a href="#M000023">enabled_catalog?</a>
|
133
|
+
<a href="#M000024">enabled_debug?</a>
|
134
|
+
<a href="#M000025">enabled_docbook?</a>
|
135
|
+
<a href="#M000026">enabled_ftp?</a>
|
136
|
+
<a href="#M000028">enabled_html?</a>
|
137
|
+
<a href="#M000027">enabled_http?</a>
|
138
|
+
<a href="#M000029">enabled_iconv?</a>
|
139
|
+
<a href="#M000030">enabled_memory_debug?</a>
|
140
|
+
<a href="#M000031">enabled_regexp?</a>
|
141
|
+
<a href="#M000032">enabled_schemas?</a>
|
142
|
+
<a href="#M000033">enabled_thread?</a>
|
143
|
+
<a href="#M000034">enabled_unicode?</a>
|
144
|
+
<a href="#M000035">enabled_xinclude?</a>
|
145
|
+
<a href="#M000036">enabled_xpath?</a>
|
146
|
+
<a href="#M000037">enabled_xpointer?</a>
|
147
|
+
<a href="#M000038">enabled_zlib?</a>
|
148
|
+
<a href="#M000062">features</a>
|
149
|
+
<a href="#M000063">file</a>
|
150
|
+
<a href="#M000071">filename</a>
|
151
|
+
<a href="#M000072">filename=</a>
|
152
|
+
<a href="#M000064">indent_tree_output</a>
|
153
|
+
<a href="#M000065">indent_tree_output=</a>
|
154
|
+
<a href="#M000066">io</a>
|
155
|
+
<a href="#M000073">io</a>
|
156
|
+
<a href="#M000074">io=</a>
|
157
|
+
<a href="#M000067">memory_dump</a>
|
158
|
+
<a href="#M000068">memory_used</a>
|
159
|
+
<a href="#M000069">new</a>
|
160
|
+
<a href="#M000075">parse</a>
|
161
|
+
<a href="#M000079">register_error_handler</a>
|
162
|
+
<a href="#M000070">string</a>
|
163
|
+
<a href="#M000077">string</a>
|
164
|
+
<a href="#M000078">string=</a>
|
165
|
+
<a href="#M000080">xml_error_func_handler</a>
|
153
166
|
</div>
|
154
167
|
</div>
|
155
168
|
|
@@ -219,11 +232,11 @@ Constants
|
|
219
232
|
<div id="methods">
|
220
233
|
<h3 class="section-bar">Public Class methods</h3>
|
221
234
|
|
222
|
-
<div id="method-
|
223
|
-
<a name="
|
235
|
+
<div id="method-M000039" class="method-detail">
|
236
|
+
<a name="M000039"></a>
|
224
237
|
|
225
238
|
<div class="method-heading">
|
226
|
-
<a href="#
|
239
|
+
<a href="#M000039" class="method-signature">
|
227
240
|
<span class="method-name">XML::Parser.catalog_dump → true<br />
|
228
241
|
</span>
|
229
242
|
</a>
|
@@ -234,8 +247,8 @@ Constants
|
|
234
247
|
Dump the parser resource catalogs to stdout.
|
235
248
|
</p>
|
236
249
|
<p><a class="source-toggle" href="#"
|
237
|
-
onclick="toggleCode('
|
238
|
-
<div class="method-source-code" id="
|
250
|
+
onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
|
251
|
+
<div class="method-source-code" id="M000039-source">
|
239
252
|
<pre>
|
240
253
|
/*
|
241
254
|
* call-seq:
|
@@ -251,11 +264,11 @@ ruby_xml_parser_catalog_dump(VALUE self) {
|
|
251
264
|
</div>
|
252
265
|
</div>
|
253
266
|
|
254
|
-
<div id="method-
|
255
|
-
<a name="
|
267
|
+
<div id="method-M000040" class="method-detail">
|
268
|
+
<a name="M000040"></a>
|
256
269
|
|
257
270
|
<div class="method-heading">
|
258
|
-
<a href="#
|
271
|
+
<a href="#M000040" class="method-signature">
|
259
272
|
<span class="method-name">XML::Parser.catalog_remove(catalog) → true<br />
|
260
273
|
</span>
|
261
274
|
</a>
|
@@ -266,8 +279,8 @@ ruby_xml_parser_catalog_dump(VALUE self) {
|
|
266
279
|
Remove the specified resource catalog.
|
267
280
|
</p>
|
268
281
|
<p><a class="source-toggle" href="#"
|
269
|
-
onclick="toggleCode('
|
270
|
-
<div class="method-source-code" id="
|
282
|
+
onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
|
283
|
+
<div class="method-source-code" id="M000040-source">
|
271
284
|
<pre>
|
272
285
|
/*
|
273
286
|
* call-seq:
|
@@ -283,11 +296,11 @@ ruby_xml_parser_catalog_remove(VALUE self, VALUE cat) {
|
|
283
296
|
</div>
|
284
297
|
</div>
|
285
298
|
|
286
|
-
<div id="method-
|
287
|
-
<a name="
|
299
|
+
<div id="method-M000041" class="method-detail">
|
300
|
+
<a name="M000041"></a>
|
288
301
|
|
289
302
|
<div class="method-heading">
|
290
|
-
<a href="#
|
303
|
+
<a href="#M000041" class="method-signature">
|
291
304
|
<span class="method-name">XML::Parser.check_lib_versions → true <br />
|
292
305
|
</span>
|
293
306
|
</a>
|
@@ -299,8 +312,8 @@ Check LIBXML version matches version the bindings were compiled to. Throws
|
|
299
312
|
an exception if not.
|
300
313
|
</p>
|
301
314
|
<p><a class="source-toggle" href="#"
|
302
|
-
onclick="toggleCode('
|
303
|
-
<div class="method-source-code" id="
|
315
|
+
onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
|
316
|
+
<div class="method-source-code" id="M000041-source">
|
304
317
|
<pre>
|
305
318
|
/*
|
306
319
|
* call-seq:
|
@@ -317,11 +330,11 @@ ruby_xml_parser_check_lib_versions(VALUE class) {
|
|
317
330
|
</div>
|
318
331
|
</div>
|
319
332
|
|
320
|
-
<div id="method-
|
321
|
-
<a name="
|
333
|
+
<div id="method-M000042" class="method-detail">
|
334
|
+
<a name="M000042"></a>
|
322
335
|
|
323
336
|
<div class="method-heading">
|
324
|
-
<a href="#
|
337
|
+
<a href="#M000042" class="method-signature">
|
325
338
|
<span class="method-name">XML::Parser.debug_entities → (true|false)<br />
|
326
339
|
</span>
|
327
340
|
</a>
|
@@ -333,8 +346,8 @@ Determine whether included-entity debugging is enabled. (Requires Libxml to
|
|
333
346
|
be compiled with debugging support)
|
334
347
|
</p>
|
335
348
|
<p><a class="source-toggle" href="#"
|
336
|
-
onclick="toggleCode('
|
337
|
-
<div class="method-source-code" id="
|
349
|
+
onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
|
350
|
+
<div class="method-source-code" id="M000042-source">
|
338
351
|
<pre>
|
339
352
|
/*
|
340
353
|
* call-seq:
|
@@ -351,11 +364,11 @@ ruby_xml_parser_debug_entities_get(VALUE class) {
|
|
351
364
|
</div>
|
352
365
|
</div>
|
353
366
|
|
354
|
-
<div id="method-
|
355
|
-
<a name="
|
367
|
+
<div id="method-M000043" class="method-detail">
|
368
|
+
<a name="M000043"></a>
|
356
369
|
|
357
370
|
<div class="method-heading">
|
358
|
-
<a href="#
|
371
|
+
<a href="#M000043" class="method-signature">
|
359
372
|
<span class="method-name">XML::Parser.debug_entities = true|false<br />
|
360
373
|
</span>
|
361
374
|
</a>
|
@@ -367,8 +380,8 @@ Enable or disable included-entity debugging. (Requires Libxml to be
|
|
367
380
|
compiled with debugging support)
|
368
381
|
</p>
|
369
382
|
<p><a class="source-toggle" href="#"
|
370
|
-
onclick="toggleCode('
|
371
|
-
<div class="method-source-code" id="
|
383
|
+
onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
|
384
|
+
<div class="method-source-code" id="M000043-source">
|
372
385
|
<pre>
|
373
386
|
/*
|
374
387
|
* call-seq:
|
@@ -385,11 +398,11 @@ ruby_xml_parser_debug_entities_set(VALUE class, VALUE bool) {
|
|
385
398
|
</div>
|
386
399
|
</div>
|
387
400
|
|
388
|
-
<div id="method-
|
389
|
-
<a name="
|
401
|
+
<div id="method-M000044" class="method-detail">
|
402
|
+
<a name="M000044"></a>
|
390
403
|
|
391
404
|
<div class="method-heading">
|
392
|
-
<a href="#
|
405
|
+
<a href="#M000044" class="method-signature">
|
393
406
|
<span class="method-name">XML::Parser.default_compression → (true|false)<br />
|
394
407
|
</span>
|
395
408
|
</a>
|
@@ -401,8 +414,8 @@ Determine whether parsers use Zlib compression by default (requires libxml
|
|
401
414
|
to be compiled with Zlib support).
|
402
415
|
</p>
|
403
416
|
<p><a class="source-toggle" href="#"
|
404
|
-
onclick="toggleCode('
|
405
|
-
<div class="method-source-code" id="
|
417
|
+
onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
|
418
|
+
<div class="method-source-code" id="M000044-source">
|
406
419
|
<pre>
|
407
420
|
/*
|
408
421
|
* call-seq:
|
@@ -419,11 +432,11 @@ ruby_xml_parser_default_compression_get(VALUE class) {
|
|
419
432
|
</div>
|
420
433
|
</div>
|
421
434
|
|
422
|
-
<div id="method-
|
423
|
-
<a name="
|
435
|
+
<div id="method-M000045" class="method-detail">
|
436
|
+
<a name="M000045"></a>
|
424
437
|
|
425
438
|
<div class="method-heading">
|
426
|
-
<a href="#
|
439
|
+
<a href="#M000045" class="method-signature">
|
427
440
|
<span class="method-name">XML::Parser.default_compression = true|false<br />
|
428
441
|
</span>
|
429
442
|
</a>
|
@@ -435,8 +448,8 @@ Controls whether parsers use Zlib compression by default (requires libxml
|
|
435
448
|
to be compiled with Zlib support).
|
436
449
|
</p>
|
437
450
|
<p><a class="source-toggle" href="#"
|
438
|
-
onclick="toggleCode('
|
439
|
-
<div class="method-source-code" id="
|
451
|
+
onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
|
452
|
+
<div class="method-source-code" id="M000045-source">
|
440
453
|
<pre>
|
441
454
|
/*
|
442
455
|
* call-seq:
|
@@ -453,11 +466,11 @@ ruby_xml_parser_default_compression_set(VALUE class, VALUE num) {
|
|
453
466
|
</div>
|
454
467
|
</div>
|
455
468
|
|
456
|
-
<div id="method-
|
457
|
-
<a name="
|
469
|
+
<div id="method-M000046" class="method-detail">
|
470
|
+
<a name="M000046"></a>
|
458
471
|
|
459
472
|
<div class="method-heading">
|
460
|
-
<a href="#
|
473
|
+
<a href="#M000046" class="method-signature">
|
461
474
|
<span class="method-name">XML::Parser.default_keep_blanks → (true|false)<br />
|
462
475
|
</span>
|
463
476
|
</a>
|
@@ -468,8 +481,8 @@ ruby_xml_parser_default_compression_set(VALUE class, VALUE num) {
|
|
468
481
|
Determine whether parsers retain whitespace by default.
|
469
482
|
</p>
|
470
483
|
<p><a class="source-toggle" href="#"
|
471
|
-
onclick="toggleCode('
|
472
|
-
<div class="method-source-code" id="
|
484
|
+
onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
|
485
|
+
<div class="method-source-code" id="M000046-source">
|
473
486
|
<pre>
|
474
487
|
/*
|
475
488
|
* call-seq:
|
@@ -485,11 +498,11 @@ ruby_xml_parser_default_keep_blanks_get(VALUE class) {
|
|
485
498
|
</div>
|
486
499
|
</div>
|
487
500
|
|
488
|
-
<div id="method-
|
489
|
-
<a name="
|
501
|
+
<div id="method-M000047" class="method-detail">
|
502
|
+
<a name="M000047"></a>
|
490
503
|
|
491
504
|
<div class="method-heading">
|
492
|
-
<a href="#
|
505
|
+
<a href="#M000047" class="method-signature">
|
493
506
|
<span class="method-name">XML::Parser.default_keep_blanks = true|false<br />
|
494
507
|
</span>
|
495
508
|
</a>
|
@@ -500,8 +513,8 @@ ruby_xml_parser_default_keep_blanks_get(VALUE class) {
|
|
500
513
|
Controls whether parsers retain whitespace by default.
|
501
514
|
</p>
|
502
515
|
<p><a class="source-toggle" href="#"
|
503
|
-
onclick="toggleCode('
|
504
|
-
<div class="method-source-code" id="
|
516
|
+
onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
|
517
|
+
<div class="method-source-code" id="M000047-source">
|
505
518
|
<pre>
|
506
519
|
/*
|
507
520
|
* call-seq:
|
@@ -517,11 +530,11 @@ ruby_xml_parser_default_keep_blanks_set(VALUE class, VALUE bool) {
|
|
517
530
|
</div>
|
518
531
|
</div>
|
519
532
|
|
520
|
-
<div id="method-
|
521
|
-
<a name="
|
533
|
+
<div id="method-M000050" class="method-detail">
|
534
|
+
<a name="M000050"></a>
|
522
535
|
|
523
536
|
<div class="method-heading">
|
524
|
-
<a href="#
|
537
|
+
<a href="#M000050" class="method-signature">
|
525
538
|
<span class="method-name">XML::Parser.default_line_numbers → (true|false)<br />
|
526
539
|
</span>
|
527
540
|
</a>
|
@@ -532,8 +545,8 @@ ruby_xml_parser_default_keep_blanks_set(VALUE class, VALUE bool) {
|
|
532
545
|
Determine whether parsers retain line-numbers by default.
|
533
546
|
</p>
|
534
547
|
<p><a class="source-toggle" href="#"
|
535
|
-
onclick="toggleCode('
|
536
|
-
<div class="method-source-code" id="
|
548
|
+
onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
|
549
|
+
<div class="method-source-code" id="M000050-source">
|
537
550
|
<pre>
|
538
551
|
/*
|
539
552
|
* call-seq:
|
@@ -549,11 +562,11 @@ ruby_xml_parser_default_line_numbers_get(VALUE class) {
|
|
549
562
|
</div>
|
550
563
|
</div>
|
551
564
|
|
552
|
-
<div id="method-
|
553
|
-
<a name="
|
565
|
+
<div id="method-M000051" class="method-detail">
|
566
|
+
<a name="M000051"></a>
|
554
567
|
|
555
568
|
<div class="method-heading">
|
556
|
-
<a href="#
|
569
|
+
<a href="#M000051" class="method-signature">
|
557
570
|
<span class="method-name">XML::Parser.default_line_numbers = true|false<br />
|
558
571
|
</span>
|
559
572
|
</a>
|
@@ -564,8 +577,8 @@ ruby_xml_parser_default_line_numbers_get(VALUE class) {
|
|
564
577
|
Controls whether parsers retain line-numbers by default.
|
565
578
|
</p>
|
566
579
|
<p><a class="source-toggle" href="#"
|
567
|
-
onclick="toggleCode('
|
568
|
-
<div class="method-source-code" id="
|
580
|
+
onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
|
581
|
+
<div class="method-source-code" id="M000051-source">
|
569
582
|
<pre>
|
570
583
|
/*
|
571
584
|
* call-seq:
|
@@ -581,11 +594,11 @@ ruby_xml_parser_default_line_numbers_set(VALUE class, VALUE bool) {
|
|
581
594
|
</div>
|
582
595
|
</div>
|
583
596
|
|
584
|
-
<div id="method-
|
585
|
-
<a name="
|
597
|
+
<div id="method-M000048" class="method-detail">
|
598
|
+
<a name="M000048"></a>
|
586
599
|
|
587
600
|
<div class="method-heading">
|
588
|
-
<a href="#
|
601
|
+
<a href="#M000048" class="method-signature">
|
589
602
|
<span class="method-name">XML::Parser.default_load_external_dtd → (true|false)<br />
|
590
603
|
</span>
|
591
604
|
</a>
|
@@ -596,8 +609,8 @@ ruby_xml_parser_default_line_numbers_set(VALUE class, VALUE bool) {
|
|
596
609
|
Determine whether parsers load external DTDs by default.
|
597
610
|
</p>
|
598
611
|
<p><a class="source-toggle" href="#"
|
599
|
-
onclick="toggleCode('
|
600
|
-
<div class="method-source-code" id="
|
612
|
+
onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
|
613
|
+
<div class="method-source-code" id="M000048-source">
|
601
614
|
<pre>
|
602
615
|
/*
|
603
616
|
* call-seq:
|
@@ -613,11 +626,11 @@ ruby_xml_parser_default_load_external_dtd_get(VALUE class) {
|
|
613
626
|
</div>
|
614
627
|
</div>
|
615
628
|
|
616
|
-
<div id="method-
|
617
|
-
<a name="
|
629
|
+
<div id="method-M000049" class="method-detail">
|
630
|
+
<a name="M000049"></a>
|
618
631
|
|
619
632
|
<div class="method-heading">
|
620
|
-
<a href="#
|
633
|
+
<a href="#M000049" class="method-signature">
|
621
634
|
<span class="method-name">XML::Parser.default_load_external_dtd = true|false<br />
|
622
635
|
</span>
|
623
636
|
</a>
|
@@ -628,8 +641,8 @@ ruby_xml_parser_default_load_external_dtd_get(VALUE class) {
|
|
628
641
|
Controls whether parsers load external DTDs by default.
|
629
642
|
</p>
|
630
643
|
<p><a class="source-toggle" href="#"
|
631
|
-
onclick="toggleCode('
|
632
|
-
<div class="method-source-code" id="
|
644
|
+
onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
|
645
|
+
<div class="method-source-code" id="M000049-source">
|
633
646
|
<pre>
|
634
647
|
/*
|
635
648
|
* call-seq:
|
@@ -645,11 +658,11 @@ ruby_xml_parser_default_load_external_dtd_set(VALUE class, VALUE bool) {
|
|
645
658
|
</div>
|
646
659
|
</div>
|
647
660
|
|
648
|
-
<div id="method-
|
649
|
-
<a name="
|
661
|
+
<div id="method-M000052" class="method-detail">
|
662
|
+
<a name="M000052"></a>
|
650
663
|
|
651
664
|
<div class="method-heading">
|
652
|
-
<a href="#
|
665
|
+
<a href="#M000052" class="method-signature">
|
653
666
|
<span class="method-name">XML::Parser.default_pedantic_parser → (true|false)<br />
|
654
667
|
</span>
|
655
668
|
</a>
|
@@ -660,8 +673,8 @@ ruby_xml_parser_default_load_external_dtd_set(VALUE class, VALUE bool) {
|
|
660
673
|
Determine whether parsers are pedantic by default.
|
661
674
|
</p>
|
662
675
|
<p><a class="source-toggle" href="#"
|
663
|
-
onclick="toggleCode('
|
664
|
-
<div class="method-source-code" id="
|
676
|
+
onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
|
677
|
+
<div class="method-source-code" id="M000052-source">
|
665
678
|
<pre>
|
666
679
|
/*
|
667
680
|
* call-seq:
|
@@ -677,11 +690,11 @@ ruby_xml_parser_default_pedantic_parser_get(VALUE class) {
|
|
677
690
|
</div>
|
678
691
|
</div>
|
679
692
|
|
680
|
-
<div id="method-
|
681
|
-
<a name="
|
693
|
+
<div id="method-M000053" class="method-detail">
|
694
|
+
<a name="M000053"></a>
|
682
695
|
|
683
696
|
<div class="method-heading">
|
684
|
-
<a href="#
|
697
|
+
<a href="#M000053" class="method-signature">
|
685
698
|
<span class="method-name">XML::Parser.default_pedantic_parser = true|false<br />
|
686
699
|
</span>
|
687
700
|
</a>
|
@@ -692,8 +705,8 @@ ruby_xml_parser_default_pedantic_parser_get(VALUE class) {
|
|
692
705
|
Controls whether parsers are pedantic by default.
|
693
706
|
</p>
|
694
707
|
<p><a class="source-toggle" href="#"
|
695
|
-
onclick="toggleCode('
|
696
|
-
<div class="method-source-code" id="
|
708
|
+
onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
|
709
|
+
<div class="method-source-code" id="M000053-source">
|
697
710
|
<pre>
|
698
711
|
/*
|
699
712
|
* call-seq:
|
@@ -709,11 +722,11 @@ ruby_xml_parser_default_pedantic_parser_set(VALUE class, VALUE bool) {
|
|
709
722
|
</div>
|
710
723
|
</div>
|
711
724
|
|
712
|
-
<div id="method-
|
713
|
-
<a name="
|
725
|
+
<div id="method-M000054" class="method-detail">
|
726
|
+
<a name="M000054"></a>
|
714
727
|
|
715
728
|
<div class="method-heading">
|
716
|
-
<a href="#
|
729
|
+
<a href="#M000054" class="method-signature">
|
717
730
|
<span class="method-name">XML::Parser.default_substitute_entities → (true|false)<br />
|
718
731
|
</span>
|
719
732
|
</a>
|
@@ -725,8 +738,8 @@ Determine whether parsers perform inline entity substitution (for external
|
|
725
738
|
entities) by default.
|
726
739
|
</p>
|
727
740
|
<p><a class="source-toggle" href="#"
|
728
|
-
onclick="toggleCode('
|
729
|
-
<div class="method-source-code" id="
|
741
|
+
onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
|
742
|
+
<div class="method-source-code" id="M000054-source">
|
730
743
|
<pre>
|
731
744
|
/*
|
732
745
|
* call-seq:
|
@@ -743,11 +756,11 @@ ruby_xml_parser_default_substitute_entities_get(VALUE class) {
|
|
743
756
|
</div>
|
744
757
|
</div>
|
745
758
|
|
746
|
-
<div id="method-
|
747
|
-
<a name="
|
759
|
+
<div id="method-M000055" class="method-detail">
|
760
|
+
<a name="M000055"></a>
|
748
761
|
|
749
762
|
<div class="method-heading">
|
750
|
-
<a href="#
|
763
|
+
<a href="#M000055" class="method-signature">
|
751
764
|
<span class="method-name">XML::Parser.default_substitute_entities = true|false<br />
|
752
765
|
</span>
|
753
766
|
</a>
|
@@ -759,8 +772,8 @@ Controls whether parsers perform inline entity substitution (for external
|
|
759
772
|
entities) by default.
|
760
773
|
</p>
|
761
774
|
<p><a class="source-toggle" href="#"
|
762
|
-
onclick="toggleCode('
|
763
|
-
<div class="method-source-code" id="
|
775
|
+
onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
|
776
|
+
<div class="method-source-code" id="M000055-source">
|
764
777
|
<pre>
|
765
778
|
/*
|
766
779
|
* call-seq:
|
@@ -777,11 +790,11 @@ ruby_xml_parser_default_substitute_entities_set(VALUE class, VALUE bool) {
|
|
777
790
|
</div>
|
778
791
|
</div>
|
779
792
|
|
780
|
-
<div id="method-
|
781
|
-
<a name="
|
793
|
+
<div id="method-M000056" class="method-detail">
|
794
|
+
<a name="M000056"></a>
|
782
795
|
|
783
796
|
<div class="method-heading">
|
784
|
-
<a href="#
|
797
|
+
<a href="#M000056" class="method-signature">
|
785
798
|
<span class="method-name">XML::Parser.default_tree_indent_string → "string"<br />
|
786
799
|
</span>
|
787
800
|
</a>
|
@@ -789,12 +802,12 @@ ruby_xml_parser_default_substitute_entities_set(VALUE class, VALUE bool) {
|
|
789
802
|
|
790
803
|
<div class="method-description">
|
791
804
|
<p>
|
792
|
-
Obtain the default string used by parsers
|
793
|
-
href="../XML.html">XML</a> tree for output.
|
805
|
+
Obtain the default <a href="Parser.html#M000070">string</a> used by parsers
|
806
|
+
to indent the <a href="../XML.html">XML</a> tree for output.
|
794
807
|
</p>
|
795
808
|
<p><a class="source-toggle" href="#"
|
796
|
-
onclick="toggleCode('
|
797
|
-
<div class="method-source-code" id="
|
809
|
+
onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
|
810
|
+
<div class="method-source-code" id="M000056-source">
|
798
811
|
<pre>
|
799
812
|
/*
|
800
813
|
* call-seq:
|
@@ -811,11 +824,11 @@ ruby_xml_parser_default_tree_indent_string_get(VALUE class) {
|
|
811
824
|
</div>
|
812
825
|
</div>
|
813
826
|
|
814
|
-
<div id="method-
|
815
|
-
<a name="
|
827
|
+
<div id="method-M000057" class="method-detail">
|
828
|
+
<a name="M000057"></a>
|
816
829
|
|
817
830
|
<div class="method-heading">
|
818
|
-
<a href="#
|
831
|
+
<a href="#M000057" class="method-signature">
|
819
832
|
<span class="method-name">XML::Parser.default_tree_indent_string = "string"<br />
|
820
833
|
</span>
|
821
834
|
</a>
|
@@ -823,12 +836,12 @@ ruby_xml_parser_default_tree_indent_string_get(VALUE class) {
|
|
823
836
|
|
824
837
|
<div class="method-description">
|
825
838
|
<p>
|
826
|
-
Set the default string used by parsers to
|
827
|
-
href="../XML.html">XML</a> tree for output.
|
839
|
+
Set the default <a href="Parser.html#M000070">string</a> used by parsers to
|
840
|
+
indent the <a href="../XML.html">XML</a> tree for output.
|
828
841
|
</p>
|
829
842
|
<p><a class="source-toggle" href="#"
|
830
|
-
onclick="toggleCode('
|
831
|
-
<div class="method-source-code" id="
|
843
|
+
onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
|
844
|
+
<div class="method-source-code" id="M000057-source">
|
832
845
|
<pre>
|
833
846
|
/*
|
834
847
|
* call-seq:
|
@@ -845,11 +858,11 @@ ruby_xml_parser_default_tree_indent_string_set(VALUE class, VALUE string) {
|
|
845
858
|
</div>
|
846
859
|
</div>
|
847
860
|
|
848
|
-
<div id="method-
|
849
|
-
<a name="
|
861
|
+
<div id="method-M000058" class="method-detail">
|
862
|
+
<a name="M000058"></a>
|
850
863
|
|
851
864
|
<div class="method-heading">
|
852
|
-
<a href="#
|
865
|
+
<a href="#M000058" class="method-signature">
|
853
866
|
<span class="method-name">XML::Parser.default_validity_checking → (true|false)<br />
|
854
867
|
</span>
|
855
868
|
</a>
|
@@ -861,8 +874,8 @@ Determine whether parsers perform <a href="../XML.html">XML</a> validation
|
|
861
874
|
by default.
|
862
875
|
</p>
|
863
876
|
<p><a class="source-toggle" href="#"
|
864
|
-
onclick="toggleCode('
|
865
|
-
<div class="method-source-code" id="
|
877
|
+
onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
|
878
|
+
<div class="method-source-code" id="M000058-source">
|
866
879
|
<pre>
|
867
880
|
/*
|
868
881
|
* call-seq:
|
@@ -878,11 +891,11 @@ ruby_xml_parser_default_validity_checking_get(VALUE class) {
|
|
878
891
|
</div>
|
879
892
|
</div>
|
880
893
|
|
881
|
-
<div id="method-
|
882
|
-
<a name="
|
894
|
+
<div id="method-M000059" class="method-detail">
|
895
|
+
<a name="M000059"></a>
|
883
896
|
|
884
897
|
<div class="method-heading">
|
885
|
-
<a href="#
|
898
|
+
<a href="#M000059" class="method-signature">
|
886
899
|
<span class="method-name">XML::Parser.default_validity_checking = true|false<br />
|
887
900
|
</span>
|
888
901
|
</a>
|
@@ -894,8 +907,8 @@ Controls whether parsers perform <a href="../XML.html">XML</a> validation
|
|
894
907
|
by default.
|
895
908
|
</p>
|
896
909
|
<p><a class="source-toggle" href="#"
|
897
|
-
onclick="toggleCode('
|
898
|
-
<div class="method-source-code" id="
|
910
|
+
onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
|
911
|
+
<div class="method-source-code" id="M000059-source">
|
899
912
|
<pre>
|
900
913
|
/*
|
901
914
|
* call-seq:
|
@@ -911,11 +924,11 @@ ruby_xml_parser_default_validity_checking_set(VALUE class, VALUE bool) {
|
|
911
924
|
</div>
|
912
925
|
</div>
|
913
926
|
|
914
|
-
<div id="method-
|
915
|
-
<a name="
|
927
|
+
<div id="method-M000060" class="method-detail">
|
928
|
+
<a name="M000060"></a>
|
916
929
|
|
917
930
|
<div class="method-heading">
|
918
|
-
<a href="#
|
931
|
+
<a href="#M000060" class="method-signature">
|
919
932
|
<span class="method-name">XML::Parser.default_warnings → (true|false)<br />
|
920
933
|
</span>
|
921
934
|
</a>
|
@@ -926,8 +939,8 @@ ruby_xml_parser_default_validity_checking_set(VALUE class, VALUE bool) {
|
|
926
939
|
Determine whether parsers output warnings by default.
|
927
940
|
</p>
|
928
941
|
<p><a class="source-toggle" href="#"
|
929
|
-
onclick="toggleCode('
|
930
|
-
<div class="method-source-code" id="
|
942
|
+
onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
|
943
|
+
<div class="method-source-code" id="M000060-source">
|
931
944
|
<pre>
|
932
945
|
/*
|
933
946
|
* call-seq:
|
@@ -943,11 +956,11 @@ ruby_xml_parser_default_warnings_get(VALUE class) {
|
|
943
956
|
</div>
|
944
957
|
</div>
|
945
958
|
|
946
|
-
<div id="method-
|
947
|
-
<a name="
|
959
|
+
<div id="method-M000061" class="method-detail">
|
960
|
+
<a name="M000061"></a>
|
948
961
|
|
949
962
|
<div class="method-heading">
|
950
|
-
<a href="#
|
963
|
+
<a href="#M000061" class="method-signature">
|
951
964
|
<span class="method-name">XML::Parser.default_warnings = true|false<br />
|
952
965
|
</span>
|
953
966
|
</a>
|
@@ -958,8 +971,8 @@ ruby_xml_parser_default_warnings_get(VALUE class) {
|
|
958
971
|
Controls whether parsers output warnings by default.
|
959
972
|
</p>
|
960
973
|
<p><a class="source-toggle" href="#"
|
961
|
-
onclick="toggleCode('
|
962
|
-
<div class="method-source-code" id="
|
974
|
+
onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
|
975
|
+
<div class="method-source-code" id="M000061-source">
|
963
976
|
<pre>
|
964
977
|
/*
|
965
978
|
* call-seq:
|
@@ -975,11 +988,11 @@ ruby_xml_parser_default_warnings_set(VALUE class, VALUE bool) {
|
|
975
988
|
</div>
|
976
989
|
</div>
|
977
990
|
|
978
|
-
<div id="method-
|
979
|
-
<a name="
|
991
|
+
<div id="method-M000021" class="method-detail">
|
992
|
+
<a name="M000021"></a>
|
980
993
|
|
981
994
|
<div class="method-heading">
|
982
|
-
<a href="#
|
995
|
+
<a href="#M000021" class="method-signature">
|
983
996
|
<span class="method-name">XML::Parser.enabled_automata? → (true|false)<br />
|
984
997
|
</span>
|
985
998
|
</a>
|
@@ -990,8 +1003,8 @@ ruby_xml_parser_default_warnings_set(VALUE class, VALUE bool) {
|
|
990
1003
|
Determine whether libxml regexp automata support is enabled.
|
991
1004
|
</p>
|
992
1005
|
<p><a class="source-toggle" href="#"
|
993
|
-
onclick="toggleCode('
|
994
|
-
<div class="method-source-code" id="
|
1006
|
+
onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
|
1007
|
+
<div class="method-source-code" id="M000021-source">
|
995
1008
|
<pre>
|
996
1009
|
/*
|
997
1010
|
* call-seq:
|
@@ -1007,11 +1020,11 @@ ruby_xml_parser_enabled_automata_q(VALUE class) {
|
|
1007
1020
|
</div>
|
1008
1021
|
</div>
|
1009
1022
|
|
1010
|
-
<div id="method-
|
1011
|
-
<a name="
|
1023
|
+
<div id="method-M000022" class="method-detail">
|
1024
|
+
<a name="M000022"></a>
|
1012
1025
|
|
1013
1026
|
<div class="method-heading">
|
1014
|
-
<a href="#
|
1027
|
+
<a href="#M000022" class="method-signature">
|
1015
1028
|
<span class="method-name">XML::Parser.enabled_c14n? → (true|false)<br />
|
1016
1029
|
</span>
|
1017
1030
|
</a>
|
@@ -1025,8 +1038,8 @@ href="../XML.html">XML</a>’ support is enabled. See "Canonical
|
|
1025
1038
|
href="http://www.w3.org/TR/xml-c14n">www.w3.org/TR/xml-c14n</a>)
|
1026
1039
|
</p>
|
1027
1040
|
<p><a class="source-toggle" href="#"
|
1028
|
-
onclick="toggleCode('
|
1029
|
-
<div class="method-source-code" id="
|
1041
|
+
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
1042
|
+
<div class="method-source-code" id="M000022-source">
|
1030
1043
|
<pre>
|
1031
1044
|
/*
|
1032
1045
|
* call-seq:
|
@@ -1043,11 +1056,11 @@ ruby_xml_parser_enabled_c14n_q(VALUE class) {
|
|
1043
1056
|
</div>
|
1044
1057
|
</div>
|
1045
1058
|
|
1046
|
-
<div id="method-
|
1047
|
-
<a name="
|
1059
|
+
<div id="method-M000023" class="method-detail">
|
1060
|
+
<a name="M000023"></a>
|
1048
1061
|
|
1049
1062
|
<div class="method-heading">
|
1050
|
-
<a href="#
|
1063
|
+
<a href="#M000023" class="method-signature">
|
1051
1064
|
<span class="method-name">XML::Parser.enabled_catalog? → (true|false) <br />
|
1052
1065
|
</span>
|
1053
1066
|
</a>
|
@@ -1058,8 +1071,8 @@ ruby_xml_parser_enabled_c14n_q(VALUE class) {
|
|
1058
1071
|
Determine whether libxml resource catalog support is enabled.
|
1059
1072
|
</p>
|
1060
1073
|
<p><a class="source-toggle" href="#"
|
1061
|
-
onclick="toggleCode('
|
1062
|
-
<div class="method-source-code" id="
|
1074
|
+
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
1075
|
+
<div class="method-source-code" id="M000023-source">
|
1063
1076
|
<pre>
|
1064
1077
|
/*
|
1065
1078
|
* call-seq:
|
@@ -1075,11 +1088,11 @@ ruby_xml_parser_enabled_catalog_q(VALUE class) {
|
|
1075
1088
|
</div>
|
1076
1089
|
</div>
|
1077
1090
|
|
1078
|
-
<div id="method-
|
1079
|
-
<a name="
|
1091
|
+
<div id="method-M000024" class="method-detail">
|
1092
|
+
<a name="M000024"></a>
|
1080
1093
|
|
1081
1094
|
<div class="method-heading">
|
1082
|
-
<a href="#
|
1095
|
+
<a href="#M000024" class="method-signature">
|
1083
1096
|
<span class="method-name">XML::Parser.enabled_debug? → (true|false) <br />
|
1084
1097
|
</span>
|
1085
1098
|
</a>
|
@@ -1090,8 +1103,8 @@ ruby_xml_parser_enabled_catalog_q(VALUE class) {
|
|
1090
1103
|
Determine whether libxml debugging support is enabled.
|
1091
1104
|
</p>
|
1092
1105
|
<p><a class="source-toggle" href="#"
|
1093
|
-
onclick="toggleCode('
|
1094
|
-
<div class="method-source-code" id="
|
1106
|
+
onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
|
1107
|
+
<div class="method-source-code" id="M000024-source">
|
1095
1108
|
<pre>
|
1096
1109
|
/*
|
1097
1110
|
* call-seq:
|
@@ -1107,11 +1120,11 @@ ruby_xml_parser_enabled_debug_q(VALUE class) {
|
|
1107
1120
|
</div>
|
1108
1121
|
</div>
|
1109
1122
|
|
1110
|
-
<div id="method-
|
1111
|
-
<a name="
|
1123
|
+
<div id="method-M000025" class="method-detail">
|
1124
|
+
<a name="M000025"></a>
|
1112
1125
|
|
1113
1126
|
<div class="method-heading">
|
1114
|
-
<a href="#
|
1127
|
+
<a href="#M000025" class="method-signature">
|
1115
1128
|
<span class="method-name">XML::Parser.enabled_docbook? → (true|false) <br />
|
1116
1129
|
</span>
|
1117
1130
|
</a>
|
@@ -1122,8 +1135,8 @@ ruby_xml_parser_enabled_debug_q(VALUE class) {
|
|
1122
1135
|
Determine whether libxml docbook support is enabled.
|
1123
1136
|
</p>
|
1124
1137
|
<p><a class="source-toggle" href="#"
|
1125
|
-
onclick="toggleCode('
|
1126
|
-
<div class="method-source-code" id="
|
1138
|
+
onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
|
1139
|
+
<div class="method-source-code" id="M000025-source">
|
1127
1140
|
<pre>
|
1128
1141
|
/*
|
1129
1142
|
* call-seq:
|
@@ -1139,11 +1152,11 @@ ruby_xml_parser_enabled_docbook_q(VALUE class) {
|
|
1139
1152
|
</div>
|
1140
1153
|
</div>
|
1141
1154
|
|
1142
|
-
<div id="method-
|
1143
|
-
<a name="
|
1155
|
+
<div id="method-M000026" class="method-detail">
|
1156
|
+
<a name="M000026"></a>
|
1144
1157
|
|
1145
1158
|
<div class="method-heading">
|
1146
|
-
<a href="#
|
1159
|
+
<a href="#M000026" class="method-signature">
|
1147
1160
|
<span class="method-name">XML::Parser.enabled_ftp? → (true|false) <br />
|
1148
1161
|
</span>
|
1149
1162
|
</a>
|
@@ -1154,8 +1167,8 @@ ruby_xml_parser_enabled_docbook_q(VALUE class) {
|
|
1154
1167
|
Determine whether libxml ftp client support is enabled.
|
1155
1168
|
</p>
|
1156
1169
|
<p><a class="source-toggle" href="#"
|
1157
|
-
onclick="toggleCode('
|
1158
|
-
<div class="method-source-code" id="
|
1170
|
+
onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
|
1171
|
+
<div class="method-source-code" id="M000026-source">
|
1159
1172
|
<pre>
|
1160
1173
|
/*
|
1161
1174
|
* call-seq:
|
@@ -1171,11 +1184,11 @@ ruby_xml_parser_enabled_ftp_q(VALUE class) {
|
|
1171
1184
|
</div>
|
1172
1185
|
</div>
|
1173
1186
|
|
1174
|
-
<div id="method-
|
1175
|
-
<a name="
|
1187
|
+
<div id="method-M000028" class="method-detail">
|
1188
|
+
<a name="M000028"></a>
|
1176
1189
|
|
1177
1190
|
<div class="method-heading">
|
1178
|
-
<a href="#
|
1191
|
+
<a href="#M000028" class="method-signature">
|
1179
1192
|
<span class="method-name">XML::Parser.enabled_html? → (true|false) <br />
|
1180
1193
|
</span>
|
1181
1194
|
</a>
|
@@ -1186,8 +1199,8 @@ ruby_xml_parser_enabled_ftp_q(VALUE class) {
|
|
1186
1199
|
Determine whether libxml html support is enabled.
|
1187
1200
|
</p>
|
1188
1201
|
<p><a class="source-toggle" href="#"
|
1189
|
-
onclick="toggleCode('
|
1190
|
-
<div class="method-source-code" id="
|
1202
|
+
onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
|
1203
|
+
<div class="method-source-code" id="M000028-source">
|
1191
1204
|
<pre>
|
1192
1205
|
/*
|
1193
1206
|
* call-seq:
|
@@ -1203,11 +1216,11 @@ ruby_xml_parser_enabled_html_q(VALUE class) {
|
|
1203
1216
|
</div>
|
1204
1217
|
</div>
|
1205
1218
|
|
1206
|
-
<div id="method-
|
1207
|
-
<a name="
|
1219
|
+
<div id="method-M000027" class="method-detail">
|
1220
|
+
<a name="M000027"></a>
|
1208
1221
|
|
1209
1222
|
<div class="method-heading">
|
1210
|
-
<a href="#
|
1223
|
+
<a href="#M000027" class="method-signature">
|
1211
1224
|
<span class="method-name">XML::Parser.enabled_http? → (true|false) <br />
|
1212
1225
|
</span>
|
1213
1226
|
</a>
|
@@ -1218,8 +1231,8 @@ ruby_xml_parser_enabled_html_q(VALUE class) {
|
|
1218
1231
|
Determine whether libxml http client support is enabled.
|
1219
1232
|
</p>
|
1220
1233
|
<p><a class="source-toggle" href="#"
|
1221
|
-
onclick="toggleCode('
|
1222
|
-
<div class="method-source-code" id="
|
1234
|
+
onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
|
1235
|
+
<div class="method-source-code" id="M000027-source">
|
1223
1236
|
<pre>
|
1224
1237
|
/*
|
1225
1238
|
* call-seq:
|
@@ -1235,11 +1248,11 @@ ruby_xml_parser_enabled_http_q(VALUE class) {
|
|
1235
1248
|
</div>
|
1236
1249
|
</div>
|
1237
1250
|
|
1238
|
-
<div id="method-
|
1239
|
-
<a name="
|
1251
|
+
<div id="method-M000029" class="method-detail">
|
1252
|
+
<a name="M000029"></a>
|
1240
1253
|
|
1241
1254
|
<div class="method-heading">
|
1242
|
-
<a href="#
|
1255
|
+
<a href="#M000029" class="method-signature">
|
1243
1256
|
<span class="method-name">XML::Parser.enabled_iconv? → (true|false) <br />
|
1244
1257
|
</span>
|
1245
1258
|
</a>
|
@@ -1250,8 +1263,8 @@ ruby_xml_parser_enabled_http_q(VALUE class) {
|
|
1250
1263
|
Determine whether libxml iconv support is enabled.
|
1251
1264
|
</p>
|
1252
1265
|
<p><a class="source-toggle" href="#"
|
1253
|
-
onclick="toggleCode('
|
1254
|
-
<div class="method-source-code" id="
|
1266
|
+
onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
|
1267
|
+
<div class="method-source-code" id="M000029-source">
|
1255
1268
|
<pre>
|
1256
1269
|
/*
|
1257
1270
|
* call-seq:
|
@@ -1267,11 +1280,11 @@ ruby_xml_parser_enabled_iconv_q(VALUE class) {
|
|
1267
1280
|
</div>
|
1268
1281
|
</div>
|
1269
1282
|
|
1270
|
-
<div id="method-
|
1271
|
-
<a name="
|
1283
|
+
<div id="method-M000030" class="method-detail">
|
1284
|
+
<a name="M000030"></a>
|
1272
1285
|
|
1273
1286
|
<div class="method-heading">
|
1274
|
-
<a href="#
|
1287
|
+
<a href="#M000030" class="method-signature">
|
1275
1288
|
<span class="method-name">XML::Parser.enabled_memory_debug? → (true|false) <br />
|
1276
1289
|
</span>
|
1277
1290
|
</a>
|
@@ -1282,8 +1295,8 @@ ruby_xml_parser_enabled_iconv_q(VALUE class) {
|
|
1282
1295
|
Determine whether libxml memory location debugging support is enabled.
|
1283
1296
|
</p>
|
1284
1297
|
<p><a class="source-toggle" href="#"
|
1285
|
-
onclick="toggleCode('
|
1286
|
-
<div class="method-source-code" id="
|
1298
|
+
onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
|
1299
|
+
<div class="method-source-code" id="M000030-source">
|
1287
1300
|
<pre>
|
1288
1301
|
/*
|
1289
1302
|
* call-seq:
|
@@ -1300,11 +1313,11 @@ ruby_xml_parser_enabled_memory_debug_location_q(VALUE class) {
|
|
1300
1313
|
</div>
|
1301
1314
|
</div>
|
1302
1315
|
|
1303
|
-
<div id="method-
|
1304
|
-
<a name="
|
1316
|
+
<div id="method-M000031" class="method-detail">
|
1317
|
+
<a name="M000031"></a>
|
1305
1318
|
|
1306
1319
|
<div class="method-heading">
|
1307
|
-
<a href="#
|
1320
|
+
<a href="#M000031" class="method-signature">
|
1308
1321
|
<span class="method-name">XML::Parser.enabled_regexp? → (true|false) <br />
|
1309
1322
|
</span>
|
1310
1323
|
</a>
|
@@ -1315,8 +1328,8 @@ ruby_xml_parser_enabled_memory_debug_location_q(VALUE class) {
|
|
1315
1328
|
Determine whether libxml regular expression support is enabled.
|
1316
1329
|
</p>
|
1317
1330
|
<p><a class="source-toggle" href="#"
|
1318
|
-
onclick="toggleCode('
|
1319
|
-
<div class="method-source-code" id="
|
1331
|
+
onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
|
1332
|
+
<div class="method-source-code" id="M000031-source">
|
1320
1333
|
<pre>
|
1321
1334
|
/*
|
1322
1335
|
* call-seq:
|
@@ -1332,11 +1345,11 @@ ruby_xml_parser_enabled_regexp_q(VALUE class) {
|
|
1332
1345
|
</div>
|
1333
1346
|
</div>
|
1334
1347
|
|
1335
|
-
<div id="method-
|
1336
|
-
<a name="
|
1348
|
+
<div id="method-M000032" class="method-detail">
|
1349
|
+
<a name="M000032"></a>
|
1337
1350
|
|
1338
1351
|
<div class="method-heading">
|
1339
|
-
<a href="#
|
1352
|
+
<a href="#M000032" class="method-signature">
|
1340
1353
|
<span class="method-name">XML::Parser.enabled_schemas? → (true|false) <br />
|
1341
1354
|
</span>
|
1342
1355
|
</a>
|
@@ -1347,8 +1360,8 @@ ruby_xml_parser_enabled_regexp_q(VALUE class) {
|
|
1347
1360
|
Determine whether libxml schema support is enabled.
|
1348
1361
|
</p>
|
1349
1362
|
<p><a class="source-toggle" href="#"
|
1350
|
-
onclick="toggleCode('
|
1351
|
-
<div class="method-source-code" id="
|
1363
|
+
onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
|
1364
|
+
<div class="method-source-code" id="M000032-source">
|
1352
1365
|
<pre>
|
1353
1366
|
/*
|
1354
1367
|
* call-seq:
|
@@ -1364,11 +1377,11 @@ ruby_xml_parser_enabled_schemas_q(VALUE class) {
|
|
1364
1377
|
</div>
|
1365
1378
|
</div>
|
1366
1379
|
|
1367
|
-
<div id="method-
|
1368
|
-
<a name="
|
1380
|
+
<div id="method-M000033" class="method-detail">
|
1381
|
+
<a name="M000033"></a>
|
1369
1382
|
|
1370
1383
|
<div class="method-heading">
|
1371
|
-
<a href="#
|
1384
|
+
<a href="#M000033" class="method-signature">
|
1372
1385
|
<span class="method-name">XML::Parser.enabled_thread? → (true|false) <br />
|
1373
1386
|
</span>
|
1374
1387
|
</a>
|
@@ -1380,8 +1393,8 @@ Determine whether libxml thread-safe semantics support is enabled (I
|
|
1380
1393
|
think?).
|
1381
1394
|
</p>
|
1382
1395
|
<p><a class="source-toggle" href="#"
|
1383
|
-
onclick="toggleCode('
|
1384
|
-
<div class="method-source-code" id="
|
1396
|
+
onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
|
1397
|
+
<div class="method-source-code" id="M000033-source">
|
1385
1398
|
<pre>
|
1386
1399
|
/*
|
1387
1400
|
* call-seq:
|
@@ -1398,11 +1411,11 @@ ruby_xml_parser_enabled_thread_q(VALUE class) {
|
|
1398
1411
|
</div>
|
1399
1412
|
</div>
|
1400
1413
|
|
1401
|
-
<div id="method-
|
1402
|
-
<a name="
|
1414
|
+
<div id="method-M000034" class="method-detail">
|
1415
|
+
<a name="M000034"></a>
|
1403
1416
|
|
1404
1417
|
<div class="method-heading">
|
1405
|
-
<a href="#
|
1418
|
+
<a href="#M000034" class="method-signature">
|
1406
1419
|
<span class="method-name">XML::Parser.enabled_unicode? → (true|false) <br />
|
1407
1420
|
</span>
|
1408
1421
|
</a>
|
@@ -1413,8 +1426,8 @@ ruby_xml_parser_enabled_thread_q(VALUE class) {
|
|
1413
1426
|
Determine whether libxml unicode support is enabled.
|
1414
1427
|
</p>
|
1415
1428
|
<p><a class="source-toggle" href="#"
|
1416
|
-
onclick="toggleCode('
|
1417
|
-
<div class="method-source-code" id="
|
1429
|
+
onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
|
1430
|
+
<div class="method-source-code" id="M000034-source">
|
1418
1431
|
<pre>
|
1419
1432
|
/*
|
1420
1433
|
* call-seq:
|
@@ -1430,11 +1443,11 @@ ruby_xml_parser_enabled_unicode_q(VALUE class) {
|
|
1430
1443
|
</div>
|
1431
1444
|
</div>
|
1432
1445
|
|
1433
|
-
<div id="method-
|
1434
|
-
<a name="
|
1446
|
+
<div id="method-M000035" class="method-detail">
|
1447
|
+
<a name="M000035"></a>
|
1435
1448
|
|
1436
1449
|
<div class="method-heading">
|
1437
|
-
<a href="#
|
1450
|
+
<a href="#M000035" class="method-signature">
|
1438
1451
|
<span class="method-name">XML::Parser.enabled_xinclude? → (true|false) <br />
|
1439
1452
|
</span>
|
1440
1453
|
</a>
|
@@ -1445,8 +1458,8 @@ ruby_xml_parser_enabled_unicode_q(VALUE class) {
|
|
1445
1458
|
Determine whether libxml xinclude support is enabled.
|
1446
1459
|
</p>
|
1447
1460
|
<p><a class="source-toggle" href="#"
|
1448
|
-
onclick="toggleCode('
|
1449
|
-
<div class="method-source-code" id="
|
1461
|
+
onclick="toggleCode('M000035-source');return false;">[Source]</a></p>
|
1462
|
+
<div class="method-source-code" id="M000035-source">
|
1450
1463
|
<pre>
|
1451
1464
|
/*
|
1452
1465
|
* call-seq:
|
@@ -1462,11 +1475,11 @@ ruby_xml_parser_enabled_xinclude_q(VALUE class) {
|
|
1462
1475
|
</div>
|
1463
1476
|
</div>
|
1464
1477
|
|
1465
|
-
<div id="method-
|
1466
|
-
<a name="
|
1478
|
+
<div id="method-M000036" class="method-detail">
|
1479
|
+
<a name="M000036"></a>
|
1467
1480
|
|
1468
1481
|
<div class="method-heading">
|
1469
|
-
<a href="#
|
1482
|
+
<a href="#M000036" class="method-signature">
|
1470
1483
|
<span class="method-name">XML::Parser.enabled_xpath? → (true|false) <br />
|
1471
1484
|
</span>
|
1472
1485
|
</a>
|
@@ -1477,8 +1490,8 @@ ruby_xml_parser_enabled_xinclude_q(VALUE class) {
|
|
1477
1490
|
Determine whether libxml xpath support is enabled.
|
1478
1491
|
</p>
|
1479
1492
|
<p><a class="source-toggle" href="#"
|
1480
|
-
onclick="toggleCode('
|
1481
|
-
<div class="method-source-code" id="
|
1493
|
+
onclick="toggleCode('M000036-source');return false;">[Source]</a></p>
|
1494
|
+
<div class="method-source-code" id="M000036-source">
|
1482
1495
|
<pre>
|
1483
1496
|
/*
|
1484
1497
|
* call-seq:
|
@@ -1494,11 +1507,11 @@ ruby_xml_parser_enabled_xpath_q(VALUE class) {
|
|
1494
1507
|
</div>
|
1495
1508
|
</div>
|
1496
1509
|
|
1497
|
-
<div id="method-
|
1498
|
-
<a name="
|
1510
|
+
<div id="method-M000037" class="method-detail">
|
1511
|
+
<a name="M000037"></a>
|
1499
1512
|
|
1500
1513
|
<div class="method-heading">
|
1501
|
-
<a href="#
|
1514
|
+
<a href="#M000037" class="method-signature">
|
1502
1515
|
<span class="method-name">XML::Parser.enabled_xpointer? → (true|false) <br />
|
1503
1516
|
</span>
|
1504
1517
|
</a>
|
@@ -1509,8 +1522,8 @@ ruby_xml_parser_enabled_xpath_q(VALUE class) {
|
|
1509
1522
|
Determine whether libxml xpointer support is enabled.
|
1510
1523
|
</p>
|
1511
1524
|
<p><a class="source-toggle" href="#"
|
1512
|
-
onclick="toggleCode('
|
1513
|
-
<div class="method-source-code" id="
|
1525
|
+
onclick="toggleCode('M000037-source');return false;">[Source]</a></p>
|
1526
|
+
<div class="method-source-code" id="M000037-source">
|
1514
1527
|
<pre>
|
1515
1528
|
/*
|
1516
1529
|
* call-seq:
|
@@ -1526,11 +1539,11 @@ ruby_xml_parser_enabled_xpointer_q(VALUE class) {
|
|
1526
1539
|
</div>
|
1527
1540
|
</div>
|
1528
1541
|
|
1529
|
-
<div id="method-
|
1530
|
-
<a name="
|
1542
|
+
<div id="method-M000038" class="method-detail">
|
1543
|
+
<a name="M000038"></a>
|
1531
1544
|
|
1532
1545
|
<div class="method-heading">
|
1533
|
-
<a href="#
|
1546
|
+
<a href="#M000038" class="method-signature">
|
1534
1547
|
<span class="method-name">XML::Parser.enabled_zlib? → (true|false) <br />
|
1535
1548
|
</span>
|
1536
1549
|
</a>
|
@@ -1541,8 +1554,8 @@ ruby_xml_parser_enabled_xpointer_q(VALUE class) {
|
|
1541
1554
|
Determine whether libxml zlib support is enabled.
|
1542
1555
|
</p>
|
1543
1556
|
<p><a class="source-toggle" href="#"
|
1544
|
-
onclick="toggleCode('
|
1545
|
-
<div class="method-source-code" id="
|
1557
|
+
onclick="toggleCode('M000038-source');return false;">[Source]</a></p>
|
1558
|
+
<div class="method-source-code" id="M000038-source">
|
1546
1559
|
<pre>
|
1547
1560
|
/*
|
1548
1561
|
* call-seq:
|
@@ -1558,11 +1571,11 @@ ruby_xml_parser_enabled_zlib_q(VALUE class) {
|
|
1558
1571
|
</div>
|
1559
1572
|
</div>
|
1560
1573
|
|
1561
|
-
<div id="method-
|
1562
|
-
<a name="
|
1574
|
+
<div id="method-M000062" class="method-detail">
|
1575
|
+
<a name="M000062"></a>
|
1563
1576
|
|
1564
1577
|
<div class="method-heading">
|
1565
|
-
<a href="#
|
1578
|
+
<a href="#M000062" class="method-signature">
|
1566
1579
|
<span class="method-name">XML::Parser.features → ["feature", ..., "feature"]<br />
|
1567
1580
|
</span>
|
1568
1581
|
</a>
|
@@ -1570,12 +1583,13 @@ ruby_xml_parser_enabled_zlib_q(VALUE class) {
|
|
1570
1583
|
|
1571
1584
|
<div class="method-description">
|
1572
1585
|
<p>
|
1573
|
-
Obtains an array of strings representing
|
1574
|
-
by the
|
1586
|
+
Obtains an array of strings representing <a
|
1587
|
+
href="Parser.html#M000062">features</a> supported (and enabled) by the
|
1588
|
+
installed libxml.
|
1575
1589
|
</p>
|
1576
1590
|
<p><a class="source-toggle" href="#"
|
1577
|
-
onclick="toggleCode('
|
1578
|
-
<div class="method-source-code" id="
|
1591
|
+
onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
|
1592
|
+
<div class="method-source-code" id="M000062-source">
|
1579
1593
|
<pre>
|
1580
1594
|
/*
|
1581
1595
|
* call-seq:
|
@@ -1592,11 +1606,11 @@ ruby_xml_parser_features(VALUE class) {
|
|
1592
1606
|
</div>
|
1593
1607
|
</div>
|
1594
1608
|
|
1595
|
-
<div id="method-
|
1596
|
-
<a name="
|
1609
|
+
<div id="method-M000063" class="method-detail">
|
1610
|
+
<a name="M000063"></a>
|
1597
1611
|
|
1598
1612
|
<div class="method-heading">
|
1599
|
-
<a href="#
|
1613
|
+
<a href="#M000063" class="method-signature">
|
1600
1614
|
<span class="method-name">XML::Parser.file → parser<br />
|
1601
1615
|
</span>
|
1602
1616
|
</a>
|
@@ -1604,11 +1618,12 @@ ruby_xml_parser_features(VALUE class) {
|
|
1604
1618
|
|
1605
1619
|
<div class="method-description">
|
1606
1620
|
<p>
|
1607
|
-
Create a new parser instance that will
|
1621
|
+
Create a <a href="Parser.html#M000069">new</a> parser instance that will
|
1622
|
+
read the specified <a href="Parser.html#M000063">file</a>.
|
1608
1623
|
</p>
|
1609
1624
|
<p><a class="source-toggle" href="#"
|
1610
|
-
onclick="toggleCode('
|
1611
|
-
<div class="method-source-code" id="
|
1625
|
+
onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
|
1626
|
+
<div class="method-source-code" id="M000063-source">
|
1612
1627
|
<pre>
|
1613
1628
|
/*
|
1614
1629
|
* call-seq:
|
@@ -1624,11 +1639,11 @@ ruby_xml_parser_new_file(VALUE class, VALUE filename) {
|
|
1624
1639
|
</div>
|
1625
1640
|
</div>
|
1626
1641
|
|
1627
|
-
<div id="method-
|
1628
|
-
<a name="
|
1642
|
+
<div id="method-M000064" class="method-detail">
|
1643
|
+
<a name="M000064"></a>
|
1629
1644
|
|
1630
1645
|
<div class="method-heading">
|
1631
|
-
<a href="#
|
1646
|
+
<a href="#M000064" class="method-signature">
|
1632
1647
|
<span class="method-name">XML::Parser.indent_tree_output → (true|false)<br />
|
1633
1648
|
</span>
|
1634
1649
|
</a>
|
@@ -1637,11 +1652,12 @@ ruby_xml_parser_new_file(VALUE class, VALUE filename) {
|
|
1637
1652
|
<div class="method-description">
|
1638
1653
|
<p>
|
1639
1654
|
Determines whether <a href="../XML.html">XML</a> output will be indented
|
1640
|
-
(using the string supplied to
|
1655
|
+
(using the <a href="Parser.html#M000070">string</a> supplied to
|
1656
|
+
<tt>default_indent_tree_string</tt>)
|
1641
1657
|
</p>
|
1642
1658
|
<p><a class="source-toggle" href="#"
|
1643
|
-
onclick="toggleCode('
|
1644
|
-
<div class="method-source-code" id="
|
1659
|
+
onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
|
1660
|
+
<div class="method-source-code" id="M000064-source">
|
1645
1661
|
<pre>
|
1646
1662
|
/*
|
1647
1663
|
* call-seq:
|
@@ -1658,11 +1674,11 @@ ruby_xml_parser_indent_tree_output_get(VALUE class) {
|
|
1658
1674
|
</div>
|
1659
1675
|
</div>
|
1660
1676
|
|
1661
|
-
<div id="method-
|
1662
|
-
<a name="
|
1677
|
+
<div id="method-M000065" class="method-detail">
|
1678
|
+
<a name="M000065"></a>
|
1663
1679
|
|
1664
1680
|
<div class="method-heading">
|
1665
|
-
<a href="#
|
1681
|
+
<a href="#M000065" class="method-signature">
|
1666
1682
|
<span class="method-name">XML::Parser.indent_tree_output = true|false<br />
|
1667
1683
|
</span>
|
1668
1684
|
</a>
|
@@ -1671,11 +1687,12 @@ ruby_xml_parser_indent_tree_output_get(VALUE class) {
|
|
1671
1687
|
<div class="method-description">
|
1672
1688
|
<p>
|
1673
1689
|
Controls whether <a href="../XML.html">XML</a> output will be indented
|
1674
|
-
(using the string supplied to
|
1690
|
+
(using the <a href="Parser.html#M000070">string</a> supplied to
|
1691
|
+
<tt>default_indent_tree_string</tt>)
|
1675
1692
|
</p>
|
1676
1693
|
<p><a class="source-toggle" href="#"
|
1677
|
-
onclick="toggleCode('
|
1678
|
-
<div class="method-source-code" id="
|
1694
|
+
onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
|
1695
|
+
<div class="method-source-code" id="M000065-source">
|
1679
1696
|
<pre>
|
1680
1697
|
/*
|
1681
1698
|
* call-seq:
|
@@ -1692,11 +1709,11 @@ ruby_xml_parser_indent_tree_output_set(VALUE class, VALUE bool) {
|
|
1692
1709
|
</div>
|
1693
1710
|
</div>
|
1694
1711
|
|
1695
|
-
<div id="method-
|
1696
|
-
<a name="
|
1712
|
+
<div id="method-M000066" class="method-detail">
|
1713
|
+
<a name="M000066"></a>
|
1697
1714
|
|
1698
1715
|
<div class="method-heading">
|
1699
|
-
<a href="#
|
1716
|
+
<a href="#M000066" class="method-signature">
|
1700
1717
|
<span class="method-name">XML::Parser.io → parser<br />
|
1701
1718
|
</span>
|
1702
1719
|
</a>
|
@@ -1704,11 +1721,12 @@ ruby_xml_parser_indent_tree_output_set(VALUE class, VALUE bool) {
|
|
1704
1721
|
|
1705
1722
|
<div class="method-description">
|
1706
1723
|
<p>
|
1707
|
-
Create a new parser instance that will
|
1724
|
+
Create a <a href="Parser.html#M000069">new</a> parser instance that will
|
1725
|
+
read from the specified IO object.
|
1708
1726
|
</p>
|
1709
1727
|
<p><a class="source-toggle" href="#"
|
1710
|
-
onclick="toggleCode('
|
1711
|
-
<div class="method-source-code" id="
|
1728
|
+
onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
|
1729
|
+
<div class="method-source-code" id="M000066-source">
|
1712
1730
|
<pre>
|
1713
1731
|
/*
|
1714
1732
|
* call-seq:
|
@@ -1725,11 +1743,11 @@ ruby_xml_parser_new_io(VALUE class, VALUE io) {
|
|
1725
1743
|
</div>
|
1726
1744
|
</div>
|
1727
1745
|
|
1728
|
-
<div id="method-
|
1729
|
-
<a name="
|
1746
|
+
<div id="method-M000067" class="method-detail">
|
1747
|
+
<a name="M000067"></a>
|
1730
1748
|
|
1731
1749
|
<div class="method-heading">
|
1732
|
-
<a href="#
|
1750
|
+
<a href="#M000067" class="method-signature">
|
1733
1751
|
<span class="method-name">XML::Parser.memory_dump → (true|false)<br />
|
1734
1752
|
</span>
|
1735
1753
|
</a>
|
@@ -1740,8 +1758,8 @@ ruby_xml_parser_new_io(VALUE class, VALUE io) {
|
|
1740
1758
|
Perform a parser memory dump (requires memory debugging support in libxml).
|
1741
1759
|
</p>
|
1742
1760
|
<p><a class="source-toggle" href="#"
|
1743
|
-
onclick="toggleCode('
|
1744
|
-
<div class="method-source-code" id="
|
1761
|
+
onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
|
1762
|
+
<div class="method-source-code" id="M000067-source">
|
1745
1763
|
<pre>
|
1746
1764
|
/*
|
1747
1765
|
* call-seq:
|
@@ -1758,11 +1776,11 @@ ruby_xml_parser_memory_dump(VALUE self) {
|
|
1758
1776
|
</div>
|
1759
1777
|
</div>
|
1760
1778
|
|
1761
|
-
<div id="method-
|
1762
|
-
<a name="
|
1779
|
+
<div id="method-M000068" class="method-detail">
|
1780
|
+
<a name="M000068"></a>
|
1763
1781
|
|
1764
1782
|
<div class="method-heading">
|
1765
|
-
<a href="#
|
1783
|
+
<a href="#M000068" class="method-signature">
|
1766
1784
|
<span class="method-name">XML::Parser.memory_used → num_bytes<br />
|
1767
1785
|
</span>
|
1768
1786
|
</a>
|
@@ -1773,8 +1791,8 @@ ruby_xml_parser_memory_dump(VALUE self) {
|
|
1773
1791
|
Perform a parser memory dump (requires memory debugging support in libxml).
|
1774
1792
|
</p>
|
1775
1793
|
<p><a class="source-toggle" href="#"
|
1776
|
-
onclick="toggleCode('
|
1777
|
-
<div class="method-source-code" id="
|
1794
|
+
onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
|
1795
|
+
<div class="method-source-code" id="M000068-source">
|
1778
1796
|
<pre>
|
1779
1797
|
/*
|
1780
1798
|
* call-seq:
|
@@ -1791,11 +1809,11 @@ ruby_xml_parser_memory_used(VALUE self) {
|
|
1791
1809
|
</div>
|
1792
1810
|
</div>
|
1793
1811
|
|
1794
|
-
<div id="method-
|
1795
|
-
<a name="
|
1812
|
+
<div id="method-M000069" class="method-detail">
|
1813
|
+
<a name="M000069"></a>
|
1796
1814
|
|
1797
1815
|
<div class="method-heading">
|
1798
|
-
<a href="#
|
1816
|
+
<a href="#M000069" class="method-signature">
|
1799
1817
|
<span class="method-name">XML::Parser.new → parser<br />
|
1800
1818
|
</span>
|
1801
1819
|
</a>
|
@@ -1803,11 +1821,12 @@ ruby_xml_parser_memory_used(VALUE self) {
|
|
1803
1821
|
|
1804
1822
|
<div class="method-description">
|
1805
1823
|
<p>
|
1806
|
-
Create a new parser instance with no
|
1824
|
+
Create a <a href="Parser.html#M000069">new</a> parser instance with no
|
1825
|
+
pre-determined source.
|
1807
1826
|
</p>
|
1808
1827
|
<p><a class="source-toggle" href="#"
|
1809
|
-
onclick="toggleCode('
|
1810
|
-
<div class="method-source-code" id="
|
1828
|
+
onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
|
1829
|
+
<div class="method-source-code" id="M000069-source">
|
1811
1830
|
<pre>
|
1812
1831
|
/*
|
1813
1832
|
* call-seq:
|
@@ -1823,11 +1842,11 @@ ruby_xml_parser_new(VALUE class) {
|
|
1823
1842
|
</div>
|
1824
1843
|
</div>
|
1825
1844
|
|
1826
|
-
<div id="method-
|
1827
|
-
<a name="
|
1845
|
+
<div id="method-M000079" class="method-detail">
|
1846
|
+
<a name="M000079"></a>
|
1828
1847
|
|
1829
1848
|
<div class="method-heading">
|
1830
|
-
<a href="#
|
1849
|
+
<a href="#M000079" class="method-signature">
|
1831
1850
|
<span class="method-name">register_error_handler</span><span class="method-args">(value = nil, &block)</span>
|
1832
1851
|
</a>
|
1833
1852
|
</div>
|
@@ -1837,16 +1856,17 @@ ruby_xml_parser_new(VALUE class) {
|
|
1837
1856
|
Register the attached block as the handler for parser errors.
|
1838
1857
|
</p>
|
1839
1858
|
<p>
|
1840
|
-
<a href="Parser.html#
|
1859
|
+
<a href="Parser.html#M000079">Parser.register_error_handler</a> {|msg|
|
1841
1860
|
<do stuff>} <a
|
1842
|
-
href="Parser.html#
|
1861
|
+
href="Parser.html#M000079">Parser.register_error_handler</a>(lambda {|msg|
|
1843
1862
|
<do stuff>}) <a
|
1844
|
-
href="Parser.html#
|
1863
|
+
href="Parser.html#M000079">Parser.register_error_handler(nil)</a>
|
1845
1864
|
</p>
|
1846
1865
|
<p>
|
1847
|
-
A message describing parse errors is
|
1848
|
-
error messages to the handler in parts,
|
1849
|
-
results in six calls to this proc, with
|
1866
|
+
A message describing <a href="Parser.html#M000075">parse</a> errors is
|
1867
|
+
passed to the block. Libxml passes error messages to the handler in parts,
|
1868
|
+
one per call. A typical error results in six calls to this proc, with
|
1869
|
+
arguments:
|
1850
1870
|
</p>
|
1851
1871
|
<pre>
|
1852
1872
|
"Entity: line 1: ",
|
@@ -1860,8 +1880,8 @@ results in six calls to this proc, with arguments:
|
|
1860
1880
|
Note that the error handler is shared by all threads.
|
1861
1881
|
</p>
|
1862
1882
|
<p><a class="source-toggle" href="#"
|
1863
|
-
onclick="toggleCode('
|
1864
|
-
<div class="method-source-code" id="
|
1883
|
+
onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
|
1884
|
+
<div class="method-source-code" id="M000079-source">
|
1865
1885
|
<pre>
|
1866
1886
|
<span class="ruby-comment cmt"># File lib/libxml/parser.rb, line 25</span>
|
1867
1887
|
25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_error_handler</span>(<span class="ruby-identifier">value</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
@@ -1875,11 +1895,11 @@ Note that the error handler is shared by all threads.
|
|
1875
1895
|
</div>
|
1876
1896
|
</div>
|
1877
1897
|
|
1878
|
-
<div id="method-
|
1879
|
-
<a name="
|
1898
|
+
<div id="method-M000070" class="method-detail">
|
1899
|
+
<a name="M000070"></a>
|
1880
1900
|
|
1881
1901
|
<div class="method-heading">
|
1882
|
-
<a href="#
|
1902
|
+
<a href="#M000070" class="method-signature">
|
1883
1903
|
<span class="method-name">XML::Parser.string → parser<br />
|
1884
1904
|
</span>
|
1885
1905
|
</a>
|
@@ -1887,11 +1907,13 @@ Note that the error handler is shared by all threads.
|
|
1887
1907
|
|
1888
1908
|
<div class="method-description">
|
1889
1909
|
<p>
|
1890
|
-
Create a new parser instance that will
|
1910
|
+
Create a <a href="Parser.html#M000069">new</a> parser instance that will <a
|
1911
|
+
href="Parser.html#M000075">parse</a> the given <a
|
1912
|
+
href="Parser.html#M000070">string</a>.
|
1891
1913
|
</p>
|
1892
1914
|
<p><a class="source-toggle" href="#"
|
1893
|
-
onclick="toggleCode('
|
1894
|
-
<div class="method-source-code" id="
|
1915
|
+
onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
|
1916
|
+
<div class="method-source-code" id="M000070-source">
|
1895
1917
|
<pre>
|
1896
1918
|
/*
|
1897
1919
|
* call-seq:
|
@@ -1908,19 +1930,19 @@ ruby_xml_parser_new_string(VALUE class, VALUE str) {
|
|
1908
1930
|
</div>
|
1909
1931
|
</div>
|
1910
1932
|
|
1911
|
-
<div id="method-
|
1912
|
-
<a name="
|
1933
|
+
<div id="method-M000080" class="method-detail">
|
1934
|
+
<a name="M000080"></a>
|
1913
1935
|
|
1914
1936
|
<div class="method-heading">
|
1915
|
-
<a href="#
|
1937
|
+
<a href="#M000080" class="method-signature">
|
1916
1938
|
<span class="method-name">xml_error_func_handler</span><span class="method-args">(msg)</span>
|
1917
1939
|
</a>
|
1918
1940
|
</div>
|
1919
1941
|
|
1920
1942
|
<div class="method-description">
|
1921
1943
|
<p><a class="source-toggle" href="#"
|
1922
|
-
onclick="toggleCode('
|
1923
|
-
<div class="method-source-code" id="
|
1944
|
+
onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
|
1945
|
+
<div class="method-source-code" id="M000080-source">
|
1924
1946
|
<pre>
|
1925
1947
|
<span class="ruby-comment cmt"># File lib/libxml/parser.rb, line 32</span>
|
1926
1948
|
32: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">xml_error_func_handler</span>(<span class="ruby-identifier">msg</span>)
|
@@ -1937,11 +1959,11 @@ ruby_xml_parser_new_string(VALUE class, VALUE str) {
|
|
1937
1959
|
|
1938
1960
|
<h3 class="section-bar">Public Instance methods</h3>
|
1939
1961
|
|
1940
|
-
<div id="method-
|
1941
|
-
<a name="
|
1962
|
+
<div id="method-M000076" class="method-detail">
|
1963
|
+
<a name="M000076"></a>
|
1942
1964
|
|
1943
1965
|
<div class="method-heading">
|
1944
|
-
<a href="#
|
1966
|
+
<a href="#M000076" class="method-signature">
|
1945
1967
|
<span class="method-name">parser.context → context<br />
|
1946
1968
|
</span>
|
1947
1969
|
</a>
|
@@ -1953,8 +1975,8 @@ Obtain the <a href="Parser/Context.html">XML::Parser::Context</a>
|
|
1953
1975
|
associated with this parser.
|
1954
1976
|
</p>
|
1955
1977
|
<p><a class="source-toggle" href="#"
|
1956
|
-
onclick="toggleCode('
|
1957
|
-
<div class="method-source-code" id="
|
1978
|
+
onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
|
1979
|
+
<div class="method-source-code" id="M000076-source">
|
1958
1980
|
<pre>
|
1959
1981
|
/*
|
1960
1982
|
* call-seq:
|
@@ -1971,11 +1993,11 @@ ruby_xml_parser_context_get(VALUE self) {
|
|
1971
1993
|
</div>
|
1972
1994
|
</div>
|
1973
1995
|
|
1974
|
-
<div id="method-
|
1975
|
-
<a name="
|
1996
|
+
<div id="method-M000071" class="method-detail">
|
1997
|
+
<a name="M000071"></a>
|
1976
1998
|
|
1977
1999
|
<div class="method-heading">
|
1978
|
-
<a href="#
|
2000
|
+
<a href="#M000071" class="method-signature">
|
1979
2001
|
<span class="method-name">parser.filename → "filename"<br />
|
1980
2002
|
</span>
|
1981
2003
|
</a>
|
@@ -1983,11 +2005,12 @@ ruby_xml_parser_context_get(VALUE self) {
|
|
1983
2005
|
|
1984
2006
|
<div class="method-description">
|
1985
2007
|
<p>
|
1986
|
-
Obtain the filename this parser will read
|
2008
|
+
Obtain the <a href="Parser.html#M000071">filename</a> this parser will read
|
2009
|
+
from.
|
1987
2010
|
</p>
|
1988
2011
|
<p><a class="source-toggle" href="#"
|
1989
|
-
onclick="toggleCode('
|
1990
|
-
<div class="method-source-code" id="
|
2012
|
+
onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
|
2013
|
+
<div class="method-source-code" id="M000071-source">
|
1991
2014
|
<pre>
|
1992
2015
|
/*
|
1993
2016
|
* call-seq:
|
@@ -2003,11 +2026,11 @@ ruby_xml_parser_filename_get(VALUE self) {
|
|
2003
2026
|
</div>
|
2004
2027
|
</div>
|
2005
2028
|
|
2006
|
-
<div id="method-
|
2007
|
-
<a name="
|
2029
|
+
<div id="method-M000072" class="method-detail">
|
2030
|
+
<a name="M000072"></a>
|
2008
2031
|
|
2009
2032
|
<div class="method-heading">
|
2010
|
-
<a href="#
|
2033
|
+
<a href="#M000072" class="method-signature">
|
2011
2034
|
<span class="method-name">parser.filename = "filename"<br />
|
2012
2035
|
</span>
|
2013
2036
|
</a>
|
@@ -2015,11 +2038,12 @@ ruby_xml_parser_filename_get(VALUE self) {
|
|
2015
2038
|
|
2016
2039
|
<div class="method-description">
|
2017
2040
|
<p>
|
2018
|
-
Set the filename this parser will read
|
2041
|
+
Set the <a href="Parser.html#M000071">filename</a> this parser will read
|
2042
|
+
from.
|
2019
2043
|
</p>
|
2020
2044
|
<p><a class="source-toggle" href="#"
|
2021
|
-
onclick="toggleCode('
|
2022
|
-
<div class="method-source-code" id="
|
2045
|
+
onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
|
2046
|
+
<div class="method-source-code" id="M000072-source">
|
2023
2047
|
<pre>
|
2024
2048
|
/*
|
2025
2049
|
* call-seq:
|
@@ -2035,11 +2059,11 @@ ruby_xml_parser_filename_set(VALUE self, VALUE filename) {
|
|
2035
2059
|
</div>
|
2036
2060
|
</div>
|
2037
2061
|
|
2038
|
-
<div id="method-
|
2039
|
-
<a name="
|
2062
|
+
<div id="method-M000073" class="method-detail">
|
2063
|
+
<a name="M000073"></a>
|
2040
2064
|
|
2041
2065
|
<div class="method-heading">
|
2042
|
-
<a href="#
|
2066
|
+
<a href="#M000073" class="method-signature">
|
2043
2067
|
<span class="method-name">parser.io → IO<br />
|
2044
2068
|
</span>
|
2045
2069
|
</a>
|
@@ -2050,8 +2074,8 @@ ruby_xml_parser_filename_set(VALUE self, VALUE filename) {
|
|
2050
2074
|
Obtain the IO instance this parser works with.
|
2051
2075
|
</p>
|
2052
2076
|
<p><a class="source-toggle" href="#"
|
2053
|
-
onclick="toggleCode('
|
2054
|
-
<div class="method-source-code" id="
|
2077
|
+
onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
|
2078
|
+
<div class="method-source-code" id="M000073-source">
|
2055
2079
|
<pre>
|
2056
2080
|
/*
|
2057
2081
|
* call-seq:
|
@@ -2067,11 +2091,11 @@ ruby_xml_parser_io_get(VALUE self, VALUE io) {
|
|
2067
2091
|
</div>
|
2068
2092
|
</div>
|
2069
2093
|
|
2070
|
-
<div id="method-
|
2071
|
-
<a name="
|
2094
|
+
<div id="method-M000074" class="method-detail">
|
2095
|
+
<a name="M000074"></a>
|
2072
2096
|
|
2073
2097
|
<div class="method-heading">
|
2074
|
-
<a href="#
|
2098
|
+
<a href="#M000074" class="method-signature">
|
2075
2099
|
<span class="method-name">parser.io = IO<br />
|
2076
2100
|
</span>
|
2077
2101
|
</a>
|
@@ -2082,8 +2106,8 @@ ruby_xml_parser_io_get(VALUE self, VALUE io) {
|
|
2082
2106
|
Set the IO instance this parser works with.
|
2083
2107
|
</p>
|
2084
2108
|
<p><a class="source-toggle" href="#"
|
2085
|
-
onclick="toggleCode('
|
2086
|
-
<div class="method-source-code" id="
|
2109
|
+
onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
|
2110
|
+
<div class="method-source-code" id="M000074-source">
|
2087
2111
|
<pre>
|
2088
2112
|
/*
|
2089
2113
|
* call-seq:
|
@@ -2099,11 +2123,11 @@ ruby_xml_parser_io_set(VALUE self, VALUE io) {
|
|
2099
2123
|
</div>
|
2100
2124
|
</div>
|
2101
2125
|
|
2102
|
-
<div id="method-
|
2103
|
-
<a name="
|
2126
|
+
<div id="method-M000075" class="method-detail">
|
2127
|
+
<a name="M000075"></a>
|
2104
2128
|
|
2105
2129
|
<div class="method-heading">
|
2106
|
-
<a href="#
|
2130
|
+
<a href="#M000075" class="method-signature">
|
2107
2131
|
<span class="method-name">parser.parse → document<br />
|
2108
2132
|
</span>
|
2109
2133
|
</a>
|
@@ -2112,13 +2136,13 @@ ruby_xml_parser_io_set(VALUE self, VALUE io) {
|
|
2112
2136
|
<div class="method-description">
|
2113
2137
|
<p>
|
2114
2138
|
Parse the input <a href="../XML.html">XML</a> and create an <a
|
2115
|
-
href="Document.html">XML::Document</a> with it&#
|
2139
|
+
href="Document.html">XML::Document</a> with it‘s content. If an error
|
2116
2140
|
occurs, <a href="Parser/ParseError.html">XML::Parser::ParseError</a> is
|
2117
2141
|
thrown.
|
2118
2142
|
</p>
|
2119
2143
|
<p><a class="source-toggle" href="#"
|
2120
|
-
onclick="toggleCode('
|
2121
|
-
<div class="method-source-code" id="
|
2144
|
+
onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
|
2145
|
+
<div class="method-source-code" id="M000075-source">
|
2122
2146
|
<pre>
|
2123
2147
|
/*
|
2124
2148
|
* call-seq:
|
@@ -2136,11 +2160,11 @@ ruby_xml_parser_parse(VALUE self) {
|
|
2136
2160
|
</div>
|
2137
2161
|
</div>
|
2138
2162
|
|
2139
|
-
<div id="method-
|
2140
|
-
<a name="
|
2163
|
+
<div id="method-M000077" class="method-detail">
|
2164
|
+
<a name="M000077"></a>
|
2141
2165
|
|
2142
2166
|
<div class="method-heading">
|
2143
|
-
<a href="#
|
2167
|
+
<a href="#M000077" class="method-signature">
|
2144
2168
|
<span class="method-name">parser.string → "string"<br />
|
2145
2169
|
</span>
|
2146
2170
|
</a>
|
@@ -2148,11 +2172,11 @@ ruby_xml_parser_parse(VALUE self) {
|
|
2148
2172
|
|
2149
2173
|
<div class="method-description">
|
2150
2174
|
<p>
|
2151
|
-
Obtain the string this parser works with.
|
2175
|
+
Obtain the <a href="Parser.html#M000070">string</a> this parser works with.
|
2152
2176
|
</p>
|
2153
2177
|
<p><a class="source-toggle" href="#"
|
2154
|
-
onclick="toggleCode('
|
2155
|
-
<div class="method-source-code" id="
|
2178
|
+
onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
|
2179
|
+
<div class="method-source-code" id="M000077-source">
|
2156
2180
|
<pre>
|
2157
2181
|
/*
|
2158
2182
|
* call-seq:
|
@@ -2168,11 +2192,11 @@ ruby_xml_parser_str_get(VALUE self) {
|
|
2168
2192
|
</div>
|
2169
2193
|
</div>
|
2170
2194
|
|
2171
|
-
<div id="method-
|
2172
|
-
<a name="
|
2195
|
+
<div id="method-M000078" class="method-detail">
|
2196
|
+
<a name="M000078"></a>
|
2173
2197
|
|
2174
2198
|
<div class="method-heading">
|
2175
|
-
<a href="#
|
2199
|
+
<a href="#M000078" class="method-signature">
|
2176
2200
|
<span class="method-name">parser.string = "string"<br />
|
2177
2201
|
</span>
|
2178
2202
|
</a>
|
@@ -2180,11 +2204,11 @@ ruby_xml_parser_str_get(VALUE self) {
|
|
2180
2204
|
|
2181
2205
|
<div class="method-description">
|
2182
2206
|
<p>
|
2183
|
-
Set the string this parser works with.
|
2207
|
+
Set the <a href="Parser.html#M000070">string</a> this parser works with.
|
2184
2208
|
</p>
|
2185
2209
|
<p><a class="source-toggle" href="#"
|
2186
|
-
onclick="toggleCode('
|
2187
|
-
<div class="method-source-code" id="
|
2210
|
+
onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
|
2211
|
+
<div class="method-source-code" id="M000078-source">
|
2188
2212
|
<pre>
|
2189
2213
|
/*
|
2190
2214
|
* call-seq:
|