libxml-ruby 0.8.0-x86-mswin32-60 → 0.8.1-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +8 -1
- data/README +2 -2
- data/benchmark/xml_benchmarks.rb +6 -1
- data/doc/{classes → rdoc/classes}/LibXML/XML/Attr.html +159 -159
- data/doc/{classes → rdoc/classes}/LibXML/XML/Attributes.html +56 -90
- data/doc/{classes → rdoc/classes}/LibXML/XML/Document.html +219 -219
- data/doc/{classes → rdoc/classes}/LibXML/XML/Dtd.html +6 -6
- data/doc/{classes → rdoc/classes}/LibXML/XML/Error.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/HTMLParser.html +36 -36
- data/doc/{classes → rdoc/classes}/LibXML/XML/InputCallbacks.html +6 -6
- data/doc/{classes → rdoc/classes}/LibXML/XML/NS.html +42 -42
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/FailedModify.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/Set.html +54 -54
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/SetNamespace.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/UnknownType.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node.html +728 -812
- data/doc/{classes → rdoc/classes}/LibXML/XML/Parser/Context.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Parser/ParseError.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Parser.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Reader.html +282 -282
- data/doc/{classes → rdoc/classes}/LibXML/XML/SaxParser.html +48 -48
- data/doc/{classes → rdoc/classes}/LibXML/XML/Schema.html +18 -18
- data/doc/{classes → rdoc/classes}/LibXML/XML/State.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Tree.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XInclude/Error.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XInclude.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XMLParserOptions.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/Context.html +2 -2
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/InvalidPath.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/Object.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath.html +2 -2
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/Context/InvalidPath.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/Context.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/InvalidExpression.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer.html +6 -6
- data/doc/{classes → rdoc/classes}/LibXML/XML.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML.html +0 -0
- data/doc/{classes → rdoc/classes}/XML.html +0 -0
- data/doc/{classes → rdoc/classes}/singleton.html +0 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/{files → rdoc/files}/CHANGES.html +11 -2
- data/doc/{files → rdoc/files}/LICENSE.html +0 -0
- data/doc/{files → rdoc/files}/README.html +2 -2
- data/doc/{files → rdoc/files}/VERSION.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/cbg_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/libxml_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_attr_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_attributes_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_document_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_dtd_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_html_parser_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_input_cbg_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_node_c.html +1 -1
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_node_set_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_ns_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_parser_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_parser_context_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_reader_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_sax_parser_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_schema_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_state_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xinclude_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_context_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_object_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpointer_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpointer_context_c.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/attr_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/attributes_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/document_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/node_rb.html +1 -1
- data/doc/{files → rdoc/files}/lib/libxml/node_set_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/parser_options_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/parser_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/properties_rb.html +1 -1
- data/doc/{files → rdoc/files}/lib/libxml/tree_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/xml/libxml_rb.html +0 -0
- data/doc/{fr_class_index.html → rdoc/fr_class_index.html} +0 -0
- data/doc/{fr_file_index.html → rdoc/fr_file_index.html} +0 -0
- data/doc/{fr_method_index.html → rdoc/fr_method_index.html} +233 -234
- data/doc/{index.html → rdoc/index.html} +2 -2
- data/doc/{rdoc-style.css → rdoc/rdoc-style.css} +0 -0
- data/ext/libxml/extconf.rb +75 -117
- data/ext/libxml/ruby_xml_node.c +14 -401
- data/ext/libxml/version.h +2 -2
- data/lib/libxml/node.rb +159 -27
- data/lib/libxml/properties.rb +2 -8
- data/lib/libxml_ruby.so +0 -0
- data/mingw/libxml_ruby.so +0 -0
- data/test/tc_xml_attributes.rb +9 -0
- metadata +98 -97
- data/doc/created.rid +0 -1
@@ -62,10 +62,6 @@
|
|
62
62
|
<a href="../../../files/lib/libxml/attributes_rb.html">
|
63
63
|
lib/libxml/attributes.rb
|
64
64
|
</a>
|
65
|
-
<br />
|
66
|
-
<a href="../../../files/lib/libxml/properties_rb.html">
|
67
|
-
lib/libxml/properties.rb
|
68
|
-
</a>
|
69
65
|
<br />
|
70
66
|
</td>
|
71
67
|
</tr>
|
@@ -127,17 +123,15 @@ To access a namespaced attribute:
|
|
127
123
|
<h3 class="section-bar">Methods</h3>
|
128
124
|
|
129
125
|
<div class="name-list">
|
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="#M000226">node</a>
|
140
|
-
<a href="#M000234">to_h</a>
|
126
|
+
<a href="#M000230">[]</a>
|
127
|
+
<a href="#M000231">[]=</a>
|
128
|
+
<a href="#M000232">each</a>
|
129
|
+
<a href="#M000234">first</a>
|
130
|
+
<a href="#M000228">get_attribute</a>
|
131
|
+
<a href="#M000229">get_attribute_ns</a>
|
132
|
+
<a href="#M000233">length</a>
|
133
|
+
<a href="#M000227">node</a>
|
134
|
+
<a href="#M000235">to_h</a>
|
141
135
|
</div>
|
142
136
|
</div>
|
143
137
|
|
@@ -166,11 +160,11 @@ To access a namespaced attribute:
|
|
166
160
|
<div id="methods">
|
167
161
|
<h3 class="section-bar">Public Instance methods</h3>
|
168
162
|
|
169
|
-
<div id="method-
|
170
|
-
<a name="
|
163
|
+
<div id="method-M000230" class="method-detail">
|
164
|
+
<a name="M000230"></a>
|
171
165
|
|
172
166
|
<div class="method-heading">
|
173
|
-
<a href="#
|
167
|
+
<a href="#M000230" class="method-signature">
|
174
168
|
<span class="method-name">attributes["name"] → String<br />
|
175
169
|
</span>
|
176
170
|
</a>
|
@@ -179,7 +173,7 @@ To access a namespaced attribute:
|
|
179
173
|
<div class="method-description">
|
180
174
|
<p>
|
181
175
|
Fetches an attribute value. If you want to access the underlying Attribute
|
182
|
-
itself use <a href="Attributes.html#
|
176
|
+
itself use <a href="Attributes.html#M000228">get_attribute</a>.
|
183
177
|
</p>
|
184
178
|
<p>
|
185
179
|
name: The name of the attribute, not including any namespaces.
|
@@ -188,8 +182,8 @@ name: The name of the attribute, not including any namespaces.
|
|
188
182
|
doc.root.attributes['att'] -> 'some value'
|
189
183
|
</pre>
|
190
184
|
<p><a class="source-toggle" href="#"
|
191
|
-
onclick="toggleCode('
|
192
|
-
<div class="method-source-code" id="
|
185
|
+
onclick="toggleCode('M000230-source');return false;">[Source]</a></p>
|
186
|
+
<div class="method-source-code" id="M000230-source">
|
193
187
|
<pre>
|
194
188
|
/*
|
195
189
|
* call-seq:
|
@@ -210,11 +204,11 @@ ruby_xml_attributes_attribute_get(VALUE self, VALUE name) {
|
|
210
204
|
</div>
|
211
205
|
</div>
|
212
206
|
|
213
|
-
<div id="method-
|
214
|
-
<a name="
|
207
|
+
<div id="method-M000231" class="method-detail">
|
208
|
+
<a name="M000231"></a>
|
215
209
|
|
216
210
|
<div class="method-heading">
|
217
|
-
<a href="#
|
211
|
+
<a href="#M000231" class="method-signature">
|
218
212
|
<span class="method-name">attributes["name"] = "value"<br />
|
219
213
|
</span>
|
220
214
|
</a>
|
@@ -223,7 +217,7 @@ ruby_xml_attributes_attribute_get(VALUE self, VALUE name) {
|
|
223
217
|
<div class="method-description">
|
224
218
|
<p>
|
225
219
|
Sets an attribute value. If you want to get the Attribute itself, use <a
|
226
|
-
href="Attributes.html#
|
220
|
+
href="Attributes.html#M000228">get_attribute</a>.
|
227
221
|
</p>
|
228
222
|
<p>
|
229
223
|
name: The name of the attribute, not including any namespaces. value: The
|
@@ -233,8 +227,8 @@ new value of the namespace.
|
|
233
227
|
doc.root.attributes['att'] = 'some value'
|
234
228
|
</pre>
|
235
229
|
<p><a class="source-toggle" href="#"
|
236
|
-
onclick="toggleCode('
|
237
|
-
<div class="method-source-code" id="
|
230
|
+
onclick="toggleCode('M000231-source');return false;">[Source]</a></p>
|
231
|
+
<div class="method-source-code" id="M000231-source">
|
238
232
|
<pre>
|
239
233
|
/*
|
240
234
|
* call-seq:
|
@@ -256,11 +250,11 @@ ruby_xml_attributes_attribute_set(VALUE self, VALUE name, VALUE value) {
|
|
256
250
|
</div>
|
257
251
|
</div>
|
258
252
|
|
259
|
-
<div id="method-
|
260
|
-
<a name="
|
253
|
+
<div id="method-M000232" class="method-detail">
|
254
|
+
<a name="M000232"></a>
|
261
255
|
|
262
256
|
<div class="method-heading">
|
263
|
-
<a href="#
|
257
|
+
<a href="#M000232" class="method-signature">
|
264
258
|
<span class="method-name">attributes.each {block} → XML::Attr<br />
|
265
259
|
</span>
|
266
260
|
</a>
|
@@ -274,8 +268,8 @@ Iterates over each attribute.
|
|
274
268
|
doc.root.attributes.each {|attribute| puts attribute.name}
|
275
269
|
</pre>
|
276
270
|
<p><a class="source-toggle" href="#"
|
277
|
-
onclick="toggleCode('
|
278
|
-
<div class="method-source-code" id="
|
271
|
+
onclick="toggleCode('M000232-source');return false;">[Source]</a></p>
|
272
|
+
<div class="method-source-code" id="M000232-source">
|
279
273
|
<pre>
|
280
274
|
/*
|
281
275
|
* call-seq:
|
@@ -293,39 +287,11 @@ ruby_xml_attributes_each(VALUE self) {
|
|
293
287
|
</div>
|
294
288
|
</div>
|
295
289
|
|
296
|
-
<div id="method-
|
297
|
-
<a name="
|
298
|
-
|
299
|
-
<div class="method-heading">
|
300
|
-
<span class="method-name">each_attr</span><span class="method-args">()</span>
|
301
|
-
</div>
|
302
|
-
|
303
|
-
<div class="method-description">
|
304
|
-
<p>
|
305
|
-
Alias for <a href="Attributes.html#M000231">each</a>
|
306
|
-
</p>
|
307
|
-
</div>
|
308
|
-
</div>
|
309
|
-
|
310
|
-
<div id="method-M000236" class="method-detail">
|
311
|
-
<a name="M000236"></a>
|
312
|
-
|
313
|
-
<div class="method-heading">
|
314
|
-
<span class="method-name">each_sibling</span><span class="method-args">()</span>
|
315
|
-
</div>
|
316
|
-
|
317
|
-
<div class="method-description">
|
318
|
-
<p>
|
319
|
-
Alias for <a href="Attributes.html#M000231">each</a>
|
320
|
-
</p>
|
321
|
-
</div>
|
322
|
-
</div>
|
323
|
-
|
324
|
-
<div id="method-M000233" class="method-detail">
|
325
|
-
<a name="M000233"></a>
|
290
|
+
<div id="method-M000234" class="method-detail">
|
291
|
+
<a name="M000234"></a>
|
326
292
|
|
327
293
|
<div class="method-heading">
|
328
|
-
<a href="#
|
294
|
+
<a href="#M000234" class="method-signature">
|
329
295
|
<span class="method-name">attributes.first → XML::Attr<br />
|
330
296
|
</span>
|
331
297
|
</a>
|
@@ -339,8 +305,8 @@ Returns the first attribute.
|
|
339
305
|
doc.root.attributes.first
|
340
306
|
</pre>
|
341
307
|
<p><a class="source-toggle" href="#"
|
342
|
-
onclick="toggleCode('
|
343
|
-
<div class="method-source-code" id="
|
308
|
+
onclick="toggleCode('M000234-source');return false;">[Source]</a></p>
|
309
|
+
<div class="method-source-code" id="M000234-source">
|
344
310
|
<pre>
|
345
311
|
/*
|
346
312
|
* call-seq:
|
@@ -358,11 +324,11 @@ ruby_xml_attributes_first(VALUE self) {
|
|
358
324
|
</div>
|
359
325
|
</div>
|
360
326
|
|
361
|
-
<div id="method-
|
362
|
-
<a name="
|
327
|
+
<div id="method-M000228" class="method-detail">
|
328
|
+
<a name="M000228"></a>
|
363
329
|
|
364
330
|
<div class="method-heading">
|
365
|
-
<a href="#
|
331
|
+
<a href="#M000228" class="method-signature">
|
366
332
|
<span class="method-name">attributes.get_attribute("name") → XML::Attr<br />
|
367
333
|
</span>
|
368
334
|
</a>
|
@@ -379,8 +345,8 @@ name: The name of the attribute, not including a namespace.
|
|
379
345
|
doc.root.attributes.get_attribute("foo")
|
380
346
|
</pre>
|
381
347
|
<p><a class="source-toggle" href="#"
|
382
|
-
onclick="toggleCode('
|
383
|
-
<div class="method-source-code" id="
|
348
|
+
onclick="toggleCode('M000228-source');return false;">[Source]</a></p>
|
349
|
+
<div class="method-source-code" id="M000228-source">
|
384
350
|
<pre>
|
385
351
|
/*
|
386
352
|
* call-seq:
|
@@ -400,11 +366,11 @@ ruby_xml_attributes_get_attribute(VALUE self, VALUE name) {
|
|
400
366
|
</div>
|
401
367
|
</div>
|
402
368
|
|
403
|
-
<div id="method-
|
404
|
-
<a name="
|
369
|
+
<div id="method-M000229" class="method-detail">
|
370
|
+
<a name="M000229"></a>
|
405
371
|
|
406
372
|
<div class="method-heading">
|
407
|
-
<a href="#
|
373
|
+
<a href="#M000229" class="method-signature">
|
408
374
|
<span class="method-name">attributes.get_attribute_ns("namespace", "name") → XML::Attr<br />
|
409
375
|
</span>
|
410
376
|
</a>
|
@@ -422,8 +388,8 @@ the attribute, not including a namespace.
|
|
422
388
|
doc.root.attributes.get_attribute_ns('http://www.w3.org/1999/xlink', 'href')
|
423
389
|
</pre>
|
424
390
|
<p><a class="source-toggle" href="#"
|
425
|
-
onclick="toggleCode('
|
426
|
-
<div class="method-source-code" id="
|
391
|
+
onclick="toggleCode('M000229-source');return false;">[Source]</a></p>
|
392
|
+
<div class="method-source-code" id="M000229-source">
|
427
393
|
<pre>
|
428
394
|
/*
|
429
395
|
* call-seq:
|
@@ -444,11 +410,11 @@ ruby_xml_attributes_get_attribute_ns(VALUE self, VALUE namespace, VALUE name) {
|
|
444
410
|
</div>
|
445
411
|
</div>
|
446
412
|
|
447
|
-
<div id="method-
|
448
|
-
<a name="
|
413
|
+
<div id="method-M000233" class="method-detail">
|
414
|
+
<a name="M000233"></a>
|
449
415
|
|
450
416
|
<div class="method-heading">
|
451
|
-
<a href="#
|
417
|
+
<a href="#M000233" class="method-signature">
|
452
418
|
<span class="method-name">attributes.length → Integer<br />
|
453
419
|
</span>
|
454
420
|
</a>
|
@@ -462,8 +428,8 @@ Returns the number of attributes.
|
|
462
428
|
doc.root.attributes.length
|
463
429
|
</pre>
|
464
430
|
<p><a class="source-toggle" href="#"
|
465
|
-
onclick="toggleCode('
|
466
|
-
<div class="method-source-code" id="
|
431
|
+
onclick="toggleCode('M000233-source');return false;">[Source]</a></p>
|
432
|
+
<div class="method-source-code" id="M000233-source">
|
467
433
|
<pre>
|
468
434
|
/*
|
469
435
|
* call-seq:
|
@@ -481,11 +447,11 @@ ruby_xml_attributes_length(VALUE self) {
|
|
481
447
|
</div>
|
482
448
|
</div>
|
483
449
|
|
484
|
-
<div id="method-
|
485
|
-
<a name="
|
450
|
+
<div id="method-M000227" class="method-detail">
|
451
|
+
<a name="M000227"></a>
|
486
452
|
|
487
453
|
<div class="method-heading">
|
488
|
-
<a href="#
|
454
|
+
<a href="#M000227" class="method-signature">
|
489
455
|
<span class="method-name">attributes.node → XML::Node<br />
|
490
456
|
</span>
|
491
457
|
</a>
|
@@ -499,8 +465,8 @@ Return the node that owns this attributes list.
|
|
499
465
|
doc.root.attributes.node == doc.root
|
500
466
|
</pre>
|
501
467
|
<p><a class="source-toggle" href="#"
|
502
|
-
onclick="toggleCode('
|
503
|
-
<div class="method-source-code" id="
|
468
|
+
onclick="toggleCode('M000227-source');return false;">[Source]</a></p>
|
469
|
+
<div class="method-source-code" id="M000227-source">
|
504
470
|
<pre>
|
505
471
|
/*
|
506
472
|
* call-seq:
|
@@ -518,19 +484,19 @@ ruby_xml_attributes_node_get(VALUE self) {
|
|
518
484
|
</div>
|
519
485
|
</div>
|
520
486
|
|
521
|
-
<div id="method-
|
522
|
-
<a name="
|
487
|
+
<div id="method-M000235" class="method-detail">
|
488
|
+
<a name="M000235"></a>
|
523
489
|
|
524
490
|
<div class="method-heading">
|
525
|
-
<a href="#
|
491
|
+
<a href="#M000235" class="method-signature">
|
526
492
|
<span class="method-name">to_h</span><span class="method-args">()</span>
|
527
493
|
</a>
|
528
494
|
</div>
|
529
495
|
|
530
496
|
<div class="method-description">
|
531
497
|
<p><a class="source-toggle" href="#"
|
532
|
-
onclick="toggleCode('
|
533
|
-
<div class="method-source-code" id="
|
498
|
+
onclick="toggleCode('M000235-source');return false;">[Source]</a></p>
|
499
|
+
<div class="method-source-code" id="M000235-source">
|
534
500
|
<pre>
|
535
501
|
<span class="ruby-comment cmt"># File lib/libxml/attributes.rb, line 7</span>
|
536
502
|
7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>
|