libxml-ruby 0.8.1-x86-mswin32-60 → 0.8.2-x86-mswin32-60
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/{mingw → lib}/libiconv-2.dll +0 -0
- data/lib/libxml.rb +15 -4
- data/lib/libxml2-2.dll +0 -0
- data/lib/libxml_ruby.dll.a +0 -0
- data/lib/libxml_ruby.so +0 -0
- 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 +103 -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/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
@@ -90,6 +90,18 @@
|
|
90
90
|
|
91
91
|
<div id="contextContent">
|
92
92
|
|
93
|
+
<div id="description">
|
94
|
+
<p>
|
95
|
+
call-seq:
|
96
|
+
</p>
|
97
|
+
<pre>
|
98
|
+
nodeset.xpath_ctxt -> context
|
99
|
+
</pre>
|
100
|
+
<p>
|
101
|
+
Return the xpath context corresponding to this nodeset, if any.
|
102
|
+
</p>
|
103
|
+
|
104
|
+
</div>
|
93
105
|
|
94
106
|
|
95
107
|
</div>
|
@@ -98,102 +110,102 @@
|
|
98
110
|
<h3 class="section-bar">Methods</h3>
|
99
111
|
|
100
112
|
<div class="name-list">
|
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="#
|
153
|
-
<a href="#
|
154
|
-
<a href="#
|
155
|
-
<a href="#
|
156
|
-
<a href="#
|
157
|
-
<a href="#
|
158
|
-
<a href="#
|
159
|
-
<a href="#
|
160
|
-
<a href="#
|
161
|
-
<a href="#
|
162
|
-
<a href="#
|
163
|
-
<a href="#
|
164
|
-
<a href="#
|
165
|
-
<a href="#
|
166
|
-
<a href="#
|
167
|
-
<a href="#
|
168
|
-
<a href="#
|
169
|
-
<a href="#
|
170
|
-
<a href="#
|
171
|
-
<a href="#
|
172
|
-
<a href="#
|
173
|
-
<a href="#
|
174
|
-
<a href="#
|
175
|
-
<a href="#
|
176
|
-
<a href="#
|
177
|
-
<a href="#
|
178
|
-
<a href="#
|
179
|
-
<a href="#
|
180
|
-
<a href="#
|
181
|
-
<a href="#
|
182
|
-
<a href="#
|
183
|
-
<a href="#
|
184
|
-
<a href="#
|
185
|
-
<a href="#
|
186
|
-
<a href="#
|
187
|
-
<a href="#
|
188
|
-
<a href="#
|
189
|
-
<a href="#
|
190
|
-
<a href="#
|
191
|
-
<a href="#
|
192
|
-
<a href="#
|
193
|
-
<a href="#
|
194
|
-
<a href="#
|
195
|
-
<a href="#
|
196
|
-
<a href="#
|
113
|
+
<a href="#M000125"><<</a>
|
114
|
+
<a href="#M000169">==</a>
|
115
|
+
<a href="#M000118">[]</a>
|
116
|
+
<a href="#M000126">[]=</a>
|
117
|
+
<a href="#M000184">attribute?</a>
|
118
|
+
<a href="#M000185">attribute_decl?</a>
|
119
|
+
<a href="#M000132">attributes</a>
|
120
|
+
<a href="#M000170">attributes?</a>
|
121
|
+
<a href="#M000133">base</a>
|
122
|
+
<a href="#M000134">base=</a>
|
123
|
+
<a href="#M000135">blank?</a>
|
124
|
+
<a href="#M000186">cdata?</a>
|
125
|
+
<a href="#M000206">child</a>
|
126
|
+
<a href="#M000128">child=</a>
|
127
|
+
<a href="#M000204">child?</a>
|
128
|
+
<a href="#M000127">child_add</a>
|
129
|
+
<a href="#M000179">children</a>
|
130
|
+
<a href="#M000205">children?</a>
|
131
|
+
<a href="#M000171">clone</a>
|
132
|
+
<a href="#M000187">comment?</a>
|
133
|
+
<a href="#M000137">content</a>
|
134
|
+
<a href="#M000138">content=</a>
|
135
|
+
<a href="#M000139">content_stripped</a>
|
136
|
+
<a href="#M000136">copy</a>
|
137
|
+
<a href="#M000142">debug_dump</a>
|
138
|
+
<a href="#M000140">doc</a>
|
139
|
+
<a href="#M000188">docbook_doc?</a>
|
140
|
+
<a href="#M000189">doctype?</a>
|
141
|
+
<a href="#M000190">document?</a>
|
142
|
+
<a href="#M000191">dtd?</a>
|
143
|
+
<a href="#M000141">dump</a>
|
144
|
+
<a href="#M000172">dup</a>
|
145
|
+
<a href="#M000119">each</a>
|
146
|
+
<a href="#M000175">each_attr</a>
|
147
|
+
<a href="#M000207">each_child</a>
|
148
|
+
<a href="#M000176">each_element</a>
|
149
|
+
<a href="#M000192">element?</a>
|
150
|
+
<a href="#M000194">element_decl?</a>
|
151
|
+
<a href="#M000143">empty?</a>
|
152
|
+
<a href="#M000193">entity?</a>
|
153
|
+
<a href="#M000195">entity_ref?</a>
|
154
|
+
<a href="#M000144">eql?</a>
|
155
|
+
<a href="#M000173">find</a>
|
156
|
+
<a href="#M000174">find_first</a>
|
157
|
+
<a href="#M000120">first</a>
|
158
|
+
<a href="#M000178">first?</a>
|
159
|
+
<a href="#M000196">fragment?</a>
|
160
|
+
<a href="#M000197">html_doc?</a>
|
161
|
+
<a href="#M000145">lang</a>
|
162
|
+
<a href="#M000146">lang=</a>
|
163
|
+
<a href="#M000121">last</a>
|
164
|
+
<a href="#M000182">last?</a>
|
165
|
+
<a href="#M000147">line_num</a>
|
166
|
+
<a href="#M000148">name</a>
|
167
|
+
<a href="#M000149">name=</a>
|
168
|
+
<a href="#M000150">namespace</a>
|
169
|
+
<a href="#M000152">namespace=</a>
|
170
|
+
<a href="#M000198">namespace?</a>
|
171
|
+
<a href="#M000151">namespace_node</a>
|
172
|
+
<a href="#M000114">new</a>
|
173
|
+
<a href="#M000115">new_cdata</a>
|
174
|
+
<a href="#M000116">new_comment</a>
|
175
|
+
<a href="#M000117">new_text</a>
|
176
|
+
<a href="#M000122">next</a>
|
177
|
+
<a href="#M000130">next=</a>
|
178
|
+
<a href="#M000180">next?</a>
|
179
|
+
<a href="#M000153">node_type</a>
|
180
|
+
<a href="#M000183">node_type_name</a>
|
181
|
+
<a href="#M000199">notation?</a>
|
182
|
+
<a href="#M000154">ns</a>
|
183
|
+
<a href="#M000155">ns?</a>
|
184
|
+
<a href="#M000157">ns_def</a>
|
185
|
+
<a href="#M000156">ns_def?</a>
|
186
|
+
<a href="#M000123">parent</a>
|
187
|
+
<a href="#M000177">parent?</a>
|
188
|
+
<a href="#M000158">path</a>
|
189
|
+
<a href="#M000200">pi?</a>
|
190
|
+
<a href="#M000159">pointer</a>
|
191
|
+
<a href="#M000124">prev</a>
|
192
|
+
<a href="#M000131">prev=</a>
|
193
|
+
<a href="#M000181">prev?</a>
|
194
|
+
<a href="#M000208">properties</a>
|
195
|
+
<a href="#M000209">properties?</a>
|
196
|
+
<a href="#M000160">remove!</a>
|
197
|
+
<a href="#M000162">search_href</a>
|
198
|
+
<a href="#M000161">search_ns</a>
|
199
|
+
<a href="#M000129">sibling=</a>
|
200
|
+
<a href="#M000163">space_preserve</a>
|
201
|
+
<a href="#M000164">space_preserve=</a>
|
202
|
+
<a href="#M000201">text?</a>
|
203
|
+
<a href="#M000165">to_s</a>
|
204
|
+
<a href="#M000202">xinclude_end?</a>
|
205
|
+
<a href="#M000203">xinclude_start?</a>
|
206
|
+
<a href="#M000166">xlink?</a>
|
207
|
+
<a href="#M000167">xlink_type</a>
|
208
|
+
<a href="#M000168">xlink_type_name</a>
|
197
209
|
</div>
|
198
210
|
</div>
|
199
211
|
|
@@ -419,11 +431,11 @@ Class <a href="Node/UnknownType.html" class="link">LibXML::XML::Node::UnknownTyp
|
|
419
431
|
<div id="methods">
|
420
432
|
<h3 class="section-bar">Public Class methods</h3>
|
421
433
|
|
422
|
-
<div id="method-
|
423
|
-
<a name="
|
434
|
+
<div id="method-M000114" class="method-detail">
|
435
|
+
<a name="M000114"></a>
|
424
436
|
|
425
437
|
<div class="method-heading">
|
426
|
-
<a href="#
|
438
|
+
<a href="#M000114" class="method-signature">
|
427
439
|
<span class="method-name">XML::Node.new(name, content = nil) → XML::Node<br />
|
428
440
|
XML::Node.new_element(name, content = nil) → XML::Node<br />
|
429
441
|
</span>
|
@@ -432,12 +444,14 @@ XML::Node.new_element(name, content = nil) → XML::Node<br />
|
|
432
444
|
|
433
445
|
<div class="method-description">
|
434
446
|
<p>
|
435
|
-
Create a new element node with the
|
436
|
-
|
447
|
+
Create a <a href="Node.html#M000114">new</a> element node with the
|
448
|
+
specified <a href="Node.html#M000148">name</a>, optionally setting the
|
449
|
+
node‘s <a href="Node.html#M000137">content</a>. backward
|
450
|
+
compatibility for <.5 <a href="Node.html#M000114">new</a>
|
437
451
|
</p>
|
438
452
|
<p><a class="source-toggle" href="#"
|
439
|
-
onclick="toggleCode('
|
440
|
-
<div class="method-source-code" id="
|
453
|
+
onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
|
454
|
+
<div class="method-source-code" id="M000114-source">
|
441
455
|
<pre>
|
442
456
|
/*
|
443
457
|
* call-seq:
|
@@ -472,11 +486,11 @@ ruby_xml_node2_new_string_bc(int argc, VALUE *argv, VALUE class)
|
|
472
486
|
</div>
|
473
487
|
</div>
|
474
488
|
|
475
|
-
<div id="method-
|
476
|
-
<a name="
|
489
|
+
<div id="method-M000115" class="method-detail">
|
490
|
+
<a name="M000115"></a>
|
477
491
|
|
478
492
|
<div class="method-heading">
|
479
|
-
<a href="#
|
493
|
+
<a href="#M000115" class="method-signature">
|
480
494
|
<span class="method-name">XML::Node.new_cdata(content = nil) → XML::Node<br />
|
481
495
|
</span>
|
482
496
|
</a>
|
@@ -484,11 +498,12 @@ ruby_xml_node2_new_string_bc(int argc, VALUE *argv, VALUE class)
|
|
484
498
|
|
485
499
|
<div class="method-description">
|
486
500
|
<p>
|
487
|
-
Create a new CDATA node, optionally setting
|
501
|
+
Create a <a href="Node.html#M000114">new</a> CDATA node, optionally setting
|
502
|
+
the node‘s <a href="Node.html#M000137">content</a>.
|
488
503
|
</p>
|
489
504
|
<p><a class="source-toggle" href="#"
|
490
|
-
onclick="toggleCode('
|
491
|
-
<div class="method-source-code" id="
|
505
|
+
onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
|
506
|
+
<div class="method-source-code" id="M000115-source">
|
492
507
|
<pre>
|
493
508
|
/*
|
494
509
|
* call-seq:
|
@@ -505,11 +520,11 @@ ruby_xml_node_new_cdata(int argc, VALUE *argv, VALUE class) {
|
|
505
520
|
</div>
|
506
521
|
</div>
|
507
522
|
|
508
|
-
<div id="method-
|
509
|
-
<a name="
|
523
|
+
<div id="method-M000116" class="method-detail">
|
524
|
+
<a name="M000116"></a>
|
510
525
|
|
511
526
|
<div class="method-heading">
|
512
|
-
<a href="#
|
527
|
+
<a href="#M000116" class="method-signature">
|
513
528
|
<span class="method-name">XML::Node.new_comment(content = nil) → XML::Node<br />
|
514
529
|
</span>
|
515
530
|
</a>
|
@@ -517,11 +532,12 @@ ruby_xml_node_new_cdata(int argc, VALUE *argv, VALUE class) {
|
|
517
532
|
|
518
533
|
<div class="method-description">
|
519
534
|
<p>
|
520
|
-
Create a new comment node, optionally
|
535
|
+
Create a <a href="Node.html#M000114">new</a> comment node, optionally
|
536
|
+
setting the node‘s <a href="Node.html#M000137">content</a>.
|
521
537
|
</p>
|
522
538
|
<p><a class="source-toggle" href="#"
|
523
|
-
onclick="toggleCode('
|
524
|
-
<div class="method-source-code" id="
|
539
|
+
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
540
|
+
<div class="method-source-code" id="M000116-source">
|
525
541
|
<pre>
|
526
542
|
/*
|
527
543
|
* call-seq:
|
@@ -539,11 +555,11 @@ ruby_xml_node_new_comment(int argc, VALUE *argv, VALUE class) {
|
|
539
555
|
</div>
|
540
556
|
</div>
|
541
557
|
|
542
|
-
<div id="method-
|
543
|
-
<a name="
|
558
|
+
<div id="method-M000117" class="method-detail">
|
559
|
+
<a name="M000117"></a>
|
544
560
|
|
545
561
|
<div class="method-heading">
|
546
|
-
<a href="#
|
562
|
+
<a href="#M000117" class="method-signature">
|
547
563
|
<span class="method-name">XML::Node.new_text(content = nil) → XML::Node<br />
|
548
564
|
</span>
|
549
565
|
</a>
|
@@ -551,11 +567,12 @@ ruby_xml_node_new_comment(int argc, VALUE *argv, VALUE class) {
|
|
551
567
|
|
552
568
|
<div class="method-description">
|
553
569
|
<p>
|
554
|
-
Create a new text node, optionally setting
|
570
|
+
Create a <a href="Node.html#M000114">new</a> text node, optionally setting
|
571
|
+
the node‘s <a href="Node.html#M000137">content</a>.
|
555
572
|
</p>
|
556
573
|
<p><a class="source-toggle" href="#"
|
557
|
-
onclick="toggleCode('
|
558
|
-
<div class="method-source-code" id="
|
574
|
+
onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
|
575
|
+
<div class="method-source-code" id="M000117-source">
|
559
576
|
<pre>
|
560
577
|
/*
|
561
578
|
* call-seq:
|
@@ -592,11 +609,11 @@ ruby_xml_node_new_text(VALUE class, VALUE text)
|
|
592
609
|
|
593
610
|
<h3 class="section-bar">Public Instance methods</h3>
|
594
611
|
|
595
|
-
<div id="method-
|
596
|
-
<a name="
|
612
|
+
<div id="method-M000125" class="method-detail">
|
613
|
+
<a name="M000125"></a>
|
597
614
|
|
598
615
|
<div class="method-heading">
|
599
|
-
<a href="#
|
616
|
+
<a href="#M000125" class="method-signature">
|
600
617
|
<span class="method-name">node << ("string" | node) → XML::Node<br />
|
601
618
|
</span>
|
602
619
|
</a>
|
@@ -605,11 +622,11 @@ ruby_xml_node_new_text(VALUE class, VALUE text)
|
|
605
622
|
<div class="method-description">
|
606
623
|
<p>
|
607
624
|
Add the specified string or <a href="Node.html">XML::Node</a> to this
|
608
|
-
node&#
|
625
|
+
node‘s <a href="Node.html#M000137">content</a>.
|
609
626
|
</p>
|
610
627
|
<p><a class="source-toggle" href="#"
|
611
|
-
onclick="toggleCode('
|
612
|
-
<div class="method-source-code" id="
|
628
|
+
onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
|
629
|
+
<div class="method-source-code" id="M000125-source">
|
613
630
|
<pre>
|
614
631
|
/*
|
615
632
|
* call-seq:
|
@@ -626,8 +643,8 @@ ruby_xml_node_content_add(VALUE self, VALUE obj) {
|
|
626
643
|
</div>
|
627
644
|
</div>
|
628
645
|
|
629
|
-
<div id="method-
|
630
|
-
<a name="
|
646
|
+
<div id="method-M000169" class="method-detail">
|
647
|
+
<a name="M000169"></a>
|
631
648
|
|
632
649
|
<div class="method-heading">
|
633
650
|
<span class="method-name">==</span><span class="method-args">(p1)</span>
|
@@ -635,16 +652,16 @@ ruby_xml_node_content_add(VALUE self, VALUE obj) {
|
|
635
652
|
|
636
653
|
<div class="method-description">
|
637
654
|
<p>
|
638
|
-
Alias for
|
655
|
+
Alias for eql?
|
639
656
|
</p>
|
640
657
|
</div>
|
641
658
|
</div>
|
642
659
|
|
643
|
-
<div id="method-
|
644
|
-
<a name="
|
660
|
+
<div id="method-M000118" class="method-detail">
|
661
|
+
<a name="M000118"></a>
|
645
662
|
|
646
663
|
<div class="method-heading">
|
647
|
-
<a href="#
|
664
|
+
<a href="#M000118" class="method-signature">
|
648
665
|
<span class="method-name">node.property("name") → "string"<br />
|
649
666
|
node["name"] → "string"<br />
|
650
667
|
</span>
|
@@ -656,8 +673,8 @@ node["name"] → "string"<br />
|
|
656
673
|
Obtain the named property.
|
657
674
|
</p>
|
658
675
|
<p><a class="source-toggle" href="#"
|
659
|
-
onclick="toggleCode('
|
660
|
-
<div class="method-source-code" id="
|
676
|
+
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
677
|
+
<div class="method-source-code" id="M000118-source">
|
661
678
|
<pre>
|
662
679
|
/*
|
663
680
|
* call-seq:
|
@@ -674,11 +691,11 @@ ruby_xml_node_property_get(VALUE self, VALUE name) {
|
|
674
691
|
</div>
|
675
692
|
</div>
|
676
693
|
|
677
|
-
<div id="method-
|
678
|
-
<a name="
|
694
|
+
<div id="method-M000126" class="method-detail">
|
695
|
+
<a name="M000126"></a>
|
679
696
|
|
680
697
|
<div class="method-heading">
|
681
|
-
<a href="#
|
698
|
+
<a href="#M000126" class="method-signature">
|
682
699
|
<span class="method-name">node["name"] = "string"<br />
|
683
700
|
</span>
|
684
701
|
</a>
|
@@ -689,8 +706,8 @@ ruby_xml_node_property_get(VALUE self, VALUE name) {
|
|
689
706
|
<a href="Node/Set.html">Set</a> the named property.
|
690
707
|
</p>
|
691
708
|
<p><a class="source-toggle" href="#"
|
692
|
-
onclick="toggleCode('
|
693
|
-
<div class="method-source-code" id="
|
709
|
+
onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
|
710
|
+
<div class="method-source-code" id="M000126-source">
|
694
711
|
<pre>
|
695
712
|
/*
|
696
713
|
* call-seq:
|
@@ -706,11 +723,11 @@ ruby_xml_node_property_set(VALUE self, VALUE name, VALUE value) {
|
|
706
723
|
</div>
|
707
724
|
</div>
|
708
725
|
|
709
|
-
<div id="method-
|
710
|
-
<a name="
|
726
|
+
<div id="method-M000184" class="method-detail">
|
727
|
+
<a name="M000184"></a>
|
711
728
|
|
712
729
|
<div class="method-heading">
|
713
|
-
<a href="#
|
730
|
+
<a href="#M000184" class="method-signature">
|
714
731
|
<span class="method-name">attribute?</span><span class="method-args">()</span>
|
715
732
|
</a>
|
716
733
|
</div>
|
@@ -720,8 +737,8 @@ ruby_xml_node_property_set(VALUE self, VALUE name, VALUE value) {
|
|
720
737
|
Specifies if this is an attribute node
|
721
738
|
</p>
|
722
739
|
<p><a class="source-toggle" href="#"
|
723
|
-
onclick="toggleCode('
|
724
|
-
<div class="method-source-code" id="
|
740
|
+
onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
|
741
|
+
<div class="method-source-code" id="M000184-source">
|
725
742
|
<pre>
|
726
743
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 158</span>
|
727
744
|
158: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attribute?</span>
|
@@ -732,11 +749,11 @@ Specifies if this is an attribute node
|
|
732
749
|
</div>
|
733
750
|
</div>
|
734
751
|
|
735
|
-
<div id="method-
|
736
|
-
<a name="
|
752
|
+
<div id="method-M000185" class="method-detail">
|
753
|
+
<a name="M000185"></a>
|
737
754
|
|
738
755
|
<div class="method-heading">
|
739
|
-
<a href="#
|
756
|
+
<a href="#M000185" class="method-signature">
|
740
757
|
<span class="method-name">attribute_decl?</span><span class="method-args">()</span>
|
741
758
|
</a>
|
742
759
|
</div>
|
@@ -746,8 +763,8 @@ Specifies if this is an attribute node
|
|
746
763
|
Specifies if this is an attribute declaration node
|
747
764
|
</p>
|
748
765
|
<p><a class="source-toggle" href="#"
|
749
|
-
onclick="toggleCode('
|
750
|
-
<div class="method-source-code" id="
|
766
|
+
onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
|
767
|
+
<div class="method-source-code" id="M000185-source">
|
751
768
|
<pre>
|
752
769
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 163</span>
|
753
770
|
163: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attribute_decl?</span>
|
@@ -758,11 +775,11 @@ Specifies if this is an attribute declaration node
|
|
758
775
|
</div>
|
759
776
|
</div>
|
760
777
|
|
761
|
-
<div id="method-
|
762
|
-
<a name="
|
778
|
+
<div id="method-M000132" class="method-detail">
|
779
|
+
<a name="M000132"></a>
|
763
780
|
|
764
781
|
<div class="method-heading">
|
765
|
-
<a href="#
|
782
|
+
<a href="#M000132" class="method-signature">
|
766
783
|
<span class="method-name">node.attributes → attributes<br />
|
767
784
|
</span>
|
768
785
|
</a>
|
@@ -773,8 +790,8 @@ Specifies if this is an attribute declaration node
|
|
773
790
|
Returns the <a href="Attributes.html">XML::Attributes</a> for this node.
|
774
791
|
</p>
|
775
792
|
<p><a class="source-toggle" href="#"
|
776
|
-
onclick="toggleCode('
|
777
|
-
<div class="method-source-code" id="
|
793
|
+
onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
|
794
|
+
<div class="method-source-code" id="M000132-source">
|
778
795
|
<pre>
|
779
796
|
/*
|
780
797
|
* call-seq:
|
@@ -790,22 +807,22 @@ ruby_xml_node_attributes_get(VALUE self) {
|
|
790
807
|
</div>
|
791
808
|
</div>
|
792
809
|
|
793
|
-
<div id="method-
|
794
|
-
<a name="
|
810
|
+
<div id="method-M000170" class="method-detail">
|
811
|
+
<a name="M000170"></a>
|
795
812
|
|
796
813
|
<div class="method-heading">
|
797
|
-
<a href="#
|
814
|
+
<a href="#M000170" class="method-signature">
|
798
815
|
<span class="method-name">attributes?</span><span class="method-args">()</span>
|
799
816
|
</a>
|
800
817
|
</div>
|
801
818
|
|
802
819
|
<div class="method-description">
|
803
820
|
<p>
|
804
|
-
Determines whether this node has attributes
|
821
|
+
Determines whether this node has <a href="Node.html#M000132">attributes</a>
|
805
822
|
</p>
|
806
823
|
<p><a class="source-toggle" href="#"
|
807
|
-
onclick="toggleCode('
|
808
|
-
<div class="method-source-code" id="
|
824
|
+
onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
|
825
|
+
<div class="method-source-code" id="M000170-source">
|
809
826
|
<pre>
|
810
827
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 8</span>
|
811
828
|
8: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attributes?</span>
|
@@ -816,11 +833,11 @@ Determines whether this node has attributes
|
|
816
833
|
</div>
|
817
834
|
</div>
|
818
835
|
|
819
|
-
<div id="method-
|
820
|
-
<a name="
|
836
|
+
<div id="method-M000133" class="method-detail">
|
837
|
+
<a name="M000133"></a>
|
821
838
|
|
822
839
|
<div class="method-heading">
|
823
|
-
<a href="#
|
840
|
+
<a href="#M000133" class="method-signature">
|
824
841
|
<span class="method-name">node.base → "uri"<br />
|
825
842
|
</span>
|
826
843
|
</a>
|
@@ -828,11 +845,11 @@ Determines whether this node has attributes
|
|
828
845
|
|
829
846
|
<div class="method-description">
|
830
847
|
<p>
|
831
|
-
Obtain this node&#
|
848
|
+
Obtain this node‘s <a href="Node.html#M000133">base</a> URI.
|
832
849
|
</p>
|
833
850
|
<p><a class="source-toggle" href="#"
|
834
|
-
onclick="toggleCode('
|
835
|
-
<div class="method-source-code" id="
|
851
|
+
onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
|
852
|
+
<div class="method-source-code" id="M000133-source">
|
836
853
|
<pre>
|
837
854
|
/*
|
838
855
|
* call-seq:
|
@@ -848,11 +865,11 @@ ruby_xml_node_base_get(VALUE self) {
|
|
848
865
|
</div>
|
849
866
|
</div>
|
850
867
|
|
851
|
-
<div id="method-
|
852
|
-
<a name="
|
868
|
+
<div id="method-M000134" class="method-detail">
|
869
|
+
<a name="M000134"></a>
|
853
870
|
|
854
871
|
<div class="method-heading">
|
855
|
-
<a href="#
|
872
|
+
<a href="#M000134" class="method-signature">
|
856
873
|
<span class="method-name">node.base = "uri"<br />
|
857
874
|
</span>
|
858
875
|
</a>
|
@@ -860,11 +877,12 @@ ruby_xml_node_base_get(VALUE self) {
|
|
860
877
|
|
861
878
|
<div class="method-description">
|
862
879
|
<p>
|
863
|
-
<a href="Node/Set.html">Set</a> this node&#
|
880
|
+
<a href="Node/Set.html">Set</a> this node‘s <a
|
881
|
+
href="Node.html#M000133">base</a> URI.
|
864
882
|
</p>
|
865
883
|
<p><a class="source-toggle" href="#"
|
866
|
-
onclick="toggleCode('
|
867
|
-
<div class="method-source-code" id="
|
884
|
+
onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
|
885
|
+
<div class="method-source-code" id="M000134-source">
|
868
886
|
<pre>
|
869
887
|
/*
|
870
888
|
* call-seq:
|
@@ -880,11 +898,11 @@ ruby_xml_node_base_set(VALUE self, VALUE uri) {
|
|
880
898
|
</div>
|
881
899
|
</div>
|
882
900
|
|
883
|
-
<div id="method-
|
884
|
-
<a name="
|
901
|
+
<div id="method-M000135" class="method-detail">
|
902
|
+
<a name="M000135"></a>
|
885
903
|
|
886
904
|
<div class="method-heading">
|
887
|
-
<a href="#
|
905
|
+
<a href="#M000135" class="method-signature">
|
888
906
|
<span class="method-name">node.empty? → (true|false)<br />
|
889
907
|
</span>
|
890
908
|
</a>
|
@@ -895,8 +913,8 @@ ruby_xml_node_base_set(VALUE self, VALUE uri) {
|
|
895
913
|
Determine whether this node is empty.
|
896
914
|
</p>
|
897
915
|
<p><a class="source-toggle" href="#"
|
898
|
-
onclick="toggleCode('
|
899
|
-
<div class="method-source-code" id="
|
916
|
+
onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
|
917
|
+
<div class="method-source-code" id="M000135-source">
|
900
918
|
<pre>
|
901
919
|
/*
|
902
920
|
* call-seq:
|
@@ -912,11 +930,11 @@ ruby_xml_node_empty_q(VALUE self) {
|
|
912
930
|
</div>
|
913
931
|
</div>
|
914
932
|
|
915
|
-
<div id="method-
|
916
|
-
<a name="
|
933
|
+
<div id="method-M000186" class="method-detail">
|
934
|
+
<a name="M000186"></a>
|
917
935
|
|
918
936
|
<div class="method-heading">
|
919
|
-
<a href="#
|
937
|
+
<a href="#M000186" class="method-signature">
|
920
938
|
<span class="method-name">cdata?</span><span class="method-args">()</span>
|
921
939
|
</a>
|
922
940
|
</div>
|
@@ -926,8 +944,8 @@ ruby_xml_node_empty_q(VALUE self) {
|
|
926
944
|
Specifies if this is an CDATA node
|
927
945
|
</p>
|
928
946
|
<p><a class="source-toggle" href="#"
|
929
|
-
onclick="toggleCode('
|
930
|
-
<div class="method-source-code" id="
|
947
|
+
onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
|
948
|
+
<div class="method-source-code" id="M000186-source">
|
931
949
|
<pre>
|
932
950
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 168</span>
|
933
951
|
168: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cdata?</span>
|
@@ -938,8 +956,8 @@ Specifies if this is an CDATA node
|
|
938
956
|
</div>
|
939
957
|
</div>
|
940
958
|
|
941
|
-
<div id="method-
|
942
|
-
<a name="
|
959
|
+
<div id="method-M000206" class="method-detail">
|
960
|
+
<a name="M000206"></a>
|
943
961
|
|
944
962
|
<div class="method-heading">
|
945
963
|
<span class="method-name">child</span><span class="method-args">()</span>
|
@@ -947,16 +965,16 @@ Specifies if this is an CDATA node
|
|
947
965
|
|
948
966
|
<div class="method-description">
|
949
967
|
<p>
|
950
|
-
Alias for <a href="Node.html#
|
968
|
+
Alias for <a href="Node.html#M000120">first</a>
|
951
969
|
</p>
|
952
970
|
</div>
|
953
971
|
</div>
|
954
972
|
|
955
|
-
<div id="method-
|
956
|
-
<a name="
|
973
|
+
<div id="method-M000128" class="method-detail">
|
974
|
+
<a name="M000128"></a>
|
957
975
|
|
958
976
|
<div class="method-heading">
|
959
|
-
<a href="#
|
977
|
+
<a href="#M000128" class="method-signature">
|
960
978
|
<span class="method-name">node.child = node<br />
|
961
979
|
</span>
|
962
980
|
</a>
|
@@ -964,12 +982,12 @@ Alias for <a href="Node.html#M000117">first</a>
|
|
964
982
|
|
965
983
|
<div class="method-description">
|
966
984
|
<p>
|
967
|
-
<a href="Node/Set.html">Set</a> a
|
968
|
-
<<
|
985
|
+
<a href="Node/Set.html">Set</a> a <a href="Node.html#M000206">child</a>
|
986
|
+
node for this node. Also called for <<
|
969
987
|
</p>
|
970
988
|
<p><a class="source-toggle" href="#"
|
971
|
-
onclick="toggleCode('
|
972
|
-
<div class="method-source-code" id="
|
989
|
+
onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
|
990
|
+
<div class="method-source-code" id="M000128-source">
|
973
991
|
<pre>
|
974
992
|
/*
|
975
993
|
* call-seq:
|
@@ -985,8 +1003,8 @@ ruby_xml_node_child_set(VALUE self, VALUE rnode) {
|
|
985
1003
|
</div>
|
986
1004
|
</div>
|
987
1005
|
|
988
|
-
<div id="method-
|
989
|
-
<a name="
|
1006
|
+
<div id="method-M000204" class="method-detail">
|
1007
|
+
<a name="M000204"></a>
|
990
1008
|
|
991
1009
|
<div class="method-heading">
|
992
1010
|
<span class="method-name">child?</span><span class="method-args">()</span>
|
@@ -994,16 +1012,16 @@ ruby_xml_node_child_set(VALUE self, VALUE rnode) {
|
|
994
1012
|
|
995
1013
|
<div class="method-description">
|
996
1014
|
<p>
|
997
|
-
Alias for <a href="Node.html#
|
1015
|
+
Alias for <a href="Node.html#M000120">first</a>?
|
998
1016
|
</p>
|
999
1017
|
</div>
|
1000
1018
|
</div>
|
1001
1019
|
|
1002
|
-
<div id="method-
|
1003
|
-
<a name="
|
1020
|
+
<div id="method-M000127" class="method-detail">
|
1021
|
+
<a name="M000127"></a>
|
1004
1022
|
|
1005
1023
|
<div class="method-heading">
|
1006
|
-
<a href="#
|
1024
|
+
<a href="#M000127" class="method-signature">
|
1007
1025
|
<span class="method-name">node.child_add(node)<br />
|
1008
1026
|
</span>
|
1009
1027
|
</a>
|
@@ -1011,11 +1029,12 @@ Alias for <a href="Node.html#M000175">first?</a>
|
|
1011
1029
|
|
1012
1030
|
<div class="method-description">
|
1013
1031
|
<p>
|
1014
|
-
<a href="Node/Set.html">Set</a> a
|
1032
|
+
<a href="Node/Set.html">Set</a> a <a href="Node.html#M000206">child</a>
|
1033
|
+
node for this node.
|
1015
1034
|
</p>
|
1016
1035
|
<p><a class="source-toggle" href="#"
|
1017
|
-
onclick="toggleCode('
|
1018
|
-
<div class="method-source-code" id="
|
1036
|
+
onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
|
1037
|
+
<div class="method-source-code" id="M000127-source">
|
1019
1038
|
<pre>
|
1020
1039
|
/*
|
1021
1040
|
* call-seq:
|
@@ -1031,22 +1050,23 @@ ruby_xml_node_child_add(VALUE self, VALUE rnode) {
|
|
1031
1050
|
</div>
|
1032
1051
|
</div>
|
1033
1052
|
|
1034
|
-
<div id="method-
|
1035
|
-
<a name="
|
1053
|
+
<div id="method-M000179" class="method-detail">
|
1054
|
+
<a name="M000179"></a>
|
1036
1055
|
|
1037
1056
|
<div class="method-heading">
|
1038
|
-
<a href="#
|
1057
|
+
<a href="#M000179" class="method-signature">
|
1039
1058
|
<span class="method-name">children</span><span class="method-args">()</span>
|
1040
1059
|
</a>
|
1041
1060
|
</div>
|
1042
1061
|
|
1043
1062
|
<div class="method-description">
|
1044
1063
|
<p>
|
1045
|
-
Returns this node&#
|
1064
|
+
Returns this node‘s <a href="Node.html#M000179">children</a> as an
|
1065
|
+
array.
|
1046
1066
|
</p>
|
1047
1067
|
<p><a class="source-toggle" href="#"
|
1048
|
-
onclick="toggleCode('
|
1049
|
-
<div class="method-source-code" id="
|
1068
|
+
onclick="toggleCode('M000179-source');return false;">[Source]</a></p>
|
1069
|
+
<div class="method-source-code" id="M000179-source">
|
1050
1070
|
<pre>
|
1051
1071
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 82</span>
|
1052
1072
|
82: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">children</span>
|
@@ -1057,8 +1077,8 @@ Returns this node’s children as an array.
|
|
1057
1077
|
</div>
|
1058
1078
|
</div>
|
1059
1079
|
|
1060
|
-
<div id="method-
|
1061
|
-
<a name="
|
1080
|
+
<div id="method-M000205" class="method-detail">
|
1081
|
+
<a name="M000205"></a>
|
1062
1082
|
|
1063
1083
|
<div class="method-heading">
|
1064
1084
|
<span class="method-name">children?</span><span class="method-args">()</span>
|
@@ -1066,28 +1086,29 @@ Returns this node’s children as an array.
|
|
1066
1086
|
|
1067
1087
|
<div class="method-description">
|
1068
1088
|
<p>
|
1069
|
-
Alias for <a href="Node.html#
|
1089
|
+
Alias for <a href="Node.html#M000120">first</a>?
|
1070
1090
|
</p>
|
1071
1091
|
</div>
|
1072
1092
|
</div>
|
1073
1093
|
|
1074
|
-
<div id="method-
|
1075
|
-
<a name="
|
1094
|
+
<div id="method-M000171" class="method-detail">
|
1095
|
+
<a name="M000171"></a>
|
1076
1096
|
|
1077
1097
|
<div class="method-heading">
|
1078
|
-
<a href="#
|
1098
|
+
<a href="#M000171" class="method-signature">
|
1079
1099
|
<span class="method-name">clone</span><span class="method-args">()</span>
|
1080
1100
|
</a>
|
1081
1101
|
</div>
|
1082
1102
|
|
1083
1103
|
<div class="method-description">
|
1084
1104
|
<p>
|
1085
|
-
Create a shallow copy of the node. To
|
1086
|
-
href="Node.html#
|
1105
|
+
Create a shallow <a href="Node.html#M000136">copy</a> of the node. To
|
1106
|
+
create a deep <a href="Node.html#M000136">copy</a> call <a
|
1107
|
+
href="Node.html#M000136">Node#copy(true)</a>
|
1087
1108
|
</p>
|
1088
1109
|
<p><a class="source-toggle" href="#"
|
1089
|
-
onclick="toggleCode('
|
1090
|
-
<div class="method-source-code" id="
|
1110
|
+
onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
|
1111
|
+
<div class="method-source-code" id="M000171-source">
|
1091
1112
|
<pre>
|
1092
1113
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 14</span>
|
1093
1114
|
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone</span>
|
@@ -1098,11 +1119,11 @@ href="Node.html#M000133">Node#copy</a>(true)
|
|
1098
1119
|
</div>
|
1099
1120
|
</div>
|
1100
1121
|
|
1101
|
-
<div id="method-
|
1102
|
-
<a name="
|
1122
|
+
<div id="method-M000187" class="method-detail">
|
1123
|
+
<a name="M000187"></a>
|
1103
1124
|
|
1104
1125
|
<div class="method-heading">
|
1105
|
-
<a href="#
|
1126
|
+
<a href="#M000187" class="method-signature">
|
1106
1127
|
<span class="method-name">comment?</span><span class="method-args">()</span>
|
1107
1128
|
</a>
|
1108
1129
|
</div>
|
@@ -1112,8 +1133,8 @@ href="Node.html#M000133">Node#copy</a>(true)
|
|
1112
1133
|
Specifies if this is an comment node
|
1113
1134
|
</p>
|
1114
1135
|
<p><a class="source-toggle" href="#"
|
1115
|
-
onclick="toggleCode('
|
1116
|
-
<div class="method-source-code" id="
|
1136
|
+
onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
|
1137
|
+
<div class="method-source-code" id="M000187-source">
|
1117
1138
|
<pre>
|
1118
1139
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 173</span>
|
1119
1140
|
173: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">comment?</span>
|
@@ -1124,11 +1145,11 @@ Specifies if this is an comment node
|
|
1124
1145
|
</div>
|
1125
1146
|
</div>
|
1126
1147
|
|
1127
|
-
<div id="method-
|
1128
|
-
<a name="
|
1148
|
+
<div id="method-M000137" class="method-detail">
|
1149
|
+
<a name="M000137"></a>
|
1129
1150
|
|
1130
1151
|
<div class="method-heading">
|
1131
|
-
<a href="#
|
1152
|
+
<a href="#M000137" class="method-signature">
|
1132
1153
|
<span class="method-name">node.content → "string"<br />
|
1133
1154
|
</span>
|
1134
1155
|
</a>
|
@@ -1136,11 +1157,12 @@ Specifies if this is an comment node
|
|
1136
1157
|
|
1137
1158
|
<div class="method-description">
|
1138
1159
|
<p>
|
1139
|
-
Obtain this node&#
|
1160
|
+
Obtain this node‘s <a href="Node.html#M000137">content</a> as a
|
1161
|
+
string.
|
1140
1162
|
</p>
|
1141
1163
|
<p><a class="source-toggle" href="#"
|
1142
|
-
onclick="toggleCode('
|
1143
|
-
<div class="method-source-code" id="
|
1164
|
+
onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
|
1165
|
+
<div class="method-source-code" id="M000137-source">
|
1144
1166
|
<pre>
|
1145
1167
|
/*
|
1146
1168
|
* call-seq:
|
@@ -1156,11 +1178,11 @@ ruby_xml_node_content_get(VALUE self) {
|
|
1156
1178
|
</div>
|
1157
1179
|
</div>
|
1158
1180
|
|
1159
|
-
<div id="method-
|
1160
|
-
<a name="
|
1181
|
+
<div id="method-M000138" class="method-detail">
|
1182
|
+
<a name="M000138"></a>
|
1161
1183
|
|
1162
1184
|
<div class="method-heading">
|
1163
|
-
<a href="#
|
1185
|
+
<a href="#M000138" class="method-signature">
|
1164
1186
|
<span class="method-name">node.content = "string"<br />
|
1165
1187
|
</span>
|
1166
1188
|
</a>
|
@@ -1168,12 +1190,12 @@ ruby_xml_node_content_get(VALUE self) {
|
|
1168
1190
|
|
1169
1191
|
<div class="method-description">
|
1170
1192
|
<p>
|
1171
|
-
<a href="Node/Set.html">Set</a> this node&#
|
1172
|
-
string.
|
1193
|
+
<a href="Node/Set.html">Set</a> this node‘s <a
|
1194
|
+
href="Node.html#M000137">content</a> to the specified string.
|
1173
1195
|
</p>
|
1174
1196
|
<p><a class="source-toggle" href="#"
|
1175
|
-
onclick="toggleCode('
|
1176
|
-
<div class="method-source-code" id="
|
1197
|
+
onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
|
1198
|
+
<div class="method-source-code" id="M000138-source">
|
1177
1199
|
<pre>
|
1178
1200
|
/*
|
1179
1201
|
* call-seq:
|
@@ -1189,11 +1211,11 @@ ruby_xml_node_content_set(VALUE self, VALUE content) {
|
|
1189
1211
|
</div>
|
1190
1212
|
</div>
|
1191
1213
|
|
1192
|
-
<div id="method-
|
1193
|
-
<a name="
|
1214
|
+
<div id="method-M000139" class="method-detail">
|
1215
|
+
<a name="M000139"></a>
|
1194
1216
|
|
1195
1217
|
<div class="method-heading">
|
1196
|
-
<a href="#
|
1218
|
+
<a href="#M000139" class="method-signature">
|
1197
1219
|
<span class="method-name">node.content_stripped → "string"<br />
|
1198
1220
|
</span>
|
1199
1221
|
</a>
|
@@ -1201,15 +1223,15 @@ ruby_xml_node_content_set(VALUE self, VALUE content) {
|
|
1201
1223
|
|
1202
1224
|
<div class="method-description">
|
1203
1225
|
<p>
|
1204
|
-
Obtain this node&#
|
1226
|
+
Obtain this node‘s stripped <a href="Node.html#M000137">content</a>.
|
1205
1227
|
</p>
|
1206
1228
|
<p>
|
1207
|
-
<b>Deprecated</b>: Stripped content can be
|
1208
|
-
<tt>content</tt> method.
|
1229
|
+
<b>Deprecated</b>: Stripped <a href="Node.html#M000137">content</a> can be
|
1230
|
+
obtained via the <tt><a href="Node.html#M000137">content</a></tt> method.
|
1209
1231
|
</p>
|
1210
1232
|
<p><a class="source-toggle" href="#"
|
1211
|
-
onclick="toggleCode('
|
1212
|
-
<div class="method-source-code" id="
|
1233
|
+
onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
|
1234
|
+
<div class="method-source-code" id="M000139-source">
|
1213
1235
|
<pre>
|
1214
1236
|
/*
|
1215
1237
|
* call-seq:
|
@@ -1228,11 +1250,11 @@ ruby_xml_node_content_stripped_get(VALUE self) {
|
|
1228
1250
|
</div>
|
1229
1251
|
</div>
|
1230
1252
|
|
1231
|
-
<div id="method-
|
1232
|
-
<a name="
|
1253
|
+
<div id="method-M000136" class="method-detail">
|
1254
|
+
<a name="M000136"></a>
|
1233
1255
|
|
1234
1256
|
<div class="method-heading">
|
1235
|
-
<a href="#
|
1257
|
+
<a href="#M000136" class="method-signature">
|
1236
1258
|
<span class="method-name">node.copy → XML::Node<br />
|
1237
1259
|
</span>
|
1238
1260
|
</a>
|
@@ -1240,12 +1262,14 @@ ruby_xml_node_content_stripped_get(VALUE self) {
|
|
1240
1262
|
|
1241
1263
|
<div class="method-description">
|
1242
1264
|
<p>
|
1243
|
-
Creates a copy of this node. To create a
|
1244
|
-
|
1265
|
+
Creates a <a href="Node.html#M000136">copy</a> of this node. To create a
|
1266
|
+
shallow <a href="Node.html#M000136">copy</a> set the deep parameter to
|
1267
|
+
false. To create a deep <a href="Node.html#M000136">copy</a> set the deep
|
1268
|
+
parameter to true.
|
1245
1269
|
</p>
|
1246
1270
|
<p><a class="source-toggle" href="#"
|
1247
|
-
onclick="toggleCode('
|
1248
|
-
<div class="method-source-code" id="
|
1271
|
+
onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
|
1272
|
+
<div class="method-source-code" id="M000136-source">
|
1249
1273
|
<pre>
|
1250
1274
|
/*
|
1251
1275
|
* call-seq:
|
@@ -1265,11 +1289,11 @@ ruby_xml_node_copy(VALUE self, VALUE deep) {
|
|
1265
1289
|
</div>
|
1266
1290
|
</div>
|
1267
1291
|
|
1268
|
-
<div id="method-
|
1269
|
-
<a name="
|
1292
|
+
<div id="method-M000142" class="method-detail">
|
1293
|
+
<a name="M000142"></a>
|
1270
1294
|
|
1271
1295
|
<div class="method-heading">
|
1272
|
-
<a href="#
|
1296
|
+
<a href="#M000142" class="method-signature">
|
1273
1297
|
<span class="method-name">node.debug_dump → (true|nil)<br />
|
1274
1298
|
</span>
|
1275
1299
|
</a>
|
@@ -1280,8 +1304,8 @@ ruby_xml_node_copy(VALUE self, VALUE deep) {
|
|
1280
1304
|
Dump this node to stdout, including any debugging information.
|
1281
1305
|
</p>
|
1282
1306
|
<p><a class="source-toggle" href="#"
|
1283
|
-
onclick="toggleCode('
|
1284
|
-
<div class="method-source-code" id="
|
1307
|
+
onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
|
1308
|
+
<div class="method-source-code" id="M000142-source">
|
1285
1309
|
<pre>
|
1286
1310
|
/*
|
1287
1311
|
* call-seq:
|
@@ -1298,11 +1322,11 @@ ruby_xml_node_debug_dump(VALUE self) {
|
|
1298
1322
|
</div>
|
1299
1323
|
</div>
|
1300
1324
|
|
1301
|
-
<div id="method-
|
1302
|
-
<a name="
|
1325
|
+
<div id="method-M000140" class="method-detail">
|
1326
|
+
<a name="M000140"></a>
|
1303
1327
|
|
1304
1328
|
<div class="method-heading">
|
1305
|
-
<a href="#
|
1329
|
+
<a href="#M000140" class="method-signature">
|
1306
1330
|
<span class="method-name">node.doc → document<br />
|
1307
1331
|
</span>
|
1308
1332
|
</a>
|
@@ -1313,8 +1337,8 @@ ruby_xml_node_debug_dump(VALUE self) {
|
|
1313
1337
|
Obtain the <a href="Document.html">XML::Document</a> this node belongs to.
|
1314
1338
|
</p>
|
1315
1339
|
<p><a class="source-toggle" href="#"
|
1316
|
-
onclick="toggleCode('
|
1317
|
-
<div class="method-source-code" id="
|
1340
|
+
onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
|
1341
|
+
<div class="method-source-code" id="M000140-source">
|
1318
1342
|
<pre>
|
1319
1343
|
/*
|
1320
1344
|
* call-seq:
|
@@ -1330,11 +1354,11 @@ ruby_xml_node_doc(VALUE self) {
|
|
1330
1354
|
</div>
|
1331
1355
|
</div>
|
1332
1356
|
|
1333
|
-
<div id="method-
|
1334
|
-
<a name="
|
1357
|
+
<div id="method-M000188" class="method-detail">
|
1358
|
+
<a name="M000188"></a>
|
1335
1359
|
|
1336
1360
|
<div class="method-heading">
|
1337
|
-
<a href="#
|
1361
|
+
<a href="#M000188" class="method-signature">
|
1338
1362
|
<span class="method-name">docbook_doc?</span><span class="method-args">()</span>
|
1339
1363
|
</a>
|
1340
1364
|
</div>
|
@@ -1344,8 +1368,8 @@ ruby_xml_node_doc(VALUE self) {
|
|
1344
1368
|
Specifies if this is an docbook node
|
1345
1369
|
</p>
|
1346
1370
|
<p><a class="source-toggle" href="#"
|
1347
|
-
onclick="toggleCode('
|
1348
|
-
<div class="method-source-code" id="
|
1371
|
+
onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
|
1372
|
+
<div class="method-source-code" id="M000188-source">
|
1349
1373
|
<pre>
|
1350
1374
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 178</span>
|
1351
1375
|
178: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">docbook_doc?</span>
|
@@ -1356,11 +1380,11 @@ Specifies if this is an docbook node
|
|
1356
1380
|
</div>
|
1357
1381
|
</div>
|
1358
1382
|
|
1359
|
-
<div id="method-
|
1360
|
-
<a name="
|
1383
|
+
<div id="method-M000189" class="method-detail">
|
1384
|
+
<a name="M000189"></a>
|
1361
1385
|
|
1362
1386
|
<div class="method-heading">
|
1363
|
-
<a href="#
|
1387
|
+
<a href="#M000189" class="method-signature">
|
1364
1388
|
<span class="method-name">doctype?</span><span class="method-args">()</span>
|
1365
1389
|
</a>
|
1366
1390
|
</div>
|
@@ -1370,8 +1394,8 @@ Specifies if this is an docbook node
|
|
1370
1394
|
Specifies if this is an docbook node
|
1371
1395
|
</p>
|
1372
1396
|
<p><a class="source-toggle" href="#"
|
1373
|
-
onclick="toggleCode('
|
1374
|
-
<div class="method-source-code" id="
|
1397
|
+
onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
|
1398
|
+
<div class="method-source-code" id="M000189-source">
|
1375
1399
|
<pre>
|
1376
1400
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 183</span>
|
1377
1401
|
183: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">doctype?</span>
|
@@ -1382,11 +1406,11 @@ Specifies if this is an docbook node
|
|
1382
1406
|
</div>
|
1383
1407
|
</div>
|
1384
1408
|
|
1385
|
-
<div id="method-
|
1386
|
-
<a name="
|
1409
|
+
<div id="method-M000190" class="method-detail">
|
1410
|
+
<a name="M000190"></a>
|
1387
1411
|
|
1388
1412
|
<div class="method-heading">
|
1389
|
-
<a href="#
|
1413
|
+
<a href="#M000190" class="method-signature">
|
1390
1414
|
<span class="method-name">document?</span><span class="method-args">()</span>
|
1391
1415
|
</a>
|
1392
1416
|
</div>
|
@@ -1396,8 +1420,8 @@ Specifies if this is an docbook node
|
|
1396
1420
|
Specifies if this is an DOCTYPE node
|
1397
1421
|
</p>
|
1398
1422
|
<p><a class="source-toggle" href="#"
|
1399
|
-
onclick="toggleCode('
|
1400
|
-
<div class="method-source-code" id="
|
1423
|
+
onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
|
1424
|
+
<div class="method-source-code" id="M000190-source">
|
1401
1425
|
<pre>
|
1402
1426
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 188</span>
|
1403
1427
|
188: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">document?</span>
|
@@ -1408,11 +1432,11 @@ Specifies if this is an DOCTYPE node
|
|
1408
1432
|
</div>
|
1409
1433
|
</div>
|
1410
1434
|
|
1411
|
-
<div id="method-
|
1412
|
-
<a name="
|
1435
|
+
<div id="method-M000191" class="method-detail">
|
1436
|
+
<a name="M000191"></a>
|
1413
1437
|
|
1414
1438
|
<div class="method-heading">
|
1415
|
-
<a href="#
|
1439
|
+
<a href="#M000191" class="method-signature">
|
1416
1440
|
<span class="method-name">dtd?</span><span class="method-args">()</span>
|
1417
1441
|
</a>
|
1418
1442
|
</div>
|
@@ -1422,8 +1446,8 @@ Specifies if this is an DOCTYPE node
|
|
1422
1446
|
Specifies if this is an DTD node
|
1423
1447
|
</p>
|
1424
1448
|
<p><a class="source-toggle" href="#"
|
1425
|
-
onclick="toggleCode('
|
1426
|
-
<div class="method-source-code" id="
|
1449
|
+
onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
|
1450
|
+
<div class="method-source-code" id="M000191-source">
|
1427
1451
|
<pre>
|
1428
1452
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 193</span>
|
1429
1453
|
193: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dtd?</span>
|
@@ -1434,11 +1458,11 @@ Specifies if this is an DTD node
|
|
1434
1458
|
</div>
|
1435
1459
|
</div>
|
1436
1460
|
|
1437
|
-
<div id="method-
|
1438
|
-
<a name="
|
1461
|
+
<div id="method-M000141" class="method-detail">
|
1462
|
+
<a name="M000141"></a>
|
1439
1463
|
|
1440
1464
|
<div class="method-heading">
|
1441
|
-
<a href="#
|
1465
|
+
<a href="#M000141" class="method-signature">
|
1442
1466
|
<span class="method-name">node.dump → (true|nil)<br />
|
1443
1467
|
</span>
|
1444
1468
|
</a>
|
@@ -1449,8 +1473,8 @@ Specifies if this is an DTD node
|
|
1449
1473
|
Dump this node to stdout.
|
1450
1474
|
</p>
|
1451
1475
|
<p><a class="source-toggle" href="#"
|
1452
|
-
onclick="toggleCode('
|
1453
|
-
<div class="method-source-code" id="
|
1476
|
+
onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
|
1477
|
+
<div class="method-source-code" id="M000141-source">
|
1454
1478
|
<pre>
|
1455
1479
|
/*
|
1456
1480
|
* call-seq:
|
@@ -1466,23 +1490,24 @@ ruby_xml_node_dump(VALUE self) {
|
|
1466
1490
|
</div>
|
1467
1491
|
</div>
|
1468
1492
|
|
1469
|
-
<div id="method-
|
1470
|
-
<a name="
|
1493
|
+
<div id="method-M000172" class="method-detail">
|
1494
|
+
<a name="M000172"></a>
|
1471
1495
|
|
1472
1496
|
<div class="method-heading">
|
1473
|
-
<a href="#
|
1497
|
+
<a href="#M000172" class="method-signature">
|
1474
1498
|
<span class="method-name">dup</span><span class="method-args">()</span>
|
1475
1499
|
</a>
|
1476
1500
|
</div>
|
1477
1501
|
|
1478
1502
|
<div class="method-description">
|
1479
1503
|
<p>
|
1480
|
-
Create a shallow copy of the node. To
|
1481
|
-
href="Node.html#
|
1504
|
+
Create a shallow <a href="Node.html#M000136">copy</a> of the node. To
|
1505
|
+
create a deep <a href="Node.html#M000136">copy</a> call <a
|
1506
|
+
href="Node.html#M000136">Node#copy(true)</a>
|
1482
1507
|
</p>
|
1483
1508
|
<p><a class="source-toggle" href="#"
|
1484
|
-
onclick="toggleCode('
|
1485
|
-
<div class="method-source-code" id="
|
1509
|
+
onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
|
1510
|
+
<div class="method-source-code" id="M000172-source">
|
1486
1511
|
<pre>
|
1487
1512
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 20</span>
|
1488
1513
|
20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dup</span>
|
@@ -1493,11 +1518,11 @@ href="Node.html#M000133">Node#copy</a>(true)
|
|
1493
1518
|
</div>
|
1494
1519
|
</div>
|
1495
1520
|
|
1496
|
-
<div id="method-
|
1497
|
-
<a name="
|
1521
|
+
<div id="method-M000119" class="method-detail">
|
1522
|
+
<a name="M000119"></a>
|
1498
1523
|
|
1499
1524
|
<div class="method-heading">
|
1500
|
-
<a href="#
|
1525
|
+
<a href="#M000119" class="method-signature">
|
1501
1526
|
<span class="method-name">node.each → XML::Node<br />
|
1502
1527
|
</span>
|
1503
1528
|
</a>
|
@@ -1505,17 +1530,18 @@ href="Node.html#M000133">Node#copy</a>(true)
|
|
1505
1530
|
|
1506
1531
|
<div class="method-description">
|
1507
1532
|
<p>
|
1508
|
-
Iterates over this node&#
|
1509
|
-
nodes, etc. If you wish to iterate only over
|
1510
|
-
href="Node.html#
|
1533
|
+
Iterates over this node‘s <a href="Node.html#M000179">children</a>,
|
1534
|
+
including text nodes, element nodes, etc. If you wish to iterate only over
|
1535
|
+
<a href="Node.html#M000206">child</a> elements, use <a
|
1536
|
+
href="Node.html#M000176">XML::Node#each_element</a>.
|
1511
1537
|
</p>
|
1512
1538
|
<pre>
|
1513
1539
|
doc = XML::Document.new('model/books.xml')
|
1514
1540
|
doc.root.each {|node| puts node}
|
1515
1541
|
</pre>
|
1516
1542
|
<p><a class="source-toggle" href="#"
|
1517
|
-
onclick="toggleCode('
|
1518
|
-
<div class="method-source-code" id="
|
1543
|
+
onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
|
1544
|
+
<div class="method-source-code" id="M000119-source">
|
1519
1545
|
<pre>
|
1520
1546
|
/*
|
1521
1547
|
* call-seq:
|
@@ -1536,11 +1562,11 @@ ruby_xml_node_each(VALUE self) {
|
|
1536
1562
|
</div>
|
1537
1563
|
</div>
|
1538
1564
|
|
1539
|
-
<div id="method-
|
1540
|
-
<a name="
|
1565
|
+
<div id="method-M000175" class="method-detail">
|
1566
|
+
<a name="M000175"></a>
|
1541
1567
|
|
1542
1568
|
<div class="method-heading">
|
1543
|
-
<a href="#
|
1569
|
+
<a href="#M000175" class="method-signature">
|
1544
1570
|
<span class="method-name">each_attr</span><span class="method-args">() {|attr| ...}</span>
|
1545
1571
|
</a>
|
1546
1572
|
</div>
|
@@ -1548,15 +1574,15 @@ ruby_xml_node_each(VALUE self) {
|
|
1548
1574
|
<div class="method-description">
|
1549
1575
|
<p>
|
1550
1576
|
——- Traversal —————- Iterates
|
1551
|
-
over this node&#
|
1577
|
+
over this node‘s <a href="Node.html#M000132">attributes</a>.
|
1552
1578
|
</p>
|
1553
1579
|
<pre>
|
1554
1580
|
doc = XML::Document.new('model/books.xml')
|
1555
1581
|
doc.root.each_attr {|attr| puts attr}
|
1556
1582
|
</pre>
|
1557
1583
|
<p><a class="source-toggle" href="#"
|
1558
|
-
onclick="toggleCode('
|
1559
|
-
<div class="method-source-code" id="
|
1584
|
+
onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
|
1585
|
+
<div class="method-source-code" id="M000175-source">
|
1560
1586
|
<pre>
|
1561
1587
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 54</span>
|
1562
1588
|
54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_attr</span>
|
@@ -1569,8 +1595,8 @@ over this node’s attributes.
|
|
1569
1595
|
</div>
|
1570
1596
|
</div>
|
1571
1597
|
|
1572
|
-
<div id="method-
|
1573
|
-
<a name="
|
1598
|
+
<div id="method-M000207" class="method-detail">
|
1599
|
+
<a name="M000207"></a>
|
1574
1600
|
|
1575
1601
|
<div class="method-heading">
|
1576
1602
|
<span class="method-name">each_child</span><span class="method-args">()</span>
|
@@ -1578,32 +1604,33 @@ over this node’s attributes.
|
|
1578
1604
|
|
1579
1605
|
<div class="method-description">
|
1580
1606
|
<p>
|
1581
|
-
Alias for <a href="Node.html#
|
1607
|
+
Alias for <a href="Node.html#M000119">each</a>
|
1582
1608
|
</p>
|
1583
1609
|
</div>
|
1584
1610
|
</div>
|
1585
1611
|
|
1586
|
-
<div id="method-
|
1587
|
-
<a name="
|
1612
|
+
<div id="method-M000176" class="method-detail">
|
1613
|
+
<a name="M000176"></a>
|
1588
1614
|
|
1589
1615
|
<div class="method-heading">
|
1590
|
-
<a href="#
|
1616
|
+
<a href="#M000176" class="method-signature">
|
1591
1617
|
<span class="method-name">each_element</span><span class="method-args">() {|node| ...}</span>
|
1592
1618
|
</a>
|
1593
1619
|
</div>
|
1594
1620
|
|
1595
1621
|
<div class="method-description">
|
1596
1622
|
<p>
|
1597
|
-
Iterates over this node&#
|
1598
|
-
href="Node.html#
|
1623
|
+
Iterates over this node‘s <a href="Node.html#M000206">child</a>
|
1624
|
+
elements (nodes that have a <a href="Node.html#M000153">node_type</a> ==
|
1625
|
+
ELEMENT_NODE).
|
1599
1626
|
</p>
|
1600
1627
|
<pre>
|
1601
1628
|
doc = XML::Document.new('model/books.xml')
|
1602
1629
|
doc.root.each_element {|element| puts element}
|
1603
1630
|
</pre>
|
1604
1631
|
<p><a class="source-toggle" href="#"
|
1605
|
-
onclick="toggleCode('
|
1606
|
-
<div class="method-source-code" id="
|
1632
|
+
onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
|
1633
|
+
<div class="method-source-code" id="M000176-source">
|
1607
1634
|
<pre>
|
1608
1635
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 65</span>
|
1609
1636
|
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_element</span>
|
@@ -1616,11 +1643,11 @@ href="Node.html#M000150">node_type</a> == ELEMENT_NODE).
|
|
1616
1643
|
</div>
|
1617
1644
|
</div>
|
1618
1645
|
|
1619
|
-
<div id="method-
|
1620
|
-
<a name="
|
1646
|
+
<div id="method-M000192" class="method-detail">
|
1647
|
+
<a name="M000192"></a>
|
1621
1648
|
|
1622
1649
|
<div class="method-heading">
|
1623
|
-
<a href="#
|
1650
|
+
<a href="#M000192" class="method-signature">
|
1624
1651
|
<span class="method-name">element?</span><span class="method-args">()</span>
|
1625
1652
|
</a>
|
1626
1653
|
</div>
|
@@ -1630,8 +1657,8 @@ href="Node.html#M000150">node_type</a> == ELEMENT_NODE).
|
|
1630
1657
|
Specifies if this is an element node
|
1631
1658
|
</p>
|
1632
1659
|
<p><a class="source-toggle" href="#"
|
1633
|
-
onclick="toggleCode('
|
1634
|
-
<div class="method-source-code" id="
|
1660
|
+
onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
|
1661
|
+
<div class="method-source-code" id="M000192-source">
|
1635
1662
|
<pre>
|
1636
1663
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 198</span>
|
1637
1664
|
198: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">element?</span>
|
@@ -1642,11 +1669,11 @@ Specifies if this is an element node
|
|
1642
1669
|
</div>
|
1643
1670
|
</div>
|
1644
1671
|
|
1645
|
-
<div id="method-
|
1646
|
-
<a name="
|
1672
|
+
<div id="method-M000194" class="method-detail">
|
1673
|
+
<a name="M000194"></a>
|
1647
1674
|
|
1648
1675
|
<div class="method-heading">
|
1649
|
-
<a href="#
|
1676
|
+
<a href="#M000194" class="method-signature">
|
1650
1677
|
<span class="method-name">element_decl?</span><span class="method-args">()</span>
|
1651
1678
|
</a>
|
1652
1679
|
</div>
|
@@ -1656,8 +1683,8 @@ Specifies if this is an element node
|
|
1656
1683
|
Specifies if this is an element declaration node
|
1657
1684
|
</p>
|
1658
1685
|
<p><a class="source-toggle" href="#"
|
1659
|
-
onclick="toggleCode('
|
1660
|
-
<div class="method-source-code" id="
|
1686
|
+
onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
|
1687
|
+
<div class="method-source-code" id="M000194-source">
|
1661
1688
|
<pre>
|
1662
1689
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 208</span>
|
1663
1690
|
208: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">element_decl?</span>
|
@@ -1668,11 +1695,11 @@ Specifies if this is an element declaration node
|
|
1668
1695
|
</div>
|
1669
1696
|
</div>
|
1670
1697
|
|
1671
|
-
<div id="method-
|
1672
|
-
<a name="
|
1698
|
+
<div id="method-M000143" class="method-detail">
|
1699
|
+
<a name="M000143"></a>
|
1673
1700
|
|
1674
1701
|
<div class="method-heading">
|
1675
|
-
<a href="#
|
1702
|
+
<a href="#M000143" class="method-signature">
|
1676
1703
|
<span class="method-name">node.empty? → (true|false)<br />
|
1677
1704
|
</span>
|
1678
1705
|
</a>
|
@@ -1683,8 +1710,8 @@ Specifies if this is an element declaration node
|
|
1683
1710
|
Determine whether this node is empty.
|
1684
1711
|
</p>
|
1685
1712
|
<p><a class="source-toggle" href="#"
|
1686
|
-
onclick="toggleCode('
|
1687
|
-
<div class="method-source-code" id="
|
1713
|
+
onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
|
1714
|
+
<div class="method-source-code" id="M000143-source">
|
1688
1715
|
<pre>
|
1689
1716
|
/*
|
1690
1717
|
* call-seq:
|
@@ -1700,11 +1727,11 @@ ruby_xml_node_empty_q(VALUE self) {
|
|
1700
1727
|
</div>
|
1701
1728
|
</div>
|
1702
1729
|
|
1703
|
-
<div id="method-
|
1704
|
-
<a name="
|
1730
|
+
<div id="method-M000193" class="method-detail">
|
1731
|
+
<a name="M000193"></a>
|
1705
1732
|
|
1706
1733
|
<div class="method-heading">
|
1707
|
-
<a href="#
|
1734
|
+
<a href="#M000193" class="method-signature">
|
1708
1735
|
<span class="method-name">entity?</span><span class="method-args">()</span>
|
1709
1736
|
</a>
|
1710
1737
|
</div>
|
@@ -1714,8 +1741,8 @@ ruby_xml_node_empty_q(VALUE self) {
|
|
1714
1741
|
Specifies if this is an entity node
|
1715
1742
|
</p>
|
1716
1743
|
<p><a class="source-toggle" href="#"
|
1717
|
-
onclick="toggleCode('
|
1718
|
-
<div class="method-source-code" id="
|
1744
|
+
onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
|
1745
|
+
<div class="method-source-code" id="M000193-source">
|
1719
1746
|
<pre>
|
1720
1747
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 203</span>
|
1721
1748
|
203: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entity?</span>
|
@@ -1726,11 +1753,11 @@ Specifies if this is an entity node
|
|
1726
1753
|
</div>
|
1727
1754
|
</div>
|
1728
1755
|
|
1729
|
-
<div id="method-
|
1730
|
-
<a name="
|
1756
|
+
<div id="method-M000195" class="method-detail">
|
1757
|
+
<a name="M000195"></a>
|
1731
1758
|
|
1732
1759
|
<div class="method-heading">
|
1733
|
-
<a href="#
|
1760
|
+
<a href="#M000195" class="method-signature">
|
1734
1761
|
<span class="method-name">entity_ref?</span><span class="method-args">()</span>
|
1735
1762
|
</a>
|
1736
1763
|
</div>
|
@@ -1740,8 +1767,8 @@ Specifies if this is an entity node
|
|
1740
1767
|
Specifies if this is an entity reference node
|
1741
1768
|
</p>
|
1742
1769
|
<p><a class="source-toggle" href="#"
|
1743
|
-
onclick="toggleCode('
|
1744
|
-
<div class="method-source-code" id="
|
1770
|
+
onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
|
1771
|
+
<div class="method-source-code" id="M000195-source">
|
1745
1772
|
<pre>
|
1746
1773
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 213</span>
|
1747
1774
|
213: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entity_ref?</span>
|
@@ -1752,11 +1779,11 @@ Specifies if this is an entity reference node
|
|
1752
1779
|
</div>
|
1753
1780
|
</div>
|
1754
1781
|
|
1755
|
-
<div id="method-
|
1756
|
-
<a name="
|
1782
|
+
<div id="method-M000144" class="method-detail">
|
1783
|
+
<a name="M000144"></a>
|
1757
1784
|
|
1758
1785
|
<div class="method-heading">
|
1759
|
-
<a href="#
|
1786
|
+
<a href="#M000144" class="method-signature">
|
1760
1787
|
<span class="method-name">node.eql?(other_node) => (true|false)<br />
|
1761
1788
|
</span>
|
1762
1789
|
</a>
|
@@ -1768,8 +1795,8 @@ Test equality between the two nodes. Two nodes are equal if they are the
|
|
1768
1795
|
same node or have the same <a href="../XML.html">XML</a> representation.
|
1769
1796
|
</p>
|
1770
1797
|
<p><a class="source-toggle" href="#"
|
1771
|
-
onclick="toggleCode('
|
1772
|
-
<div class="method-source-code" id="
|
1798
|
+
onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
|
1799
|
+
<div class="method-source-code" id="M000144-source">
|
1773
1800
|
<pre>
|
1774
1801
|
/*
|
1775
1802
|
* call-seq:
|
@@ -1785,11 +1812,11 @@ ruby_xml_node_eql_q(VALUE self, VALUE other) {
|
|
1785
1812
|
</div>
|
1786
1813
|
</div>
|
1787
1814
|
|
1788
|
-
<div id="method-
|
1789
|
-
<a name="
|
1815
|
+
<div id="method-M000173" class="method-detail">
|
1816
|
+
<a name="M000173"></a>
|
1790
1817
|
|
1791
1818
|
<div class="method-heading">
|
1792
|
-
<a href="#
|
1819
|
+
<a href="#M000173" class="method-signature">
|
1793
1820
|
<span class="method-name">find</span><span class="method-args">(xpath, nslist = nil)</span>
|
1794
1821
|
</a>
|
1795
1822
|
</div>
|
@@ -1798,11 +1825,11 @@ ruby_xml_node_eql_q(VALUE self, VALUE other) {
|
|
1798
1825
|
<p>
|
1799
1826
|
Return nodes matching the specified xpath expression. For more information,
|
1800
1827
|
please refer to the documentation for <a
|
1801
|
-
href="Document.html#
|
1828
|
+
href="Document.html#M000359">XML::Document#find</a>.
|
1802
1829
|
</p>
|
1803
1830
|
<p><a class="source-toggle" href="#"
|
1804
|
-
onclick="toggleCode('
|
1805
|
-
<div class="method-source-code" id="
|
1831
|
+
onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
|
1832
|
+
<div class="method-source-code" id="M000173-source">
|
1806
1833
|
<pre>
|
1807
1834
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 27</span>
|
1808
1835
|
27: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find</span>(<span class="ruby-identifier">xpath</span>, <span class="ruby-identifier">nslist</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -1824,24 +1851,24 @@ href="Document.html#M000354">XML::Document#find</a>.
|
|
1824
1851
|
</div>
|
1825
1852
|
</div>
|
1826
1853
|
|
1827
|
-
<div id="method-
|
1828
|
-
<a name="
|
1854
|
+
<div id="method-M000174" class="method-detail">
|
1855
|
+
<a name="M000174"></a>
|
1829
1856
|
|
1830
1857
|
<div class="method-heading">
|
1831
|
-
<a href="#
|
1858
|
+
<a href="#M000174" class="method-signature">
|
1832
1859
|
<span class="method-name">find_first</span><span class="method-args">(xpath, nslist = nil)</span>
|
1833
1860
|
</a>
|
1834
1861
|
</div>
|
1835
1862
|
|
1836
1863
|
<div class="method-description">
|
1837
1864
|
<p>
|
1838
|
-
Return the first node matching the
|
1839
|
-
information, please refer to the
|
1840
|
-
href="Node.html#
|
1865
|
+
Return the <a href="Node.html#M000120">first</a> node matching the
|
1866
|
+
specified xpath expression. For more information, please refer to the
|
1867
|
+
documentation for <a href="Node.html#M000173">XML::Node#find</a>.
|
1841
1868
|
</p>
|
1842
1869
|
<p><a class="source-toggle" href="#"
|
1843
|
-
onclick="toggleCode('
|
1844
|
-
<div class="method-source-code" id="
|
1870
|
+
onclick="toggleCode('M000174-source');return false;">[Source]</a></p>
|
1871
|
+
<div class="method-source-code" id="M000174-source">
|
1845
1872
|
<pre>
|
1846
1873
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 45</span>
|
1847
1874
|
45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_first</span>(<span class="ruby-identifier">xpath</span>, <span class="ruby-identifier">nslist</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -1852,11 +1879,11 @@ href="Node.html#M000170">XML::Node#find</a>.
|
|
1852
1879
|
</div>
|
1853
1880
|
</div>
|
1854
1881
|
|
1855
|
-
<div id="method-
|
1856
|
-
<a name="
|
1882
|
+
<div id="method-M000120" class="method-detail">
|
1883
|
+
<a name="M000120"></a>
|
1857
1884
|
|
1858
1885
|
<div class="method-heading">
|
1859
|
-
<a href="#
|
1886
|
+
<a href="#M000120" class="method-signature">
|
1860
1887
|
<span class="method-name">node.first → XML::Node<br />
|
1861
1888
|
</span>
|
1862
1889
|
</a>
|
@@ -1864,11 +1891,12 @@ href="Node.html#M000170">XML::Node#find</a>.
|
|
1864
1891
|
|
1865
1892
|
<div class="method-description">
|
1866
1893
|
<p>
|
1867
|
-
Returns this node&#
|
1894
|
+
Returns this node‘s <a href="Node.html#M000120">first</a> <a
|
1895
|
+
href="Node.html#M000206">child</a> node if any.
|
1868
1896
|
</p>
|
1869
1897
|
<p><a class="source-toggle" href="#"
|
1870
|
-
onclick="toggleCode('
|
1871
|
-
<div class="method-source-code" id="
|
1898
|
+
onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
|
1899
|
+
<div class="method-source-code" id="M000120-source">
|
1872
1900
|
<pre>
|
1873
1901
|
/*
|
1874
1902
|
* call-seq:
|
@@ -1884,22 +1912,23 @@ ruby_xml_node_first_get(VALUE self) {
|
|
1884
1912
|
</div>
|
1885
1913
|
</div>
|
1886
1914
|
|
1887
|
-
<div id="method-
|
1888
|
-
<a name="
|
1915
|
+
<div id="method-M000178" class="method-detail">
|
1916
|
+
<a name="M000178"></a>
|
1889
1917
|
|
1890
1918
|
<div class="method-heading">
|
1891
|
-
<a href="#
|
1919
|
+
<a href="#M000178" class="method-signature">
|
1892
1920
|
<span class="method-name">first?</span><span class="method-args">()</span>
|
1893
1921
|
</a>
|
1894
1922
|
</div>
|
1895
1923
|
|
1896
1924
|
<div class="method-description">
|
1897
1925
|
<p>
|
1898
|
-
Determines whether this node has a first
|
1926
|
+
Determines whether this node has a <a href="Node.html#M000120">first</a>
|
1927
|
+
node
|
1899
1928
|
</p>
|
1900
1929
|
<p><a class="source-toggle" href="#"
|
1901
|
-
onclick="toggleCode('
|
1902
|
-
<div class="method-source-code" id="
|
1930
|
+
onclick="toggleCode('M000178-source');return false;">[Source]</a></p>
|
1931
|
+
<div class="method-source-code" id="M000178-source">
|
1903
1932
|
<pre>
|
1904
1933
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 77</span>
|
1905
1934
|
77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first?</span>
|
@@ -1910,11 +1939,11 @@ Determines whether this node has a first node
|
|
1910
1939
|
</div>
|
1911
1940
|
</div>
|
1912
1941
|
|
1913
|
-
<div id="method-
|
1914
|
-
<a name="
|
1942
|
+
<div id="method-M000196" class="method-detail">
|
1943
|
+
<a name="M000196"></a>
|
1915
1944
|
|
1916
1945
|
<div class="method-heading">
|
1917
|
-
<a href="#
|
1946
|
+
<a href="#M000196" class="method-signature">
|
1918
1947
|
<span class="method-name">fragment?</span><span class="method-args">()</span>
|
1919
1948
|
</a>
|
1920
1949
|
</div>
|
@@ -1924,8 +1953,8 @@ Determines whether this node has a first node
|
|
1924
1953
|
Specifies if this is a fragment node
|
1925
1954
|
</p>
|
1926
1955
|
<p><a class="source-toggle" href="#"
|
1927
|
-
onclick="toggleCode('
|
1928
|
-
<div class="method-source-code" id="
|
1956
|
+
onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
|
1957
|
+
<div class="method-source-code" id="M000196-source">
|
1929
1958
|
<pre>
|
1930
1959
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 218</span>
|
1931
1960
|
218: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fragment?</span>
|
@@ -1936,11 +1965,11 @@ Specifies if this is a fragment node
|
|
1936
1965
|
</div>
|
1937
1966
|
</div>
|
1938
1967
|
|
1939
|
-
<div id="method-
|
1940
|
-
<a name="
|
1968
|
+
<div id="method-M000197" class="method-detail">
|
1969
|
+
<a name="M000197"></a>
|
1941
1970
|
|
1942
1971
|
<div class="method-heading">
|
1943
|
-
<a href="#
|
1972
|
+
<a href="#M000197" class="method-signature">
|
1944
1973
|
<span class="method-name">html_doc?</span><span class="method-args">()</span>
|
1945
1974
|
</a>
|
1946
1975
|
</div>
|
@@ -1950,8 +1979,8 @@ Specifies if this is a fragment node
|
|
1950
1979
|
Specifies if this is a html document node
|
1951
1980
|
</p>
|
1952
1981
|
<p><a class="source-toggle" href="#"
|
1953
|
-
onclick="toggleCode('
|
1954
|
-
<div class="method-source-code" id="
|
1982
|
+
onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
|
1983
|
+
<div class="method-source-code" id="M000197-source">
|
1955
1984
|
<pre>
|
1956
1985
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 223</span>
|
1957
1986
|
223: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">html_doc?</span>
|
@@ -1962,11 +1991,11 @@ Specifies if this is a html document node
|
|
1962
1991
|
</div>
|
1963
1992
|
</div>
|
1964
1993
|
|
1965
|
-
<div id="method-
|
1966
|
-
<a name="
|
1994
|
+
<div id="method-M000145" class="method-detail">
|
1995
|
+
<a name="M000145"></a>
|
1967
1996
|
|
1968
1997
|
<div class="method-heading">
|
1969
|
-
<a href="#
|
1998
|
+
<a href="#M000145" class="method-signature">
|
1970
1999
|
<span class="method-name">node.lang → "string"<br />
|
1971
2000
|
</span>
|
1972
2001
|
</a>
|
@@ -1975,11 +2004,12 @@ Specifies if this is a html document node
|
|
1975
2004
|
<div class="method-description">
|
1976
2005
|
<p>
|
1977
2006
|
Obtain the language set for this node, if any. This is set in <a
|
1978
|
-
href="../XML.html">XML</a> via the xml
|
2007
|
+
href="../XML.html">XML</a> via the xml:<a href="Node.html#M000145">lang</a>
|
2008
|
+
attribute.
|
1979
2009
|
</p>
|
1980
2010
|
<p><a class="source-toggle" href="#"
|
1981
|
-
onclick="toggleCode('
|
1982
|
-
<div class="method-source-code" id="
|
2011
|
+
onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
|
2012
|
+
<div class="method-source-code" id="M000145-source">
|
1983
2013
|
<pre>
|
1984
2014
|
/*
|
1985
2015
|
* call-seq:
|
@@ -1996,11 +2026,11 @@ ruby_xml_node_lang_get(VALUE self) {
|
|
1996
2026
|
</div>
|
1997
2027
|
</div>
|
1998
2028
|
|
1999
|
-
<div id="method-
|
2000
|
-
<a name="
|
2029
|
+
<div id="method-M000146" class="method-detail">
|
2030
|
+
<a name="M000146"></a>
|
2001
2031
|
|
2002
2032
|
<div class="method-heading">
|
2003
|
-
<a href="#
|
2033
|
+
<a href="#M000146" class="method-signature">
|
2004
2034
|
<span class="method-name">node.lang = "string"<br />
|
2005
2035
|
</span>
|
2006
2036
|
</a>
|
@@ -2009,11 +2039,11 @@ ruby_xml_node_lang_get(VALUE self) {
|
|
2009
2039
|
<div class="method-description">
|
2010
2040
|
<p>
|
2011
2041
|
<a href="Node/Set.html">Set</a> the language for this node. This affects
|
2012
|
-
the value of the xml
|
2042
|
+
the value of the xml:<a href="Node.html#M000145">lang</a> attribute.
|
2013
2043
|
</p>
|
2014
2044
|
<p><a class="source-toggle" href="#"
|
2015
|
-
onclick="toggleCode('
|
2016
|
-
<div class="method-source-code" id="
|
2045
|
+
onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
|
2046
|
+
<div class="method-source-code" id="M000146-source">
|
2017
2047
|
<pre>
|
2018
2048
|
/*
|
2019
2049
|
* call-seq:
|
@@ -2030,11 +2060,11 @@ ruby_xml_node_lang_set(VALUE self, VALUE lang) {
|
|
2030
2060
|
</div>
|
2031
2061
|
</div>
|
2032
2062
|
|
2033
|
-
<div id="method-
|
2034
|
-
<a name="
|
2063
|
+
<div id="method-M000121" class="method-detail">
|
2064
|
+
<a name="M000121"></a>
|
2035
2065
|
|
2036
2066
|
<div class="method-heading">
|
2037
|
-
<a href="#
|
2067
|
+
<a href="#M000121" class="method-signature">
|
2038
2068
|
<span class="method-name">node.last → XML::Node<br />
|
2039
2069
|
</span>
|
2040
2070
|
</a>
|
@@ -2042,11 +2072,12 @@ ruby_xml_node_lang_set(VALUE self, VALUE lang) {
|
|
2042
2072
|
|
2043
2073
|
<div class="method-description">
|
2044
2074
|
<p>
|
2045
|
-
Obtain the last
|
2075
|
+
Obtain the <a href="Node.html#M000121">last</a> <a
|
2076
|
+
href="Node.html#M000206">child</a> node of this node, if any.
|
2046
2077
|
</p>
|
2047
2078
|
<p><a class="source-toggle" href="#"
|
2048
|
-
onclick="toggleCode('
|
2049
|
-
<div class="method-source-code" id="
|
2079
|
+
onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
|
2080
|
+
<div class="method-source-code" id="M000121-source">
|
2050
2081
|
<pre>
|
2051
2082
|
/*
|
2052
2083
|
* call-seq:
|
@@ -2062,22 +2093,23 @@ ruby_xml_node_last_get(VALUE self) {
|
|
2062
2093
|
</div>
|
2063
2094
|
</div>
|
2064
2095
|
|
2065
|
-
<div id="method-
|
2066
|
-
<a name="
|
2096
|
+
<div id="method-M000182" class="method-detail">
|
2097
|
+
<a name="M000182"></a>
|
2067
2098
|
|
2068
2099
|
<div class="method-heading">
|
2069
|
-
<a href="#
|
2100
|
+
<a href="#M000182" class="method-signature">
|
2070
2101
|
<span class="method-name">last?</span><span class="method-args">()</span>
|
2071
2102
|
</a>
|
2072
2103
|
</div>
|
2073
2104
|
|
2074
2105
|
<div class="method-description">
|
2075
2106
|
<p>
|
2076
|
-
Determines whether this node has a last
|
2107
|
+
Determines whether this node has a <a href="Node.html#M000121">last</a>
|
2108
|
+
node
|
2077
2109
|
</p>
|
2078
2110
|
<p><a class="source-toggle" href="#"
|
2079
|
-
onclick="toggleCode('
|
2080
|
-
<div class="method-source-code" id="
|
2111
|
+
onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
|
2112
|
+
<div class="method-source-code" id="M000182-source">
|
2081
2113
|
<pre>
|
2082
2114
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 97</span>
|
2083
2115
|
97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last?</span>
|
@@ -2088,11 +2120,11 @@ Determines whether this node has a last node
|
|
2088
2120
|
</div>
|
2089
2121
|
</div>
|
2090
2122
|
|
2091
|
-
<div id="method-
|
2092
|
-
<a name="
|
2123
|
+
<div id="method-M000147" class="method-detail">
|
2124
|
+
<a name="M000147"></a>
|
2093
2125
|
|
2094
2126
|
<div class="method-heading">
|
2095
|
-
<a href="#
|
2127
|
+
<a href="#M000147" class="method-signature">
|
2096
2128
|
<span class="method-name">node.line_num → num<br />
|
2097
2129
|
</span>
|
2098
2130
|
</a>
|
@@ -2105,8 +2137,8 @@ this node was read from. If <tt>default_line_numbers</tt> is set false (the
|
|
2105
2137
|
default), this method returns zero.
|
2106
2138
|
</p>
|
2107
2139
|
<p><a class="source-toggle" href="#"
|
2108
|
-
onclick="toggleCode('
|
2109
|
-
<div class="method-source-code" id="
|
2140
|
+
onclick="toggleCode('M000147-source');return false;">[Source]</a></p>
|
2141
|
+
<div class="method-source-code" id="M000147-source">
|
2110
2142
|
<pre>
|
2111
2143
|
/*
|
2112
2144
|
* call-seq:
|
@@ -2124,11 +2156,11 @@ ruby_xml_node_line_num(VALUE self) {
|
|
2124
2156
|
</div>
|
2125
2157
|
</div>
|
2126
2158
|
|
2127
|
-
<div id="method-
|
2128
|
-
<a name="
|
2159
|
+
<div id="method-M000148" class="method-detail">
|
2160
|
+
<a name="M000148"></a>
|
2129
2161
|
|
2130
2162
|
<div class="method-heading">
|
2131
|
-
<a href="#
|
2163
|
+
<a href="#M000148" class="method-signature">
|
2132
2164
|
<span class="method-name">node.name → "string"<br />
|
2133
2165
|
</span>
|
2134
2166
|
</a>
|
@@ -2136,11 +2168,11 @@ ruby_xml_node_line_num(VALUE self) {
|
|
2136
2168
|
|
2137
2169
|
<div class="method-description">
|
2138
2170
|
<p>
|
2139
|
-
Obtain this node&#
|
2171
|
+
Obtain this node‘s <a href="Node.html#M000148">name</a>.
|
2140
2172
|
</p>
|
2141
2173
|
<p><a class="source-toggle" href="#"
|
2142
|
-
onclick="toggleCode('
|
2143
|
-
<div class="method-source-code" id="
|
2174
|
+
onclick="toggleCode('M000148-source');return false;">[Source]</a></p>
|
2175
|
+
<div class="method-source-code" id="M000148-source">
|
2144
2176
|
<pre>
|
2145
2177
|
/*
|
2146
2178
|
* call-seq:
|
@@ -2156,11 +2188,11 @@ ruby_xml_node_name_get(VALUE self) {
|
|
2156
2188
|
</div>
|
2157
2189
|
</div>
|
2158
2190
|
|
2159
|
-
<div id="method-
|
2160
|
-
<a name="
|
2191
|
+
<div id="method-M000149" class="method-detail">
|
2192
|
+
<a name="M000149"></a>
|
2161
2193
|
|
2162
2194
|
<div class="method-heading">
|
2163
|
-
<a href="#
|
2195
|
+
<a href="#M000149" class="method-signature">
|
2164
2196
|
<span class="method-name">node.name = "string"<br />
|
2165
2197
|
</span>
|
2166
2198
|
</a>
|
@@ -2168,11 +2200,12 @@ ruby_xml_node_name_get(VALUE self) {
|
|
2168
2200
|
|
2169
2201
|
<div class="method-description">
|
2170
2202
|
<p>
|
2171
|
-
<a href="Node/Set.html">Set</a> this node&#
|
2203
|
+
<a href="Node/Set.html">Set</a> this node‘s <a
|
2204
|
+
href="Node.html#M000148">name</a>.
|
2172
2205
|
</p>
|
2173
2206
|
<p><a class="source-toggle" href="#"
|
2174
|
-
onclick="toggleCode('
|
2175
|
-
<div class="method-source-code" id="
|
2207
|
+
onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
|
2208
|
+
<div class="method-source-code" id="M000149-source">
|
2176
2209
|
<pre>
|
2177
2210
|
/*
|
2178
2211
|
* call-seq:
|
@@ -2188,11 +2221,11 @@ ruby_xml_node_name_set(VALUE self, VALUE name) {
|
|
2188
2221
|
</div>
|
2189
2222
|
</div>
|
2190
2223
|
|
2191
|
-
<div id="method-
|
2192
|
-
<a name="
|
2224
|
+
<div id="method-M000150" class="method-detail">
|
2225
|
+
<a name="M000150"></a>
|
2193
2226
|
|
2194
2227
|
<div class="method-heading">
|
2195
|
-
<a href="#
|
2228
|
+
<a href="#M000150" class="method-signature">
|
2196
2229
|
<span class="method-name">node.namespace → [namespace, ..., namespace]<br />
|
2197
2230
|
</span>
|
2198
2231
|
</a>
|
@@ -2201,11 +2234,11 @@ ruby_xml_node_name_set(VALUE self, VALUE name) {
|
|
2201
2234
|
<div class="method-description">
|
2202
2235
|
<p>
|
2203
2236
|
Obtain an array of +<a href="NS.html">XML::NS</a>+ objects representing
|
2204
|
-
this node&#
|
2237
|
+
this node‘s xmlns <a href="Node.html#M000132">attributes</a>
|
2205
2238
|
</p>
|
2206
2239
|
<p><a class="source-toggle" href="#"
|
2207
|
-
onclick="toggleCode('
|
2208
|
-
<div class="method-source-code" id="
|
2240
|
+
onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
|
2241
|
+
<div class="method-source-code" id="M000150-source">
|
2209
2242
|
<pre>
|
2210
2243
|
/*
|
2211
2244
|
* call-seq:
|
@@ -2222,11 +2255,11 @@ ruby_xml_node_namespace_get(VALUE self) {
|
|
2222
2255
|
</div>
|
2223
2256
|
</div>
|
2224
2257
|
|
2225
|
-
<div id="method-
|
2226
|
-
<a name="
|
2258
|
+
<div id="method-M000152" class="method-detail">
|
2259
|
+
<a name="M000152"></a>
|
2227
2260
|
|
2228
2261
|
<div class="method-heading">
|
2229
|
-
<a href="#
|
2262
|
+
<a href="#M000152" class="method-signature">
|
2230
2263
|
<span class="method-name">node.namespace = namespace<br />
|
2231
2264
|
</span>
|
2232
2265
|
</a>
|
@@ -2234,12 +2267,12 @@ ruby_xml_node_namespace_get(VALUE self) {
|
|
2234
2267
|
|
2235
2268
|
<div class="method-description">
|
2236
2269
|
<p>
|
2237
|
-
Add the specified <a href="NS.html">XML::NS</a> object to this node&#
|
2238
|
-
xmlns attributes
|
2270
|
+
Add the specified <a href="NS.html">XML::NS</a> object to this node‘s
|
2271
|
+
xmlns <a href="Node.html#M000132">attributes</a>.
|
2239
2272
|
</p>
|
2240
2273
|
<p><a class="source-toggle" href="#"
|
2241
|
-
onclick="toggleCode('
|
2242
|
-
<div class="method-source-code" id="
|
2274
|
+
onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
|
2275
|
+
<div class="method-source-code" id="M000152-source">
|
2243
2276
|
<pre>
|
2244
2277
|
/*
|
2245
2278
|
* call-seq:
|
@@ -2255,22 +2288,23 @@ ruby_xml_node_namespace_set(int argc, VALUE *argv, VALUE self) {
|
|
2255
2288
|
</div>
|
2256
2289
|
</div>
|
2257
2290
|
|
2258
|
-
<div id="method-
|
2259
|
-
<a name="
|
2291
|
+
<div id="method-M000198" class="method-detail">
|
2292
|
+
<a name="M000198"></a>
|
2260
2293
|
|
2261
2294
|
<div class="method-heading">
|
2262
|
-
<a href="#
|
2295
|
+
<a href="#M000198" class="method-signature">
|
2263
2296
|
<span class="method-name">namespace?</span><span class="method-args">()</span>
|
2264
2297
|
</a>
|
2265
2298
|
</div>
|
2266
2299
|
|
2267
2300
|
<div class="method-description">
|
2268
2301
|
<p>
|
2269
|
-
Specifies if this is a namespace node (not
|
2302
|
+
Specifies if this is a <a href="Node.html#M000150">namespace</a> node (not
|
2303
|
+
if it has a namepsace)
|
2270
2304
|
</p>
|
2271
2305
|
<p><a class="source-toggle" href="#"
|
2272
|
-
onclick="toggleCode('
|
2273
|
-
<div class="method-source-code" id="
|
2306
|
+
onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
|
2307
|
+
<div class="method-source-code" id="M000198-source">
|
2274
2308
|
<pre>
|
2275
2309
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 229</span>
|
2276
2310
|
229: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">namespace?</span>
|
@@ -2281,11 +2315,11 @@ Specifies if this is a namespace node (not if it has a namepsace)
|
|
2281
2315
|
</div>
|
2282
2316
|
</div>
|
2283
2317
|
|
2284
|
-
<div id="method-
|
2285
|
-
<a name="
|
2318
|
+
<div id="method-M000151" class="method-detail">
|
2319
|
+
<a name="M000151"></a>
|
2286
2320
|
|
2287
2321
|
<div class="method-heading">
|
2288
|
-
<a href="#
|
2322
|
+
<a href="#M000151" class="method-signature">
|
2289
2323
|
<span class="method-name">node.namespace_node → namespace.<br />
|
2290
2324
|
</span>
|
2291
2325
|
</a>
|
@@ -2293,11 +2327,11 @@ Specifies if this is a namespace node (not if it has a namepsace)
|
|
2293
2327
|
|
2294
2328
|
<div class="method-description">
|
2295
2329
|
<p>
|
2296
|
-
Obtain this node&#
|
2330
|
+
Obtain this node‘s <a href="Node.html#M000150">namespace</a> node.
|
2297
2331
|
</p>
|
2298
2332
|
<p><a class="source-toggle" href="#"
|
2299
|
-
onclick="toggleCode('
|
2300
|
-
<div class="method-source-code" id="
|
2333
|
+
onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
|
2334
|
+
<div class="method-source-code" id="M000151-source">
|
2301
2335
|
<pre>
|
2302
2336
|
/*
|
2303
2337
|
* call-seq:
|
@@ -2313,11 +2347,11 @@ ruby_xml_node_namespace_get_node(VALUE self) {
|
|
2313
2347
|
</div>
|
2314
2348
|
</div>
|
2315
2349
|
|
2316
|
-
<div id="method-
|
2317
|
-
<a name="
|
2350
|
+
<div id="method-M000122" class="method-detail">
|
2351
|
+
<a name="M000122"></a>
|
2318
2352
|
|
2319
2353
|
<div class="method-heading">
|
2320
|
-
<a href="#
|
2354
|
+
<a href="#M000122" class="method-signature">
|
2321
2355
|
<span class="method-name">node.next → XML::Node<br />
|
2322
2356
|
</span>
|
2323
2357
|
</a>
|
@@ -2325,11 +2359,11 @@ ruby_xml_node_namespace_get_node(VALUE self) {
|
|
2325
2359
|
|
2326
2360
|
<div class="method-description">
|
2327
2361
|
<p>
|
2328
|
-
Obtain the next sibling node, if any.
|
2362
|
+
Obtain the <a href="Node.html#M000122">next</a> sibling node, if any.
|
2329
2363
|
</p>
|
2330
2364
|
<p><a class="source-toggle" href="#"
|
2331
|
-
onclick="toggleCode('
|
2332
|
-
<div class="method-source-code" id="
|
2365
|
+
onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
|
2366
|
+
<div class="method-source-code" id="M000122-source">
|
2333
2367
|
<pre>
|
2334
2368
|
/*
|
2335
2369
|
* call-seq:
|
@@ -2345,11 +2379,11 @@ ruby_xml_node_next_get(VALUE self) {
|
|
2345
2379
|
</div>
|
2346
2380
|
</div>
|
2347
2381
|
|
2348
|
-
<div id="method-
|
2349
|
-
<a name="
|
2382
|
+
<div id="method-M000130" class="method-detail">
|
2383
|
+
<a name="M000130"></a>
|
2350
2384
|
|
2351
2385
|
<div class="method-heading">
|
2352
|
-
<a href="#
|
2386
|
+
<a href="#M000130" class="method-signature">
|
2353
2387
|
<span class="method-name">node.next = node<br />
|
2354
2388
|
</span>
|
2355
2389
|
</a>
|
@@ -2357,11 +2391,12 @@ ruby_xml_node_next_get(VALUE self) {
|
|
2357
2391
|
|
2358
2392
|
<div class="method-description">
|
2359
2393
|
<p>
|
2360
|
-
Insert the specified node as this node&#
|
2394
|
+
Insert the specified node as this node‘s <a
|
2395
|
+
href="Node.html#M000122">next</a> sibling.
|
2361
2396
|
</p>
|
2362
2397
|
<p><a class="source-toggle" href="#"
|
2363
|
-
onclick="toggleCode('
|
2364
|
-
<div class="method-source-code" id="
|
2398
|
+
onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
|
2399
|
+
<div class="method-source-code" id="M000130-source">
|
2365
2400
|
<pre>
|
2366
2401
|
/*
|
2367
2402
|
* call-seq:
|
@@ -2377,22 +2412,23 @@ ruby_xml_node_next_set(VALUE self, VALUE rnode) {
|
|
2377
2412
|
</div>
|
2378
2413
|
</div>
|
2379
2414
|
|
2380
|
-
<div id="method-
|
2381
|
-
<a name="
|
2415
|
+
<div id="method-M000180" class="method-detail">
|
2416
|
+
<a name="M000180"></a>
|
2382
2417
|
|
2383
2418
|
<div class="method-heading">
|
2384
|
-
<a href="#
|
2419
|
+
<a href="#M000180" class="method-signature">
|
2385
2420
|
<span class="method-name">next?</span><span class="method-args">()</span>
|
2386
2421
|
</a>
|
2387
2422
|
</div>
|
2388
2423
|
|
2389
2424
|
<div class="method-description">
|
2390
2425
|
<p>
|
2391
|
-
Determines whether this node has a next
|
2426
|
+
Determines whether this node has a <a href="Node.html#M000122">next</a>
|
2427
|
+
node
|
2392
2428
|
</p>
|
2393
2429
|
<p><a class="source-toggle" href="#"
|
2394
|
-
onclick="toggleCode('
|
2395
|
-
<div class="method-source-code" id="
|
2430
|
+
onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
|
2431
|
+
<div class="method-source-code" id="M000180-source">
|
2396
2432
|
<pre>
|
2397
2433
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 87</span>
|
2398
2434
|
87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">next?</span>
|
@@ -2403,11 +2439,11 @@ Determines whether this node has a next node
|
|
2403
2439
|
</div>
|
2404
2440
|
</div>
|
2405
2441
|
|
2406
|
-
<div id="method-
|
2407
|
-
<a name="
|
2442
|
+
<div id="method-M000153" class="method-detail">
|
2443
|
+
<a name="M000153"></a>
|
2408
2444
|
|
2409
2445
|
<div class="method-heading">
|
2410
|
-
<a href="#
|
2446
|
+
<a href="#M000153" class="method-signature">
|
2411
2447
|
<span class="method-name">node.type → num<br />
|
2412
2448
|
</span>
|
2413
2449
|
</a>
|
@@ -2415,11 +2451,11 @@ Determines whether this node has a next node
|
|
2415
2451
|
|
2416
2452
|
<div class="method-description">
|
2417
2453
|
<p>
|
2418
|
-
Obtain this node&#
|
2454
|
+
Obtain this node‘s type identifier.
|
2419
2455
|
</p>
|
2420
2456
|
<p><a class="source-toggle" href="#"
|
2421
|
-
onclick="toggleCode('
|
2422
|
-
<div class="method-source-code" id="
|
2457
|
+
onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
|
2458
|
+
<div class="method-source-code" id="M000153-source">
|
2423
2459
|
<pre>
|
2424
2460
|
/*
|
2425
2461
|
* call-seq:
|
@@ -2435,22 +2471,22 @@ ruby_xml_node_type(VALUE self) {
|
|
2435
2471
|
</div>
|
2436
2472
|
</div>
|
2437
2473
|
|
2438
|
-
<div id="method-
|
2439
|
-
<a name="
|
2474
|
+
<div id="method-M000183" class="method-detail">
|
2475
|
+
<a name="M000183"></a>
|
2440
2476
|
|
2441
2477
|
<div class="method-heading">
|
2442
|
-
<a href="#
|
2478
|
+
<a href="#M000183" class="method-signature">
|
2443
2479
|
<span class="method-name">node_type_name</span><span class="method-args">()</span>
|
2444
2480
|
</a>
|
2445
2481
|
</div>
|
2446
2482
|
|
2447
2483
|
<div class="method-description">
|
2448
2484
|
<p>
|
2449
|
-
Returns this node&#
|
2485
|
+
Returns this node‘s type <a href="Node.html#M000148">name</a>
|
2450
2486
|
</p>
|
2451
2487
|
<p><a class="source-toggle" href="#"
|
2452
|
-
onclick="toggleCode('
|
2453
|
-
<div class="method-source-code" id="
|
2488
|
+
onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
|
2489
|
+
<div class="method-source-code" id="M000183-source">
|
2454
2490
|
<pre>
|
2455
2491
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 105</span>
|
2456
2492
|
105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">node_type_name</span>
|
@@ -2509,11 +2545,11 @@ Returns this node’s type name
|
|
2509
2545
|
</div>
|
2510
2546
|
</div>
|
2511
2547
|
|
2512
|
-
<div id="method-
|
2513
|
-
<a name="
|
2548
|
+
<div id="method-M000199" class="method-detail">
|
2549
|
+
<a name="M000199"></a>
|
2514
2550
|
|
2515
2551
|
<div class="method-heading">
|
2516
|
-
<a href="#
|
2552
|
+
<a href="#M000199" class="method-signature">
|
2517
2553
|
<span class="method-name">notation?</span><span class="method-args">()</span>
|
2518
2554
|
</a>
|
2519
2555
|
</div>
|
@@ -2523,8 +2559,8 @@ Returns this node’s type name
|
|
2523
2559
|
Specifies if this is a notation node
|
2524
2560
|
</p>
|
2525
2561
|
<p><a class="source-toggle" href="#"
|
2526
|
-
onclick="toggleCode('
|
2527
|
-
<div class="method-source-code" id="
|
2562
|
+
onclick="toggleCode('M000199-source');return false;">[Source]</a></p>
|
2563
|
+
<div class="method-source-code" id="M000199-source">
|
2528
2564
|
<pre>
|
2529
2565
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 234</span>
|
2530
2566
|
234: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">notation?</span>
|
@@ -2535,11 +2571,11 @@ Specifies if this is a notation node
|
|
2535
2571
|
</div>
|
2536
2572
|
</div>
|
2537
2573
|
|
2538
|
-
<div id="method-
|
2539
|
-
<a name="
|
2574
|
+
<div id="method-M000154" class="method-detail">
|
2575
|
+
<a name="M000154"></a>
|
2540
2576
|
|
2541
2577
|
<div class="method-heading">
|
2542
|
-
<a href="#
|
2578
|
+
<a href="#M000154" class="method-signature">
|
2543
2579
|
<span class="method-name">node.namespace → [namespace, ..., namespace]<br />
|
2544
2580
|
</span>
|
2545
2581
|
</a>
|
@@ -2548,11 +2584,11 @@ Specifies if this is a notation node
|
|
2548
2584
|
<div class="method-description">
|
2549
2585
|
<p>
|
2550
2586
|
Obtain an array of +<a href="NS.html">XML::NS</a>+ objects representing
|
2551
|
-
this node&#
|
2587
|
+
this node‘s xmlns <a href="Node.html#M000132">attributes</a>
|
2552
2588
|
</p>
|
2553
2589
|
<p><a class="source-toggle" href="#"
|
2554
|
-
onclick="toggleCode('
|
2555
|
-
<div class="method-source-code" id="
|
2590
|
+
onclick="toggleCode('M000154-source');return false;">[Source]</a></p>
|
2591
|
+
<div class="method-source-code" id="M000154-source">
|
2556
2592
|
<pre>
|
2557
2593
|
/*
|
2558
2594
|
* call-seq:
|
@@ -2569,11 +2605,11 @@ ruby_xml_node_namespace_get(VALUE self) {
|
|
2569
2605
|
</div>
|
2570
2606
|
</div>
|
2571
2607
|
|
2572
|
-
<div id="method-
|
2573
|
-
<a name="
|
2608
|
+
<div id="method-M000155" class="method-detail">
|
2609
|
+
<a name="M000155"></a>
|
2574
2610
|
|
2575
2611
|
<div class="method-heading">
|
2576
|
-
<a href="#
|
2612
|
+
<a href="#M000155" class="method-signature">
|
2577
2613
|
<span class="method-name">node.ns? → (true|false)<br />
|
2578
2614
|
</span>
|
2579
2615
|
</a>
|
@@ -2581,11 +2617,12 @@ ruby_xml_node_namespace_get(VALUE self) {
|
|
2581
2617
|
|
2582
2618
|
<div class="method-description">
|
2583
2619
|
<p>
|
2584
|
-
Determine whether this node has a
|
2620
|
+
Determine whether this node has a <a
|
2621
|
+
href="Node.html#M000150">namespace</a>.
|
2585
2622
|
</p>
|
2586
2623
|
<p><a class="source-toggle" href="#"
|
2587
|
-
onclick="toggleCode('
|
2588
|
-
<div class="method-source-code" id="
|
2624
|
+
onclick="toggleCode('M000155-source');return false;">[Source]</a></p>
|
2625
|
+
<div class="method-source-code" id="M000155-source">
|
2589
2626
|
<pre>
|
2590
2627
|
/*
|
2591
2628
|
* call-seq:
|
@@ -2601,11 +2638,11 @@ ruby_xml_node_ns_q(VALUE self) {
|
|
2601
2638
|
</div>
|
2602
2639
|
</div>
|
2603
2640
|
|
2604
|
-
<div id="method-
|
2605
|
-
<a name="
|
2641
|
+
<div id="method-M000157" class="method-detail">
|
2642
|
+
<a name="M000157"></a>
|
2606
2643
|
|
2607
2644
|
<div class="method-heading">
|
2608
|
-
<a href="#
|
2645
|
+
<a href="#M000157" class="method-signature">
|
2609
2646
|
<span class="method-name">node.ns_def → namespace<br />
|
2610
2647
|
</span>
|
2611
2648
|
</a>
|
@@ -2613,11 +2650,11 @@ ruby_xml_node_ns_q(VALUE self) {
|
|
2613
2650
|
|
2614
2651
|
<div class="method-description">
|
2615
2652
|
<p>
|
2616
|
-
Obtain this node&#
|
2653
|
+
Obtain this node‘s default <a href="Node.html#M000150">namespace</a>.
|
2617
2654
|
</p>
|
2618
2655
|
<p><a class="source-toggle" href="#"
|
2619
|
-
onclick="toggleCode('
|
2620
|
-
<div class="method-source-code" id="
|
2656
|
+
onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
|
2657
|
+
<div class="method-source-code" id="M000157-source">
|
2621
2658
|
<pre>
|
2622
2659
|
/*
|
2623
2660
|
* call-seq:
|
@@ -2633,11 +2670,11 @@ ruby_xml_node_ns_def_get(VALUE self) {
|
|
2633
2670
|
</div>
|
2634
2671
|
</div>
|
2635
2672
|
|
2636
|
-
<div id="method-
|
2637
|
-
<a name="
|
2673
|
+
<div id="method-M000156" class="method-detail">
|
2674
|
+
<a name="M000156"></a>
|
2638
2675
|
|
2639
2676
|
<div class="method-heading">
|
2640
|
-
<a href="#
|
2677
|
+
<a href="#M000156" class="method-signature">
|
2641
2678
|
<span class="method-name">node.ns_def? → (true|false)<br />
|
2642
2679
|
</span>
|
2643
2680
|
</a>
|
@@ -2646,11 +2683,11 @@ ruby_xml_node_ns_def_get(VALUE self) {
|
|
2646
2683
|
<div class="method-description">
|
2647
2684
|
<p>
|
2648
2685
|
Obtain an array of +<a href="NS.html">XML::NS</a>+ objects representing
|
2649
|
-
this node&#
|
2686
|
+
this node‘s xmlns <a href="Node.html#M000132">attributes</a>
|
2650
2687
|
</p>
|
2651
2688
|
<p><a class="source-toggle" href="#"
|
2652
|
-
onclick="toggleCode('
|
2653
|
-
<div class="method-source-code" id="
|
2689
|
+
onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
|
2690
|
+
<div class="method-source-code" id="M000156-source">
|
2654
2691
|
<pre>
|
2655
2692
|
/*
|
2656
2693
|
* call-seq:
|
@@ -2667,11 +2704,11 @@ ruby_xml_node_ns_def_q(VALUE self) {
|
|
2667
2704
|
</div>
|
2668
2705
|
</div>
|
2669
2706
|
|
2670
|
-
<div id="method-
|
2671
|
-
<a name="
|
2707
|
+
<div id="method-M000123" class="method-detail">
|
2708
|
+
<a name="M000123"></a>
|
2672
2709
|
|
2673
2710
|
<div class="method-heading">
|
2674
|
-
<a href="#
|
2711
|
+
<a href="#M000123" class="method-signature">
|
2675
2712
|
<span class="method-name">node.parent → XML::Node<br />
|
2676
2713
|
</span>
|
2677
2714
|
</a>
|
@@ -2679,11 +2716,12 @@ ruby_xml_node_ns_def_q(VALUE self) {
|
|
2679
2716
|
|
2680
2717
|
<div class="method-description">
|
2681
2718
|
<p>
|
2682
|
-
Obtain this node&#
|
2719
|
+
Obtain this node‘s <a href="Node.html#M000123">parent</a> node, if
|
2720
|
+
any.
|
2683
2721
|
</p>
|
2684
2722
|
<p><a class="source-toggle" href="#"
|
2685
|
-
onclick="toggleCode('
|
2686
|
-
<div class="method-source-code" id="
|
2723
|
+
onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
|
2724
|
+
<div class="method-source-code" id="M000123-source">
|
2687
2725
|
<pre>
|
2688
2726
|
/*
|
2689
2727
|
* call-seq:
|
@@ -2699,22 +2737,23 @@ ruby_xml_node_parent_get(VALUE self) {
|
|
2699
2737
|
</div>
|
2700
2738
|
</div>
|
2701
2739
|
|
2702
|
-
<div id="method-
|
2703
|
-
<a name="
|
2740
|
+
<div id="method-M000177" class="method-detail">
|
2741
|
+
<a name="M000177"></a>
|
2704
2742
|
|
2705
2743
|
<div class="method-heading">
|
2706
|
-
<a href="#
|
2744
|
+
<a href="#M000177" class="method-signature">
|
2707
2745
|
<span class="method-name">parent?</span><span class="method-args">()</span>
|
2708
2746
|
</a>
|
2709
2747
|
</div>
|
2710
2748
|
|
2711
2749
|
<div class="method-description">
|
2712
2750
|
<p>
|
2713
|
-
Determines whether this node has a parent
|
2751
|
+
Determines whether this node has a <a href="Node.html#M000123">parent</a>
|
2752
|
+
node
|
2714
2753
|
</p>
|
2715
2754
|
<p><a class="source-toggle" href="#"
|
2716
|
-
onclick="toggleCode('
|
2717
|
-
<div class="method-source-code" id="
|
2755
|
+
onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
|
2756
|
+
<div class="method-source-code" id="M000177-source">
|
2718
2757
|
<pre>
|
2719
2758
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 72</span>
|
2720
2759
|
72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parent?</span>
|
@@ -2725,11 +2764,11 @@ Determines whether this node has a parent node
|
|
2725
2764
|
</div>
|
2726
2765
|
</div>
|
2727
2766
|
|
2728
|
-
<div id="method-
|
2729
|
-
<a name="
|
2767
|
+
<div id="method-M000158" class="method-detail">
|
2768
|
+
<a name="M000158"></a>
|
2730
2769
|
|
2731
2770
|
<div class="method-heading">
|
2732
|
-
<a href="#
|
2771
|
+
<a href="#M000158" class="method-signature">
|
2733
2772
|
<span class="method-name">node.path → path<br />
|
2734
2773
|
</span>
|
2735
2774
|
</a>
|
@@ -2737,11 +2776,11 @@ Determines whether this node has a parent node
|
|
2737
2776
|
|
2738
2777
|
<div class="method-description">
|
2739
2778
|
<p>
|
2740
|
-
Obtain this node&#
|
2779
|
+
Obtain this node‘s <a href="Node.html#M000158">path</a>.
|
2741
2780
|
</p>
|
2742
2781
|
<p><a class="source-toggle" href="#"
|
2743
|
-
onclick="toggleCode('
|
2744
|
-
<div class="method-source-code" id="
|
2782
|
+
onclick="toggleCode('M000158-source');return false;">[Source]</a></p>
|
2783
|
+
<div class="method-source-code" id="M000158-source">
|
2745
2784
|
<pre>
|
2746
2785
|
/*
|
2747
2786
|
* call-seq:
|
@@ -2757,11 +2796,11 @@ ruby_xml_node_path(VALUE self) {
|
|
2757
2796
|
</div>
|
2758
2797
|
</div>
|
2759
2798
|
|
2760
|
-
<div id="method-
|
2761
|
-
<a name="
|
2799
|
+
<div id="method-M000200" class="method-detail">
|
2800
|
+
<a name="M000200"></a>
|
2762
2801
|
|
2763
2802
|
<div class="method-heading">
|
2764
|
-
<a href="#
|
2803
|
+
<a href="#M000200" class="method-signature">
|
2765
2804
|
<span class="method-name">pi?</span><span class="method-args">()</span>
|
2766
2805
|
</a>
|
2767
2806
|
</div>
|
@@ -2771,8 +2810,8 @@ ruby_xml_node_path(VALUE self) {
|
|
2771
2810
|
Specifies if this is a processiong instruction node
|
2772
2811
|
</p>
|
2773
2812
|
<p><a class="source-toggle" href="#"
|
2774
|
-
onclick="toggleCode('
|
2775
|
-
<div class="method-source-code" id="
|
2813
|
+
onclick="toggleCode('M000200-source');return false;">[Source]</a></p>
|
2814
|
+
<div class="method-source-code" id="M000200-source">
|
2776
2815
|
<pre>
|
2777
2816
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 239</span>
|
2778
2817
|
239: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pi?</span>
|
@@ -2783,11 +2822,11 @@ Specifies if this is a processiong instruction node
|
|
2783
2822
|
</div>
|
2784
2823
|
</div>
|
2785
2824
|
|
2786
|
-
<div id="method-
|
2787
|
-
<a name="
|
2825
|
+
<div id="method-M000159" class="method-detail">
|
2826
|
+
<a name="M000159"></a>
|
2788
2827
|
|
2789
2828
|
<div class="method-heading">
|
2790
|
-
<a href="#
|
2829
|
+
<a href="#M000159" class="method-signature">
|
2791
2830
|
<span class="method-name">node.pointer → XML::Node_set<br />
|
2792
2831
|
</span>
|
2793
2832
|
</a>
|
@@ -2799,8 +2838,8 @@ Evaluates an <a href="XPointer.html">XPointer</a> expression relative to
|
|
2799
2838
|
this node.
|
2800
2839
|
</p>
|
2801
2840
|
<p><a class="source-toggle" href="#"
|
2802
|
-
onclick="toggleCode('
|
2803
|
-
<div class="method-source-code" id="
|
2841
|
+
onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
|
2842
|
+
<div class="method-source-code" id="M000159-source">
|
2804
2843
|
<pre>
|
2805
2844
|
/*
|
2806
2845
|
* call-seq:
|
@@ -2816,11 +2855,11 @@ ruby_xml_node_pointer(VALUE self, VALUE xptr_str) {
|
|
2816
2855
|
</div>
|
2817
2856
|
</div>
|
2818
2857
|
|
2819
|
-
<div id="method-
|
2820
|
-
<a name="
|
2858
|
+
<div id="method-M000124" class="method-detail">
|
2859
|
+
<a name="M000124"></a>
|
2821
2860
|
|
2822
2861
|
<div class="method-heading">
|
2823
|
-
<a href="#
|
2862
|
+
<a href="#M000124" class="method-signature">
|
2824
2863
|
<span class="method-name">node.prev → XML::Node<br />
|
2825
2864
|
</span>
|
2826
2865
|
</a>
|
@@ -2831,8 +2870,8 @@ ruby_xml_node_pointer(VALUE self, VALUE xptr_str) {
|
|
2831
2870
|
Obtain the previous sibling, if any.
|
2832
2871
|
</p>
|
2833
2872
|
<p><a class="source-toggle" href="#"
|
2834
|
-
onclick="toggleCode('
|
2835
|
-
<div class="method-source-code" id="
|
2873
|
+
onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
|
2874
|
+
<div class="method-source-code" id="M000124-source">
|
2836
2875
|
<pre>
|
2837
2876
|
/*
|
2838
2877
|
* call-seq:
|
@@ -2848,11 +2887,11 @@ ruby_xml_node_prev_get(VALUE self) {
|
|
2848
2887
|
</div>
|
2849
2888
|
</div>
|
2850
2889
|
|
2851
|
-
<div id="method-
|
2852
|
-
<a name="
|
2890
|
+
<div id="method-M000131" class="method-detail">
|
2891
|
+
<a name="M000131"></a>
|
2853
2892
|
|
2854
2893
|
<div class="method-heading">
|
2855
|
-
<a href="#
|
2894
|
+
<a href="#M000131" class="method-signature">
|
2856
2895
|
<span class="method-name">node.prev = node<br />
|
2857
2896
|
</span>
|
2858
2897
|
</a>
|
@@ -2860,11 +2899,11 @@ ruby_xml_node_prev_get(VALUE self) {
|
|
2860
2899
|
|
2861
2900
|
<div class="method-description">
|
2862
2901
|
<p>
|
2863
|
-
Insert the specified node as this node&#
|
2902
|
+
Insert the specified node as this node‘s previous sibling.
|
2864
2903
|
</p>
|
2865
2904
|
<p><a class="source-toggle" href="#"
|
2866
|
-
onclick="toggleCode('
|
2867
|
-
<div class="method-source-code" id="
|
2905
|
+
onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
|
2906
|
+
<div class="method-source-code" id="M000131-source">
|
2868
2907
|
<pre>
|
2869
2908
|
/*
|
2870
2909
|
* call-seq:
|
@@ -2880,11 +2919,11 @@ ruby_xml_node_prev_set(VALUE self, VALUE rnode) {
|
|
2880
2919
|
</div>
|
2881
2920
|
</div>
|
2882
2921
|
|
2883
|
-
<div id="method-
|
2884
|
-
<a name="
|
2922
|
+
<div id="method-M000181" class="method-detail">
|
2923
|
+
<a name="M000181"></a>
|
2885
2924
|
|
2886
2925
|
<div class="method-heading">
|
2887
|
-
<a href="#
|
2926
|
+
<a href="#M000181" class="method-signature">
|
2888
2927
|
<span class="method-name">prev?</span><span class="method-args">()</span>
|
2889
2928
|
</a>
|
2890
2929
|
</div>
|
@@ -2894,8 +2933,8 @@ ruby_xml_node_prev_set(VALUE self, VALUE rnode) {
|
|
2894
2933
|
Determines whether this node has a previous node
|
2895
2934
|
</p>
|
2896
2935
|
<p><a class="source-toggle" href="#"
|
2897
|
-
onclick="toggleCode('
|
2898
|
-
<div class="method-source-code" id="
|
2936
|
+
onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
|
2937
|
+
<div class="method-source-code" id="M000181-source">
|
2899
2938
|
<pre>
|
2900
2939
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 92</span>
|
2901
2940
|
92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prev?</span>
|
@@ -2906,8 +2945,8 @@ Determines whether this node has a previous node
|
|
2906
2945
|
</div>
|
2907
2946
|
</div>
|
2908
2947
|
|
2909
|
-
<div id="method-
|
2910
|
-
<a name="
|
2948
|
+
<div id="method-M000208" class="method-detail">
|
2949
|
+
<a name="M000208"></a>
|
2911
2950
|
|
2912
2951
|
<div class="method-heading">
|
2913
2952
|
<span class="method-name">properties</span><span class="method-args">()</span>
|
@@ -2915,13 +2954,13 @@ Determines whether this node has a previous node
|
|
2915
2954
|
|
2916
2955
|
<div class="method-description">
|
2917
2956
|
<p>
|
2918
|
-
Alias for <a href="Node.html#
|
2957
|
+
Alias for <a href="Node.html#M000132">attributes</a>
|
2919
2958
|
</p>
|
2920
2959
|
</div>
|
2921
2960
|
</div>
|
2922
2961
|
|
2923
|
-
<div id="method-
|
2924
|
-
<a name="
|
2962
|
+
<div id="method-M000209" class="method-detail">
|
2963
|
+
<a name="M000209"></a>
|
2925
2964
|
|
2926
2965
|
<div class="method-heading">
|
2927
2966
|
<span class="method-name">properties?</span><span class="method-args">()</span>
|
@@ -2929,16 +2968,16 @@ Alias for <a href="Node.html#M000129">attributes</a>
|
|
2929
2968
|
|
2930
2969
|
<div class="method-description">
|
2931
2970
|
<p>
|
2932
|
-
Alias for <a href="Node.html#
|
2971
|
+
Alias for <a href="Node.html#M000132">attributes</a>?
|
2933
2972
|
</p>
|
2934
2973
|
</div>
|
2935
2974
|
</div>
|
2936
2975
|
|
2937
|
-
<div id="method-
|
2938
|
-
<a name="
|
2976
|
+
<div id="method-M000160" class="method-detail">
|
2977
|
+
<a name="M000160"></a>
|
2939
2978
|
|
2940
2979
|
<div class="method-heading">
|
2941
|
-
<a href="#
|
2980
|
+
<a href="#M000160" class="method-signature">
|
2942
2981
|
<span class="method-name">node.remove! → nil<br />
|
2943
2982
|
</span>
|
2944
2983
|
</a>
|
@@ -2946,11 +2985,11 @@ Alias for <a href="Node.html#M000167">attributes?</a>
|
|
2946
2985
|
|
2947
2986
|
<div class="method-description">
|
2948
2987
|
<p>
|
2949
|
-
Removes this node from it&#
|
2988
|
+
Removes this node from it‘s <a href="Node.html#M000123">parent</a>.
|
2950
2989
|
</p>
|
2951
2990
|
<p><a class="source-toggle" href="#"
|
2952
|
-
onclick="toggleCode('
|
2953
|
-
<div class="method-source-code" id="
|
2991
|
+
onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
|
2992
|
+
<div class="method-source-code" id="M000160-source">
|
2954
2993
|
<pre>
|
2955
2994
|
/*
|
2956
2995
|
* call-seq:
|
@@ -2966,11 +3005,11 @@ ruby_xml_node_remove_ex(VALUE self) {
|
|
2966
3005
|
</div>
|
2967
3006
|
</div>
|
2968
3007
|
|
2969
|
-
<div id="method-
|
2970
|
-
<a name="
|
3008
|
+
<div id="method-M000162" class="method-detail">
|
3009
|
+
<a name="M000162"></a>
|
2971
3010
|
|
2972
3011
|
<div class="method-heading">
|
2973
|
-
<a href="#
|
3012
|
+
<a href="#M000162" class="method-signature">
|
2974
3013
|
<span class="method-name">node.search_href → namespace<br />
|
2975
3014
|
</span>
|
2976
3015
|
</a>
|
@@ -2978,11 +3017,11 @@ ruby_xml_node_remove_ex(VALUE self) {
|
|
2978
3017
|
|
2979
3018
|
<div class="method-description">
|
2980
3019
|
<p>
|
2981
|
-
Search for a namespace by href.
|
3020
|
+
Search for a <a href="Node.html#M000150">namespace</a> by href.
|
2982
3021
|
</p>
|
2983
3022
|
<p><a class="source-toggle" href="#"
|
2984
|
-
onclick="toggleCode('
|
2985
|
-
<div class="method-source-code" id="
|
3023
|
+
onclick="toggleCode('M000162-source');return false;">[Source]</a></p>
|
3024
|
+
<div class="method-source-code" id="M000162-source">
|
2986
3025
|
<pre>
|
2987
3026
|
/*
|
2988
3027
|
* call-seq:
|
@@ -2998,11 +3037,11 @@ ruby_xml_node_search_href(VALUE self, VALUE href) {
|
|
2998
3037
|
</div>
|
2999
3038
|
</div>
|
3000
3039
|
|
3001
|
-
<div id="method-
|
3002
|
-
<a name="
|
3040
|
+
<div id="method-M000161" class="method-detail">
|
3041
|
+
<a name="M000161"></a>
|
3003
3042
|
|
3004
3043
|
<div class="method-heading">
|
3005
|
-
<a href="#
|
3044
|
+
<a href="#M000161" class="method-signature">
|
3006
3045
|
<span class="method-name">node.search_ns → namespace<br />
|
3007
3046
|
</span>
|
3008
3047
|
</a>
|
@@ -3010,11 +3049,12 @@ ruby_xml_node_search_href(VALUE self, VALUE href) {
|
|
3010
3049
|
|
3011
3050
|
<div class="method-description">
|
3012
3051
|
<p>
|
3013
|
-
Search for a namespace by
|
3052
|
+
Search for a <a href="Node.html#M000150">namespace</a> by <a
|
3053
|
+
href="Node.html#M000150">namespace</a>.
|
3014
3054
|
</p>
|
3015
3055
|
<p><a class="source-toggle" href="#"
|
3016
|
-
onclick="toggleCode('
|
3017
|
-
<div class="method-source-code" id="
|
3056
|
+
onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
|
3057
|
+
<div class="method-source-code" id="M000161-source">
|
3018
3058
|
<pre>
|
3019
3059
|
/*
|
3020
3060
|
* call-seq:
|
@@ -3030,11 +3070,11 @@ ruby_xml_node_search_ns(VALUE self, VALUE ns) {
|
|
3030
3070
|
</div>
|
3031
3071
|
</div>
|
3032
3072
|
|
3033
|
-
<div id="method-
|
3034
|
-
<a name="
|
3073
|
+
<div id="method-M000129" class="method-detail">
|
3074
|
+
<a name="M000129"></a>
|
3035
3075
|
|
3036
3076
|
<div class="method-heading">
|
3037
|
-
<a href="#
|
3077
|
+
<a href="#M000129" class="method-signature">
|
3038
3078
|
<span class="method-name">node.sibling(node) → XML::Node<br />
|
3039
3079
|
</span>
|
3040
3080
|
</a>
|
@@ -3045,8 +3085,8 @@ ruby_xml_node_search_ns(VALUE self, VALUE ns) {
|
|
3045
3085
|
Add the specified node as a sibling of this node.
|
3046
3086
|
</p>
|
3047
3087
|
<p><a class="source-toggle" href="#"
|
3048
|
-
onclick="toggleCode('
|
3049
|
-
<div class="method-source-code" id="
|
3088
|
+
onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
|
3089
|
+
<div class="method-source-code" id="M000129-source">
|
3050
3090
|
<pre>
|
3051
3091
|
/*
|
3052
3092
|
* call-seq:
|
@@ -3062,11 +3102,11 @@ ruby_xml_node_sibling_set(VALUE self, VALUE rnode) {
|
|
3062
3102
|
</div>
|
3063
3103
|
</div>
|
3064
3104
|
|
3065
|
-
<div id="method-
|
3066
|
-
<a name="
|
3105
|
+
<div id="method-M000163" class="method-detail">
|
3106
|
+
<a name="M000163"></a>
|
3067
3107
|
|
3068
3108
|
<div class="method-heading">
|
3069
|
-
<a href="#
|
3109
|
+
<a href="#M000163" class="method-signature">
|
3070
3110
|
<span class="method-name">node.space_preserve → (true|false)<br />
|
3071
3111
|
</span>
|
3072
3112
|
</a>
|
@@ -3077,8 +3117,8 @@ ruby_xml_node_sibling_set(VALUE self, VALUE rnode) {
|
|
3077
3117
|
Determine whether this node preserves whitespace.
|
3078
3118
|
</p>
|
3079
3119
|
<p><a class="source-toggle" href="#"
|
3080
|
-
onclick="toggleCode('
|
3081
|
-
<div class="method-source-code" id="
|
3120
|
+
onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
|
3121
|
+
<div class="method-source-code" id="M000163-source">
|
3082
3122
|
<pre>
|
3083
3123
|
/*
|
3084
3124
|
* call-seq:
|
@@ -3094,11 +3134,11 @@ ruby_xml_node_space_preserve_get(VALUE self) {
|
|
3094
3134
|
</div>
|
3095
3135
|
</div>
|
3096
3136
|
|
3097
|
-
<div id="method-
|
3098
|
-
<a name="
|
3137
|
+
<div id="method-M000164" class="method-detail">
|
3138
|
+
<a name="M000164"></a>
|
3099
3139
|
|
3100
3140
|
<div class="method-heading">
|
3101
|
-
<a href="#
|
3141
|
+
<a href="#M000164" class="method-signature">
|
3102
3142
|
<span class="method-name">node.space_preserve = true|false<br />
|
3103
3143
|
</span>
|
3104
3144
|
</a>
|
@@ -3109,8 +3149,8 @@ ruby_xml_node_space_preserve_get(VALUE self) {
|
|
3109
3149
|
Control whether this node preserves whitespace.
|
3110
3150
|
</p>
|
3111
3151
|
<p><a class="source-toggle" href="#"
|
3112
|
-
onclick="toggleCode('
|
3113
|
-
<div class="method-source-code" id="
|
3152
|
+
onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
|
3153
|
+
<div class="method-source-code" id="M000164-source">
|
3114
3154
|
<pre>
|
3115
3155
|
/*
|
3116
3156
|
* call-seq:
|
@@ -3126,11 +3166,11 @@ ruby_xml_node_space_preserve_set(VALUE self, VALUE bool) {
|
|
3126
3166
|
</div>
|
3127
3167
|
</div>
|
3128
3168
|
|
3129
|
-
<div id="method-
|
3130
|
-
<a name="
|
3169
|
+
<div id="method-M000201" class="method-detail">
|
3170
|
+
<a name="M000201"></a>
|
3131
3171
|
|
3132
3172
|
<div class="method-heading">
|
3133
|
-
<a href="#
|
3173
|
+
<a href="#M000201" class="method-signature">
|
3134
3174
|
<span class="method-name">text?</span><span class="method-args">()</span>
|
3135
3175
|
</a>
|
3136
3176
|
</div>
|
@@ -3140,8 +3180,8 @@ ruby_xml_node_space_preserve_set(VALUE self, VALUE bool) {
|
|
3140
3180
|
Specifies if this is a text node
|
3141
3181
|
</p>
|
3142
3182
|
<p><a class="source-toggle" href="#"
|
3143
|
-
onclick="toggleCode('
|
3144
|
-
<div class="method-source-code" id="
|
3183
|
+
onclick="toggleCode('M000201-source');return false;">[Source]</a></p>
|
3184
|
+
<div class="method-source-code" id="M000201-source">
|
3145
3185
|
<pre>
|
3146
3186
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 244</span>
|
3147
3187
|
244: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text?</span>
|
@@ -3152,11 +3192,11 @@ Specifies if this is a text node
|
|
3152
3192
|
</div>
|
3153
3193
|
</div>
|
3154
3194
|
|
3155
|
-
<div id="method-
|
3156
|
-
<a name="
|
3195
|
+
<div id="method-M000165" class="method-detail">
|
3196
|
+
<a name="M000165"></a>
|
3157
3197
|
|
3158
3198
|
<div class="method-heading">
|
3159
|
-
<a href="#
|
3199
|
+
<a href="#M000165" class="method-signature">
|
3160
3200
|
<span class="method-name">node.to_s → "string"<br />
|
3161
3201
|
</span>
|
3162
3202
|
</a>
|
@@ -3164,12 +3204,12 @@ Specifies if this is a text node
|
|
3164
3204
|
|
3165
3205
|
<div class="method-description">
|
3166
3206
|
<p>
|
3167
|
-
Coerce this node to a string representation of it&#
|
3207
|
+
Coerce this node to a string representation of it‘s <a
|
3168
3208
|
href="../XML.html">XML</a>.
|
3169
3209
|
</p>
|
3170
3210
|
<p><a class="source-toggle" href="#"
|
3171
|
-
onclick="toggleCode('
|
3172
|
-
<div class="method-source-code" id="
|
3211
|
+
onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
|
3212
|
+
<div class="method-source-code" id="M000165-source">
|
3173
3213
|
<pre>
|
3174
3214
|
/*
|
3175
3215
|
* call-seq:
|
@@ -3186,11 +3226,11 @@ ruby_xml_node_to_s(VALUE self) {
|
|
3186
3226
|
</div>
|
3187
3227
|
</div>
|
3188
3228
|
|
3189
|
-
<div id="method-
|
3190
|
-
<a name="
|
3229
|
+
<div id="method-M000202" class="method-detail">
|
3230
|
+
<a name="M000202"></a>
|
3191
3231
|
|
3192
3232
|
<div class="method-heading">
|
3193
|
-
<a href="#
|
3233
|
+
<a href="#M000202" class="method-signature">
|
3194
3234
|
<span class="method-name">xinclude_end?</span><span class="method-args">()</span>
|
3195
3235
|
</a>
|
3196
3236
|
</div>
|
@@ -3200,8 +3240,8 @@ ruby_xml_node_to_s(VALUE self) {
|
|
3200
3240
|
Specifies if this is an xinclude end node
|
3201
3241
|
</p>
|
3202
3242
|
<p><a class="source-toggle" href="#"
|
3203
|
-
onclick="toggleCode('
|
3204
|
-
<div class="method-source-code" id="
|
3243
|
+
onclick="toggleCode('M000202-source');return false;">[Source]</a></p>
|
3244
|
+
<div class="method-source-code" id="M000202-source">
|
3205
3245
|
<pre>
|
3206
3246
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 249</span>
|
3207
3247
|
249: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">xinclude_end?</span>
|
@@ -3212,11 +3252,11 @@ Specifies if this is an xinclude end node
|
|
3212
3252
|
</div>
|
3213
3253
|
</div>
|
3214
3254
|
|
3215
|
-
<div id="method-
|
3216
|
-
<a name="
|
3255
|
+
<div id="method-M000203" class="method-detail">
|
3256
|
+
<a name="M000203"></a>
|
3217
3257
|
|
3218
3258
|
<div class="method-heading">
|
3219
|
-
<a href="#
|
3259
|
+
<a href="#M000203" class="method-signature">
|
3220
3260
|
<span class="method-name">xinclude_start?</span><span class="method-args">()</span>
|
3221
3261
|
</a>
|
3222
3262
|
</div>
|
@@ -3226,8 +3266,8 @@ Specifies if this is an xinclude end node
|
|
3226
3266
|
Specifies if this is an xinclude start node
|
3227
3267
|
</p>
|
3228
3268
|
<p><a class="source-toggle" href="#"
|
3229
|
-
onclick="toggleCode('
|
3230
|
-
<div class="method-source-code" id="
|
3269
|
+
onclick="toggleCode('M000203-source');return false;">[Source]</a></p>
|
3270
|
+
<div class="method-source-code" id="M000203-source">
|
3231
3271
|
<pre>
|
3232
3272
|
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 254</span>
|
3233
3273
|
254: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">xinclude_start?</span>
|
@@ -3238,11 +3278,11 @@ Specifies if this is an xinclude start node
|
|
3238
3278
|
</div>
|
3239
3279
|
</div>
|
3240
3280
|
|
3241
|
-
<div id="method-
|
3242
|
-
<a name="
|
3281
|
+
<div id="method-M000166" class="method-detail">
|
3282
|
+
<a name="M000166"></a>
|
3243
3283
|
|
3244
3284
|
<div class="method-heading">
|
3245
|
-
<a href="#
|
3285
|
+
<a href="#M000166" class="method-signature">
|
3246
3286
|
<span class="method-name">node.xlink? → (true|false)<br />
|
3247
3287
|
</span>
|
3248
3288
|
</a>
|
@@ -3253,8 +3293,8 @@ Specifies if this is an xinclude start node
|
|
3253
3293
|
Determine whether this node is an xlink node.
|
3254
3294
|
</p>
|
3255
3295
|
<p><a class="source-toggle" href="#"
|
3256
|
-
onclick="toggleCode('
|
3257
|
-
<div class="method-source-code" id="
|
3296
|
+
onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
|
3297
|
+
<div class="method-source-code" id="M000166-source">
|
3258
3298
|
<pre>
|
3259
3299
|
/*
|
3260
3300
|
* call-seq:
|
@@ -3270,11 +3310,11 @@ ruby_xml_node_xlink_q(VALUE self) {
|
|
3270
3310
|
</div>
|
3271
3311
|
</div>
|
3272
3312
|
|
3273
|
-
<div id="method-
|
3274
|
-
<a name="
|
3313
|
+
<div id="method-M000167" class="method-detail">
|
3314
|
+
<a name="M000167"></a>
|
3275
3315
|
|
3276
3316
|
<div class="method-heading">
|
3277
|
-
<a href="#
|
3317
|
+
<a href="#M000167" class="method-signature">
|
3278
3318
|
<span class="method-name">node.xlink_type → num<br />
|
3279
3319
|
</span>
|
3280
3320
|
</a>
|
@@ -3283,11 +3323,11 @@ ruby_xml_node_xlink_q(VALUE self) {
|
|
3283
3323
|
<div class="method-description">
|
3284
3324
|
<p>
|
3285
3325
|
Obtain the type identifier for this xlink, if applicable. If this is not an
|
3286
|
-
xlink node (see
|
3326
|
+
xlink node (see +<a href="Node.html#M000166">xlink?</a>+), will return nil.
|
3287
3327
|
</p>
|
3288
3328
|
<p><a class="source-toggle" href="#"
|
3289
|
-
onclick="toggleCode('
|
3290
|
-
<div class="method-source-code" id="
|
3329
|
+
onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
|
3330
|
+
<div class="method-source-code" id="M000167-source">
|
3291
3331
|
<pre>
|
3292
3332
|
/*
|
3293
3333
|
* call-seq:
|
@@ -3305,11 +3345,11 @@ ruby_xml_node_xlink_type(VALUE self) {
|
|
3305
3345
|
</div>
|
3306
3346
|
</div>
|
3307
3347
|
|
3308
|
-
<div id="method-
|
3309
|
-
<a name="
|
3348
|
+
<div id="method-M000168" class="method-detail">
|
3349
|
+
<a name="M000168"></a>
|
3310
3350
|
|
3311
3351
|
<div class="method-heading">
|
3312
|
-
<a href="#
|
3352
|
+
<a href="#M000168" class="method-signature">
|
3313
3353
|
<span class="method-name">node.xlink_type_name → "string"<br />
|
3314
3354
|
</span>
|
3315
3355
|
</a>
|
@@ -3317,12 +3357,13 @@ ruby_xml_node_xlink_type(VALUE self) {
|
|
3317
3357
|
|
3318
3358
|
<div class="method-description">
|
3319
3359
|
<p>
|
3320
|
-
Obtain the type name for this xlink, if
|
3321
|
-
|
3360
|
+
Obtain the type <a href="Node.html#M000148">name</a> for this xlink, if
|
3361
|
+
applicable. If this is not an xlink node (see +<a
|
3362
|
+
href="Node.html#M000166">xlink?</a>+), will return nil.
|
3322
3363
|
</p>
|
3323
3364
|
<p><a class="source-toggle" href="#"
|
3324
|
-
onclick="toggleCode('
|
3325
|
-
<div class="method-source-code" id="
|
3365
|
+
onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
|
3366
|
+
<div class="method-source-code" id="M000168-source">
|
3326
3367
|
<pre>
|
3327
3368
|
/*
|
3328
3369
|
* call-seq:
|