libxml-ruby 0.8.0-x86-mswin32-60 → 0.8.1-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +8 -1
- data/README +2 -2
- data/benchmark/xml_benchmarks.rb +6 -1
- data/doc/{classes → rdoc/classes}/LibXML/XML/Attr.html +159 -159
- data/doc/{classes → rdoc/classes}/LibXML/XML/Attributes.html +56 -90
- data/doc/{classes → rdoc/classes}/LibXML/XML/Document.html +219 -219
- data/doc/{classes → rdoc/classes}/LibXML/XML/Dtd.html +6 -6
- data/doc/{classes → rdoc/classes}/LibXML/XML/Error.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/HTMLParser.html +36 -36
- data/doc/{classes → rdoc/classes}/LibXML/XML/InputCallbacks.html +6 -6
- data/doc/{classes → rdoc/classes}/LibXML/XML/NS.html +42 -42
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/FailedModify.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/Set.html +54 -54
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/SetNamespace.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node/UnknownType.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Node.html +728 -812
- data/doc/{classes → rdoc/classes}/LibXML/XML/Parser/Context.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Parser/ParseError.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Parser.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Reader.html +282 -282
- data/doc/{classes → rdoc/classes}/LibXML/XML/SaxParser.html +48 -48
- data/doc/{classes → rdoc/classes}/LibXML/XML/Schema.html +18 -18
- data/doc/{classes → rdoc/classes}/LibXML/XML/State.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/Tree.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XInclude/Error.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XInclude.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XMLParserOptions.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/Context.html +2 -2
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/InvalidPath.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath/Object.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPath.html +2 -2
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/Context/InvalidPath.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/Context.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer/InvalidExpression.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML/XML/XPointer.html +6 -6
- data/doc/{classes → rdoc/classes}/LibXML/XML.html +0 -0
- data/doc/{classes → rdoc/classes}/LibXML.html +0 -0
- data/doc/{classes → rdoc/classes}/XML.html +0 -0
- data/doc/{classes → rdoc/classes}/singleton.html +0 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/{files → rdoc/files}/CHANGES.html +11 -2
- data/doc/{files → rdoc/files}/LICENSE.html +0 -0
- data/doc/{files → rdoc/files}/README.html +2 -2
- data/doc/{files → rdoc/files}/VERSION.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/cbg_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/libxml_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_attr_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_attributes_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_document_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_dtd_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_html_parser_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_input_cbg_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_node_c.html +1 -1
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_node_set_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_ns_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_parser_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_parser_context_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_reader_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_sax_parser_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_schema_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_state_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xinclude_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_context_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpath_object_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpointer_c.html +0 -0
- data/doc/{files → rdoc/files}/ext/libxml/ruby_xml_xpointer_context_c.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/attr_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/attributes_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/document_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/node_rb.html +1 -1
- data/doc/{files → rdoc/files}/lib/libxml/node_set_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/parser_options_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/parser_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml/properties_rb.html +1 -1
- data/doc/{files → rdoc/files}/lib/libxml/tree_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/libxml_rb.html +0 -0
- data/doc/{files → rdoc/files}/lib/xml/libxml_rb.html +0 -0
- data/doc/{fr_class_index.html → rdoc/fr_class_index.html} +0 -0
- data/doc/{fr_file_index.html → rdoc/fr_file_index.html} +0 -0
- data/doc/{fr_method_index.html → rdoc/fr_method_index.html} +233 -234
- data/doc/{index.html → rdoc/index.html} +2 -2
- data/doc/{rdoc-style.css → rdoc/rdoc-style.css} +0 -0
- data/ext/libxml/extconf.rb +75 -117
- data/ext/libxml/ruby_xml_node.c +14 -401
- data/ext/libxml/version.h +2 -2
- data/lib/libxml/node.rb +159 -27
- data/lib/libxml/properties.rb +2 -8
- data/lib/libxml_ruby.so +0 -0
- data/mingw/libxml_ruby.so +0 -0
- data/test/tc_xml_attributes.rb +9 -0
- metadata +98 -97
- data/doc/created.rid +0 -1
@@ -99,100 +99,101 @@
|
|
99
99
|
|
100
100
|
<div class="name-list">
|
101
101
|
<a href="#M000122"><<</a>
|
102
|
-
<a href="#
|
102
|
+
<a href="#M000166">==</a>
|
103
103
|
<a href="#M000115">[]</a>
|
104
104
|
<a href="#M000123">[]=</a>
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
105
|
+
<a href="#M000181">attribute?</a>
|
106
|
+
<a href="#M000182">attribute_decl?</a>
|
107
|
+
<a href="#M000129">attributes</a>
|
108
|
+
<a href="#M000167">attributes?</a>
|
109
|
+
<a href="#M000130">base</a>
|
110
|
+
<a href="#M000131">base=</a>
|
111
|
+
<a href="#M000132">blank?</a>
|
112
|
+
<a href="#M000183">cdata?</a>
|
113
113
|
<a href="#M000203">child</a>
|
114
114
|
<a href="#M000125">child=</a>
|
115
115
|
<a href="#M000201">child?</a>
|
116
116
|
<a href="#M000124">child_add</a>
|
117
|
-
<a href="#
|
117
|
+
<a href="#M000176">children</a>
|
118
118
|
<a href="#M000202">children?</a>
|
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="#
|
119
|
+
<a href="#M000168">clone</a>
|
120
|
+
<a href="#M000184">comment?</a>
|
121
|
+
<a href="#M000134">content</a>
|
122
|
+
<a href="#M000135">content=</a>
|
123
|
+
<a href="#M000136">content_stripped</a>
|
124
|
+
<a href="#M000133">copy</a>
|
125
|
+
<a href="#M000139">debug_dump</a>
|
126
|
+
<a href="#M000137">doc</a>
|
127
|
+
<a href="#M000185">docbook_doc?</a>
|
128
|
+
<a href="#M000186">doctype?</a>
|
129
|
+
<a href="#M000187">document?</a>
|
130
|
+
<a href="#M000188">dtd?</a>
|
131
|
+
<a href="#M000138">dump</a>
|
132
|
+
<a href="#M000169">dup</a>
|
133
133
|
<a href="#M000116">each</a>
|
134
|
+
<a href="#M000172">each_attr</a>
|
134
135
|
<a href="#M000204">each_child</a>
|
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="#
|
136
|
+
<a href="#M000173">each_element</a>
|
137
|
+
<a href="#M000189">element?</a>
|
138
|
+
<a href="#M000191">element_decl?</a>
|
139
|
+
<a href="#M000140">empty?</a>
|
140
|
+
<a href="#M000190">entity?</a>
|
141
|
+
<a href="#M000192">entity_ref?</a>
|
142
|
+
<a href="#M000141">eql?</a>
|
143
|
+
<a href="#M000170">find</a>
|
144
|
+
<a href="#M000171">find_first</a>
|
144
145
|
<a href="#M000117">first</a>
|
145
|
-
<a href="#
|
146
|
-
<a href="#
|
147
|
-
<a href="#
|
148
|
-
<a href="#
|
149
|
-
<a href="#
|
146
|
+
<a href="#M000175">first?</a>
|
147
|
+
<a href="#M000193">fragment?</a>
|
148
|
+
<a href="#M000194">html_doc?</a>
|
149
|
+
<a href="#M000142">lang</a>
|
150
|
+
<a href="#M000143">lang=</a>
|
150
151
|
<a href="#M000118">last</a>
|
151
|
-
<a href="#
|
152
|
-
<a href="#
|
153
|
-
<a href="#
|
154
|
-
<a href="#
|
155
|
-
<a href="#
|
156
|
-
<a href="#
|
157
|
-
<a href="#
|
158
|
-
<a href="#
|
152
|
+
<a href="#M000179">last?</a>
|
153
|
+
<a href="#M000144">line_num</a>
|
154
|
+
<a href="#M000145">name</a>
|
155
|
+
<a href="#M000146">name=</a>
|
156
|
+
<a href="#M000147">namespace</a>
|
157
|
+
<a href="#M000149">namespace=</a>
|
158
|
+
<a href="#M000195">namespace?</a>
|
159
|
+
<a href="#M000148">namespace_node</a>
|
159
160
|
<a href="#M000111">new</a>
|
160
161
|
<a href="#M000112">new_cdata</a>
|
161
162
|
<a href="#M000113">new_comment</a>
|
162
163
|
<a href="#M000114">new_text</a>
|
163
164
|
<a href="#M000119">next</a>
|
164
165
|
<a href="#M000127">next=</a>
|
165
|
-
<a href="#
|
166
|
-
<a href="#
|
167
|
-
<a href="#
|
168
|
-
<a href="#
|
169
|
-
<a href="#
|
170
|
-
<a href="#
|
171
|
-
<a href="#
|
172
|
-
<a href="#
|
166
|
+
<a href="#M000177">next?</a>
|
167
|
+
<a href="#M000150">node_type</a>
|
168
|
+
<a href="#M000180">node_type_name</a>
|
169
|
+
<a href="#M000196">notation?</a>
|
170
|
+
<a href="#M000151">ns</a>
|
171
|
+
<a href="#M000152">ns?</a>
|
172
|
+
<a href="#M000154">ns_def</a>
|
173
|
+
<a href="#M000153">ns_def?</a>
|
173
174
|
<a href="#M000120">parent</a>
|
174
|
-
<a href="#
|
175
|
-
<a href="#
|
176
|
-
<a href="#
|
177
|
-
<a href="#
|
175
|
+
<a href="#M000174">parent?</a>
|
176
|
+
<a href="#M000155">path</a>
|
177
|
+
<a href="#M000197">pi?</a>
|
178
|
+
<a href="#M000156">pointer</a>
|
178
179
|
<a href="#M000121">prev</a>
|
179
180
|
<a href="#M000128">prev=</a>
|
180
|
-
<a href="#
|
181
|
+
<a href="#M000178">prev?</a>
|
181
182
|
<a href="#M000205">properties</a>
|
182
|
-
<a href="#
|
183
|
-
<a href="#
|
184
|
-
<a href="#
|
185
|
-
<a href="#
|
183
|
+
<a href="#M000206">properties?</a>
|
184
|
+
<a href="#M000157">remove!</a>
|
185
|
+
<a href="#M000159">search_href</a>
|
186
|
+
<a href="#M000158">search_ns</a>
|
186
187
|
<a href="#M000126">sibling=</a>
|
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="#
|
188
|
+
<a href="#M000160">space_preserve</a>
|
189
|
+
<a href="#M000161">space_preserve=</a>
|
190
|
+
<a href="#M000198">text?</a>
|
191
|
+
<a href="#M000162">to_s</a>
|
192
|
+
<a href="#M000199">xinclude_end?</a>
|
193
|
+
<a href="#M000200">xinclude_start?</a>
|
194
|
+
<a href="#M000163">xlink?</a>
|
195
|
+
<a href="#M000164">xlink_type</a>
|
196
|
+
<a href="#M000165">xlink_type_name</a>
|
196
197
|
</div>
|
197
198
|
</div>
|
198
199
|
|
@@ -625,8 +626,8 @@ ruby_xml_node_content_add(VALUE self, VALUE obj) {
|
|
625
626
|
</div>
|
626
627
|
</div>
|
627
628
|
|
628
|
-
<div id="method-
|
629
|
-
<a name="
|
629
|
+
<div id="method-M000166" class="method-detail">
|
630
|
+
<a name="M000166"></a>
|
630
631
|
|
631
632
|
<div class="method-heading">
|
632
633
|
<span class="method-name">==</span><span class="method-args">(p1)</span>
|
@@ -634,7 +635,7 @@ ruby_xml_node_content_add(VALUE self, VALUE obj) {
|
|
634
635
|
|
635
636
|
<div class="method-description">
|
636
637
|
<p>
|
637
|
-
Alias for <a href="Node.html#
|
638
|
+
Alias for <a href="Node.html#M000141">eql?</a>
|
638
639
|
</p>
|
639
640
|
</div>
|
640
641
|
</div>
|
@@ -705,75 +706,63 @@ ruby_xml_node_property_set(VALUE self, VALUE name, VALUE value) {
|
|
705
706
|
</div>
|
706
707
|
</div>
|
707
708
|
|
708
|
-
<div id="method-
|
709
|
-
<a name="
|
709
|
+
<div id="method-M000181" class="method-detail">
|
710
|
+
<a name="M000181"></a>
|
710
711
|
|
711
712
|
<div class="method-heading">
|
712
|
-
<a href="#
|
713
|
-
<span class="method-name">
|
714
|
-
</span>
|
713
|
+
<a href="#M000181" class="method-signature">
|
714
|
+
<span class="method-name">attribute?</span><span class="method-args">()</span>
|
715
715
|
</a>
|
716
716
|
</div>
|
717
717
|
|
718
718
|
<div class="method-description">
|
719
719
|
<p>
|
720
|
-
|
720
|
+
Specifies if this is an attribute node
|
721
721
|
</p>
|
722
722
|
<p><a class="source-toggle" href="#"
|
723
|
-
onclick="toggleCode('
|
724
|
-
<div class="method-source-code" id="
|
723
|
+
onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
|
724
|
+
<div class="method-source-code" id="M000181-source">
|
725
725
|
<pre>
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
* Determine whether this is an attribute node,
|
731
|
-
*/
|
732
|
-
VALUE
|
733
|
-
ruby_xml_node_attribute_q(VALUE self) {
|
734
|
-
|
726
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 158</span>
|
727
|
+
158: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attribute?</span>
|
728
|
+
159: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">ATTRIBUTE_NODE</span>
|
729
|
+
160: <span class="ruby-keyword kw">end</span>
|
735
730
|
</pre>
|
736
731
|
</div>
|
737
732
|
</div>
|
738
733
|
</div>
|
739
734
|
|
740
|
-
<div id="method-
|
741
|
-
<a name="
|
735
|
+
<div id="method-M000182" class="method-detail">
|
736
|
+
<a name="M000182"></a>
|
742
737
|
|
743
738
|
<div class="method-heading">
|
744
|
-
<a href="#
|
745
|
-
<span class="method-name">
|
746
|
-
</span>
|
739
|
+
<a href="#M000182" class="method-signature">
|
740
|
+
<span class="method-name">attribute_decl?</span><span class="method-args">()</span>
|
747
741
|
</a>
|
748
742
|
</div>
|
749
743
|
|
750
744
|
<div class="method-description">
|
751
745
|
<p>
|
752
|
-
|
746
|
+
Specifies if this is an attribute declaration node
|
753
747
|
</p>
|
754
748
|
<p><a class="source-toggle" href="#"
|
755
|
-
onclick="toggleCode('
|
756
|
-
<div class="method-source-code" id="
|
749
|
+
onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
|
750
|
+
<div class="method-source-code" id="M000182-source">
|
757
751
|
<pre>
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
* Determine whether this is an attribute declaration node,
|
763
|
-
*/
|
764
|
-
VALUE
|
765
|
-
ruby_xml_node_attribute_decl_q(VALUE self) {
|
766
|
-
|
752
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 163</span>
|
753
|
+
163: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attribute_decl?</span>
|
754
|
+
164: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">ATTRIBUTE_DECL</span>
|
755
|
+
165: <span class="ruby-keyword kw">end</span>
|
767
756
|
</pre>
|
768
757
|
</div>
|
769
758
|
</div>
|
770
759
|
</div>
|
771
760
|
|
772
|
-
<div id="method-
|
773
|
-
<a name="
|
761
|
+
<div id="method-M000129" class="method-detail">
|
762
|
+
<a name="M000129"></a>
|
774
763
|
|
775
764
|
<div class="method-heading">
|
776
|
-
<a href="#
|
765
|
+
<a href="#M000129" class="method-signature">
|
777
766
|
<span class="method-name">node.attributes → attributes<br />
|
778
767
|
</span>
|
779
768
|
</a>
|
@@ -784,8 +773,8 @@ ruby_xml_node_attribute_decl_q(VALUE self) {
|
|
784
773
|
Returns the <a href="Attributes.html">XML::Attributes</a> for this node.
|
785
774
|
</p>
|
786
775
|
<p><a class="source-toggle" href="#"
|
787
|
-
onclick="toggleCode('
|
788
|
-
<div class="method-source-code" id="
|
776
|
+
onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
|
777
|
+
<div class="method-source-code" id="M000129-source">
|
789
778
|
<pre>
|
790
779
|
/*
|
791
780
|
* call-seq:
|
@@ -801,44 +790,37 @@ ruby_xml_node_attributes_get(VALUE self) {
|
|
801
790
|
</div>
|
802
791
|
</div>
|
803
792
|
|
804
|
-
<div id="method-
|
805
|
-
<a name="
|
793
|
+
<div id="method-M000167" class="method-detail">
|
794
|
+
<a name="M000167"></a>
|
806
795
|
|
807
796
|
<div class="method-heading">
|
808
|
-
<a href="#
|
809
|
-
<span class="method-name">
|
810
|
-
</span>
|
797
|
+
<a href="#M000167" class="method-signature">
|
798
|
+
<span class="method-name">attributes?</span><span class="method-args">()</span>
|
811
799
|
</a>
|
812
800
|
</div>
|
813
801
|
|
814
802
|
<div class="method-description">
|
815
803
|
<p>
|
816
|
-
|
804
|
+
Determines whether this node has attributes
|
817
805
|
</p>
|
818
806
|
<p><a class="source-toggle" href="#"
|
819
|
-
onclick="toggleCode('
|
820
|
-
<div class="method-source-code" id="
|
807
|
+
onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
|
808
|
+
<div class="method-source-code" id="M000167-source">
|
821
809
|
<pre>
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
* Determine whether this node has properties
|
827
|
-
* (attributes).
|
828
|
-
*/
|
829
|
-
VALUE
|
830
|
-
ruby_xml_node_attributes_q(VALUE self) {
|
831
|
-
|
810
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 8</span>
|
811
|
+
8: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">attributes?</span>
|
812
|
+
9: <span class="ruby-identifier">attributes</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
813
|
+
10: <span class="ruby-keyword kw">end</span>
|
832
814
|
</pre>
|
833
815
|
</div>
|
834
816
|
</div>
|
835
817
|
</div>
|
836
818
|
|
837
|
-
<div id="method-
|
838
|
-
<a name="
|
819
|
+
<div id="method-M000130" class="method-detail">
|
820
|
+
<a name="M000130"></a>
|
839
821
|
|
840
822
|
<div class="method-heading">
|
841
|
-
<a href="#
|
823
|
+
<a href="#M000130" class="method-signature">
|
842
824
|
<span class="method-name">node.base → "uri"<br />
|
843
825
|
</span>
|
844
826
|
</a>
|
@@ -849,8 +831,8 @@ ruby_xml_node_attributes_q(VALUE self) {
|
|
849
831
|
Obtain this node’s base URI.
|
850
832
|
</p>
|
851
833
|
<p><a class="source-toggle" href="#"
|
852
|
-
onclick="toggleCode('
|
853
|
-
<div class="method-source-code" id="
|
834
|
+
onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
|
835
|
+
<div class="method-source-code" id="M000130-source">
|
854
836
|
<pre>
|
855
837
|
/*
|
856
838
|
* call-seq:
|
@@ -866,11 +848,11 @@ ruby_xml_node_base_get(VALUE self) {
|
|
866
848
|
</div>
|
867
849
|
</div>
|
868
850
|
|
869
|
-
<div id="method-
|
870
|
-
<a name="
|
851
|
+
<div id="method-M000131" class="method-detail">
|
852
|
+
<a name="M000131"></a>
|
871
853
|
|
872
854
|
<div class="method-heading">
|
873
|
-
<a href="#
|
855
|
+
<a href="#M000131" class="method-signature">
|
874
856
|
<span class="method-name">node.base = "uri"<br />
|
875
857
|
</span>
|
876
858
|
</a>
|
@@ -881,8 +863,8 @@ ruby_xml_node_base_get(VALUE self) {
|
|
881
863
|
<a href="Node/Set.html">Set</a> this node’s base URI.
|
882
864
|
</p>
|
883
865
|
<p><a class="source-toggle" href="#"
|
884
|
-
onclick="toggleCode('
|
885
|
-
<div class="method-source-code" id="
|
866
|
+
onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
|
867
|
+
<div class="method-source-code" id="M000131-source">
|
886
868
|
<pre>
|
887
869
|
/*
|
888
870
|
* call-seq:
|
@@ -898,11 +880,11 @@ ruby_xml_node_base_set(VALUE self, VALUE uri) {
|
|
898
880
|
</div>
|
899
881
|
</div>
|
900
882
|
|
901
|
-
<div id="method-
|
902
|
-
<a name="
|
883
|
+
<div id="method-M000132" class="method-detail">
|
884
|
+
<a name="M000132"></a>
|
903
885
|
|
904
886
|
<div class="method-heading">
|
905
|
-
<a href="#
|
887
|
+
<a href="#M000132" class="method-signature">
|
906
888
|
<span class="method-name">node.empty? → (true|false)<br />
|
907
889
|
</span>
|
908
890
|
</a>
|
@@ -913,8 +895,8 @@ ruby_xml_node_base_set(VALUE self, VALUE uri) {
|
|
913
895
|
Determine whether this node is empty.
|
914
896
|
</p>
|
915
897
|
<p><a class="source-toggle" href="#"
|
916
|
-
onclick="toggleCode('
|
917
|
-
<div class="method-source-code" id="
|
898
|
+
onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
|
899
|
+
<div class="method-source-code" id="M000132-source">
|
918
900
|
<pre>
|
919
901
|
/*
|
920
902
|
* call-seq:
|
@@ -930,33 +912,27 @@ ruby_xml_node_empty_q(VALUE self) {
|
|
930
912
|
</div>
|
931
913
|
</div>
|
932
914
|
|
933
|
-
<div id="method-
|
934
|
-
<a name="
|
915
|
+
<div id="method-M000183" class="method-detail">
|
916
|
+
<a name="M000183"></a>
|
935
917
|
|
936
918
|
<div class="method-heading">
|
937
|
-
<a href="#
|
938
|
-
<span class="method-name">
|
939
|
-
</span>
|
919
|
+
<a href="#M000183" class="method-signature">
|
920
|
+
<span class="method-name">cdata?</span><span class="method-args">()</span>
|
940
921
|
</a>
|
941
922
|
</div>
|
942
923
|
|
943
924
|
<div class="method-description">
|
944
925
|
<p>
|
945
|
-
|
926
|
+
Specifies if this is an CDATA node
|
946
927
|
</p>
|
947
928
|
<p><a class="source-toggle" href="#"
|
948
|
-
onclick="toggleCode('
|
949
|
-
<div class="method-source-code" id="
|
929
|
+
onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
|
930
|
+
<div class="method-source-code" id="M000183-source">
|
950
931
|
<pre>
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
* Determine whether this is a #CDATA node
|
956
|
-
*/
|
957
|
-
VALUE
|
958
|
-
ruby_xml_node_cdata_q(VALUE self) {
|
959
|
-
|
932
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 168</span>
|
933
|
+
168: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cdata?</span>
|
934
|
+
169: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">CDATA_SECTION_NODE</span>
|
935
|
+
170: <span class="ruby-keyword kw">end</span>
|
960
936
|
</pre>
|
961
937
|
</div>
|
962
938
|
</div>
|
@@ -1018,7 +994,7 @@ ruby_xml_node_child_set(VALUE self, VALUE rnode) {
|
|
1018
994
|
|
1019
995
|
<div class="method-description">
|
1020
996
|
<p>
|
1021
|
-
Alias for <a href="Node.html#
|
997
|
+
Alias for <a href="Node.html#M000175">first?</a>
|
1022
998
|
</p>
|
1023
999
|
</div>
|
1024
1000
|
</div>
|
@@ -1055,11 +1031,11 @@ ruby_xml_node_child_add(VALUE self, VALUE rnode) {
|
|
1055
1031
|
</div>
|
1056
1032
|
</div>
|
1057
1033
|
|
1058
|
-
<div id="method-
|
1059
|
-
<a name="
|
1034
|
+
<div id="method-M000176" class="method-detail">
|
1035
|
+
<a name="M000176"></a>
|
1060
1036
|
|
1061
1037
|
<div class="method-heading">
|
1062
|
-
<a href="#
|
1038
|
+
<a href="#M000176" class="method-signature">
|
1063
1039
|
<span class="method-name">children</span><span class="method-args">()</span>
|
1064
1040
|
</a>
|
1065
1041
|
</div>
|
@@ -1069,13 +1045,13 @@ ruby_xml_node_child_add(VALUE self, VALUE rnode) {
|
|
1069
1045
|
Returns this node’s children as an array.
|
1070
1046
|
</p>
|
1071
1047
|
<p><a class="source-toggle" href="#"
|
1072
|
-
onclick="toggleCode('
|
1073
|
-
<div class="method-source-code" id="
|
1048
|
+
onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
|
1049
|
+
<div class="method-source-code" id="M000176-source">
|
1074
1050
|
<pre>
|
1075
|
-
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1051
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 82</span>
|
1052
|
+
82: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">children</span>
|
1053
|
+
83: <span class="ruby-identifier">entries</span>
|
1054
|
+
84: <span class="ruby-keyword kw">end</span>
|
1079
1055
|
</pre>
|
1080
1056
|
</div>
|
1081
1057
|
</div>
|
@@ -1090,71 +1066,69 @@ Returns this node’s children as an array.
|
|
1090
1066
|
|
1091
1067
|
<div class="method-description">
|
1092
1068
|
<p>
|
1093
|
-
Alias for <a href="Node.html#
|
1069
|
+
Alias for <a href="Node.html#M000175">first?</a>
|
1094
1070
|
</p>
|
1095
1071
|
</div>
|
1096
1072
|
</div>
|
1097
1073
|
|
1098
|
-
<div id="method-
|
1099
|
-
<a name="
|
1074
|
+
<div id="method-M000168" class="method-detail">
|
1075
|
+
<a name="M000168"></a>
|
1100
1076
|
|
1101
1077
|
<div class="method-heading">
|
1102
|
-
<a href="#
|
1078
|
+
<a href="#M000168" class="method-signature">
|
1103
1079
|
<span class="method-name">clone</span><span class="method-args">()</span>
|
1104
1080
|
</a>
|
1105
1081
|
</div>
|
1106
1082
|
|
1107
1083
|
<div class="method-description">
|
1084
|
+
<p>
|
1085
|
+
Create a shallow copy of the node. To create a deep copy call <a
|
1086
|
+
href="Node.html#M000133">Node#copy</a>(true)
|
1087
|
+
</p>
|
1108
1088
|
<p><a class="source-toggle" href="#"
|
1109
|
-
onclick="toggleCode('
|
1110
|
-
<div class="method-source-code" id="
|
1089
|
+
onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
|
1090
|
+
<div class="method-source-code" id="M000168-source">
|
1111
1091
|
<pre>
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1092
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 14</span>
|
1093
|
+
14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone</span>
|
1094
|
+
15: <span class="ruby-identifier">copy</span>(<span class="ruby-keyword kw">false</span>)
|
1095
|
+
16: <span class="ruby-keyword kw">end</span>
|
1116
1096
|
</pre>
|
1117
1097
|
</div>
|
1118
1098
|
</div>
|
1119
1099
|
</div>
|
1120
1100
|
|
1121
|
-
<div id="method-
|
1122
|
-
<a name="
|
1101
|
+
<div id="method-M000184" class="method-detail">
|
1102
|
+
<a name="M000184"></a>
|
1123
1103
|
|
1124
1104
|
<div class="method-heading">
|
1125
|
-
<a href="#
|
1126
|
-
<span class="method-name">
|
1127
|
-
</span>
|
1105
|
+
<a href="#M000184" class="method-signature">
|
1106
|
+
<span class="method-name">comment?</span><span class="method-args">()</span>
|
1128
1107
|
</a>
|
1129
1108
|
</div>
|
1130
1109
|
|
1131
1110
|
<div class="method-description">
|
1132
1111
|
<p>
|
1133
|
-
|
1112
|
+
Specifies if this is an comment node
|
1134
1113
|
</p>
|
1135
1114
|
<p><a class="source-toggle" href="#"
|
1136
|
-
onclick="toggleCode('
|
1137
|
-
<div class="method-source-code" id="
|
1115
|
+
onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
|
1116
|
+
<div class="method-source-code" id="M000184-source">
|
1138
1117
|
<pre>
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
* Determine whether this is a comment node
|
1144
|
-
*/
|
1145
|
-
VALUE
|
1146
|
-
ruby_xml_node_comment_q(VALUE self) {
|
1147
|
-
|
1118
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 173</span>
|
1119
|
+
173: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">comment?</span>
|
1120
|
+
174: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">COMMENT_NODE</span>
|
1121
|
+
175: <span class="ruby-keyword kw">end</span>
|
1148
1122
|
</pre>
|
1149
1123
|
</div>
|
1150
1124
|
</div>
|
1151
1125
|
</div>
|
1152
1126
|
|
1153
|
-
<div id="method-
|
1154
|
-
<a name="
|
1127
|
+
<div id="method-M000134" class="method-detail">
|
1128
|
+
<a name="M000134"></a>
|
1155
1129
|
|
1156
1130
|
<div class="method-heading">
|
1157
|
-
<a href="#
|
1131
|
+
<a href="#M000134" class="method-signature">
|
1158
1132
|
<span class="method-name">node.content → "string"<br />
|
1159
1133
|
</span>
|
1160
1134
|
</a>
|
@@ -1165,8 +1139,8 @@ ruby_xml_node_comment_q(VALUE self) {
|
|
1165
1139
|
Obtain this node’s content as a string.
|
1166
1140
|
</p>
|
1167
1141
|
<p><a class="source-toggle" href="#"
|
1168
|
-
onclick="toggleCode('
|
1169
|
-
<div class="method-source-code" id="
|
1142
|
+
onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
|
1143
|
+
<div class="method-source-code" id="M000134-source">
|
1170
1144
|
<pre>
|
1171
1145
|
/*
|
1172
1146
|
* call-seq:
|
@@ -1182,11 +1156,11 @@ ruby_xml_node_content_get(VALUE self) {
|
|
1182
1156
|
</div>
|
1183
1157
|
</div>
|
1184
1158
|
|
1185
|
-
<div id="method-
|
1186
|
-
<a name="
|
1159
|
+
<div id="method-M000135" class="method-detail">
|
1160
|
+
<a name="M000135"></a>
|
1187
1161
|
|
1188
1162
|
<div class="method-heading">
|
1189
|
-
<a href="#
|
1163
|
+
<a href="#M000135" class="method-signature">
|
1190
1164
|
<span class="method-name">node.content = "string"<br />
|
1191
1165
|
</span>
|
1192
1166
|
</a>
|
@@ -1198,8 +1172,8 @@ ruby_xml_node_content_get(VALUE self) {
|
|
1198
1172
|
string.
|
1199
1173
|
</p>
|
1200
1174
|
<p><a class="source-toggle" href="#"
|
1201
|
-
onclick="toggleCode('
|
1202
|
-
<div class="method-source-code" id="
|
1175
|
+
onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
|
1176
|
+
<div class="method-source-code" id="M000135-source">
|
1203
1177
|
<pre>
|
1204
1178
|
/*
|
1205
1179
|
* call-seq:
|
@@ -1215,11 +1189,11 @@ ruby_xml_node_content_set(VALUE self, VALUE content) {
|
|
1215
1189
|
</div>
|
1216
1190
|
</div>
|
1217
1191
|
|
1218
|
-
<div id="method-
|
1219
|
-
<a name="
|
1192
|
+
<div id="method-M000136" class="method-detail">
|
1193
|
+
<a name="M000136"></a>
|
1220
1194
|
|
1221
1195
|
<div class="method-heading">
|
1222
|
-
<a href="#
|
1196
|
+
<a href="#M000136" class="method-signature">
|
1223
1197
|
<span class="method-name">node.content_stripped → "string"<br />
|
1224
1198
|
</span>
|
1225
1199
|
</a>
|
@@ -1234,8 +1208,8 @@ Obtain this node’s stripped content.
|
|
1234
1208
|
<tt>content</tt> method.
|
1235
1209
|
</p>
|
1236
1210
|
<p><a class="source-toggle" href="#"
|
1237
|
-
onclick="toggleCode('
|
1238
|
-
<div class="method-source-code" id="
|
1211
|
+
onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
|
1212
|
+
<div class="method-source-code" id="M000136-source">
|
1239
1213
|
<pre>
|
1240
1214
|
/*
|
1241
1215
|
* call-seq:
|
@@ -1254,11 +1228,11 @@ ruby_xml_node_content_stripped_get(VALUE self) {
|
|
1254
1228
|
</div>
|
1255
1229
|
</div>
|
1256
1230
|
|
1257
|
-
<div id="method-
|
1258
|
-
<a name="
|
1231
|
+
<div id="method-M000133" class="method-detail">
|
1232
|
+
<a name="M000133"></a>
|
1259
1233
|
|
1260
1234
|
<div class="method-heading">
|
1261
|
-
<a href="#
|
1235
|
+
<a href="#M000133" class="method-signature">
|
1262
1236
|
<span class="method-name">node.copy → XML::Node<br />
|
1263
1237
|
</span>
|
1264
1238
|
</a>
|
@@ -1270,8 +1244,8 @@ Creates a copy of this node. To create a shallow copy set the deep
|
|
1270
1244
|
parameter to false. To create a deep copy set the deep parameter to true.
|
1271
1245
|
</p>
|
1272
1246
|
<p><a class="source-toggle" href="#"
|
1273
|
-
onclick="toggleCode('
|
1274
|
-
<div class="method-source-code" id="
|
1247
|
+
onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
|
1248
|
+
<div class="method-source-code" id="M000133-source">
|
1275
1249
|
<pre>
|
1276
1250
|
/*
|
1277
1251
|
* call-seq:
|
@@ -1291,11 +1265,11 @@ ruby_xml_node_copy(VALUE self, VALUE deep) {
|
|
1291
1265
|
</div>
|
1292
1266
|
</div>
|
1293
1267
|
|
1294
|
-
<div id="method-
|
1295
|
-
<a name="
|
1268
|
+
<div id="method-M000139" class="method-detail">
|
1269
|
+
<a name="M000139"></a>
|
1296
1270
|
|
1297
1271
|
<div class="method-heading">
|
1298
|
-
<a href="#
|
1272
|
+
<a href="#M000139" class="method-signature">
|
1299
1273
|
<span class="method-name">node.debug_dump → (true|nil)<br />
|
1300
1274
|
</span>
|
1301
1275
|
</a>
|
@@ -1306,8 +1280,8 @@ ruby_xml_node_copy(VALUE self, VALUE deep) {
|
|
1306
1280
|
Dump this node to stdout, including any debugging information.
|
1307
1281
|
</p>
|
1308
1282
|
<p><a class="source-toggle" href="#"
|
1309
|
-
onclick="toggleCode('
|
1310
|
-
<div class="method-source-code" id="
|
1283
|
+
onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
|
1284
|
+
<div class="method-source-code" id="M000139-source">
|
1311
1285
|
<pre>
|
1312
1286
|
/*
|
1313
1287
|
* call-seq:
|
@@ -1324,11 +1298,11 @@ ruby_xml_node_debug_dump(VALUE self) {
|
|
1324
1298
|
</div>
|
1325
1299
|
</div>
|
1326
1300
|
|
1327
|
-
<div id="method-
|
1328
|
-
<a name="
|
1301
|
+
<div id="method-M000137" class="method-detail">
|
1302
|
+
<a name="M000137"></a>
|
1329
1303
|
|
1330
1304
|
<div class="method-heading">
|
1331
|
-
<a href="#
|
1305
|
+
<a href="#M000137" class="method-signature">
|
1332
1306
|
<span class="method-name">node.doc → document<br />
|
1333
1307
|
</span>
|
1334
1308
|
</a>
|
@@ -1339,8 +1313,8 @@ ruby_xml_node_debug_dump(VALUE self) {
|
|
1339
1313
|
Obtain the <a href="Document.html">XML::Document</a> this node belongs to.
|
1340
1314
|
</p>
|
1341
1315
|
<p><a class="source-toggle" href="#"
|
1342
|
-
onclick="toggleCode('
|
1343
|
-
<div class="method-source-code" id="
|
1316
|
+
onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
|
1317
|
+
<div class="method-source-code" id="M000137-source">
|
1344
1318
|
<pre>
|
1345
1319
|
/*
|
1346
1320
|
* call-seq:
|
@@ -1356,139 +1330,115 @@ ruby_xml_node_doc(VALUE self) {
|
|
1356
1330
|
</div>
|
1357
1331
|
</div>
|
1358
1332
|
|
1359
|
-
<div id="method-
|
1360
|
-
<a name="
|
1333
|
+
<div id="method-M000185" class="method-detail">
|
1334
|
+
<a name="M000185"></a>
|
1361
1335
|
|
1362
1336
|
<div class="method-heading">
|
1363
|
-
<a href="#
|
1364
|
-
<span class="method-name">
|
1365
|
-
</span>
|
1337
|
+
<a href="#M000185" class="method-signature">
|
1338
|
+
<span class="method-name">docbook_doc?</span><span class="method-args">()</span>
|
1366
1339
|
</a>
|
1367
1340
|
</div>
|
1368
1341
|
|
1369
1342
|
<div class="method-description">
|
1370
1343
|
<p>
|
1371
|
-
|
1344
|
+
Specifies if this is an docbook node
|
1372
1345
|
</p>
|
1373
1346
|
<p><a class="source-toggle" href="#"
|
1374
|
-
onclick="toggleCode('
|
1375
|
-
<div class="method-source-code" id="
|
1347
|
+
onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
|
1348
|
+
<div class="method-source-code" id="M000185-source">
|
1376
1349
|
<pre>
|
1377
|
-
|
1378
|
-
|
1379
|
-
|
1380
|
-
|
1381
|
-
* Determine whether this is a docbook node.
|
1382
|
-
*/
|
1383
|
-
VALUE
|
1384
|
-
ruby_xml_node_docbook_doc_q(VALUE self) {
|
1385
|
-
|
1350
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 178</span>
|
1351
|
+
178: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">docbook_doc?</span>
|
1352
|
+
179: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">DOCB_DOCUMENT_NODE</span>
|
1353
|
+
180: <span class="ruby-keyword kw">end</span>
|
1386
1354
|
</pre>
|
1387
1355
|
</div>
|
1388
1356
|
</div>
|
1389
1357
|
</div>
|
1390
1358
|
|
1391
|
-
<div id="method-
|
1392
|
-
<a name="
|
1359
|
+
<div id="method-M000186" class="method-detail">
|
1360
|
+
<a name="M000186"></a>
|
1393
1361
|
|
1394
1362
|
<div class="method-heading">
|
1395
|
-
<a href="#
|
1396
|
-
<span class="method-name">
|
1397
|
-
</span>
|
1363
|
+
<a href="#M000186" class="method-signature">
|
1364
|
+
<span class="method-name">doctype?</span><span class="method-args">()</span>
|
1398
1365
|
</a>
|
1399
1366
|
</div>
|
1400
1367
|
|
1401
1368
|
<div class="method-description">
|
1402
1369
|
<p>
|
1403
|
-
|
1370
|
+
Specifies if this is an docbook node
|
1404
1371
|
</p>
|
1405
1372
|
<p><a class="source-toggle" href="#"
|
1406
|
-
onclick="toggleCode('
|
1407
|
-
<div class="method-source-code" id="
|
1373
|
+
onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
|
1374
|
+
<div class="method-source-code" id="M000186-source">
|
1408
1375
|
<pre>
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
* Determine whether this is a DOCTYPE node.
|
1414
|
-
*/
|
1415
|
-
VALUE
|
1416
|
-
ruby_xml_node_doctype_q(VALUE self) {
|
1417
|
-
|
1376
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 183</span>
|
1377
|
+
183: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">doctype?</span>
|
1378
|
+
184: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">DOCUMENT_TYPE_NODE</span>
|
1379
|
+
185: <span class="ruby-keyword kw">end</span>
|
1418
1380
|
</pre>
|
1419
1381
|
</div>
|
1420
1382
|
</div>
|
1421
1383
|
</div>
|
1422
1384
|
|
1423
|
-
<div id="method-
|
1424
|
-
<a name="
|
1385
|
+
<div id="method-M000187" class="method-detail">
|
1386
|
+
<a name="M000187"></a>
|
1425
1387
|
|
1426
1388
|
<div class="method-heading">
|
1427
|
-
<a href="#
|
1428
|
-
<span class="method-name">
|
1429
|
-
</span>
|
1389
|
+
<a href="#M000187" class="method-signature">
|
1390
|
+
<span class="method-name">document?</span><span class="method-args">()</span>
|
1430
1391
|
</a>
|
1431
1392
|
</div>
|
1432
1393
|
|
1433
1394
|
<div class="method-description">
|
1434
1395
|
<p>
|
1435
|
-
|
1396
|
+
Specifies if this is an DOCTYPE node
|
1436
1397
|
</p>
|
1437
1398
|
<p><a class="source-toggle" href="#"
|
1438
|
-
onclick="toggleCode('
|
1439
|
-
<div class="method-source-code" id="
|
1399
|
+
onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
|
1400
|
+
<div class="method-source-code" id="M000187-source">
|
1440
1401
|
<pre>
|
1441
|
-
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
* Determine whether this is a document node.
|
1446
|
-
*/
|
1447
|
-
VALUE
|
1448
|
-
ruby_xml_node_document_q(VALUE self) {
|
1449
|
-
|
1402
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 188</span>
|
1403
|
+
188: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">document?</span>
|
1404
|
+
189: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">DOCUMENT_NODE</span>
|
1405
|
+
190: <span class="ruby-keyword kw">end</span>
|
1450
1406
|
</pre>
|
1451
1407
|
</div>
|
1452
1408
|
</div>
|
1453
1409
|
</div>
|
1454
1410
|
|
1455
|
-
<div id="method-
|
1456
|
-
<a name="
|
1411
|
+
<div id="method-M000188" class="method-detail">
|
1412
|
+
<a name="M000188"></a>
|
1457
1413
|
|
1458
1414
|
<div class="method-heading">
|
1459
|
-
<a href="#
|
1460
|
-
<span class="method-name">
|
1461
|
-
</span>
|
1415
|
+
<a href="#M000188" class="method-signature">
|
1416
|
+
<span class="method-name">dtd?</span><span class="method-args">()</span>
|
1462
1417
|
</a>
|
1463
1418
|
</div>
|
1464
1419
|
|
1465
1420
|
<div class="method-description">
|
1466
1421
|
<p>
|
1467
|
-
|
1422
|
+
Specifies if this is an DTD node
|
1468
1423
|
</p>
|
1469
1424
|
<p><a class="source-toggle" href="#"
|
1470
|
-
onclick="toggleCode('
|
1471
|
-
<div class="method-source-code" id="
|
1425
|
+
onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
|
1426
|
+
<div class="method-source-code" id="M000188-source">
|
1472
1427
|
<pre>
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
* Determine whether this is a DTD node.
|
1478
|
-
*/
|
1479
|
-
VALUE
|
1480
|
-
ruby_xml_node_dtd_q(VALUE self) {
|
1481
|
-
|
1428
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 193</span>
|
1429
|
+
193: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dtd?</span>
|
1430
|
+
194: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">DTD_NODE</span>
|
1431
|
+
195: <span class="ruby-keyword kw">end</span>
|
1482
1432
|
</pre>
|
1483
1433
|
</div>
|
1484
1434
|
</div>
|
1485
1435
|
</div>
|
1486
1436
|
|
1487
|
-
<div id="method-
|
1488
|
-
<a name="
|
1437
|
+
<div id="method-M000138" class="method-detail">
|
1438
|
+
<a name="M000138"></a>
|
1489
1439
|
|
1490
1440
|
<div class="method-heading">
|
1491
|
-
<a href="#
|
1441
|
+
<a href="#M000138" class="method-signature">
|
1492
1442
|
<span class="method-name">node.dump → (true|nil)<br />
|
1493
1443
|
</span>
|
1494
1444
|
</a>
|
@@ -1499,8 +1449,8 @@ ruby_xml_node_dtd_q(VALUE self) {
|
|
1499
1449
|
Dump this node to stdout.
|
1500
1450
|
</p>
|
1501
1451
|
<p><a class="source-toggle" href="#"
|
1502
|
-
onclick="toggleCode('
|
1503
|
-
<div class="method-source-code" id="
|
1452
|
+
onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
|
1453
|
+
<div class="method-source-code" id="M000138-source">
|
1504
1454
|
<pre>
|
1505
1455
|
/*
|
1506
1456
|
* call-seq:
|
@@ -1516,24 +1466,28 @@ ruby_xml_node_dump(VALUE self) {
|
|
1516
1466
|
</div>
|
1517
1467
|
</div>
|
1518
1468
|
|
1519
|
-
<div id="method-
|
1520
|
-
<a name="
|
1469
|
+
<div id="method-M000169" class="method-detail">
|
1470
|
+
<a name="M000169"></a>
|
1521
1471
|
|
1522
1472
|
<div class="method-heading">
|
1523
|
-
<a href="#
|
1473
|
+
<a href="#M000169" class="method-signature">
|
1524
1474
|
<span class="method-name">dup</span><span class="method-args">()</span>
|
1525
1475
|
</a>
|
1526
1476
|
</div>
|
1527
1477
|
|
1528
1478
|
<div class="method-description">
|
1479
|
+
<p>
|
1480
|
+
Create a shallow copy of the node. To create a deep copy call <a
|
1481
|
+
href="Node.html#M000133">Node#copy</a>(true)
|
1482
|
+
</p>
|
1529
1483
|
<p><a class="source-toggle" href="#"
|
1530
|
-
onclick="toggleCode('
|
1531
|
-
<div class="method-source-code" id="
|
1484
|
+
onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
|
1485
|
+
<div class="method-source-code" id="M000169-source">
|
1532
1486
|
<pre>
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1536
|
-
|
1487
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 20</span>
|
1488
|
+
20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dup</span>
|
1489
|
+
21: <span class="ruby-identifier">copy</span>(<span class="ruby-keyword kw">false</span>)
|
1490
|
+
22: <span class="ruby-keyword kw">end</span>
|
1537
1491
|
</pre>
|
1538
1492
|
</div>
|
1539
1493
|
</div>
|
@@ -1551,9 +1505,9 @@ ruby_xml_node_dump(VALUE self) {
|
|
1551
1505
|
|
1552
1506
|
<div class="method-description">
|
1553
1507
|
<p>
|
1554
|
-
Iterates over
|
1555
|
-
|
1556
|
-
href="Node.html#
|
1508
|
+
Iterates over this node’s children, including text nodes, element
|
1509
|
+
nodes, etc. If you wish to iterate only over child elements, use <a
|
1510
|
+
href="Node.html#M000173">XML::Node#each_element</a>.
|
1557
1511
|
</p>
|
1558
1512
|
<pre>
|
1559
1513
|
doc = XML::Document.new('model/books.xml')
|
@@ -1567,7 +1521,7 @@ href="Node.html#M000191">XML::Node#each_element</a>.
|
|
1567
1521
|
* call-seq:
|
1568
1522
|
* node.each -> XML::Node
|
1569
1523
|
*
|
1570
|
-
* Iterates over
|
1524
|
+
* Iterates over this node's children, including text
|
1571
1525
|
* nodes, element nodes, etc. If you wish to iterate
|
1572
1526
|
* only over child elements, use XML::Node#each_element.
|
1573
1527
|
*
|
@@ -1577,6 +1531,39 @@ href="Node.html#M000191">XML::Node#each_element</a>.
|
|
1577
1531
|
VALUE
|
1578
1532
|
ruby_xml_node_each(VALUE self) {
|
1579
1533
|
|
1534
|
+
</pre>
|
1535
|
+
</div>
|
1536
|
+
</div>
|
1537
|
+
</div>
|
1538
|
+
|
1539
|
+
<div id="method-M000172" class="method-detail">
|
1540
|
+
<a name="M000172"></a>
|
1541
|
+
|
1542
|
+
<div class="method-heading">
|
1543
|
+
<a href="#M000172" class="method-signature">
|
1544
|
+
<span class="method-name">each_attr</span><span class="method-args">() {|attr| ...}</span>
|
1545
|
+
</a>
|
1546
|
+
</div>
|
1547
|
+
|
1548
|
+
<div class="method-description">
|
1549
|
+
<p>
|
1550
|
+
——- Traversal —————- Iterates
|
1551
|
+
over this node’s attributes.
|
1552
|
+
</p>
|
1553
|
+
<pre>
|
1554
|
+
doc = XML::Document.new('model/books.xml')
|
1555
|
+
doc.root.each_attr {|attr| puts attr}
|
1556
|
+
</pre>
|
1557
|
+
<p><a class="source-toggle" href="#"
|
1558
|
+
onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
|
1559
|
+
<div class="method-source-code" id="M000172-source">
|
1560
|
+
<pre>
|
1561
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 54</span>
|
1562
|
+
54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_attr</span>
|
1563
|
+
55: <span class="ruby-identifier">attributes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">attr</span><span class="ruby-operator">|</span>
|
1564
|
+
56: <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">attr</span>)
|
1565
|
+
57: <span class="ruby-keyword kw">end</span>
|
1566
|
+
58: <span class="ruby-keyword kw">end</span>
|
1580
1567
|
</pre>
|
1581
1568
|
</div>
|
1582
1569
|
</div>
|
@@ -1596,100 +1583,96 @@ Alias for <a href="Node.html#M000116">each</a>
|
|
1596
1583
|
</div>
|
1597
1584
|
</div>
|
1598
1585
|
|
1599
|
-
<div id="method-
|
1600
|
-
<a name="
|
1586
|
+
<div id="method-M000173" class="method-detail">
|
1587
|
+
<a name="M000173"></a>
|
1601
1588
|
|
1602
1589
|
<div class="method-heading">
|
1603
|
-
<a href="#
|
1590
|
+
<a href="#M000173" class="method-signature">
|
1604
1591
|
<span class="method-name">each_element</span><span class="method-args">() {|node| ...}</span>
|
1605
1592
|
</a>
|
1606
1593
|
</div>
|
1607
1594
|
|
1608
1595
|
<div class="method-description">
|
1596
|
+
<p>
|
1597
|
+
Iterates over this node’s child elements (nodes that have a <a
|
1598
|
+
href="Node.html#M000150">node_type</a> == ELEMENT_NODE).
|
1599
|
+
</p>
|
1600
|
+
<pre>
|
1601
|
+
doc = XML::Document.new('model/books.xml')
|
1602
|
+
doc.root.each_element {|element| puts element}
|
1603
|
+
</pre>
|
1609
1604
|
<p><a class="source-toggle" href="#"
|
1610
|
-
onclick="toggleCode('
|
1611
|
-
<div class="method-source-code" id="
|
1605
|
+
onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
|
1606
|
+
<div class="method-source-code" id="M000173-source">
|
1612
1607
|
<pre>
|
1613
|
-
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
|
1618
|
-
|
1608
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 65</span>
|
1609
|
+
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_element</span>
|
1610
|
+
66: <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">node</span><span class="ruby-operator">|</span>
|
1611
|
+
67: <span class="ruby-keyword kw">yield</span>(<span class="ruby-identifier">node</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">ELEMENT_NODE</span>
|
1612
|
+
68: <span class="ruby-keyword kw">end</span>
|
1613
|
+
69: <span class="ruby-keyword kw">end</span>
|
1619
1614
|
</pre>
|
1620
1615
|
</div>
|
1621
1616
|
</div>
|
1622
1617
|
</div>
|
1623
1618
|
|
1624
|
-
<div id="method-
|
1625
|
-
<a name="
|
1619
|
+
<div id="method-M000189" class="method-detail">
|
1620
|
+
<a name="M000189"></a>
|
1626
1621
|
|
1627
1622
|
<div class="method-heading">
|
1628
|
-
<a href="#
|
1629
|
-
<span class="method-name">
|
1630
|
-
</span>
|
1623
|
+
<a href="#M000189" class="method-signature">
|
1624
|
+
<span class="method-name">element?</span><span class="method-args">()</span>
|
1631
1625
|
</a>
|
1632
1626
|
</div>
|
1633
1627
|
|
1634
1628
|
<div class="method-description">
|
1635
1629
|
<p>
|
1636
|
-
|
1630
|
+
Specifies if this is an element node
|
1637
1631
|
</p>
|
1638
1632
|
<p><a class="source-toggle" href="#"
|
1639
|
-
onclick="toggleCode('
|
1640
|
-
<div class="method-source-code" id="
|
1633
|
+
onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
|
1634
|
+
<div class="method-source-code" id="M000189-source">
|
1641
1635
|
<pre>
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
* Determine whether this is an element node.
|
1647
|
-
*/
|
1648
|
-
VALUE
|
1649
|
-
ruby_xml_node_element_q(VALUE self) {
|
1650
|
-
|
1636
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 198</span>
|
1637
|
+
198: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">element?</span>
|
1638
|
+
199: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">ELEMENT_NODE</span>
|
1639
|
+
200: <span class="ruby-keyword kw">end</span>
|
1651
1640
|
</pre>
|
1652
1641
|
</div>
|
1653
1642
|
</div>
|
1654
1643
|
</div>
|
1655
1644
|
|
1656
|
-
<div id="method-
|
1657
|
-
<a name="
|
1645
|
+
<div id="method-M000191" class="method-detail">
|
1646
|
+
<a name="M000191"></a>
|
1658
1647
|
|
1659
1648
|
<div class="method-heading">
|
1660
|
-
<a href="#
|
1661
|
-
<span class="method-name">
|
1662
|
-
</span>
|
1649
|
+
<a href="#M000191" class="method-signature">
|
1650
|
+
<span class="method-name">element_decl?</span><span class="method-args">()</span>
|
1663
1651
|
</a>
|
1664
1652
|
</div>
|
1665
1653
|
|
1666
1654
|
<div class="method-description">
|
1667
1655
|
<p>
|
1668
|
-
|
1656
|
+
Specifies if this is an element declaration node
|
1669
1657
|
</p>
|
1670
1658
|
<p><a class="source-toggle" href="#"
|
1671
|
-
onclick="toggleCode('
|
1672
|
-
<div class="method-source-code" id="
|
1659
|
+
onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
|
1660
|
+
<div class="method-source-code" id="M000191-source">
|
1673
1661
|
<pre>
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
* Determine whether this is an element declaration node.
|
1679
|
-
*/
|
1680
|
-
VALUE
|
1681
|
-
ruby_xml_node_element_decl_q(VALUE self) {
|
1682
|
-
|
1662
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 208</span>
|
1663
|
+
208: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">element_decl?</span>
|
1664
|
+
209: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">ELEMENT_DECL</span>
|
1665
|
+
210: <span class="ruby-keyword kw">end</span>
|
1683
1666
|
</pre>
|
1684
1667
|
</div>
|
1685
1668
|
</div>
|
1686
1669
|
</div>
|
1687
1670
|
|
1688
|
-
<div id="method-
|
1689
|
-
<a name="
|
1671
|
+
<div id="method-M000140" class="method-detail">
|
1672
|
+
<a name="M000140"></a>
|
1690
1673
|
|
1691
1674
|
<div class="method-heading">
|
1692
|
-
<a href="#
|
1675
|
+
<a href="#M000140" class="method-signature">
|
1693
1676
|
<span class="method-name">node.empty? → (true|false)<br />
|
1694
1677
|
</span>
|
1695
1678
|
</a>
|
@@ -1699,9 +1682,9 @@ ruby_xml_node_element_decl_q(VALUE self) {
|
|
1699
1682
|
<p>
|
1700
1683
|
Determine whether this node is empty.
|
1701
1684
|
</p>
|
1702
|
-
<p><a class="source-toggle" href="#"
|
1703
|
-
onclick="toggleCode('
|
1704
|
-
<div class="method-source-code" id="
|
1685
|
+
<p><a class="source-toggle" href="#"
|
1686
|
+
onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
|
1687
|
+
<div class="method-source-code" id="M000140-source">
|
1705
1688
|
<pre>
|
1706
1689
|
/*
|
1707
1690
|
* call-seq:
|
@@ -1717,75 +1700,63 @@ ruby_xml_node_empty_q(VALUE self) {
|
|
1717
1700
|
</div>
|
1718
1701
|
</div>
|
1719
1702
|
|
1720
|
-
<div id="method-
|
1721
|
-
<a name="
|
1703
|
+
<div id="method-M000190" class="method-detail">
|
1704
|
+
<a name="M000190"></a>
|
1722
1705
|
|
1723
1706
|
<div class="method-heading">
|
1724
|
-
<a href="#
|
1725
|
-
<span class="method-name">
|
1726
|
-
</span>
|
1707
|
+
<a href="#M000190" class="method-signature">
|
1708
|
+
<span class="method-name">entity?</span><span class="method-args">()</span>
|
1727
1709
|
</a>
|
1728
1710
|
</div>
|
1729
1711
|
|
1730
1712
|
<div class="method-description">
|
1731
1713
|
<p>
|
1732
|
-
|
1714
|
+
Specifies if this is an entity node
|
1733
1715
|
</p>
|
1734
1716
|
<p><a class="source-toggle" href="#"
|
1735
|
-
onclick="toggleCode('
|
1736
|
-
<div class="method-source-code" id="
|
1717
|
+
onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
|
1718
|
+
<div class="method-source-code" id="M000190-source">
|
1737
1719
|
<pre>
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
* Determine whether this is an entity node.
|
1743
|
-
*/
|
1744
|
-
VALUE
|
1745
|
-
ruby_xml_node_entity_q(VALUE self) {
|
1746
|
-
|
1720
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 203</span>
|
1721
|
+
203: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entity?</span>
|
1722
|
+
204: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">ENTITY_NODE</span>
|
1723
|
+
205: <span class="ruby-keyword kw">end</span>
|
1747
1724
|
</pre>
|
1748
1725
|
</div>
|
1749
1726
|
</div>
|
1750
1727
|
</div>
|
1751
1728
|
|
1752
|
-
<div id="method-
|
1753
|
-
<a name="
|
1729
|
+
<div id="method-M000192" class="method-detail">
|
1730
|
+
<a name="M000192"></a>
|
1754
1731
|
|
1755
1732
|
<div class="method-heading">
|
1756
|
-
<a href="#
|
1757
|
-
<span class="method-name">
|
1758
|
-
</span>
|
1733
|
+
<a href="#M000192" class="method-signature">
|
1734
|
+
<span class="method-name">entity_ref?</span><span class="method-args">()</span>
|
1759
1735
|
</a>
|
1760
1736
|
</div>
|
1761
1737
|
|
1762
1738
|
<div class="method-description">
|
1763
1739
|
<p>
|
1764
|
-
|
1740
|
+
Specifies if this is an entity reference node
|
1765
1741
|
</p>
|
1766
1742
|
<p><a class="source-toggle" href="#"
|
1767
|
-
onclick="toggleCode('
|
1768
|
-
<div class="method-source-code" id="
|
1743
|
+
onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
|
1744
|
+
<div class="method-source-code" id="M000192-source">
|
1769
1745
|
<pre>
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
* Determine whether this is an entity reference node.
|
1775
|
-
*/
|
1776
|
-
VALUE
|
1777
|
-
ruby_xml_node_entity_ref_q(VALUE self) {
|
1778
|
-
|
1746
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 213</span>
|
1747
|
+
213: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">entity_ref?</span>
|
1748
|
+
214: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">ENTITY_REF_NODE</span>
|
1749
|
+
215: <span class="ruby-keyword kw">end</span>
|
1779
1750
|
</pre>
|
1780
1751
|
</div>
|
1781
1752
|
</div>
|
1782
1753
|
</div>
|
1783
1754
|
|
1784
|
-
<div id="method-
|
1785
|
-
<a name="
|
1755
|
+
<div id="method-M000141" class="method-detail">
|
1756
|
+
<a name="M000141"></a>
|
1786
1757
|
|
1787
1758
|
<div class="method-heading">
|
1788
|
-
<a href="#
|
1759
|
+
<a href="#M000141" class="method-signature">
|
1789
1760
|
<span class="method-name">node.eql?(other_node) => (true|false)<br />
|
1790
1761
|
</span>
|
1791
1762
|
</a>
|
@@ -1797,8 +1768,8 @@ Test equality between the two nodes. Two nodes are equal if they are the
|
|
1797
1768
|
same node or have the same <a href="../XML.html">XML</a> representation.
|
1798
1769
|
</p>
|
1799
1770
|
<p><a class="source-toggle" href="#"
|
1800
|
-
onclick="toggleCode('
|
1801
|
-
<div class="method-source-code" id="
|
1771
|
+
onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
|
1772
|
+
<div class="method-source-code" id="M000141-source">
|
1802
1773
|
<pre>
|
1803
1774
|
/*
|
1804
1775
|
* call-seq:
|
@@ -1814,11 +1785,11 @@ ruby_xml_node_eql_q(VALUE self, VALUE other) {
|
|
1814
1785
|
</div>
|
1815
1786
|
</div>
|
1816
1787
|
|
1817
|
-
<div id="method-
|
1818
|
-
<a name="
|
1788
|
+
<div id="method-M000170" class="method-detail">
|
1789
|
+
<a name="M000170"></a>
|
1819
1790
|
|
1820
1791
|
<div class="method-heading">
|
1821
|
-
<a href="#
|
1792
|
+
<a href="#M000170" class="method-signature">
|
1822
1793
|
<span class="method-name">find</span><span class="method-args">(xpath, nslist = nil)</span>
|
1823
1794
|
</a>
|
1824
1795
|
</div>
|
@@ -1827,37 +1798,37 @@ ruby_xml_node_eql_q(VALUE self, VALUE other) {
|
|
1827
1798
|
<p>
|
1828
1799
|
Return nodes matching the specified xpath expression. For more information,
|
1829
1800
|
please refer to the documentation for <a
|
1830
|
-
href="Document.html#
|
1801
|
+
href="Document.html#M000354">XML::Document#find</a>.
|
1831
1802
|
</p>
|
1832
1803
|
<p><a class="source-toggle" href="#"
|
1833
|
-
onclick="toggleCode('
|
1834
|
-
<div class="method-source-code" id="
|
1804
|
+
onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
|
1805
|
+
<div class="method-source-code" id="M000170-source">
|
1835
1806
|
<pre>
|
1836
|
-
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1841
|
-
|
1842
|
-
|
1843
|
-
|
1844
|
-
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1807
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 27</span>
|
1808
|
+
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>)
|
1809
|
+
28: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">doc</span>
|
1810
|
+
29: <span class="ruby-identifier">raise</span>(<span class="ruby-constant">TypeError</span>, <span class="ruby-value str">"A node must belong to a document before "</span> <span class="ruby-operator">+</span>
|
1811
|
+
30: <span class="ruby-value str">"it can be searched with XPath."</span>)
|
1812
|
+
31: <span class="ruby-keyword kw">end</span>
|
1813
|
+
32:
|
1814
|
+
33: <span class="ruby-identifier">context</span> = <span class="ruby-constant">XPath</span><span class="ruby-operator">::</span><span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
|
1815
|
+
34: <span class="ruby-identifier">context</span>.<span class="ruby-identifier">node</span> = <span class="ruby-keyword kw">self</span>
|
1816
|
+
35: <span class="ruby-identifier">context</span>.<span class="ruby-identifier">register_namespaces_from_node</span>(<span class="ruby-keyword kw">self</span>)
|
1817
|
+
36: <span class="ruby-identifier">context</span>.<span class="ruby-identifier">register_namespaces_from_node</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">doc</span>.<span class="ruby-identifier">root</span>)
|
1818
|
+
37: <span class="ruby-identifier">context</span>.<span class="ruby-identifier">register_namespaces</span>(<span class="ruby-identifier">nslist</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">nslist</span>
|
1819
|
+
38:
|
1820
|
+
39: <span class="ruby-identifier">context</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">xpath</span>)
|
1821
|
+
40: <span class="ruby-keyword kw">end</span>
|
1851
1822
|
</pre>
|
1852
1823
|
</div>
|
1853
1824
|
</div>
|
1854
1825
|
</div>
|
1855
1826
|
|
1856
|
-
<div id="method-
|
1857
|
-
<a name="
|
1827
|
+
<div id="method-M000171" class="method-detail">
|
1828
|
+
<a name="M000171"></a>
|
1858
1829
|
|
1859
1830
|
<div class="method-heading">
|
1860
|
-
<a href="#
|
1831
|
+
<a href="#M000171" class="method-signature">
|
1861
1832
|
<span class="method-name">find_first</span><span class="method-args">(xpath, nslist = nil)</span>
|
1862
1833
|
</a>
|
1863
1834
|
</div>
|
@@ -1866,16 +1837,16 @@ href="Document.html#M000355">XML::Document#find</a>.
|
|
1866
1837
|
<p>
|
1867
1838
|
Return the first node matching the specified xpath expression. For more
|
1868
1839
|
information, please refer to the documentation for <a
|
1869
|
-
href="Node.html#
|
1840
|
+
href="Node.html#M000170">XML::Node#find</a>.
|
1870
1841
|
</p>
|
1871
1842
|
<p><a class="source-toggle" href="#"
|
1872
|
-
onclick="toggleCode('
|
1873
|
-
<div class="method-source-code" id="
|
1843
|
+
onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
|
1844
|
+
<div class="method-source-code" id="M000171-source">
|
1874
1845
|
<pre>
|
1875
|
-
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line
|
1876
|
-
|
1877
|
-
|
1878
|
-
|
1846
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 45</span>
|
1847
|
+
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>)
|
1848
|
+
46: <span class="ruby-identifier">find</span>(<span class="ruby-identifier">xpath</span>, <span class="ruby-identifier">nslist</span>).<span class="ruby-identifier">first</span>
|
1849
|
+
47: <span class="ruby-keyword kw">end</span>
|
1879
1850
|
</pre>
|
1880
1851
|
</div>
|
1881
1852
|
</div>
|
@@ -1913,11 +1884,11 @@ ruby_xml_node_first_get(VALUE self) {
|
|
1913
1884
|
</div>
|
1914
1885
|
</div>
|
1915
1886
|
|
1916
|
-
<div id="method-
|
1917
|
-
<a name="
|
1887
|
+
<div id="method-M000175" class="method-detail">
|
1888
|
+
<a name="M000175"></a>
|
1918
1889
|
|
1919
1890
|
<div class="method-heading">
|
1920
|
-
<a href="#
|
1891
|
+
<a href="#M000175" class="method-signature">
|
1921
1892
|
<span class="method-name">first?</span><span class="method-args">()</span>
|
1922
1893
|
</a>
|
1923
1894
|
</div>
|
@@ -1927,87 +1898,75 @@ ruby_xml_node_first_get(VALUE self) {
|
|
1927
1898
|
Determines whether this node has a first node
|
1928
1899
|
</p>
|
1929
1900
|
<p><a class="source-toggle" href="#"
|
1930
|
-
onclick="toggleCode('
|
1931
|
-
<div class="method-source-code" id="
|
1901
|
+
onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
|
1902
|
+
<div class="method-source-code" id="M000175-source">
|
1932
1903
|
<pre>
|
1933
|
-
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line
|
1934
|
-
|
1935
|
-
|
1936
|
-
|
1904
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 77</span>
|
1905
|
+
77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first?</span>
|
1906
|
+
78: <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">first</span>.<span class="ruby-identifier">nil?</span>
|
1907
|
+
79: <span class="ruby-keyword kw">end</span>
|
1937
1908
|
</pre>
|
1938
1909
|
</div>
|
1939
1910
|
</div>
|
1940
1911
|
</div>
|
1941
1912
|
|
1942
|
-
<div id="method-
|
1943
|
-
<a name="
|
1913
|
+
<div id="method-M000193" class="method-detail">
|
1914
|
+
<a name="M000193"></a>
|
1944
1915
|
|
1945
1916
|
<div class="method-heading">
|
1946
|
-
<a href="#
|
1947
|
-
<span class="method-name">
|
1948
|
-
</span>
|
1917
|
+
<a href="#M000193" class="method-signature">
|
1918
|
+
<span class="method-name">fragment?</span><span class="method-args">()</span>
|
1949
1919
|
</a>
|
1950
1920
|
</div>
|
1951
1921
|
|
1952
1922
|
<div class="method-description">
|
1953
1923
|
<p>
|
1954
|
-
|
1924
|
+
Specifies if this is a fragment node
|
1955
1925
|
</p>
|
1956
1926
|
<p><a class="source-toggle" href="#"
|
1957
|
-
onclick="toggleCode('
|
1958
|
-
<div class="method-source-code" id="
|
1927
|
+
onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
|
1928
|
+
<div class="method-source-code" id="M000193-source">
|
1959
1929
|
<pre>
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
* Determine whether this node is a fragment.
|
1965
|
-
*/
|
1966
|
-
VALUE
|
1967
|
-
ruby_xml_node_fragment_q(VALUE self) {
|
1968
|
-
|
1930
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 218</span>
|
1931
|
+
218: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fragment?</span>
|
1932
|
+
219: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">DOCUMENT_FRAG_NODE</span>
|
1933
|
+
220: <span class="ruby-keyword kw">end</span>
|
1969
1934
|
</pre>
|
1970
1935
|
</div>
|
1971
1936
|
</div>
|
1972
1937
|
</div>
|
1973
1938
|
|
1974
|
-
<div id="method-
|
1975
|
-
<a name="
|
1939
|
+
<div id="method-M000194" class="method-detail">
|
1940
|
+
<a name="M000194"></a>
|
1976
1941
|
|
1977
1942
|
<div class="method-heading">
|
1978
|
-
<a href="#
|
1979
|
-
<span class="method-name">
|
1980
|
-
</span>
|
1943
|
+
<a href="#M000194" class="method-signature">
|
1944
|
+
<span class="method-name">html_doc?</span><span class="method-args">()</span>
|
1981
1945
|
</a>
|
1982
1946
|
</div>
|
1983
1947
|
|
1984
1948
|
<div class="method-description">
|
1985
1949
|
<p>
|
1986
|
-
|
1950
|
+
Specifies if this is a html document node
|
1987
1951
|
</p>
|
1988
1952
|
<p><a class="source-toggle" href="#"
|
1989
|
-
onclick="toggleCode('
|
1990
|
-
<div class="method-source-code" id="
|
1953
|
+
onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
|
1954
|
+
<div class="method-source-code" id="M000194-source">
|
1991
1955
|
<pre>
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
* Determine whether this node is an html document node.
|
1997
|
-
*/
|
1998
|
-
VALUE
|
1999
|
-
ruby_xml_node_html_doc_q(VALUE self) {
|
2000
|
-
|
1956
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 223</span>
|
1957
|
+
223: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">html_doc?</span>
|
1958
|
+
224: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">HTML_DOCUMENT_NODE</span>
|
1959
|
+
225: <span class="ruby-keyword kw">end</span>
|
2001
1960
|
</pre>
|
2002
1961
|
</div>
|
2003
1962
|
</div>
|
2004
1963
|
</div>
|
2005
1964
|
|
2006
|
-
<div id="method-
|
2007
|
-
<a name="
|
1965
|
+
<div id="method-M000142" class="method-detail">
|
1966
|
+
<a name="M000142"></a>
|
2008
1967
|
|
2009
1968
|
<div class="method-heading">
|
2010
|
-
<a href="#
|
1969
|
+
<a href="#M000142" class="method-signature">
|
2011
1970
|
<span class="method-name">node.lang → "string"<br />
|
2012
1971
|
</span>
|
2013
1972
|
</a>
|
@@ -2019,8 +1978,8 @@ Obtain the language set for this node, if any. This is set in <a
|
|
2019
1978
|
href="../XML.html">XML</a> via the xml:lang attribute.
|
2020
1979
|
</p>
|
2021
1980
|
<p><a class="source-toggle" href="#"
|
2022
|
-
onclick="toggleCode('
|
2023
|
-
<div class="method-source-code" id="
|
1981
|
+
onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
|
1982
|
+
<div class="method-source-code" id="M000142-source">
|
2024
1983
|
<pre>
|
2025
1984
|
/*
|
2026
1985
|
* call-seq:
|
@@ -2037,11 +1996,11 @@ ruby_xml_node_lang_get(VALUE self) {
|
|
2037
1996
|
</div>
|
2038
1997
|
</div>
|
2039
1998
|
|
2040
|
-
<div id="method-
|
2041
|
-
<a name="
|
1999
|
+
<div id="method-M000143" class="method-detail">
|
2000
|
+
<a name="M000143"></a>
|
2042
2001
|
|
2043
2002
|
<div class="method-heading">
|
2044
|
-
<a href="#
|
2003
|
+
<a href="#M000143" class="method-signature">
|
2045
2004
|
<span class="method-name">node.lang = "string"<br />
|
2046
2005
|
</span>
|
2047
2006
|
</a>
|
@@ -2053,8 +2012,8 @@ ruby_xml_node_lang_get(VALUE self) {
|
|
2053
2012
|
the value of the xml:lang attribute.
|
2054
2013
|
</p>
|
2055
2014
|
<p><a class="source-toggle" href="#"
|
2056
|
-
onclick="toggleCode('
|
2057
|
-
<div class="method-source-code" id="
|
2015
|
+
onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
|
2016
|
+
<div class="method-source-code" id="M000143-source">
|
2058
2017
|
<pre>
|
2059
2018
|
/*
|
2060
2019
|
* call-seq:
|
@@ -2103,11 +2062,11 @@ ruby_xml_node_last_get(VALUE self) {
|
|
2103
2062
|
</div>
|
2104
2063
|
</div>
|
2105
2064
|
|
2106
|
-
<div id="method-
|
2107
|
-
<a name="
|
2065
|
+
<div id="method-M000179" class="method-detail">
|
2066
|
+
<a name="M000179"></a>
|
2108
2067
|
|
2109
2068
|
<div class="method-heading">
|
2110
|
-
<a href="#
|
2069
|
+
<a href="#M000179" class="method-signature">
|
2111
2070
|
<span class="method-name">last?</span><span class="method-args">()</span>
|
2112
2071
|
</a>
|
2113
2072
|
</div>
|
@@ -2117,23 +2076,23 @@ ruby_xml_node_last_get(VALUE self) {
|
|
2117
2076
|
Determines whether this node has a last node
|
2118
2077
|
</p>
|
2119
2078
|
<p><a class="source-toggle" href="#"
|
2120
|
-
onclick="toggleCode('
|
2121
|
-
<div class="method-source-code" id="
|
2079
|
+
onclick="toggleCode('M000179-source');return false;">[Source]</a></p>
|
2080
|
+
<div class="method-source-code" id="M000179-source">
|
2122
2081
|
<pre>
|
2123
|
-
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line
|
2124
|
-
|
2125
|
-
|
2126
|
-
|
2082
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 97</span>
|
2083
|
+
97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">last?</span>
|
2084
|
+
98: <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">last</span>.<span class="ruby-identifier">nil?</span>
|
2085
|
+
99: <span class="ruby-keyword kw">end</span>
|
2127
2086
|
</pre>
|
2128
2087
|
</div>
|
2129
2088
|
</div>
|
2130
2089
|
</div>
|
2131
2090
|
|
2132
|
-
<div id="method-
|
2133
|
-
<a name="
|
2091
|
+
<div id="method-M000144" class="method-detail">
|
2092
|
+
<a name="M000144"></a>
|
2134
2093
|
|
2135
2094
|
<div class="method-heading">
|
2136
|
-
<a href="#
|
2095
|
+
<a href="#M000144" class="method-signature">
|
2137
2096
|
<span class="method-name">node.line_num → num<br />
|
2138
2097
|
</span>
|
2139
2098
|
</a>
|
@@ -2146,8 +2105,8 @@ this node was read from. If <tt>default_line_numbers</tt> is set false (the
|
|
2146
2105
|
default), this method returns zero.
|
2147
2106
|
</p>
|
2148
2107
|
<p><a class="source-toggle" href="#"
|
2149
|
-
onclick="toggleCode('
|
2150
|
-
<div class="method-source-code" id="
|
2108
|
+
onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
|
2109
|
+
<div class="method-source-code" id="M000144-source">
|
2151
2110
|
<pre>
|
2152
2111
|
/*
|
2153
2112
|
* call-seq:
|
@@ -2165,11 +2124,11 @@ ruby_xml_node_line_num(VALUE self) {
|
|
2165
2124
|
</div>
|
2166
2125
|
</div>
|
2167
2126
|
|
2168
|
-
<div id="method-
|
2169
|
-
<a name="
|
2127
|
+
<div id="method-M000145" class="method-detail">
|
2128
|
+
<a name="M000145"></a>
|
2170
2129
|
|
2171
2130
|
<div class="method-heading">
|
2172
|
-
<a href="#
|
2131
|
+
<a href="#M000145" class="method-signature">
|
2173
2132
|
<span class="method-name">node.name → "string"<br />
|
2174
2133
|
</span>
|
2175
2134
|
</a>
|
@@ -2180,8 +2139,8 @@ ruby_xml_node_line_num(VALUE self) {
|
|
2180
2139
|
Obtain this node’s name.
|
2181
2140
|
</p>
|
2182
2141
|
<p><a class="source-toggle" href="#"
|
2183
|
-
onclick="toggleCode('
|
2184
|
-
<div class="method-source-code" id="
|
2142
|
+
onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
|
2143
|
+
<div class="method-source-code" id="M000145-source">
|
2185
2144
|
<pre>
|
2186
2145
|
/*
|
2187
2146
|
* call-seq:
|
@@ -2197,11 +2156,11 @@ ruby_xml_node_name_get(VALUE self) {
|
|
2197
2156
|
</div>
|
2198
2157
|
</div>
|
2199
2158
|
|
2200
|
-
<div id="method-
|
2201
|
-
<a name="
|
2159
|
+
<div id="method-M000146" class="method-detail">
|
2160
|
+
<a name="M000146"></a>
|
2202
2161
|
|
2203
2162
|
<div class="method-heading">
|
2204
|
-
<a href="#
|
2163
|
+
<a href="#M000146" class="method-signature">
|
2205
2164
|
<span class="method-name">node.name = "string"<br />
|
2206
2165
|
</span>
|
2207
2166
|
</a>
|
@@ -2212,8 +2171,8 @@ ruby_xml_node_name_get(VALUE self) {
|
|
2212
2171
|
<a href="Node/Set.html">Set</a> this node’s name.
|
2213
2172
|
</p>
|
2214
2173
|
<p><a class="source-toggle" href="#"
|
2215
|
-
onclick="toggleCode('
|
2216
|
-
<div class="method-source-code" id="
|
2174
|
+
onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
|
2175
|
+
<div class="method-source-code" id="M000146-source">
|
2217
2176
|
<pre>
|
2218
2177
|
/*
|
2219
2178
|
* call-seq:
|
@@ -2229,11 +2188,11 @@ ruby_xml_node_name_set(VALUE self, VALUE name) {
|
|
2229
2188
|
</div>
|
2230
2189
|
</div>
|
2231
2190
|
|
2232
|
-
<div id="method-
|
2233
|
-
<a name="
|
2191
|
+
<div id="method-M000147" class="method-detail">
|
2192
|
+
<a name="M000147"></a>
|
2234
2193
|
|
2235
2194
|
<div class="method-heading">
|
2236
|
-
<a href="#
|
2195
|
+
<a href="#M000147" class="method-signature">
|
2237
2196
|
<span class="method-name">node.namespace → [namespace, ..., namespace]<br />
|
2238
2197
|
</span>
|
2239
2198
|
</a>
|
@@ -2245,8 +2204,8 @@ Obtain an array of +<a href="NS.html">XML::NS</a>+ objects representing
|
|
2245
2204
|
this node’s xmlns attributes
|
2246
2205
|
</p>
|
2247
2206
|
<p><a class="source-toggle" href="#"
|
2248
|
-
onclick="toggleCode('
|
2249
|
-
<div class="method-source-code" id="
|
2207
|
+
onclick="toggleCode('M000147-source');return false;">[Source]</a></p>
|
2208
|
+
<div class="method-source-code" id="M000147-source">
|
2250
2209
|
<pre>
|
2251
2210
|
/*
|
2252
2211
|
* call-seq:
|
@@ -2263,11 +2222,11 @@ ruby_xml_node_namespace_get(VALUE self) {
|
|
2263
2222
|
</div>
|
2264
2223
|
</div>
|
2265
2224
|
|
2266
|
-
<div id="method-
|
2267
|
-
<a name="
|
2225
|
+
<div id="method-M000149" class="method-detail">
|
2226
|
+
<a name="M000149"></a>
|
2268
2227
|
|
2269
2228
|
<div class="method-heading">
|
2270
|
-
<a href="#
|
2229
|
+
<a href="#M000149" class="method-signature">
|
2271
2230
|
<span class="method-name">node.namespace = namespace<br />
|
2272
2231
|
</span>
|
2273
2232
|
</a>
|
@@ -2279,8 +2238,8 @@ Add the specified <a href="NS.html">XML::NS</a> object to this node’s
|
|
2279
2238
|
xmlns attributes.
|
2280
2239
|
</p>
|
2281
2240
|
<p><a class="source-toggle" href="#"
|
2282
|
-
onclick="toggleCode('
|
2283
|
-
<div class="method-source-code" id="
|
2241
|
+
onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
|
2242
|
+
<div class="method-source-code" id="M000149-source">
|
2284
2243
|
<pre>
|
2285
2244
|
/*
|
2286
2245
|
* call-seq:
|
@@ -2296,44 +2255,37 @@ ruby_xml_node_namespace_set(int argc, VALUE *argv, VALUE self) {
|
|
2296
2255
|
</div>
|
2297
2256
|
</div>
|
2298
2257
|
|
2299
|
-
<div id="method-
|
2300
|
-
<a name="
|
2258
|
+
<div id="method-M000195" class="method-detail">
|
2259
|
+
<a name="M000195"></a>
|
2301
2260
|
|
2302
2261
|
<div class="method-heading">
|
2303
|
-
<a href="#
|
2304
|
-
<span class="method-name">
|
2305
|
-
</span>
|
2262
|
+
<a href="#M000195" class="method-signature">
|
2263
|
+
<span class="method-name">namespace?</span><span class="method-args">()</span>
|
2306
2264
|
</a>
|
2307
2265
|
</div>
|
2308
2266
|
|
2309
2267
|
<div class="method-description">
|
2310
2268
|
<p>
|
2311
|
-
|
2269
|
+
Specifies if this is a namespace node (not if it has a namepsace)
|
2312
2270
|
</p>
|
2313
2271
|
<p><a class="source-toggle" href="#"
|
2314
|
-
onclick="toggleCode('
|
2315
|
-
<div class="method-source-code" id="
|
2272
|
+
onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
|
2273
|
+
<div class="method-source-code" id="M000195-source">
|
2316
2274
|
<pre>
|
2317
|
-
|
2318
|
-
|
2319
|
-
|
2320
|
-
|
2321
|
-
* Determine whether this node *is* (not has) a namespace
|
2322
|
-
* node.
|
2323
|
-
*/
|
2324
|
-
VALUE
|
2325
|
-
ruby_xml_node_namespace_q(VALUE self) {
|
2326
|
-
|
2275
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 229</span>
|
2276
|
+
229: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">namespace?</span>
|
2277
|
+
230: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">NAMESPACE_DECL</span>
|
2278
|
+
231: <span class="ruby-keyword kw">end</span>
|
2327
2279
|
</pre>
|
2328
2280
|
</div>
|
2329
2281
|
</div>
|
2330
2282
|
</div>
|
2331
2283
|
|
2332
|
-
<div id="method-
|
2333
|
-
<a name="
|
2284
|
+
<div id="method-M000148" class="method-detail">
|
2285
|
+
<a name="M000148"></a>
|
2334
2286
|
|
2335
2287
|
<div class="method-heading">
|
2336
|
-
<a href="#
|
2288
|
+
<a href="#M000148" class="method-signature">
|
2337
2289
|
<span class="method-name">node.namespace_node → namespace.<br />
|
2338
2290
|
</span>
|
2339
2291
|
</a>
|
@@ -2344,8 +2296,8 @@ ruby_xml_node_namespace_q(VALUE self) {
|
|
2344
2296
|
Obtain this node’s namespace node.
|
2345
2297
|
</p>
|
2346
2298
|
<p><a class="source-toggle" href="#"
|
2347
|
-
onclick="toggleCode('
|
2348
|
-
<div class="method-source-code" id="
|
2299
|
+
onclick="toggleCode('M000148-source');return false;">[Source]</a></p>
|
2300
|
+
<div class="method-source-code" id="M000148-source">
|
2349
2301
|
<pre>
|
2350
2302
|
/*
|
2351
2303
|
* call-seq:
|
@@ -2425,11 +2377,11 @@ ruby_xml_node_next_set(VALUE self, VALUE rnode) {
|
|
2425
2377
|
</div>
|
2426
2378
|
</div>
|
2427
2379
|
|
2428
|
-
<div id="method-
|
2429
|
-
<a name="
|
2380
|
+
<div id="method-M000177" class="method-detail">
|
2381
|
+
<a name="M000177"></a>
|
2430
2382
|
|
2431
2383
|
<div class="method-heading">
|
2432
|
-
<a href="#
|
2384
|
+
<a href="#M000177" class="method-signature">
|
2433
2385
|
<span class="method-name">next?</span><span class="method-args">()</span>
|
2434
2386
|
</a>
|
2435
2387
|
</div>
|
@@ -2439,23 +2391,23 @@ ruby_xml_node_next_set(VALUE self, VALUE rnode) {
|
|
2439
2391
|
Determines whether this node has a next node
|
2440
2392
|
</p>
|
2441
2393
|
<p><a class="source-toggle" href="#"
|
2442
|
-
onclick="toggleCode('
|
2443
|
-
<div class="method-source-code" id="
|
2394
|
+
onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
|
2395
|
+
<div class="method-source-code" id="M000177-source">
|
2444
2396
|
<pre>
|
2445
|
-
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line
|
2446
|
-
|
2447
|
-
|
2448
|
-
|
2397
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 87</span>
|
2398
|
+
87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">next?</span>
|
2399
|
+
88: <span class="ruby-keyword kw">not</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">next</span>.<span class="ruby-identifier">nil?</span>
|
2400
|
+
89: <span class="ruby-keyword kw">end</span>
|
2449
2401
|
</pre>
|
2450
2402
|
</div>
|
2451
2403
|
</div>
|
2452
2404
|
</div>
|
2453
2405
|
|
2454
|
-
<div id="method-
|
2455
|
-
<a name="
|
2406
|
+
<div id="method-M000150" class="method-detail">
|
2407
|
+
<a name="M000150"></a>
|
2456
2408
|
|
2457
2409
|
<div class="method-heading">
|
2458
|
-
<a href="#
|
2410
|
+
<a href="#M000150" class="method-signature">
|
2459
2411
|
<span class="method-name">node.type → num<br />
|
2460
2412
|
</span>
|
2461
2413
|
</a>
|
@@ -2466,8 +2418,8 @@ Determines whether this node has a next node
|
|
2466
2418
|
Obtain this node’s type identifier.
|
2467
2419
|
</p>
|
2468
2420
|
<p><a class="source-toggle" href="#"
|
2469
|
-
onclick="toggleCode('
|
2470
|
-
<div class="method-source-code" id="
|
2421
|
+
onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
|
2422
|
+
<div class="method-source-code" id="M000150-source">
|
2471
2423
|
<pre>
|
2472
2424
|
/*
|
2473
2425
|
* call-seq:
|
@@ -2483,11 +2435,11 @@ ruby_xml_node_type(VALUE self) {
|
|
2483
2435
|
</div>
|
2484
2436
|
</div>
|
2485
2437
|
|
2486
|
-
<div id="method-
|
2487
|
-
<a name="
|
2438
|
+
<div id="method-M000180" class="method-detail">
|
2439
|
+
<a name="M000180"></a>
|
2488
2440
|
|
2489
2441
|
<div class="method-heading">
|
2490
|
-
<a href="#
|
2442
|
+
<a href="#M000180" class="method-signature">
|
2491
2443
|
<span class="method-name">node_type_name</span><span class="method-args">()</span>
|
2492
2444
|
</a>
|
2493
2445
|
</div>
|
@@ -2497,100 +2449,97 @@ ruby_xml_node_type(VALUE self) {
|
|
2497
2449
|
Returns this node’s type name
|
2498
2450
|
</p>
|
2499
2451
|
<p><a class="source-toggle" href="#"
|
2500
|
-
onclick="toggleCode('
|
2501
|
-
<div class="method-source-code" id="
|
2452
|
+
onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
|
2453
|
+
<div class="method-source-code" id="M000180-source">
|
2502
2454
|
<pre>
|
2503
|
-
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line
|
2504
|
-
|
2505
|
-
|
2506
|
-
|
2507
|
-
|
2508
|
-
|
2509
|
-
|
2510
|
-
|
2511
|
-
|
2512
|
-
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
|
2517
|
-
|
2518
|
-
|
2519
|
-
|
2520
|
-
|
2521
|
-
|
2522
|
-
|
2523
|
-
|
2524
|
-
|
2525
|
-
|
2526
|
-
|
2527
|
-
|
2528
|
-
|
2529
|
-
|
2530
|
-
|
2531
|
-
|
2532
|
-
|
2533
|
-
|
2534
|
-
|
2535
|
-
|
2536
|
-
|
2537
|
-
|
2538
|
-
|
2539
|
-
|
2540
|
-
|
2541
|
-
|
2542
|
-
|
2543
|
-
|
2544
|
-
|
2545
|
-
|
2546
|
-
|
2547
|
-
|
2548
|
-
|
2549
|
-
|
2550
|
-
|
2551
|
-
|
2455
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 105</span>
|
2456
|
+
105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">node_type_name</span>
|
2457
|
+
106: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">node_type</span>
|
2458
|
+
107: <span class="ruby-comment cmt"># Most common choices first</span>
|
2459
|
+
108: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">ATTRIBUTE_NODE</span><span class="ruby-operator">:</span>
|
2460
|
+
109: <span class="ruby-value str">'attribute'</span>
|
2461
|
+
110: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">DOCUMENT_NODE</span><span class="ruby-operator">:</span>
|
2462
|
+
111: <span class="ruby-value str">'document_xml'</span>
|
2463
|
+
112: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">ELEMENT_NODE</span><span class="ruby-operator">:</span>
|
2464
|
+
113: <span class="ruby-value str">'element'</span>
|
2465
|
+
114: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">TEXT_NODE</span><span class="ruby-operator">:</span>
|
2466
|
+
115: <span class="ruby-value str">'text'</span>
|
2467
|
+
116:
|
2468
|
+
117: <span class="ruby-comment cmt"># Now the rest </span>
|
2469
|
+
118: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">ATTRIBUTE_DECL</span><span class="ruby-operator">:</span>
|
2470
|
+
119: <span class="ruby-value str">'attribute_decl'</span>
|
2471
|
+
120: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">CDATA_SECTION_NODE</span><span class="ruby-operator">:</span>
|
2472
|
+
121: <span class="ruby-value str">'cdata'</span>
|
2473
|
+
122: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">COMMENT_NODE</span><span class="ruby-operator">:</span>
|
2474
|
+
123: <span class="ruby-value str">'comment'</span>
|
2475
|
+
124: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">DOCB_DOCUMENT_NODE</span><span class="ruby-operator">:</span>
|
2476
|
+
125: <span class="ruby-value str">'document_docbook'</span>
|
2477
|
+
126: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">DOCUMENT_FRAG_NODE</span><span class="ruby-operator">:</span>
|
2478
|
+
127: <span class="ruby-value str">'fragment'</span>
|
2479
|
+
128: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">DOCUMENT_TYPE_NODE</span><span class="ruby-operator">:</span>
|
2480
|
+
129: <span class="ruby-value str">'doctype'</span>
|
2481
|
+
130: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">DTD_NODE</span><span class="ruby-operator">:</span>
|
2482
|
+
131: <span class="ruby-value str">'dtd'</span>
|
2483
|
+
132: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">ELEMENT_DECL</span><span class="ruby-operator">:</span>
|
2484
|
+
133: <span class="ruby-value str">'elem_decl'</span>
|
2485
|
+
134: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">ENTITY_DECL</span><span class="ruby-operator">:</span>
|
2486
|
+
135: <span class="ruby-value str">'entity_decl'</span>
|
2487
|
+
136: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">ENTITY_NODE</span><span class="ruby-operator">:</span>
|
2488
|
+
137: <span class="ruby-value str">'entity'</span>
|
2489
|
+
138: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">ENTITY_REF_NODE</span><span class="ruby-operator">:</span>
|
2490
|
+
139: <span class="ruby-value str">'entity_ref'</span>
|
2491
|
+
140: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">HTML_DOCUMENT_NODE</span><span class="ruby-operator">:</span>
|
2492
|
+
141: <span class="ruby-value str">'document_html'</span>
|
2493
|
+
142: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">NAMESPACE_DECL</span><span class="ruby-operator">:</span>
|
2494
|
+
143: <span class="ruby-value str">'namespace'</span>
|
2495
|
+
144: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">NOTATION_NODE</span><span class="ruby-operator">:</span>
|
2496
|
+
145: <span class="ruby-value str">'notation'</span>
|
2497
|
+
146: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">PI_NODE</span><span class="ruby-operator">:</span>
|
2498
|
+
147: <span class="ruby-value str">'pi'</span>
|
2499
|
+
148: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">XINCLUDE_START</span><span class="ruby-operator">:</span>
|
2500
|
+
149: <span class="ruby-value str">'xinclude_start'</span>
|
2501
|
+
150: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">XINCLUDE_END</span><span class="ruby-operator">:</span>
|
2502
|
+
151: <span class="ruby-value str">'xinclude_end'</span>
|
2503
|
+
152: <span class="ruby-keyword kw">else</span>
|
2504
|
+
153: <span class="ruby-identifier">raise</span>(<span class="ruby-constant">UnknownType</span>, <span class="ruby-value str">"Unknown node type: %n"</span>, <span class="ruby-identifier">node</span>.<span class="ruby-identifier">node_type</span>);
|
2505
|
+
154: <span class="ruby-keyword kw">end</span>
|
2506
|
+
155: <span class="ruby-keyword kw">end</span>
|
2552
2507
|
</pre>
|
2553
2508
|
</div>
|
2554
2509
|
</div>
|
2555
2510
|
</div>
|
2556
2511
|
|
2557
|
-
<div id="method-
|
2558
|
-
<a name="
|
2512
|
+
<div id="method-M000196" class="method-detail">
|
2513
|
+
<a name="M000196"></a>
|
2559
2514
|
|
2560
2515
|
<div class="method-heading">
|
2561
|
-
<a href="#
|
2562
|
-
<span class="method-name">
|
2563
|
-
</span>
|
2516
|
+
<a href="#M000196" class="method-signature">
|
2517
|
+
<span class="method-name">notation?</span><span class="method-args">()</span>
|
2564
2518
|
</a>
|
2565
2519
|
</div>
|
2566
2520
|
|
2567
2521
|
<div class="method-description">
|
2568
2522
|
<p>
|
2569
|
-
|
2523
|
+
Specifies if this is a notation node
|
2570
2524
|
</p>
|
2571
|
-
<p><a class="source-toggle" href="#"
|
2572
|
-
onclick="toggleCode('
|
2573
|
-
<div class="method-source-code" id="
|
2525
|
+
<p><a class="source-toggle" href="#"
|
2526
|
+
onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
|
2527
|
+
<div class="method-source-code" id="M000196-source">
|
2574
2528
|
<pre>
|
2575
|
-
|
2576
|
-
|
2577
|
-
|
2578
|
-
|
2579
|
-
* Determine whether this is a notation node
|
2580
|
-
*/
|
2581
|
-
VALUE
|
2582
|
-
ruby_xml_node_notation_q(VALUE self) {
|
2583
|
-
|
2529
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 234</span>
|
2530
|
+
234: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">notation?</span>
|
2531
|
+
235: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">NOTATION_NODE</span>
|
2532
|
+
236: <span class="ruby-keyword kw">end</span>
|
2584
2533
|
</pre>
|
2585
2534
|
</div>
|
2586
2535
|
</div>
|
2587
2536
|
</div>
|
2588
2537
|
|
2589
|
-
<div id="method-
|
2590
|
-
<a name="
|
2538
|
+
<div id="method-M000151" class="method-detail">
|
2539
|
+
<a name="M000151"></a>
|
2591
2540
|
|
2592
2541
|
<div class="method-heading">
|
2593
|
-
<a href="#
|
2542
|
+
<a href="#M000151" class="method-signature">
|
2594
2543
|
<span class="method-name">node.namespace → [namespace, ..., namespace]<br />
|
2595
2544
|
</span>
|
2596
2545
|
</a>
|
@@ -2602,8 +2551,8 @@ Obtain an array of +<a href="NS.html">XML::NS</a>+ objects representing
|
|
2602
2551
|
this node’s xmlns attributes
|
2603
2552
|
</p>
|
2604
2553
|
<p><a class="source-toggle" href="#"
|
2605
|
-
onclick="toggleCode('
|
2606
|
-
<div class="method-source-code" id="
|
2554
|
+
onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
|
2555
|
+
<div class="method-source-code" id="M000151-source">
|
2607
2556
|
<pre>
|
2608
2557
|
/*
|
2609
2558
|
* call-seq:
|
@@ -2620,11 +2569,11 @@ ruby_xml_node_namespace_get(VALUE self) {
|
|
2620
2569
|
</div>
|
2621
2570
|
</div>
|
2622
2571
|
|
2623
|
-
<div id="method-
|
2624
|
-
<a name="
|
2572
|
+
<div id="method-M000152" class="method-detail">
|
2573
|
+
<a name="M000152"></a>
|
2625
2574
|
|
2626
2575
|
<div class="method-heading">
|
2627
|
-
<a href="#
|
2576
|
+
<a href="#M000152" class="method-signature">
|
2628
2577
|
<span class="method-name">node.ns? → (true|false)<br />
|
2629
2578
|
</span>
|
2630
2579
|
</a>
|
@@ -2632,17 +2581,17 @@ ruby_xml_node_namespace_get(VALUE self) {
|
|
2632
2581
|
|
2633
2582
|
<div class="method-description">
|
2634
2583
|
<p>
|
2635
|
-
Determine whether this node
|
2584
|
+
Determine whether this node has a namespace.
|
2636
2585
|
</p>
|
2637
2586
|
<p><a class="source-toggle" href="#"
|
2638
|
-
onclick="toggleCode('
|
2639
|
-
<div class="method-source-code" id="
|
2587
|
+
onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
|
2588
|
+
<div class="method-source-code" id="M000152-source">
|
2640
2589
|
<pre>
|
2641
2590
|
/*
|
2642
2591
|
* call-seq:
|
2643
2592
|
* node.ns? -> (true|false)
|
2644
2593
|
*
|
2645
|
-
* Determine whether this node
|
2594
|
+
* Determine whether this node has a namespace.
|
2646
2595
|
*/
|
2647
2596
|
VALUE
|
2648
2597
|
ruby_xml_node_ns_q(VALUE self) {
|
@@ -2652,11 +2601,11 @@ ruby_xml_node_ns_q(VALUE self) {
|
|
2652
2601
|
</div>
|
2653
2602
|
</div>
|
2654
2603
|
|
2655
|
-
<div id="method-
|
2656
|
-
<a name="
|
2604
|
+
<div id="method-M000154" class="method-detail">
|
2605
|
+
<a name="M000154"></a>
|
2657
2606
|
|
2658
2607
|
<div class="method-heading">
|
2659
|
-
<a href="#
|
2608
|
+
<a href="#M000154" class="method-signature">
|
2660
2609
|
<span class="method-name">node.ns_def → namespace<br />
|
2661
2610
|
</span>
|
2662
2611
|
</a>
|
@@ -2667,8 +2616,8 @@ ruby_xml_node_ns_q(VALUE self) {
|
|
2667
2616
|
Obtain this node’s default namespace.
|
2668
2617
|
</p>
|
2669
2618
|
<p><a class="source-toggle" href="#"
|
2670
|
-
onclick="toggleCode('
|
2671
|
-
<div class="method-source-code" id="
|
2619
|
+
onclick="toggleCode('M000154-source');return false;">[Source]</a></p>
|
2620
|
+
<div class="method-source-code" id="M000154-source">
|
2672
2621
|
<pre>
|
2673
2622
|
/*
|
2674
2623
|
* call-seq:
|
@@ -2684,11 +2633,11 @@ ruby_xml_node_ns_def_get(VALUE self) {
|
|
2684
2633
|
</div>
|
2685
2634
|
</div>
|
2686
2635
|
|
2687
|
-
<div id="method-
|
2688
|
-
<a name="
|
2636
|
+
<div id="method-M000153" class="method-detail">
|
2637
|
+
<a name="M000153"></a>
|
2689
2638
|
|
2690
2639
|
<div class="method-heading">
|
2691
|
-
<a href="#
|
2640
|
+
<a href="#M000153" class="method-signature">
|
2692
2641
|
<span class="method-name">node.ns_def? → (true|false)<br />
|
2693
2642
|
</span>
|
2694
2643
|
</a>
|
@@ -2700,8 +2649,8 @@ Obtain an array of +<a href="NS.html">XML::NS</a>+ objects representing
|
|
2700
2649
|
this node’s xmlns attributes
|
2701
2650
|
</p>
|
2702
2651
|
<p><a class="source-toggle" href="#"
|
2703
|
-
onclick="toggleCode('
|
2704
|
-
<div class="method-source-code" id="
|
2652
|
+
onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
|
2653
|
+
<div class="method-source-code" id="M000153-source">
|
2705
2654
|
<pre>
|
2706
2655
|
/*
|
2707
2656
|
* call-seq:
|
@@ -2750,11 +2699,11 @@ ruby_xml_node_parent_get(VALUE self) {
|
|
2750
2699
|
</div>
|
2751
2700
|
</div>
|
2752
2701
|
|
2753
|
-
<div id="method-
|
2754
|
-
<a name="
|
2702
|
+
<div id="method-M000174" class="method-detail">
|
2703
|
+
<a name="M000174"></a>
|
2755
2704
|
|
2756
2705
|
<div class="method-heading">
|
2757
|
-
<a href="#
|
2706
|
+
<a href="#M000174" class="method-signature">
|
2758
2707
|
<span class="method-name">parent?</span><span class="method-args">()</span>
|
2759
2708
|
</a>
|
2760
2709
|
</div>
|
@@ -2764,23 +2713,23 @@ ruby_xml_node_parent_get(VALUE self) {
|
|
2764
2713
|
Determines whether this node has a parent node
|
2765
2714
|
</p>
|
2766
2715
|
<p><a class="source-toggle" href="#"
|
2767
|
-
onclick="toggleCode('
|
2768
|
-
<div class="method-source-code" id="
|
2716
|
+
onclick="toggleCode('M000174-source');return false;">[Source]</a></p>
|
2717
|
+
<div class="method-source-code" id="M000174-source">
|
2769
2718
|
<pre>
|
2770
|
-
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line
|
2771
|
-
|
2772
|
-
|
2773
|
-
|
2719
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 72</span>
|
2720
|
+
72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parent?</span>
|
2721
|
+
73: <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">nil?</span>
|
2722
|
+
74: <span class="ruby-keyword kw">end</span>
|
2774
2723
|
</pre>
|
2775
2724
|
</div>
|
2776
2725
|
</div>
|
2777
2726
|
</div>
|
2778
2727
|
|
2779
|
-
<div id="method-
|
2780
|
-
<a name="
|
2728
|
+
<div id="method-M000155" class="method-detail">
|
2729
|
+
<a name="M000155"></a>
|
2781
2730
|
|
2782
2731
|
<div class="method-heading">
|
2783
|
-
<a href="#
|
2732
|
+
<a href="#M000155" class="method-signature">
|
2784
2733
|
<span class="method-name">node.path → path<br />
|
2785
2734
|
</span>
|
2786
2735
|
</a>
|
@@ -2791,8 +2740,8 @@ Determines whether this node has a parent node
|
|
2791
2740
|
Obtain this node’s path.
|
2792
2741
|
</p>
|
2793
2742
|
<p><a class="source-toggle" href="#"
|
2794
|
-
onclick="toggleCode('
|
2795
|
-
<div class="method-source-code" id="
|
2743
|
+
onclick="toggleCode('M000155-source');return false;">[Source]</a></p>
|
2744
|
+
<div class="method-source-code" id="M000155-source">
|
2796
2745
|
<pre>
|
2797
2746
|
/*
|
2798
2747
|
* call-seq:
|
@@ -2808,43 +2757,37 @@ ruby_xml_node_path(VALUE self) {
|
|
2808
2757
|
</div>
|
2809
2758
|
</div>
|
2810
2759
|
|
2811
|
-
<div id="method-
|
2812
|
-
<a name="
|
2760
|
+
<div id="method-M000197" class="method-detail">
|
2761
|
+
<a name="M000197"></a>
|
2813
2762
|
|
2814
2763
|
<div class="method-heading">
|
2815
|
-
<a href="#
|
2816
|
-
<span class="method-name">
|
2817
|
-
</span>
|
2764
|
+
<a href="#M000197" class="method-signature">
|
2765
|
+
<span class="method-name">pi?</span><span class="method-args">()</span>
|
2818
2766
|
</a>
|
2819
2767
|
</div>
|
2820
2768
|
|
2821
2769
|
<div class="method-description">
|
2822
2770
|
<p>
|
2823
|
-
|
2771
|
+
Specifies if this is a processiong instruction node
|
2824
2772
|
</p>
|
2825
2773
|
<p><a class="source-toggle" href="#"
|
2826
|
-
onclick="toggleCode('
|
2827
|
-
<div class="method-source-code" id="
|
2774
|
+
onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
|
2775
|
+
<div class="method-source-code" id="M000197-source">
|
2828
2776
|
<pre>
|
2829
|
-
|
2830
|
-
|
2831
|
-
|
2832
|
-
|
2833
|
-
* Determine whether this is a processing instruction node.
|
2834
|
-
*/
|
2835
|
-
VALUE
|
2836
|
-
ruby_xml_node_pi_q(VALUE self) {
|
2837
|
-
|
2777
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 239</span>
|
2778
|
+
239: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pi?</span>
|
2779
|
+
240: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">PI_NODE</span>
|
2780
|
+
241: <span class="ruby-keyword kw">end</span>
|
2838
2781
|
</pre>
|
2839
2782
|
</div>
|
2840
2783
|
</div>
|
2841
2784
|
</div>
|
2842
2785
|
|
2843
|
-
<div id="method-
|
2844
|
-
<a name="
|
2786
|
+
<div id="method-M000156" class="method-detail">
|
2787
|
+
<a name="M000156"></a>
|
2845
2788
|
|
2846
2789
|
<div class="method-heading">
|
2847
|
-
<a href="#
|
2790
|
+
<a href="#M000156" class="method-signature">
|
2848
2791
|
<span class="method-name">node.pointer → XML::Node_set<br />
|
2849
2792
|
</span>
|
2850
2793
|
</a>
|
@@ -2856,8 +2799,8 @@ Evaluates an <a href="XPointer.html">XPointer</a> expression relative to
|
|
2856
2799
|
this node.
|
2857
2800
|
</p>
|
2858
2801
|
<p><a class="source-toggle" href="#"
|
2859
|
-
onclick="toggleCode('
|
2860
|
-
<div class="method-source-code" id="
|
2802
|
+
onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
|
2803
|
+
<div class="method-source-code" id="M000156-source">
|
2861
2804
|
<pre>
|
2862
2805
|
/*
|
2863
2806
|
* call-seq:
|
@@ -2937,11 +2880,11 @@ ruby_xml_node_prev_set(VALUE self, VALUE rnode) {
|
|
2937
2880
|
</div>
|
2938
2881
|
</div>
|
2939
2882
|
|
2940
|
-
<div id="method-
|
2941
|
-
<a name="
|
2883
|
+
<div id="method-M000178" class="method-detail">
|
2884
|
+
<a name="M000178"></a>
|
2942
2885
|
|
2943
2886
|
<div class="method-heading">
|
2944
|
-
<a href="#
|
2887
|
+
<a href="#M000178" class="method-signature">
|
2945
2888
|
<span class="method-name">prev?</span><span class="method-args">()</span>
|
2946
2889
|
</a>
|
2947
2890
|
</div>
|
@@ -2951,13 +2894,13 @@ ruby_xml_node_prev_set(VALUE self, VALUE rnode) {
|
|
2951
2894
|
Determines whether this node has a previous node
|
2952
2895
|
</p>
|
2953
2896
|
<p><a class="source-toggle" href="#"
|
2954
|
-
onclick="toggleCode('
|
2955
|
-
<div class="method-source-code" id="
|
2897
|
+
onclick="toggleCode('M000178-source');return false;">[Source]</a></p>
|
2898
|
+
<div class="method-source-code" id="M000178-source">
|
2956
2899
|
<pre>
|
2957
|
-
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line
|
2958
|
-
|
2959
|
-
|
2960
|
-
|
2900
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 92</span>
|
2901
|
+
92: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prev?</span>
|
2902
|
+
93: <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">prev</span>.<span class="ruby-identifier">nil?</span>
|
2903
|
+
94: <span class="ruby-keyword kw">end</span>
|
2961
2904
|
</pre>
|
2962
2905
|
</div>
|
2963
2906
|
</div>
|
@@ -2967,27 +2910,18 @@ Determines whether this node has a previous node
|
|
2967
2910
|
<a name="M000205"></a>
|
2968
2911
|
|
2969
2912
|
<div class="method-heading">
|
2970
|
-
<a href="#M000205" class="method-signature">
|
2971
2913
|
<span class="method-name">properties</span><span class="method-args">()</span>
|
2972
|
-
</a>
|
2973
2914
|
</div>
|
2974
2915
|
|
2975
2916
|
<div class="method-description">
|
2976
|
-
<p
|
2977
|
-
|
2978
|
-
|
2979
|
-
<pre>
|
2980
|
-
<span class="ruby-comment cmt"># File lib/libxml/properties.rb, line 9</span>
|
2981
|
-
9: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">properties</span>
|
2982
|
-
10: <span class="ruby-identifier">attributes</span>
|
2983
|
-
11: <span class="ruby-keyword kw">end</span>
|
2984
|
-
</pre>
|
2985
|
-
</div>
|
2917
|
+
<p>
|
2918
|
+
Alias for <a href="Node.html#M000129">attributes</a>
|
2919
|
+
</p>
|
2986
2920
|
</div>
|
2987
2921
|
</div>
|
2988
2922
|
|
2989
|
-
<div id="method-
|
2990
|
-
<a name="
|
2923
|
+
<div id="method-M000206" class="method-detail">
|
2924
|
+
<a name="M000206"></a>
|
2991
2925
|
|
2992
2926
|
<div class="method-heading">
|
2993
2927
|
<span class="method-name">properties?</span><span class="method-args">()</span>
|
@@ -2995,16 +2929,16 @@ Determines whether this node has a previous node
|
|
2995
2929
|
|
2996
2930
|
<div class="method-description">
|
2997
2931
|
<p>
|
2998
|
-
Alias for <a href="Node.html#
|
2932
|
+
Alias for <a href="Node.html#M000167">attributes?</a>
|
2999
2933
|
</p>
|
3000
2934
|
</div>
|
3001
2935
|
</div>
|
3002
2936
|
|
3003
|
-
<div id="method-
|
3004
|
-
<a name="
|
2937
|
+
<div id="method-M000157" class="method-detail">
|
2938
|
+
<a name="M000157"></a>
|
3005
2939
|
|
3006
2940
|
<div class="method-heading">
|
3007
|
-
<a href="#
|
2941
|
+
<a href="#M000157" class="method-signature">
|
3008
2942
|
<span class="method-name">node.remove! → nil<br />
|
3009
2943
|
</span>
|
3010
2944
|
</a>
|
@@ -3015,8 +2949,8 @@ Alias for <a href="Node.html#M000132">attributes?</a>
|
|
3015
2949
|
Removes this node from it’s parent.
|
3016
2950
|
</p>
|
3017
2951
|
<p><a class="source-toggle" href="#"
|
3018
|
-
onclick="toggleCode('
|
3019
|
-
<div class="method-source-code" id="
|
2952
|
+
onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
|
2953
|
+
<div class="method-source-code" id="M000157-source">
|
3020
2954
|
<pre>
|
3021
2955
|
/*
|
3022
2956
|
* call-seq:
|
@@ -3032,11 +2966,11 @@ ruby_xml_node_remove_ex(VALUE self) {
|
|
3032
2966
|
</div>
|
3033
2967
|
</div>
|
3034
2968
|
|
3035
|
-
<div id="method-
|
3036
|
-
<a name="
|
2969
|
+
<div id="method-M000159" class="method-detail">
|
2970
|
+
<a name="M000159"></a>
|
3037
2971
|
|
3038
2972
|
<div class="method-heading">
|
3039
|
-
<a href="#
|
2973
|
+
<a href="#M000159" class="method-signature">
|
3040
2974
|
<span class="method-name">node.search_href → namespace<br />
|
3041
2975
|
</span>
|
3042
2976
|
</a>
|
@@ -3047,8 +2981,8 @@ ruby_xml_node_remove_ex(VALUE self) {
|
|
3047
2981
|
Search for a namespace by href.
|
3048
2982
|
</p>
|
3049
2983
|
<p><a class="source-toggle" href="#"
|
3050
|
-
onclick="toggleCode('
|
3051
|
-
<div class="method-source-code" id="
|
2984
|
+
onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
|
2985
|
+
<div class="method-source-code" id="M000159-source">
|
3052
2986
|
<pre>
|
3053
2987
|
/*
|
3054
2988
|
* call-seq:
|
@@ -3064,11 +2998,11 @@ ruby_xml_node_search_href(VALUE self, VALUE href) {
|
|
3064
2998
|
</div>
|
3065
2999
|
</div>
|
3066
3000
|
|
3067
|
-
<div id="method-
|
3068
|
-
<a name="
|
3001
|
+
<div id="method-M000158" class="method-detail">
|
3002
|
+
<a name="M000158"></a>
|
3069
3003
|
|
3070
3004
|
<div class="method-heading">
|
3071
|
-
<a href="#
|
3005
|
+
<a href="#M000158" class="method-signature">
|
3072
3006
|
<span class="method-name">node.search_ns → namespace<br />
|
3073
3007
|
</span>
|
3074
3008
|
</a>
|
@@ -3079,8 +3013,8 @@ ruby_xml_node_search_href(VALUE self, VALUE href) {
|
|
3079
3013
|
Search for a namespace by namespace.
|
3080
3014
|
</p>
|
3081
3015
|
<p><a class="source-toggle" href="#"
|
3082
|
-
onclick="toggleCode('
|
3083
|
-
<div class="method-source-code" id="
|
3016
|
+
onclick="toggleCode('M000158-source');return false;">[Source]</a></p>
|
3017
|
+
<div class="method-source-code" id="M000158-source">
|
3084
3018
|
<pre>
|
3085
3019
|
/*
|
3086
3020
|
* call-seq:
|
@@ -3128,11 +3062,11 @@ ruby_xml_node_sibling_set(VALUE self, VALUE rnode) {
|
|
3128
3062
|
</div>
|
3129
3063
|
</div>
|
3130
3064
|
|
3131
|
-
<div id="method-
|
3132
|
-
<a name="
|
3065
|
+
<div id="method-M000160" class="method-detail">
|
3066
|
+
<a name="M000160"></a>
|
3133
3067
|
|
3134
3068
|
<div class="method-heading">
|
3135
|
-
<a href="#
|
3069
|
+
<a href="#M000160" class="method-signature">
|
3136
3070
|
<span class="method-name">node.space_preserve → (true|false)<br />
|
3137
3071
|
</span>
|
3138
3072
|
</a>
|
@@ -3143,8 +3077,8 @@ ruby_xml_node_sibling_set(VALUE self, VALUE rnode) {
|
|
3143
3077
|
Determine whether this node preserves whitespace.
|
3144
3078
|
</p>
|
3145
3079
|
<p><a class="source-toggle" href="#"
|
3146
|
-
onclick="toggleCode('
|
3147
|
-
<div class="method-source-code" id="
|
3080
|
+
onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
|
3081
|
+
<div class="method-source-code" id="M000160-source">
|
3148
3082
|
<pre>
|
3149
3083
|
/*
|
3150
3084
|
* call-seq:
|
@@ -3160,11 +3094,11 @@ ruby_xml_node_space_preserve_get(VALUE self) {
|
|
3160
3094
|
</div>
|
3161
3095
|
</div>
|
3162
3096
|
|
3163
|
-
<div id="method-
|
3164
|
-
<a name="
|
3097
|
+
<div id="method-M000161" class="method-detail">
|
3098
|
+
<a name="M000161"></a>
|
3165
3099
|
|
3166
3100
|
<div class="method-heading">
|
3167
|
-
<a href="#
|
3101
|
+
<a href="#M000161" class="method-signature">
|
3168
3102
|
<span class="method-name">node.space_preserve = true|false<br />
|
3169
3103
|
</span>
|
3170
3104
|
</a>
|
@@ -3175,8 +3109,8 @@ ruby_xml_node_space_preserve_get(VALUE self) {
|
|
3175
3109
|
Control whether this node preserves whitespace.
|
3176
3110
|
</p>
|
3177
3111
|
<p><a class="source-toggle" href="#"
|
3178
|
-
onclick="toggleCode('
|
3179
|
-
<div class="method-source-code" id="
|
3112
|
+
onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
|
3113
|
+
<div class="method-source-code" id="M000161-source">
|
3180
3114
|
<pre>
|
3181
3115
|
/*
|
3182
3116
|
* call-seq:
|
@@ -3192,43 +3126,37 @@ ruby_xml_node_space_preserve_set(VALUE self, VALUE bool) {
|
|
3192
3126
|
</div>
|
3193
3127
|
</div>
|
3194
3128
|
|
3195
|
-
<div id="method-
|
3196
|
-
<a name="
|
3129
|
+
<div id="method-M000198" class="method-detail">
|
3130
|
+
<a name="M000198"></a>
|
3197
3131
|
|
3198
3132
|
<div class="method-heading">
|
3199
|
-
<a href="#
|
3200
|
-
<span class="method-name">
|
3201
|
-
</span>
|
3133
|
+
<a href="#M000198" class="method-signature">
|
3134
|
+
<span class="method-name">text?</span><span class="method-args">()</span>
|
3202
3135
|
</a>
|
3203
3136
|
</div>
|
3204
3137
|
|
3205
3138
|
<div class="method-description">
|
3206
3139
|
<p>
|
3207
|
-
|
3140
|
+
Specifies if this is a text node
|
3208
3141
|
</p>
|
3209
3142
|
<p><a class="source-toggle" href="#"
|
3210
|
-
onclick="toggleCode('
|
3211
|
-
<div class="method-source-code" id="
|
3143
|
+
onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
|
3144
|
+
<div class="method-source-code" id="M000198-source">
|
3212
3145
|
<pre>
|
3213
|
-
|
3214
|
-
|
3215
|
-
|
3216
|
-
|
3217
|
-
* Determine whether this node has text.
|
3218
|
-
*/
|
3219
|
-
VALUE
|
3220
|
-
ruby_xml_node_text_q(VALUE self) {
|
3221
|
-
|
3146
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 244</span>
|
3147
|
+
244: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text?</span>
|
3148
|
+
245: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">TEXT_NODE</span>
|
3149
|
+
246: <span class="ruby-keyword kw">end</span>
|
3222
3150
|
</pre>
|
3223
3151
|
</div>
|
3224
3152
|
</div>
|
3225
3153
|
</div>
|
3226
3154
|
|
3227
|
-
<div id="method-
|
3228
|
-
<a name="
|
3155
|
+
<div id="method-M000162" class="method-detail">
|
3156
|
+
<a name="M000162"></a>
|
3229
3157
|
|
3230
3158
|
<div class="method-heading">
|
3231
|
-
<a href="#
|
3159
|
+
<a href="#M000162" class="method-signature">
|
3232
3160
|
<span class="method-name">node.to_s → "string"<br />
|
3233
3161
|
</span>
|
3234
3162
|
</a>
|
@@ -3240,8 +3168,8 @@ Coerce this node to a string representation of it’s <a
|
|
3240
3168
|
href="../XML.html">XML</a>.
|
3241
3169
|
</p>
|
3242
3170
|
<p><a class="source-toggle" href="#"
|
3243
|
-
onclick="toggleCode('
|
3244
|
-
<div class="method-source-code" id="
|
3171
|
+
onclick="toggleCode('M000162-source');return false;">[Source]</a></p>
|
3172
|
+
<div class="method-source-code" id="M000162-source">
|
3245
3173
|
<pre>
|
3246
3174
|
/*
|
3247
3175
|
* call-seq:
|
@@ -3258,75 +3186,63 @@ ruby_xml_node_to_s(VALUE self) {
|
|
3258
3186
|
</div>
|
3259
3187
|
</div>
|
3260
3188
|
|
3261
|
-
<div id="method-
|
3262
|
-
<a name="
|
3189
|
+
<div id="method-M000199" class="method-detail">
|
3190
|
+
<a name="M000199"></a>
|
3263
3191
|
|
3264
3192
|
<div class="method-heading">
|
3265
|
-
<a href="#
|
3266
|
-
<span class="method-name">
|
3267
|
-
</span>
|
3193
|
+
<a href="#M000199" class="method-signature">
|
3194
|
+
<span class="method-name">xinclude_end?</span><span class="method-args">()</span>
|
3268
3195
|
</a>
|
3269
3196
|
</div>
|
3270
3197
|
|
3271
3198
|
<div class="method-description">
|
3272
3199
|
<p>
|
3273
|
-
|
3200
|
+
Specifies if this is an xinclude end node
|
3274
3201
|
</p>
|
3275
3202
|
<p><a class="source-toggle" href="#"
|
3276
|
-
onclick="toggleCode('
|
3277
|
-
<div class="method-source-code" id="
|
3203
|
+
onclick="toggleCode('M000199-source');return false;">[Source]</a></p>
|
3204
|
+
<div class="method-source-code" id="M000199-source">
|
3278
3205
|
<pre>
|
3279
|
-
|
3280
|
-
|
3281
|
-
|
3282
|
-
|
3283
|
-
* Determine whether this node is an xinclude end node.
|
3284
|
-
*/
|
3285
|
-
VALUE
|
3286
|
-
ruby_xml_node_xinclude_end_q(VALUE self) {
|
3287
|
-
|
3206
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 249</span>
|
3207
|
+
249: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">xinclude_end?</span>
|
3208
|
+
250: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">XINCLUDE_END</span>
|
3209
|
+
251: <span class="ruby-keyword kw">end</span>
|
3288
3210
|
</pre>
|
3289
3211
|
</div>
|
3290
3212
|
</div>
|
3291
3213
|
</div>
|
3292
3214
|
|
3293
|
-
<div id="method-
|
3294
|
-
<a name="
|
3215
|
+
<div id="method-M000200" class="method-detail">
|
3216
|
+
<a name="M000200"></a>
|
3295
3217
|
|
3296
3218
|
<div class="method-heading">
|
3297
|
-
<a href="#
|
3298
|
-
<span class="method-name">
|
3299
|
-
</span>
|
3219
|
+
<a href="#M000200" class="method-signature">
|
3220
|
+
<span class="method-name">xinclude_start?</span><span class="method-args">()</span>
|
3300
3221
|
</a>
|
3301
3222
|
</div>
|
3302
3223
|
|
3303
3224
|
<div class="method-description">
|
3304
3225
|
<p>
|
3305
|
-
|
3226
|
+
Specifies if this is an xinclude start node
|
3306
3227
|
</p>
|
3307
3228
|
<p><a class="source-toggle" href="#"
|
3308
|
-
onclick="toggleCode('
|
3309
|
-
<div class="method-source-code" id="
|
3229
|
+
onclick="toggleCode('M000200-source');return false;">[Source]</a></p>
|
3230
|
+
<div class="method-source-code" id="M000200-source">
|
3310
3231
|
<pre>
|
3311
|
-
|
3312
|
-
|
3313
|
-
|
3314
|
-
|
3315
|
-
* Determine whether this node is an xinclude start node.
|
3316
|
-
*/
|
3317
|
-
VALUE
|
3318
|
-
ruby_xml_node_xinclude_start_q(VALUE self) {
|
3319
|
-
|
3232
|
+
<span class="ruby-comment cmt"># File lib/libxml/node.rb, line 254</span>
|
3233
|
+
254: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">xinclude_start?</span>
|
3234
|
+
255: <span class="ruby-identifier">node_type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">XINCLUDE_START</span>
|
3235
|
+
256: <span class="ruby-keyword kw">end</span>
|
3320
3236
|
</pre>
|
3321
3237
|
</div>
|
3322
3238
|
</div>
|
3323
3239
|
</div>
|
3324
3240
|
|
3325
|
-
<div id="method-
|
3326
|
-
<a name="
|
3241
|
+
<div id="method-M000163" class="method-detail">
|
3242
|
+
<a name="M000163"></a>
|
3327
3243
|
|
3328
3244
|
<div class="method-heading">
|
3329
|
-
<a href="#
|
3245
|
+
<a href="#M000163" class="method-signature">
|
3330
3246
|
<span class="method-name">node.xlink? → (true|false)<br />
|
3331
3247
|
</span>
|
3332
3248
|
</a>
|
@@ -3337,8 +3253,8 @@ ruby_xml_node_xinclude_start_q(VALUE self) {
|
|
3337
3253
|
Determine whether this node is an xlink node.
|
3338
3254
|
</p>
|
3339
3255
|
<p><a class="source-toggle" href="#"
|
3340
|
-
onclick="toggleCode('
|
3341
|
-
<div class="method-source-code" id="
|
3256
|
+
onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
|
3257
|
+
<div class="method-source-code" id="M000163-source">
|
3342
3258
|
<pre>
|
3343
3259
|
/*
|
3344
3260
|
* call-seq:
|
@@ -3354,11 +3270,11 @@ ruby_xml_node_xlink_q(VALUE self) {
|
|
3354
3270
|
</div>
|
3355
3271
|
</div>
|
3356
3272
|
|
3357
|
-
<div id="method-
|
3358
|
-
<a name="
|
3273
|
+
<div id="method-M000164" class="method-detail">
|
3274
|
+
<a name="M000164"></a>
|
3359
3275
|
|
3360
3276
|
<div class="method-heading">
|
3361
|
-
<a href="#
|
3277
|
+
<a href="#M000164" class="method-signature">
|
3362
3278
|
<span class="method-name">node.xlink_type → num<br />
|
3363
3279
|
</span>
|
3364
3280
|
</a>
|
@@ -3370,8 +3286,8 @@ Obtain the type identifier for this xlink, if applicable. If this is not an
|
|
3370
3286
|
xlink node (see +xlink?+), will return nil.
|
3371
3287
|
</p>
|
3372
3288
|
<p><a class="source-toggle" href="#"
|
3373
|
-
onclick="toggleCode('
|
3374
|
-
<div class="method-source-code" id="
|
3289
|
+
onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
|
3290
|
+
<div class="method-source-code" id="M000164-source">
|
3375
3291
|
<pre>
|
3376
3292
|
/*
|
3377
3293
|
* call-seq:
|
@@ -3389,11 +3305,11 @@ ruby_xml_node_xlink_type(VALUE self) {
|
|
3389
3305
|
</div>
|
3390
3306
|
</div>
|
3391
3307
|
|
3392
|
-
<div id="method-
|
3393
|
-
<a name="
|
3308
|
+
<div id="method-M000165" class="method-detail">
|
3309
|
+
<a name="M000165"></a>
|
3394
3310
|
|
3395
3311
|
<div class="method-heading">
|
3396
|
-
<a href="#
|
3312
|
+
<a href="#M000165" class="method-signature">
|
3397
3313
|
<span class="method-name">node.xlink_type_name → "string"<br />
|
3398
3314
|
</span>
|
3399
3315
|
</a>
|
@@ -3405,8 +3321,8 @@ Obtain the type name for this xlink, if applicable. If this is not an xlink
|
|
3405
3321
|
node (see +xlink?+), will return nil.
|
3406
3322
|
</p>
|
3407
3323
|
<p><a class="source-toggle" href="#"
|
3408
|
-
onclick="toggleCode('
|
3409
|
-
<div class="method-source-code" id="
|
3324
|
+
onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
|
3325
|
+
<div class="method-source-code" id="M000165-source">
|
3410
3326
|
<pre>
|
3411
3327
|
/*
|
3412
3328
|
* call-seq:
|