libxml-ruby 0.6.0-x86-mswin32-60 → 0.7.0-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. data/CHANGES +42 -0
  2. data/README +123 -117
  3. data/doc/classes/XML.html +226 -0
  4. data/doc/classes/XML/Attr.html +969 -0
  5. data/doc/classes/XML/Attributes.html +487 -0
  6. data/doc/classes/XML/Document.html +1423 -0
  7. data/doc/classes/XML/Dtd.html +159 -0
  8. data/doc/classes/XML/Error.html +111 -0
  9. data/doc/classes/XML/HTMLParser.html +330 -0
  10. data/doc/classes/XML/InputCallbacks.html +154 -0
  11. data/doc/classes/XML/NS.html +366 -0
  12. data/doc/classes/XML/Node.html +3292 -0
  13. data/doc/classes/XML/Node/FailedModify.html +111 -0
  14. data/doc/classes/XML/Node/Set.html +435 -0
  15. data/doc/classes/XML/Node/SetNamespace.html +111 -0
  16. data/doc/classes/XML/Node/UnknownType.html +111 -0
  17. data/doc/classes/XML/Parser.html +2178 -0
  18. data/doc/classes/XML/Parser/Context.html +1233 -0
  19. data/doc/classes/XML/Parser/ParseError.html +111 -0
  20. data/doc/classes/XML/Reader.html +2173 -0
  21. data/doc/classes/XML/SaxParser.html +396 -0
  22. data/doc/classes/XML/SiblingEnum.html +142 -0
  23. data/doc/classes/XML/State.html +118 -0
  24. data/doc/classes/XML/Tree.html +224 -0
  25. data/doc/classes/XML/XInclude.html +117 -0
  26. data/doc/classes/XML/XInclude/Error.html +111 -0
  27. data/doc/classes/XML/XMLParserOptions.html +198 -0
  28. data/doc/classes/XML/XPath.html +269 -0
  29. data/doc/classes/XML/XPath/Context.html +193 -0
  30. data/doc/classes/XML/XPath/InvalidPath.html +111 -0
  31. data/doc/classes/XML/XPath/Object.html +439 -0
  32. data/doc/classes/XML/XPointer.html +164 -0
  33. data/doc/classes/XML/XPointer/Context.html +117 -0
  34. data/doc/classes/XML/XPointer/Context/InvalidPath.html +111 -0
  35. data/doc/classes/XML/XPointer/InvalidExpression.html +111 -0
  36. data/doc/classes/singleton.html +114 -0
  37. data/doc/created.rid +1 -0
  38. data/doc/files/CHANGES.html +375 -0
  39. data/doc/files/LICENSE.html +133 -0
  40. data/doc/files/README.html +279 -0
  41. data/doc/files/VERSION.html +107 -0
  42. data/doc/files/ext/libxml/cbg_c.html +101 -0
  43. data/doc/files/ext/libxml/libxml_c.html +101 -0
  44. data/doc/files/ext/libxml/ruby_xml_attr_c.html +101 -0
  45. data/doc/files/ext/libxml/ruby_xml_attributes_c.html +101 -0
  46. data/doc/files/ext/libxml/ruby_xml_document_c.html +101 -0
  47. data/doc/files/ext/libxml/ruby_xml_dtd_c.html +101 -0
  48. data/doc/files/ext/libxml/ruby_xml_html_parser_c.html +101 -0
  49. data/doc/files/ext/libxml/ruby_xml_input_cbg_c.html +101 -0
  50. data/doc/files/ext/libxml/ruby_xml_node_c.html +101 -0
  51. data/doc/files/ext/libxml/ruby_xml_node_set_c.html +101 -0
  52. data/doc/files/ext/libxml/ruby_xml_ns_c.html +101 -0
  53. data/doc/files/ext/libxml/ruby_xml_parser_c.html +101 -0
  54. data/doc/files/ext/libxml/ruby_xml_parser_context_c.html +101 -0
  55. data/doc/files/ext/libxml/ruby_xml_reader_c.html +101 -0
  56. data/doc/files/ext/libxml/ruby_xml_sax_parser_c.html +101 -0
  57. data/doc/files/ext/libxml/ruby_xml_schema_c.html +101 -0
  58. data/doc/files/ext/libxml/ruby_xml_state_c.html +101 -0
  59. data/doc/files/ext/libxml/ruby_xml_tree_c.html +101 -0
  60. data/doc/files/ext/libxml/ruby_xml_xinclude_c.html +101 -0
  61. data/doc/files/ext/libxml/ruby_xml_xpath_c.html +101 -0
  62. data/doc/files/ext/libxml/ruby_xml_xpath_context_c.html +101 -0
  63. data/doc/files/ext/libxml/ruby_xml_xpath_object_c.html +101 -0
  64. data/doc/files/ext/libxml/ruby_xml_xpointer_c.html +101 -0
  65. data/doc/files/ext/libxml/ruby_xml_xpointer_context_c.html +101 -0
  66. data/doc/files/lib/libxml_rb.html +115 -0
  67. data/doc/files/lib/xml/libxml_rb.html +114 -0
  68. data/doc/fr_class_index.html +60 -0
  69. data/doc/fr_file_index.html +56 -0
  70. data/doc/fr_method_index.html +373 -0
  71. data/doc/index.html +24 -0
  72. data/doc/rdoc-style.css +208 -0
  73. data/ext/libxml/cbg.c +76 -76
  74. data/ext/libxml/extconf.rb +308 -308
  75. data/ext/libxml/libxml.c +58 -62
  76. data/ext/libxml/ruby_libxml.h +1 -0
  77. data/ext/libxml/ruby_xml_attr.c +201 -113
  78. data/ext/libxml/ruby_xml_attr.h +6 -9
  79. data/ext/libxml/ruby_xml_attributes.c +268 -0
  80. data/ext/libxml/ruby_xml_attributes.h +17 -0
  81. data/ext/libxml/ruby_xml_document.c +80 -66
  82. data/ext/libxml/ruby_xml_dtd.c +2 -2
  83. data/ext/libxml/ruby_xml_dtd.h +17 -17
  84. data/ext/libxml/ruby_xml_html_parser.c +18 -19
  85. data/ext/libxml/ruby_xml_html_parser.h +29 -29
  86. data/ext/libxml/ruby_xml_input_cbg.c +6 -0
  87. data/ext/libxml/ruby_xml_input_cbg.h +20 -20
  88. data/ext/libxml/ruby_xml_node.c +438 -536
  89. data/ext/libxml/ruby_xml_node.h +17 -27
  90. data/ext/libxml/ruby_xml_node_set.c +10 -9
  91. data/ext/libxml/ruby_xml_node_set.h +20 -20
  92. data/ext/libxml/ruby_xml_ns.c +60 -69
  93. data/ext/libxml/ruby_xml_ns.h +12 -21
  94. data/ext/libxml/ruby_xml_parser.c +54 -53
  95. data/ext/libxml/ruby_xml_parser.h +31 -31
  96. data/ext/libxml/ruby_xml_parser_context.c +37 -91
  97. data/ext/libxml/ruby_xml_parser_context.h +20 -22
  98. data/ext/libxml/ruby_xml_reader.h +14 -14
  99. data/ext/libxml/ruby_xml_sax_parser.c +55 -55
  100. data/ext/libxml/ruby_xml_sax_parser.h +56 -56
  101. data/ext/libxml/ruby_xml_schema.c +44 -51
  102. data/ext/libxml/ruby_xml_schema.h +16 -16
  103. data/ext/libxml/ruby_xml_state.c +35 -96
  104. data/ext/libxml/ruby_xml_state.h +2 -3
  105. data/ext/libxml/ruby_xml_tree.h +12 -12
  106. data/ext/libxml/ruby_xml_xinclude.h +13 -13
  107. data/ext/libxml/ruby_xml_xpath.c +57 -18
  108. data/ext/libxml/ruby_xml_xpath.h +23 -23
  109. data/ext/libxml/ruby_xml_xpath_context.c +11 -7
  110. data/ext/libxml/ruby_xml_xpath_context.h +20 -20
  111. data/ext/libxml/ruby_xml_xpath_object.c +9 -16
  112. data/ext/libxml/ruby_xml_xpath_object.h +4 -10
  113. data/ext/libxml/ruby_xml_xpointer.c +11 -11
  114. data/ext/libxml/ruby_xml_xpointer.h +27 -27
  115. data/ext/libxml/ruby_xml_xpointer_context.h +18 -18
  116. data/ext/libxml/version.h +2 -2
  117. data/lib/libxml.rb +134 -125
  118. data/lib/libxml_ruby.so +0 -0
  119. data/mingw/libiconv-2.dll +0 -0
  120. data/mingw/libxml2-2.dll +0 -0
  121. data/mingw/libxml_ruby.so +0 -0
  122. data/test/ets_copy_bug.rb +1 -1
  123. data/test/ets_copy_bug2.rb +16 -27
  124. data/test/ets_doc_to_s.rb +1 -1
  125. data/test/ets_gpx.rb +1 -1
  126. data/test/ets_node_gc.rb +1 -1
  127. data/test/ets_tsr.rb +1 -1
  128. data/test/tc_well_formed.rb +1 -1
  129. data/test/tc_xml_attributes.rb +106 -0
  130. data/test/tc_xml_document.rb +10 -10
  131. data/test/tc_xml_document_write3.rb +1 -1
  132. data/test/tc_xml_dtd.rb +49 -0
  133. data/test/tc_xml_html_parser.rb +3 -3
  134. data/test/tc_xml_node.rb +69 -33
  135. data/test/tc_xml_node_attr.rb +170 -0
  136. data/test/{tc_xml_node8.rb → tc_xml_node_cdata.rb} +2 -2
  137. data/test/{tc_xml_node9.rb → tc_xml_node_comment.rb} +3 -3
  138. data/test/tc_xml_node_edit.rb +91 -0
  139. data/test/tc_xml_parser.rb +97 -50
  140. data/test/tc_xml_parser_context.rb +61 -23
  141. data/test/tc_xml_schema.rb +39 -0
  142. data/test/tc_xml_xinclude.rb +5 -6
  143. data/test/tc_xml_xpath.rb +51 -27
  144. data/test/test_suite.rb +27 -0
  145. data/vc/{libxml.sln → libxml_ruby.sln} +5 -5
  146. data/vc/{libxml.vcproj → libxml_ruby.vcproj} +9 -1
  147. metadata +106 -54
  148. data/mingw/mingw.rake +0 -36
  149. data/test/dtd-test.rb +0 -24
  150. data/test/merge_bug.rb +0 -55
  151. data/test/schema-test.rb +0 -74
  152. data/test/tc_xml_node2.rb +0 -25
  153. data/test/tc_xml_node3.rb +0 -27
  154. data/test/tc_xml_node4.rb +0 -86
  155. data/test/tc_xml_node5.rb +0 -52
  156. data/test/tc_xml_node6.rb +0 -27
  157. data/test/tc_xml_node7.rb +0 -35
  158. data/test/tc_xml_parser2.rb +0 -16
  159. data/test/tc_xml_parser3.rb +0 -23
  160. data/test/tc_xml_parser4.rb +0 -33
  161. data/test/tc_xml_parser5.rb +0 -27
  162. data/test/tc_xml_parser6.rb +0 -23
  163. data/test/tc_xml_parser7.rb +0 -28
  164. data/test/tc_xml_parser8.rb +0 -32
  165. data/test/tc_xml_parser9.rb +0 -11
  166. data/test/tc_xml_xpath2.rb +0 -14
  167. data/work/vc/debug/libxml.exp +0 -0
  168. data/work/vc/debug/libxml.ilk +0 -0
  169. data/work/vc/debug/libxml.lib +0 -0
  170. data/work/vc/debug/libxml.pdb +0 -0
  171. data/work/vc/debug/libxml.so +0 -0
@@ -0,0 +1,3292 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: XML::Node</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">XML::Node</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/ext/libxml/libxml_c.html">
59
+ ext/libxml/libxml.c
60
+ </a>
61
+ <br />
62
+ <a href="../../files/lib/libxml_rb.html">
63
+ lib/libxml.rb
64
+ </a>
65
+ <br />
66
+ </td>
67
+ </tr>
68
+
69
+ <tr class="top-aligned-row">
70
+ <td><strong>Parent:</strong></td>
71
+ <td>
72
+ Object
73
+ </td>
74
+ </tr>
75
+ </table>
76
+ </div>
77
+ <!-- banner header -->
78
+
79
+ <div id="bodyContent">
80
+
81
+
82
+
83
+ <div id="contextContent">
84
+
85
+
86
+
87
+ </div>
88
+
89
+ <div id="method-list">
90
+ <h3 class="section-bar">Methods</h3>
91
+
92
+ <div class="name-list">
93
+ <a href="#M000098">&lt;&lt;</a>&nbsp;&nbsp;
94
+ <a href="#M000179">==</a>&nbsp;&nbsp;
95
+ <a href="#M000099">[]</a>&nbsp;&nbsp;
96
+ <a href="#M000100">[]=</a>&nbsp;&nbsp;
97
+ <a href="#M000101">attribute?</a>&nbsp;&nbsp;
98
+ <a href="#M000102">attribute_decl?</a>&nbsp;&nbsp;
99
+ <a href="#M000103">attributes</a>&nbsp;&nbsp;
100
+ <a href="#M000104">attributes?</a>&nbsp;&nbsp;
101
+ <a href="#M000105">base</a>&nbsp;&nbsp;
102
+ <a href="#M000106">base=</a>&nbsp;&nbsp;
103
+ <a href="#M000107">blank?</a>&nbsp;&nbsp;
104
+ <a href="#M000108">cdata?</a>&nbsp;&nbsp;
105
+ <a href="#M000111">child</a>&nbsp;&nbsp;
106
+ <a href="#M000113">child=</a>&nbsp;&nbsp;
107
+ <a href="#M000112">child?</a>&nbsp;&nbsp;
108
+ <a href="#M000114">child_add</a>&nbsp;&nbsp;
109
+ <a href="#M000115">children</a>&nbsp;&nbsp;
110
+ <a href="#M000116">children?</a>&nbsp;&nbsp;
111
+ <a href="#M000186">clone</a>&nbsp;&nbsp;
112
+ <a href="#M000109">comment?</a>&nbsp;&nbsp;
113
+ <a href="#M000117">content</a>&nbsp;&nbsp;
114
+ <a href="#M000118">content=</a>&nbsp;&nbsp;
115
+ <a href="#M000119">content_stripped</a>&nbsp;&nbsp;
116
+ <a href="#M000110">copy</a>&nbsp;&nbsp;
117
+ <a href="#M000126">debug_dump</a>&nbsp;&nbsp;
118
+ <a href="#M000120">doc</a>&nbsp;&nbsp;
119
+ <a href="#M000121">docbook_doc?</a>&nbsp;&nbsp;
120
+ <a href="#M000122">doctype?</a>&nbsp;&nbsp;
121
+ <a href="#M000123">document?</a>&nbsp;&nbsp;
122
+ <a href="#M000124">dtd?</a>&nbsp;&nbsp;
123
+ <a href="#M000125">dump</a>&nbsp;&nbsp;
124
+ <a href="#M000184">each</a>&nbsp;&nbsp;
125
+ <a href="#M000182">each_attr</a>&nbsp;&nbsp;
126
+ <a href="#M000181">each_child</a>&nbsp;&nbsp;
127
+ <a href="#M000183">each_sibling</a>&nbsp;&nbsp;
128
+ <a href="#M000127">element?</a>&nbsp;&nbsp;
129
+ <a href="#M000128">element_decl?</a>&nbsp;&nbsp;
130
+ <a href="#M000129">empty?</a>&nbsp;&nbsp;
131
+ <a href="#M000130">entity?</a>&nbsp;&nbsp;
132
+ <a href="#M000131">entity_ref?</a>&nbsp;&nbsp;
133
+ <a href="#M000132">eql?</a>&nbsp;&nbsp;
134
+ <a href="#M000133">find</a>&nbsp;&nbsp;
135
+ <a href="#M000134">find_first</a>&nbsp;&nbsp;
136
+ <a href="#M000135">fragment?</a>&nbsp;&nbsp;
137
+ <a href="#M000136">html_doc?</a>&nbsp;&nbsp;
138
+ <a href="#M000137">lang</a>&nbsp;&nbsp;
139
+ <a href="#M000138">lang=</a>&nbsp;&nbsp;
140
+ <a href="#M000139">last</a>&nbsp;&nbsp;
141
+ <a href="#M000140">last?</a>&nbsp;&nbsp;
142
+ <a href="#M000141">line_num</a>&nbsp;&nbsp;
143
+ <a href="#M000142">name</a>&nbsp;&nbsp;
144
+ <a href="#M000143">name=</a>&nbsp;&nbsp;
145
+ <a href="#M000144">namespace</a>&nbsp;&nbsp;
146
+ <a href="#M000147">namespace=</a>&nbsp;&nbsp;
147
+ <a href="#M000146">namespace?</a>&nbsp;&nbsp;
148
+ <a href="#M000145">namespace_node</a>&nbsp;&nbsp;
149
+ <a href="#M000094">new</a>&nbsp;&nbsp;
150
+ <a href="#M000095">new_cdata</a>&nbsp;&nbsp;
151
+ <a href="#M000096">new_comment</a>&nbsp;&nbsp;
152
+ <a href="#M000097">new_text</a>&nbsp;&nbsp;
153
+ <a href="#M000148">next</a>&nbsp;&nbsp;
154
+ <a href="#M000150">next=</a>&nbsp;&nbsp;
155
+ <a href="#M000149">next?</a>&nbsp;&nbsp;
156
+ <a href="#M000151">node_type</a>&nbsp;&nbsp;
157
+ <a href="#M000152">node_type_name</a>&nbsp;&nbsp;
158
+ <a href="#M000153">notation?</a>&nbsp;&nbsp;
159
+ <a href="#M000154">ns</a>&nbsp;&nbsp;
160
+ <a href="#M000155">ns?</a>&nbsp;&nbsp;
161
+ <a href="#M000156">ns_def</a>&nbsp;&nbsp;
162
+ <a href="#M000157">ns_def?</a>&nbsp;&nbsp;
163
+ <a href="#M000158">parent</a>&nbsp;&nbsp;
164
+ <a href="#M000159">parent?</a>&nbsp;&nbsp;
165
+ <a href="#M000160">path</a>&nbsp;&nbsp;
166
+ <a href="#M000161">pi?</a>&nbsp;&nbsp;
167
+ <a href="#M000162">pointer</a>&nbsp;&nbsp;
168
+ <a href="#M000163">prev</a>&nbsp;&nbsp;
169
+ <a href="#M000165">prev=</a>&nbsp;&nbsp;
170
+ <a href="#M000164">prev?</a>&nbsp;&nbsp;
171
+ <a href="#M000180">properties?</a>&nbsp;&nbsp;
172
+ <a href="#M000166">remove!</a>&nbsp;&nbsp;
173
+ <a href="#M000168">search_href</a>&nbsp;&nbsp;
174
+ <a href="#M000167">search_ns</a>&nbsp;&nbsp;
175
+ <a href="#M000169">sibling=</a>&nbsp;&nbsp;
176
+ <a href="#M000170">space_preserve</a>&nbsp;&nbsp;
177
+ <a href="#M000171">space_preserve=</a>&nbsp;&nbsp;
178
+ <a href="#M000172">text?</a>&nbsp;&nbsp;
179
+ <a href="#M000185">to_a</a>&nbsp;&nbsp;
180
+ <a href="#M000173">to_s</a>&nbsp;&nbsp;
181
+ <a href="#M000174">xinclude_end?</a>&nbsp;&nbsp;
182
+ <a href="#M000175">xinclude_start?</a>&nbsp;&nbsp;
183
+ <a href="#M000176">xlink?</a>&nbsp;&nbsp;
184
+ <a href="#M000177">xlink_type</a>&nbsp;&nbsp;
185
+ <a href="#M000178">xlink_type_name</a>&nbsp;&nbsp;
186
+ </div>
187
+ </div>
188
+
189
+ </div>
190
+
191
+
192
+ <!-- if includes -->
193
+ <div id="includes">
194
+ <h3 class="section-bar">Included Modules</h3>
195
+
196
+ <div id="includes-list">
197
+ <span class="include-name"><a href="SiblingEnum.html">XML::SiblingEnum</a></span>
198
+ <span class="include-name">Enumerable</span>
199
+ </div>
200
+ </div>
201
+
202
+ <div id="section">
203
+
204
+ <div id="class-list">
205
+ <h3 class="section-bar">Classes and Modules</h3>
206
+
207
+ Class <a href="Node/FailedModify.html" class="link">XML::Node::FailedModify</a><br />
208
+ Class <a href="Node/Set.html" class="link">XML::Node::Set</a><br />
209
+ Class <a href="Node/SetNamespace.html" class="link">XML::Node::SetNamespace</a><br />
210
+ Class <a href="Node/UnknownType.html" class="link">XML::Node::UnknownType</a><br />
211
+
212
+ </div>
213
+
214
+ <div id="constants-list">
215
+ <h3 class="section-bar">Constants</h3>
216
+
217
+ <div class="name-list">
218
+ <table summary="Constants">
219
+ <tr class="top-aligned-row context-row">
220
+ <td class="context-item-name">SPACE_DEFAULT</td>
221
+ <td>=</td>
222
+ <td class="context-item-value">INT2NUM(0)</td>
223
+ </tr>
224
+ <tr class="top-aligned-row context-row">
225
+ <td class="context-item-name">SPACE_PRESERVE</td>
226
+ <td>=</td>
227
+ <td class="context-item-value">INT2NUM(1)</td>
228
+ </tr>
229
+ <tr class="top-aligned-row context-row">
230
+ <td class="context-item-name">SPACE_NOT_INHERIT</td>
231
+ <td>=</td>
232
+ <td class="context-item-value">INT2NUM(-1)</td>
233
+ </tr>
234
+ <tr class="top-aligned-row context-row">
235
+ <td class="context-item-name">XLINK_ACTUATE_AUTO</td>
236
+ <td>=</td>
237
+ <td class="context-item-value">INT2NUM(1)</td>
238
+ </tr>
239
+ <tr class="top-aligned-row context-row">
240
+ <td class="context-item-name">XLINK_ACTUATE_NONE</td>
241
+ <td>=</td>
242
+ <td class="context-item-value">INT2NUM(0)</td>
243
+ </tr>
244
+ <tr class="top-aligned-row context-row">
245
+ <td class="context-item-name">XLINK_ACTUATE_ONREQUEST</td>
246
+ <td>=</td>
247
+ <td class="context-item-value">INT2NUM(2)</td>
248
+ </tr>
249
+ <tr class="top-aligned-row context-row">
250
+ <td class="context-item-name">XLINK_SHOW_EMBED</td>
251
+ <td>=</td>
252
+ <td class="context-item-value">INT2NUM(2)</td>
253
+ </tr>
254
+ <tr class="top-aligned-row context-row">
255
+ <td class="context-item-name">XLINK_SHOW_NEW</td>
256
+ <td>=</td>
257
+ <td class="context-item-value">INT2NUM(1)</td>
258
+ </tr>
259
+ <tr class="top-aligned-row context-row">
260
+ <td class="context-item-name">XLINK_SHOW_NONE</td>
261
+ <td>=</td>
262
+ <td class="context-item-value">INT2NUM(0)</td>
263
+ </tr>
264
+ <tr class="top-aligned-row context-row">
265
+ <td class="context-item-name">XLINK_SHOW_REPLACE</td>
266
+ <td>=</td>
267
+ <td class="context-item-value">INT2NUM(3)</td>
268
+ </tr>
269
+ <tr class="top-aligned-row context-row">
270
+ <td class="context-item-name">XLINK_TYPE_EXTENDED</td>
271
+ <td>=</td>
272
+ <td class="context-item-value">INT2NUM(2)</td>
273
+ </tr>
274
+ <tr class="top-aligned-row context-row">
275
+ <td class="context-item-name">XLINK_TYPE_EXTENDED_SET</td>
276
+ <td>=</td>
277
+ <td class="context-item-value">INT2NUM(3)</td>
278
+ </tr>
279
+ <tr class="top-aligned-row context-row">
280
+ <td class="context-item-name">XLINK_TYPE_NONE</td>
281
+ <td>=</td>
282
+ <td class="context-item-value">INT2NUM(0)</td>
283
+ </tr>
284
+ <tr class="top-aligned-row context-row">
285
+ <td class="context-item-name">XLINK_TYPE_SIMPLE</td>
286
+ <td>=</td>
287
+ <td class="context-item-value">INT2NUM(1)</td>
288
+ </tr>
289
+ </table>
290
+ </div>
291
+ </div>
292
+
293
+
294
+
295
+
296
+
297
+
298
+ <!-- if method_list -->
299
+ <div id="methods">
300
+ <h3 class="section-bar">Public Class methods</h3>
301
+
302
+ <div id="method-M000094" class="method-detail">
303
+ <a name="M000094"></a>
304
+
305
+ <div class="method-heading">
306
+ <a href="#M000094" class="method-signature">
307
+ <span class="method-name">XML::Node.new(name, content = nil) &rarr; node<br />
308
+ XML::Node.new_element(name, content = nil) &rarr; node<br />
309
+ </span>
310
+ </a>
311
+ </div>
312
+
313
+ <div class="method-description">
314
+ <p>
315
+ Create a new element node with the specified name, optionally setting the
316
+ node&#8217;s content. backward compatibility for &lt;.5 new
317
+ </p>
318
+ <p><a class="source-toggle" href="#"
319
+ onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
320
+ <div class="method-source-code" id="M000094-source">
321
+ <pre>
322
+ /*
323
+ * call-seq:
324
+ * XML::Node.new(name, content = nil) -&gt; node
325
+ * XML::Node.new_element(name, content = nil) -&gt; node
326
+ *
327
+ * Create a new element node with the specified name, optionally setting
328
+ * the node's content.
329
+ * backward compatibility for &lt;.5 new
330
+ */
331
+ VALUE
332
+ ruby_xml_node2_new_string_bc(int argc, VALUE *argv, VALUE class)
333
+ {
334
+ VALUE content=Qnil;
335
+ VALUE name=Qnil;
336
+ switch(argc) {
337
+ case 2:
338
+ content=argv[1];
339
+ if ( TYPE(content) != T_STRING)
340
+ content=rb_obj_as_string(content);
341
+
342
+ case 1:
343
+ name=check_string_or_symbol( argv[0] );
344
+ return ruby_xml_node2_new_string(class,Qnil,name,content);
345
+
346
+ default:
347
+ rb_raise(rb_eArgError, &quot;wrong number of arguments (1 or 2) given %d&quot;,argc);
348
+ }
349
+ }
350
+ </pre>
351
+ </div>
352
+ </div>
353
+ </div>
354
+
355
+ <div id="method-M000095" class="method-detail">
356
+ <a name="M000095"></a>
357
+
358
+ <div class="method-heading">
359
+ <a href="#M000095" class="method-signature">
360
+ <span class="method-name">XML::Node.new_cdata(content = nil) &rarr; node<br />
361
+ </span>
362
+ </a>
363
+ </div>
364
+
365
+ <div class="method-description">
366
+ <p>
367
+ Create a new CDATA node, optionally setting the node&#8217;s content.
368
+ </p>
369
+ <p><a class="source-toggle" href="#"
370
+ onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
371
+ <div class="method-source-code" id="M000095-source">
372
+ <pre>
373
+ /*
374
+ * call-seq:
375
+ * XML::Node.new_cdata(content = nil) -&gt; node
376
+ *
377
+ * Create a new #CDATA node, optionally setting
378
+ * the node's content.
379
+ */
380
+ VALUE
381
+ ruby_xml_node_new_cdata(int argc, VALUE *argv, VALUE class) {
382
+
383
+ </pre>
384
+ </div>
385
+ </div>
386
+ </div>
387
+
388
+ <div id="method-M000096" class="method-detail">
389
+ <a name="M000096"></a>
390
+
391
+ <div class="method-heading">
392
+ <a href="#M000096" class="method-signature">
393
+ <span class="method-name">XML::Node.new_comment(content = nil) &rarr; node<br />
394
+ </span>
395
+ </a>
396
+ </div>
397
+
398
+ <div class="method-description">
399
+ <p>
400
+ Create a new comment node, optionally setting the node&#8217;s content.
401
+ </p>
402
+ <p><a class="source-toggle" href="#"
403
+ onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
404
+ <div class="method-source-code" id="M000096-source">
405
+ <pre>
406
+ /*
407
+ * call-seq:
408
+ * XML::Node.new_comment(content = nil) -&gt; node
409
+ *
410
+ * Create a new comment node, optionally setting
411
+ * the node's content.
412
+ *
413
+ */
414
+ VALUE
415
+ ruby_xml_node_new_comment(int argc, VALUE *argv, VALUE class) {
416
+
417
+ </pre>
418
+ </div>
419
+ </div>
420
+ </div>
421
+
422
+ <div id="method-M000097" class="method-detail">
423
+ <a name="M000097"></a>
424
+
425
+ <div class="method-heading">
426
+ <a href="#M000097" class="method-signature">
427
+ <span class="method-name">XML::Node.new_text(content = nil) &rarr; node<br />
428
+ </span>
429
+ </a>
430
+ </div>
431
+
432
+ <div class="method-description">
433
+ <p>
434
+ Create a new text node, optionally setting the node&#8217;s content.
435
+ </p>
436
+ <p><a class="source-toggle" href="#"
437
+ onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
438
+ <div class="method-source-code" id="M000097-source">
439
+ <pre>
440
+ /*
441
+ * call-seq:
442
+ * XML::Node.new_text(content = nil) -&gt; node
443
+ *
444
+ * Create a new text node, optionally setting
445
+ * the node's content.
446
+ *
447
+ */
448
+ VALUE
449
+ ruby_xml_node_new_text(VALUE class, VALUE text)
450
+ {
451
+ VALUE obj;
452
+ xmlNodePtr xnode;
453
+
454
+ if ( NIL_P(text) )
455
+ return Qnil;
456
+
457
+ if (TYPE(text) != T_STRING )
458
+ rb_raise(rb_eTypeError, &quot;requires string argument&quot;);
459
+
460
+ xnode=xmlNewText((xmlChar*)STR2CSTR(text));
461
+ if ( xnode == NULL )
462
+ return Qnil;
463
+
464
+ obj=ruby_xml_node2_wrap(class,xnode);
465
+ rb_obj_call_init(obj,0,NULL);
466
+ return obj;
467
+ }
468
+ </pre>
469
+ </div>
470
+ </div>
471
+ </div>
472
+
473
+ <h3 class="section-bar">Public Instance methods</h3>
474
+
475
+ <div id="method-M000098" class="method-detail">
476
+ <a name="M000098"></a>
477
+
478
+ <div class="method-heading">
479
+ <a href="#M000098" class="method-signature">
480
+ <span class="method-name">node << ("string" | node) &rarr; node<br />
481
+ </span>
482
+ </a>
483
+ </div>
484
+
485
+ <div class="method-description">
486
+ <p>
487
+ Add the specified string or <a href="Node.html">XML::Node</a> to this
488
+ node&#8217;s content.
489
+ </p>
490
+ <p><a class="source-toggle" href="#"
491
+ onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
492
+ <div class="method-source-code" id="M000098-source">
493
+ <pre>
494
+ /*
495
+ * call-seq:
496
+ * node &lt;&lt; (&quot;string&quot; | node) -&gt; node
497
+ *
498
+ * Add the specified string or XML::Node to this node's
499
+ * content.
500
+ */
501
+ VALUE
502
+ ruby_xml_node_content_add(VALUE self, VALUE obj) {
503
+
504
+ </pre>
505
+ </div>
506
+ </div>
507
+ </div>
508
+
509
+ <div id="method-M000179" class="method-detail">
510
+ <a name="M000179"></a>
511
+
512
+ <div class="method-heading">
513
+ <span class="method-name">==</span><span class="method-args">(p1)</span>
514
+ </div>
515
+
516
+ <div class="method-description">
517
+ <p>
518
+ Alias for <a href="Node.html#M000132">eql?</a>
519
+ </p>
520
+ </div>
521
+ </div>
522
+
523
+ <div id="method-M000099" class="method-detail">
524
+ <a name="M000099"></a>
525
+
526
+ <div class="method-heading">
527
+ <a href="#M000099" class="method-signature">
528
+ <span class="method-name">node.property("name") &rarr; "string"<br />
529
+ node["name"] &rarr; "string"<br />
530
+ </span>
531
+ </a>
532
+ </div>
533
+
534
+ <div class="method-description">
535
+ <p>
536
+ Obtain the named property.
537
+ </p>
538
+ <p><a class="source-toggle" href="#"
539
+ onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
540
+ <div class="method-source-code" id="M000099-source">
541
+ <pre>
542
+ /*
543
+ * call-seq:
544
+ * node.property(&quot;name&quot;) -&gt; &quot;string&quot;
545
+ * node[&quot;name&quot;] -&gt; &quot;string&quot;
546
+ *
547
+ * Obtain the named property.
548
+ */
549
+ VALUE
550
+ ruby_xml_node_property_get(VALUE self, VALUE name) {
551
+
552
+ </pre>
553
+ </div>
554
+ </div>
555
+ </div>
556
+
557
+ <div id="method-M000100" class="method-detail">
558
+ <a name="M000100"></a>
559
+
560
+ <div class="method-heading">
561
+ <a href="#M000100" class="method-signature">
562
+ <span class="method-name">node["name"] = "string"<br />
563
+ </span>
564
+ </a>
565
+ </div>
566
+
567
+ <div class="method-description">
568
+ <p>
569
+ <a href="Node/Set.html">Set</a> the named property.
570
+ </p>
571
+ <p><a class="source-toggle" href="#"
572
+ onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
573
+ <div class="method-source-code" id="M000100-source">
574
+ <pre>
575
+ /*
576
+ * call-seq:
577
+ * node[&quot;name&quot;] = &quot;string&quot;
578
+ *
579
+ * Set the named property.
580
+ */
581
+ VALUE
582
+ ruby_xml_node_property_set(VALUE self, VALUE name, VALUE value) {
583
+
584
+ </pre>
585
+ </div>
586
+ </div>
587
+ </div>
588
+
589
+ <div id="method-M000101" class="method-detail">
590
+ <a name="M000101"></a>
591
+
592
+ <div class="method-heading">
593
+ <a href="#M000101" class="method-signature">
594
+ <span class="method-name">node.attribute? &rarr; (true|false)<br />
595
+ </span>
596
+ </a>
597
+ </div>
598
+
599
+ <div class="method-description">
600
+ <p>
601
+ Determine whether this is an attribute node,
602
+ </p>
603
+ <p><a class="source-toggle" href="#"
604
+ onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
605
+ <div class="method-source-code" id="M000101-source">
606
+ <pre>
607
+ /*
608
+ * call-seq:
609
+ * node.attribute? -&gt; (true|false)
610
+ *
611
+ * Determine whether this is an attribute node,
612
+ */
613
+ VALUE
614
+ ruby_xml_node_attribute_q(VALUE self) {
615
+
616
+ </pre>
617
+ </div>
618
+ </div>
619
+ </div>
620
+
621
+ <div id="method-M000102" class="method-detail">
622
+ <a name="M000102"></a>
623
+
624
+ <div class="method-heading">
625
+ <a href="#M000102" class="method-signature">
626
+ <span class="method-name">node.attribute_decl? &rarr; (true|false)<br />
627
+ </span>
628
+ </a>
629
+ </div>
630
+
631
+ <div class="method-description">
632
+ <p>
633
+ Determine whether this is an attribute declaration node,
634
+ </p>
635
+ <p><a class="source-toggle" href="#"
636
+ onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
637
+ <div class="method-source-code" id="M000102-source">
638
+ <pre>
639
+ /*
640
+ * call-seq:
641
+ * node.attribute_decl? -&gt; (true|false)
642
+ *
643
+ * Determine whether this is an attribute declaration node,
644
+ */
645
+ VALUE
646
+ ruby_xml_node_attribute_decl_q(VALUE self) {
647
+
648
+ </pre>
649
+ </div>
650
+ </div>
651
+ </div>
652
+
653
+ <div id="method-M000103" class="method-detail">
654
+ <a name="M000103"></a>
655
+
656
+ <div class="method-heading">
657
+ <a href="#M000103" class="method-signature">
658
+ <span class="method-name">node.attributes &rarr; attributes<br />
659
+ </span>
660
+ </a>
661
+ </div>
662
+
663
+ <div class="method-description">
664
+ <p>
665
+ Returns the <a href="Attributes.html">XML::Attributes</a> for this node.
666
+ </p>
667
+ <p><a class="source-toggle" href="#"
668
+ onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
669
+ <div class="method-source-code" id="M000103-source">
670
+ <pre>
671
+ /*
672
+ * call-seq:
673
+ * node.attributes -&gt; attributes
674
+ *
675
+ * Returns the XML::Attributes for this node.
676
+ */
677
+ VALUE
678
+ ruby_xml_node_attributes_get(VALUE self) {
679
+
680
+ </pre>
681
+ </div>
682
+ </div>
683
+ </div>
684
+
685
+ <div id="method-M000104" class="method-detail">
686
+ <a name="M000104"></a>
687
+
688
+ <div class="method-heading">
689
+ <a href="#M000104" class="method-signature">
690
+ <span class="method-name">node.attributes? &rarr; (true|false)<br />
691
+ </span>
692
+ </a>
693
+ </div>
694
+
695
+ <div class="method-description">
696
+ <p>
697
+ Determine whether this node has properties (attributes).
698
+ </p>
699
+ <p><a class="source-toggle" href="#"
700
+ onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
701
+ <div class="method-source-code" id="M000104-source">
702
+ <pre>
703
+ /*
704
+ * call-seq:
705
+ * node.attributes? -&gt; (true|false)
706
+ *
707
+ * Determine whether this node has properties
708
+ * (attributes).
709
+ */
710
+ VALUE
711
+ ruby_xml_node_attributes_q(VALUE self) {
712
+
713
+ </pre>
714
+ </div>
715
+ </div>
716
+ </div>
717
+
718
+ <div id="method-M000105" class="method-detail">
719
+ <a name="M000105"></a>
720
+
721
+ <div class="method-heading">
722
+ <a href="#M000105" class="method-signature">
723
+ <span class="method-name">node.base &rarr; "uri"<br />
724
+ </span>
725
+ </a>
726
+ </div>
727
+
728
+ <div class="method-description">
729
+ <p>
730
+ Obtain this node&#8217;s base URI.
731
+ </p>
732
+ <p><a class="source-toggle" href="#"
733
+ onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
734
+ <div class="method-source-code" id="M000105-source">
735
+ <pre>
736
+ /*
737
+ * call-seq:
738
+ * node.base -&gt; &quot;uri&quot;
739
+ *
740
+ * Obtain this node's base URI.
741
+ */
742
+ VALUE
743
+ ruby_xml_node_base_get(VALUE self) {
744
+
745
+ </pre>
746
+ </div>
747
+ </div>
748
+ </div>
749
+
750
+ <div id="method-M000106" class="method-detail">
751
+ <a name="M000106"></a>
752
+
753
+ <div class="method-heading">
754
+ <a href="#M000106" class="method-signature">
755
+ <span class="method-name">node.base = "uri"<br />
756
+ </span>
757
+ </a>
758
+ </div>
759
+
760
+ <div class="method-description">
761
+ <p>
762
+ <a href="Node/Set.html">Set</a> this node&#8217;s base URI.
763
+ </p>
764
+ <p><a class="source-toggle" href="#"
765
+ onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
766
+ <div class="method-source-code" id="M000106-source">
767
+ <pre>
768
+ /*
769
+ * call-seq:
770
+ * node.base = &quot;uri&quot;
771
+ *
772
+ * Set this node's base URI.
773
+ */
774
+ VALUE
775
+ ruby_xml_node_base_set(VALUE self, VALUE uri) {
776
+
777
+ </pre>
778
+ </div>
779
+ </div>
780
+ </div>
781
+
782
+ <div id="method-M000107" class="method-detail">
783
+ <a name="M000107"></a>
784
+
785
+ <div class="method-heading">
786
+ <a href="#M000107" class="method-signature">
787
+ <span class="method-name">node.empty? &rarr; (true|false)<br />
788
+ </span>
789
+ </a>
790
+ </div>
791
+
792
+ <div class="method-description">
793
+ <p>
794
+ Determine whether this node is empty.
795
+ </p>
796
+ <p><a class="source-toggle" href="#"
797
+ onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
798
+ <div class="method-source-code" id="M000107-source">
799
+ <pre>
800
+ /*
801
+ * call-seq:
802
+ * node.empty? -&gt; (true|false)
803
+ *
804
+ * Determine whether this node is empty.
805
+ */
806
+ VALUE
807
+ ruby_xml_node_empty_q(VALUE self) {
808
+
809
+ </pre>
810
+ </div>
811
+ </div>
812
+ </div>
813
+
814
+ <div id="method-M000108" class="method-detail">
815
+ <a name="M000108"></a>
816
+
817
+ <div class="method-heading">
818
+ <a href="#M000108" class="method-signature">
819
+ <span class="method-name">node.cdata? &rarr; (true|false)<br />
820
+ </span>
821
+ </a>
822
+ </div>
823
+
824
+ <div class="method-description">
825
+ <p>
826
+ Determine whether this is a CDATA node
827
+ </p>
828
+ <p><a class="source-toggle" href="#"
829
+ onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
830
+ <div class="method-source-code" id="M000108-source">
831
+ <pre>
832
+ /*
833
+ * call-seq:
834
+ * node.cdata? -&gt; (true|false)
835
+ *
836
+ * Determine whether this is a #CDATA node
837
+ */
838
+ VALUE
839
+ ruby_xml_node_cdata_q(VALUE self) {
840
+
841
+ </pre>
842
+ </div>
843
+ </div>
844
+ </div>
845
+
846
+ <div id="method-M000111" class="method-detail">
847
+ <a name="M000111"></a>
848
+
849
+ <div class="method-heading">
850
+ <a href="#M000111" class="method-signature">
851
+ <span class="method-name">node.child &rarr; node<br />
852
+ </span>
853
+ </a>
854
+ </div>
855
+
856
+ <div class="method-description">
857
+ <p>
858
+ Obtain this node&#8217;s first child node, if any.
859
+ </p>
860
+ <p><a class="source-toggle" href="#"
861
+ onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
862
+ <div class="method-source-code" id="M000111-source">
863
+ <pre>
864
+ /*
865
+ * call-seq:
866
+ * node.child -&gt; node
867
+ *
868
+ * Obtain this node's first child node, if any.
869
+ */
870
+ VALUE
871
+ ruby_xml_node_child_get(VALUE self) {
872
+
873
+ </pre>
874
+ </div>
875
+ </div>
876
+ </div>
877
+
878
+ <div id="method-M000113" class="method-detail">
879
+ <a name="M000113"></a>
880
+
881
+ <div class="method-heading">
882
+ <a href="#M000113" class="method-signature">
883
+ <span class="method-name">node.child = node<br />
884
+ </span>
885
+ </a>
886
+ </div>
887
+
888
+ <div class="method-description">
889
+ <p>
890
+ <a href="Node/Set.html">Set</a> a child node for this node. Also called for
891
+ &lt;&lt;
892
+ </p>
893
+ <p><a class="source-toggle" href="#"
894
+ onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
895
+ <div class="method-source-code" id="M000113-source">
896
+ <pre>
897
+ /*
898
+ * call-seq:
899
+ * node.child = node
900
+ *
901
+ * Set a child node for this node. Also called for &lt;&lt;
902
+ */
903
+ VALUE
904
+ ruby_xml_node_child_set(VALUE self, VALUE rnode) {
905
+
906
+ </pre>
907
+ </div>
908
+ </div>
909
+ </div>
910
+
911
+ <div id="method-M000112" class="method-detail">
912
+ <a name="M000112"></a>
913
+
914
+ <div class="method-heading">
915
+ <a href="#M000112" class="method-signature">
916
+ <span class="method-name">node.child? &rarr; (true|false)<br />
917
+ </span>
918
+ </a>
919
+ </div>
920
+
921
+ <div class="method-description">
922
+ <p>
923
+ Determine whether this node has at least one child.
924
+ </p>
925
+ <p><a class="source-toggle" href="#"
926
+ onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
927
+ <div class="method-source-code" id="M000112-source">
928
+ <pre>
929
+ /*
930
+ * call-seq:
931
+ * node.child? -&gt; (true|false)
932
+ *
933
+ * Determine whether this node has at least one child.
934
+ */
935
+ VALUE
936
+ ruby_xml_node_child_q(VALUE self) {
937
+
938
+ </pre>
939
+ </div>
940
+ </div>
941
+ </div>
942
+
943
+ <div id="method-M000114" class="method-detail">
944
+ <a name="M000114"></a>
945
+
946
+ <div class="method-heading">
947
+ <a href="#M000114" class="method-signature">
948
+ <span class="method-name">node.child_add(node)<br />
949
+ </span>
950
+ </a>
951
+ </div>
952
+
953
+ <div class="method-description">
954
+ <p>
955
+ <a href="Node/Set.html">Set</a> a child node for this node.
956
+ </p>
957
+ <p><a class="source-toggle" href="#"
958
+ onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
959
+ <div class="method-source-code" id="M000114-source">
960
+ <pre>
961
+ /*
962
+ * call-seq:
963
+ * node.child_add(node)
964
+ *
965
+ * Set a child node for this node.
966
+ */
967
+ VALUE
968
+ ruby_xml_node_child_add(VALUE self, VALUE rnode) {
969
+
970
+ </pre>
971
+ </div>
972
+ </div>
973
+ </div>
974
+
975
+ <div id="method-M000115" class="method-detail">
976
+ <a name="M000115"></a>
977
+
978
+ <div class="method-heading">
979
+ <a href="#M000115" class="method-signature">
980
+ <span class="method-name">node.child &rarr; node<br />
981
+ </span>
982
+ </a>
983
+ </div>
984
+
985
+ <div class="method-description">
986
+ <p>
987
+ Obtain this node&#8217;s first child node, if any.
988
+ </p>
989
+ <p><a class="source-toggle" href="#"
990
+ onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
991
+ <div class="method-source-code" id="M000115-source">
992
+ <pre>
993
+ /*
994
+ * call-seq:
995
+ * node.child -&gt; node
996
+ *
997
+ * Obtain this node's first child node, if any.
998
+ */
999
+ VALUE
1000
+ ruby_xml_node_child_get(VALUE self) {
1001
+
1002
+ </pre>
1003
+ </div>
1004
+ </div>
1005
+ </div>
1006
+
1007
+ <div id="method-M000116" class="method-detail">
1008
+ <a name="M000116"></a>
1009
+
1010
+ <div class="method-heading">
1011
+ <a href="#M000116" class="method-signature">
1012
+ <span class="method-name">node.child? &rarr; (true|false)<br />
1013
+ </span>
1014
+ </a>
1015
+ </div>
1016
+
1017
+ <div class="method-description">
1018
+ <p>
1019
+ Determine whether this node has at least one child.
1020
+ </p>
1021
+ <p><a class="source-toggle" href="#"
1022
+ onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
1023
+ <div class="method-source-code" id="M000116-source">
1024
+ <pre>
1025
+ /*
1026
+ * call-seq:
1027
+ * node.child? -&gt; (true|false)
1028
+ *
1029
+ * Determine whether this node has at least one child.
1030
+ */
1031
+ VALUE
1032
+ ruby_xml_node_child_q(VALUE self) {
1033
+
1034
+ </pre>
1035
+ </div>
1036
+ </div>
1037
+ </div>
1038
+
1039
+ <div id="method-M000186" class="method-detail">
1040
+ <a name="M000186"></a>
1041
+
1042
+ <div class="method-heading">
1043
+ <a href="#M000186" class="method-signature">
1044
+ <span class="method-name">clone</span><span class="method-args">()</span>
1045
+ </a>
1046
+ </div>
1047
+
1048
+ <div class="method-description">
1049
+ <p><a class="source-toggle" href="#"
1050
+ onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
1051
+ <div class="method-source-code" id="M000186-source">
1052
+ <pre>
1053
+ <span class="ruby-comment cmt"># File lib/libxml.rb, line 101</span>
1054
+ 101: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone</span>
1055
+ 102: <span class="ruby-identifier">copy</span>(<span class="ruby-keyword kw">false</span>)
1056
+ 103: <span class="ruby-keyword kw">end</span>
1057
+ </pre>
1058
+ </div>
1059
+ </div>
1060
+ </div>
1061
+
1062
+ <div id="method-M000109" class="method-detail">
1063
+ <a name="M000109"></a>
1064
+
1065
+ <div class="method-heading">
1066
+ <a href="#M000109" class="method-signature">
1067
+ <span class="method-name">node.comment? &rarr; (true|false)<br />
1068
+ </span>
1069
+ </a>
1070
+ </div>
1071
+
1072
+ <div class="method-description">
1073
+ <p>
1074
+ Determine whether this is a comment node
1075
+ </p>
1076
+ <p><a class="source-toggle" href="#"
1077
+ onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
1078
+ <div class="method-source-code" id="M000109-source">
1079
+ <pre>
1080
+ /*
1081
+ * call-seq:
1082
+ * node.comment? -&gt; (true|false)
1083
+ *
1084
+ * Determine whether this is a comment node
1085
+ */
1086
+ VALUE
1087
+ ruby_xml_node_comment_q(VALUE self) {
1088
+
1089
+ </pre>
1090
+ </div>
1091
+ </div>
1092
+ </div>
1093
+
1094
+ <div id="method-M000117" class="method-detail">
1095
+ <a name="M000117"></a>
1096
+
1097
+ <div class="method-heading">
1098
+ <a href="#M000117" class="method-signature">
1099
+ <span class="method-name">node.content &rarr; "string"<br />
1100
+ </span>
1101
+ </a>
1102
+ </div>
1103
+
1104
+ <div class="method-description">
1105
+ <p>
1106
+ Obtain this node&#8217;s content as a string.
1107
+ </p>
1108
+ <p><a class="source-toggle" href="#"
1109
+ onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
1110
+ <div class="method-source-code" id="M000117-source">
1111
+ <pre>
1112
+ /*
1113
+ * call-seq:
1114
+ * node.content -&gt; &quot;string&quot;
1115
+ *
1116
+ * Obtain this node's content as a string.
1117
+ */
1118
+ VALUE
1119
+ ruby_xml_node_content_get(VALUE self) {
1120
+
1121
+ </pre>
1122
+ </div>
1123
+ </div>
1124
+ </div>
1125
+
1126
+ <div id="method-M000118" class="method-detail">
1127
+ <a name="M000118"></a>
1128
+
1129
+ <div class="method-heading">
1130
+ <a href="#M000118" class="method-signature">
1131
+ <span class="method-name">node.content = "string"<br />
1132
+ </span>
1133
+ </a>
1134
+ </div>
1135
+
1136
+ <div class="method-description">
1137
+ <p>
1138
+ <a href="Node/Set.html">Set</a> this node&#8217;s content to the specified
1139
+ string.
1140
+ </p>
1141
+ <p><a class="source-toggle" href="#"
1142
+ onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
1143
+ <div class="method-source-code" id="M000118-source">
1144
+ <pre>
1145
+ /*
1146
+ * call-seq:
1147
+ * node.content = &quot;string&quot;
1148
+ *
1149
+ * Set this node's content to the specified string.
1150
+ */
1151
+ VALUE
1152
+ ruby_xml_node_content_set(VALUE self, VALUE content) {
1153
+
1154
+ </pre>
1155
+ </div>
1156
+ </div>
1157
+ </div>
1158
+
1159
+ <div id="method-M000119" class="method-detail">
1160
+ <a name="M000119"></a>
1161
+
1162
+ <div class="method-heading">
1163
+ <a href="#M000119" class="method-signature">
1164
+ <span class="method-name">node.content_stripped &rarr; "string"<br />
1165
+ </span>
1166
+ </a>
1167
+ </div>
1168
+
1169
+ <div class="method-description">
1170
+ <p>
1171
+ Obtain this node&#8217;s stripped content.
1172
+ </p>
1173
+ <p>
1174
+ <b>Deprecated</b>: Stripped content can be obtained via the
1175
+ <tt>content</tt> method.
1176
+ </p>
1177
+ <p><a class="source-toggle" href="#"
1178
+ onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
1179
+ <div class="method-source-code" id="M000119-source">
1180
+ <pre>
1181
+ /*
1182
+ * call-seq:
1183
+ * node.content_stripped -&gt; &quot;string&quot;
1184
+ *
1185
+ * Obtain this node's stripped content.
1186
+ *
1187
+ * *Deprecated*: Stripped content can be obtained via the
1188
+ * +content+ method.
1189
+ */
1190
+ VALUE
1191
+ ruby_xml_node_content_stripped_get(VALUE self) {
1192
+
1193
+ </pre>
1194
+ </div>
1195
+ </div>
1196
+ </div>
1197
+
1198
+ <div id="method-M000110" class="method-detail">
1199
+ <a name="M000110"></a>
1200
+
1201
+ <div class="method-heading">
1202
+ <a href="#M000110" class="method-signature">
1203
+ <span class="method-name">node.copy &rarr; node<br />
1204
+ </span>
1205
+ </a>
1206
+ </div>
1207
+
1208
+ <div class="method-description">
1209
+ <p>
1210
+ Create a copy of this node.
1211
+ </p>
1212
+ <p><a class="source-toggle" href="#"
1213
+ onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
1214
+ <div class="method-source-code" id="M000110-source">
1215
+ <pre>
1216
+ /*
1217
+ * call-seq:
1218
+ * node.copy -&gt; node
1219
+ *
1220
+ * Create a copy of this node.
1221
+ */
1222
+ VALUE
1223
+ ruby_xml_node_copy(VALUE self, VALUE deep) {
1224
+
1225
+ </pre>
1226
+ </div>
1227
+ </div>
1228
+ </div>
1229
+
1230
+ <div id="method-M000126" class="method-detail">
1231
+ <a name="M000126"></a>
1232
+
1233
+ <div class="method-heading">
1234
+ <a href="#M000126" class="method-signature">
1235
+ <span class="method-name">node.debug_dump &rarr; (true|nil)<br />
1236
+ </span>
1237
+ </a>
1238
+ </div>
1239
+
1240
+ <div class="method-description">
1241
+ <p>
1242
+ Dump this node to stdout, including any debugging information.
1243
+ </p>
1244
+ <p><a class="source-toggle" href="#"
1245
+ onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
1246
+ <div class="method-source-code" id="M000126-source">
1247
+ <pre>
1248
+ /*
1249
+ * call-seq:
1250
+ * node.debug_dump -&gt; (true|nil)
1251
+ *
1252
+ * Dump this node to stdout, including any debugging
1253
+ * information.
1254
+ */
1255
+ VALUE
1256
+ ruby_xml_node_debug_dump(VALUE self) {
1257
+
1258
+ </pre>
1259
+ </div>
1260
+ </div>
1261
+ </div>
1262
+
1263
+ <div id="method-M000120" class="method-detail">
1264
+ <a name="M000120"></a>
1265
+
1266
+ <div class="method-heading">
1267
+ <a href="#M000120" class="method-signature">
1268
+ <span class="method-name">node.doc &rarr; document<br />
1269
+ </span>
1270
+ </a>
1271
+ </div>
1272
+
1273
+ <div class="method-description">
1274
+ <p>
1275
+ Obtain the <a href="Document.html">XML::Document</a> this node belongs to.
1276
+ </p>
1277
+ <p><a class="source-toggle" href="#"
1278
+ onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
1279
+ <div class="method-source-code" id="M000120-source">
1280
+ <pre>
1281
+ /*
1282
+ * call-seq:
1283
+ * node.doc -&gt; document
1284
+ *
1285
+ * Obtain the XML::Document this node belongs to.
1286
+ */
1287
+ VALUE
1288
+ ruby_xml_node_doc(VALUE self) {
1289
+
1290
+ </pre>
1291
+ </div>
1292
+ </div>
1293
+ </div>
1294
+
1295
+ <div id="method-M000121" class="method-detail">
1296
+ <a name="M000121"></a>
1297
+
1298
+ <div class="method-heading">
1299
+ <a href="#M000121" class="method-signature">
1300
+ <span class="method-name">node.docbook? &rarr; (true|false)<br />
1301
+ </span>
1302
+ </a>
1303
+ </div>
1304
+
1305
+ <div class="method-description">
1306
+ <p>
1307
+ Determine whether this is a docbook node.
1308
+ </p>
1309
+ <p><a class="source-toggle" href="#"
1310
+ onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
1311
+ <div class="method-source-code" id="M000121-source">
1312
+ <pre>
1313
+ /*
1314
+ * call-seq:
1315
+ * node.docbook? -&gt; (true|false)
1316
+ *
1317
+ * Determine whether this is a docbook node.
1318
+ */
1319
+ VALUE
1320
+ ruby_xml_node_docbook_doc_q(VALUE self) {
1321
+
1322
+ </pre>
1323
+ </div>
1324
+ </div>
1325
+ </div>
1326
+
1327
+ <div id="method-M000122" class="method-detail">
1328
+ <a name="M000122"></a>
1329
+
1330
+ <div class="method-heading">
1331
+ <a href="#M000122" class="method-signature">
1332
+ <span class="method-name">node.doctype? &rarr; (true|false)<br />
1333
+ </span>
1334
+ </a>
1335
+ </div>
1336
+
1337
+ <div class="method-description">
1338
+ <p>
1339
+ Determine whether this is a DOCTYPE node.
1340
+ </p>
1341
+ <p><a class="source-toggle" href="#"
1342
+ onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
1343
+ <div class="method-source-code" id="M000122-source">
1344
+ <pre>
1345
+ /*
1346
+ * call-seq:
1347
+ * node.doctype? -&gt; (true|false)
1348
+ *
1349
+ * Determine whether this is a DOCTYPE node.
1350
+ */
1351
+ VALUE
1352
+ ruby_xml_node_doctype_q(VALUE self) {
1353
+
1354
+ </pre>
1355
+ </div>
1356
+ </div>
1357
+ </div>
1358
+
1359
+ <div id="method-M000123" class="method-detail">
1360
+ <a name="M000123"></a>
1361
+
1362
+ <div class="method-heading">
1363
+ <a href="#M000123" class="method-signature">
1364
+ <span class="method-name">node.document? &rarr; (true|false)<br />
1365
+ </span>
1366
+ </a>
1367
+ </div>
1368
+
1369
+ <div class="method-description">
1370
+ <p>
1371
+ Determine whether this is a document node.
1372
+ </p>
1373
+ <p><a class="source-toggle" href="#"
1374
+ onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
1375
+ <div class="method-source-code" id="M000123-source">
1376
+ <pre>
1377
+ /*
1378
+ * call-seq:
1379
+ * node.document? -&gt; (true|false)
1380
+ *
1381
+ * Determine whether this is a document node.
1382
+ */
1383
+ VALUE
1384
+ ruby_xml_node_document_q(VALUE self) {
1385
+
1386
+ </pre>
1387
+ </div>
1388
+ </div>
1389
+ </div>
1390
+
1391
+ <div id="method-M000124" class="method-detail">
1392
+ <a name="M000124"></a>
1393
+
1394
+ <div class="method-heading">
1395
+ <a href="#M000124" class="method-signature">
1396
+ <span class="method-name">node.dtd? &rarr; (true|false)<br />
1397
+ </span>
1398
+ </a>
1399
+ </div>
1400
+
1401
+ <div class="method-description">
1402
+ <p>
1403
+ Determine whether this is a DTD node.
1404
+ </p>
1405
+ <p><a class="source-toggle" href="#"
1406
+ onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
1407
+ <div class="method-source-code" id="M000124-source">
1408
+ <pre>
1409
+ /*
1410
+ * call-seq:
1411
+ * node.dtd? -&gt; (true|false)
1412
+ *
1413
+ * Determine whether this is a DTD node.
1414
+ */
1415
+ VALUE
1416
+ ruby_xml_node_dtd_q(VALUE self) {
1417
+
1418
+ </pre>
1419
+ </div>
1420
+ </div>
1421
+ </div>
1422
+
1423
+ <div id="method-M000125" class="method-detail">
1424
+ <a name="M000125"></a>
1425
+
1426
+ <div class="method-heading">
1427
+ <a href="#M000125" class="method-signature">
1428
+ <span class="method-name">node.dump &rarr; (true|nil)<br />
1429
+ </span>
1430
+ </a>
1431
+ </div>
1432
+
1433
+ <div class="method-description">
1434
+ <p>
1435
+ Dump this node to stdout.
1436
+ </p>
1437
+ <p><a class="source-toggle" href="#"
1438
+ onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
1439
+ <div class="method-source-code" id="M000125-source">
1440
+ <pre>
1441
+ /*
1442
+ * call-seq:
1443
+ * node.dump -&gt; (true|nil)
1444
+ *
1445
+ * Dump this node to stdout.
1446
+ */
1447
+ VALUE
1448
+ ruby_xml_node_dump(VALUE self) {
1449
+
1450
+ </pre>
1451
+ </div>
1452
+ </div>
1453
+ </div>
1454
+
1455
+ <div id="method-M000184" class="method-detail">
1456
+ <a name="M000184"></a>
1457
+
1458
+ <div class="method-heading">
1459
+ <span class="method-name">each</span><span class="method-args">(&amp;blk)</span>
1460
+ </div>
1461
+
1462
+ <div class="method-description">
1463
+ <p>
1464
+ Alias for <a href="Node.html#M000181">each_child</a>
1465
+ </p>
1466
+ </div>
1467
+ </div>
1468
+
1469
+ <div id="method-M000182" class="method-detail">
1470
+ <a name="M000182"></a>
1471
+
1472
+ <div class="method-heading">
1473
+ <a href="#M000182" class="method-signature">
1474
+ <span class="method-name">each_attr</span><span class="method-args">(&amp;blk)</span>
1475
+ </a>
1476
+ </div>
1477
+
1478
+ <div class="method-description">
1479
+ <p><a class="source-toggle" href="#"
1480
+ onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
1481
+ <div class="method-source-code" id="M000182-source">
1482
+ <pre>
1483
+ <span class="ruby-comment cmt"># File lib/libxml.rb, line 82</span>
1484
+ 82: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_attr</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
1485
+ 83: <span class="ruby-identifier">siblings</span>(<span class="ruby-identifier">properties</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
1486
+ 84: <span class="ruby-keyword kw">end</span>
1487
+ </pre>
1488
+ </div>
1489
+ </div>
1490
+ </div>
1491
+
1492
+ <div id="method-M000181" class="method-detail">
1493
+ <a name="M000181"></a>
1494
+
1495
+ <div class="method-heading">
1496
+ <a href="#M000181" class="method-signature">
1497
+ <span class="method-name">each_child</span><span class="method-args">(&amp;blk)</span>
1498
+ </a>
1499
+ </div>
1500
+
1501
+ <div class="method-description">
1502
+ <p>
1503
+ maybe these don&#8217;t belong on all nodes&#8230;
1504
+ </p>
1505
+ <p><a class="source-toggle" href="#"
1506
+ onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
1507
+ <div class="method-source-code" id="M000181-source">
1508
+ <pre>
1509
+ <span class="ruby-comment cmt"># File lib/libxml.rb, line 78</span>
1510
+ 78: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_child</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
1511
+ 79: <span class="ruby-identifier">siblings</span>(<span class="ruby-identifier">child</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
1512
+ 80: <span class="ruby-keyword kw">end</span>
1513
+ </pre>
1514
+ </div>
1515
+ </div>
1516
+ </div>
1517
+
1518
+ <div id="method-M000183" class="method-detail">
1519
+ <a name="M000183"></a>
1520
+
1521
+ <div class="method-heading">
1522
+ <a href="#M000183" class="method-signature">
1523
+ <span class="method-name">each_sibling</span><span class="method-args">(&amp;blk)</span>
1524
+ </a>
1525
+ </div>
1526
+
1527
+ <div class="method-description">
1528
+ <p>
1529
+ all siblings INCLUDING self
1530
+ </p>
1531
+ <p><a class="source-toggle" href="#"
1532
+ onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
1533
+ <div class="method-source-code" id="M000183-source">
1534
+ <pre>
1535
+ <span class="ruby-comment cmt"># File lib/libxml.rb, line 87</span>
1536
+ 87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_sibling</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
1537
+ 88: <span class="ruby-identifier">siblings</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
1538
+ 89: <span class="ruby-keyword kw">end</span>
1539
+ </pre>
1540
+ </div>
1541
+ </div>
1542
+ </div>
1543
+
1544
+ <div id="method-M000127" class="method-detail">
1545
+ <a name="M000127"></a>
1546
+
1547
+ <div class="method-heading">
1548
+ <a href="#M000127" class="method-signature">
1549
+ <span class="method-name">node.element? &rarr; (true|false)<br />
1550
+ </span>
1551
+ </a>
1552
+ </div>
1553
+
1554
+ <div class="method-description">
1555
+ <p>
1556
+ Determine whether this is an element node.
1557
+ </p>
1558
+ <p><a class="source-toggle" href="#"
1559
+ onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
1560
+ <div class="method-source-code" id="M000127-source">
1561
+ <pre>
1562
+ /*
1563
+ * call-seq:
1564
+ * node.element? -&gt; (true|false)
1565
+ *
1566
+ * Determine whether this is an element node.
1567
+ */
1568
+ VALUE
1569
+ ruby_xml_node_element_q(VALUE self) {
1570
+
1571
+ </pre>
1572
+ </div>
1573
+ </div>
1574
+ </div>
1575
+
1576
+ <div id="method-M000128" class="method-detail">
1577
+ <a name="M000128"></a>
1578
+
1579
+ <div class="method-heading">
1580
+ <a href="#M000128" class="method-signature">
1581
+ <span class="method-name">node.element_decl? &rarr; (true|false)<br />
1582
+ </span>
1583
+ </a>
1584
+ </div>
1585
+
1586
+ <div class="method-description">
1587
+ <p>
1588
+ Determine whether this is an element declaration node.
1589
+ </p>
1590
+ <p><a class="source-toggle" href="#"
1591
+ onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
1592
+ <div class="method-source-code" id="M000128-source">
1593
+ <pre>
1594
+ /*
1595
+ * call-seq:
1596
+ * node.element_decl? -&gt; (true|false)
1597
+ *
1598
+ * Determine whether this is an element declaration node.
1599
+ */
1600
+ VALUE
1601
+ ruby_xml_node_element_decl_q(VALUE self) {
1602
+
1603
+ </pre>
1604
+ </div>
1605
+ </div>
1606
+ </div>
1607
+
1608
+ <div id="method-M000129" class="method-detail">
1609
+ <a name="M000129"></a>
1610
+
1611
+ <div class="method-heading">
1612
+ <a href="#M000129" class="method-signature">
1613
+ <span class="method-name">node.empty? &rarr; (true|false)<br />
1614
+ </span>
1615
+ </a>
1616
+ </div>
1617
+
1618
+ <div class="method-description">
1619
+ <p>
1620
+ Determine whether this node is empty.
1621
+ </p>
1622
+ <p><a class="source-toggle" href="#"
1623
+ onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
1624
+ <div class="method-source-code" id="M000129-source">
1625
+ <pre>
1626
+ /*
1627
+ * call-seq:
1628
+ * node.empty? -&gt; (true|false)
1629
+ *
1630
+ * Determine whether this node is empty.
1631
+ */
1632
+ VALUE
1633
+ ruby_xml_node_empty_q(VALUE self) {
1634
+
1635
+ </pre>
1636
+ </div>
1637
+ </div>
1638
+ </div>
1639
+
1640
+ <div id="method-M000130" class="method-detail">
1641
+ <a name="M000130"></a>
1642
+
1643
+ <div class="method-heading">
1644
+ <a href="#M000130" class="method-signature">
1645
+ <span class="method-name">node.entity? &rarr; (true|false)<br />
1646
+ </span>
1647
+ </a>
1648
+ </div>
1649
+
1650
+ <div class="method-description">
1651
+ <p>
1652
+ Determine whether this is an entity node.
1653
+ </p>
1654
+ <p><a class="source-toggle" href="#"
1655
+ onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
1656
+ <div class="method-source-code" id="M000130-source">
1657
+ <pre>
1658
+ /*
1659
+ * call-seq:
1660
+ * node.entity? -&gt; (true|false)
1661
+ *
1662
+ * Determine whether this is an entity node.
1663
+ */
1664
+ VALUE
1665
+ ruby_xml_node_entity_q(VALUE self) {
1666
+
1667
+ </pre>
1668
+ </div>
1669
+ </div>
1670
+ </div>
1671
+
1672
+ <div id="method-M000131" class="method-detail">
1673
+ <a name="M000131"></a>
1674
+
1675
+ <div class="method-heading">
1676
+ <a href="#M000131" class="method-signature">
1677
+ <span class="method-name">node.entity_ref? &rarr; (true|false)<br />
1678
+ </span>
1679
+ </a>
1680
+ </div>
1681
+
1682
+ <div class="method-description">
1683
+ <p>
1684
+ Determine whether this is an entity reference node.
1685
+ </p>
1686
+ <p><a class="source-toggle" href="#"
1687
+ onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
1688
+ <div class="method-source-code" id="M000131-source">
1689
+ <pre>
1690
+ /*
1691
+ * call-seq:
1692
+ * node.entity_ref? -&gt; (true|false)
1693
+ *
1694
+ * Determine whether this is an entity reference node.
1695
+ */
1696
+ VALUE
1697
+ ruby_xml_node_entity_ref_q(VALUE self) {
1698
+
1699
+ </pre>
1700
+ </div>
1701
+ </div>
1702
+ </div>
1703
+
1704
+ <div id="method-M000132" class="method-detail">
1705
+ <a name="M000132"></a>
1706
+
1707
+ <div class="method-heading">
1708
+ <a href="#M000132" class="method-signature">
1709
+ <span class="method-name">node.eql?(other_node) => (true|false)<br />
1710
+ </span>
1711
+ </a>
1712
+ </div>
1713
+
1714
+ <div class="method-description">
1715
+ <p>
1716
+ Test equality between the two nodes. Two nodes are equal if they are the
1717
+ same node or have the same <a href="../XML.html">XML</a> representation.
1718
+ </p>
1719
+ <p><a class="source-toggle" href="#"
1720
+ onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
1721
+ <div class="method-source-code" id="M000132-source">
1722
+ <pre>
1723
+ /*
1724
+ * call-seq:
1725
+ * node.eql?(other_node) =&gt; (true|false)
1726
+ *
1727
+ * Test equality between the two nodes. Two nodes are equal
1728
+ * if they are the same node or have the same XML representation.*/
1729
+ VALUE
1730
+ ruby_xml_node_eql_q(VALUE self, VALUE other) {
1731
+
1732
+ </pre>
1733
+ </div>
1734
+ </div>
1735
+ </div>
1736
+
1737
+ <div id="method-M000133" class="method-detail">
1738
+ <a name="M000133"></a>
1739
+
1740
+ <div class="method-heading">
1741
+ <a href="#M000133" class="method-signature">
1742
+ <span class="method-name">node.find(xpath_expr, namespace = [any]) &rarr; nodeset<br />
1743
+ </span>
1744
+ </a>
1745
+ </div>
1746
+
1747
+ <div class="method-description">
1748
+ <p>
1749
+ Find nodes matching the specified xpath expression, optionally using the
1750
+ specified namespaces. Returns an <a
1751
+ href="Node/Set.html">XML::Node::Set</a>.
1752
+ </p>
1753
+ <p><a class="source-toggle" href="#"
1754
+ onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
1755
+ <div class="method-source-code" id="M000133-source">
1756
+ <pre>
1757
+ /*
1758
+ * call-seq:
1759
+ * node.find(xpath_expr, namespace = [any]) -&gt; nodeset
1760
+ *
1761
+ * Find nodes matching the specified xpath expression, optionally
1762
+ * using the specified namespaces. Returns an XML::Node::Set.
1763
+ */
1764
+ VALUE
1765
+ ruby_xml_node_find(int argc, VALUE *argv, VALUE self) {
1766
+
1767
+ </pre>
1768
+ </div>
1769
+ </div>
1770
+ </div>
1771
+
1772
+ <div id="method-M000134" class="method-detail">
1773
+ <a name="M000134"></a>
1774
+
1775
+ <div class="method-heading">
1776
+ <a href="#M000134" class="method-signature">
1777
+ <span class="method-name">node.find_first(xpath_expr, namespace = [any]) &rarr; nodeset<br />
1778
+ </span>
1779
+ </a>
1780
+ </div>
1781
+
1782
+ <div class="method-description">
1783
+ <p>
1784
+ Find the first node matching the specified xpath expression, optionally
1785
+ using the specified namespaces. Returns an <a
1786
+ href="Node.html">XML::Node</a>.
1787
+ </p>
1788
+ <p><a class="source-toggle" href="#"
1789
+ onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
1790
+ <div class="method-source-code" id="M000134-source">
1791
+ <pre>
1792
+ /*
1793
+ * call-seq:
1794
+ * node.find_first(xpath_expr, namespace = [any]) -&gt; nodeset
1795
+ *
1796
+ * Find the first node matching the specified xpath expression, optionally
1797
+ * using the specified namespaces. Returns an XML::Node.
1798
+ */
1799
+ VALUE
1800
+ ruby_xml_node_find_first(int argc, VALUE *argv, VALUE self) {
1801
+
1802
+ </pre>
1803
+ </div>
1804
+ </div>
1805
+ </div>
1806
+
1807
+ <div id="method-M000135" class="method-detail">
1808
+ <a name="M000135"></a>
1809
+
1810
+ <div class="method-heading">
1811
+ <a href="#M000135" class="method-signature">
1812
+ <span class="method-name">node.fragment? &rarr; (true|false)<br />
1813
+ </span>
1814
+ </a>
1815
+ </div>
1816
+
1817
+ <div class="method-description">
1818
+ <p>
1819
+ Determine whether this node is a fragment.
1820
+ </p>
1821
+ <p><a class="source-toggle" href="#"
1822
+ onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
1823
+ <div class="method-source-code" id="M000135-source">
1824
+ <pre>
1825
+ /*
1826
+ * call-seq:
1827
+ * node.fragment? -&gt; (true|false)
1828
+ *
1829
+ * Determine whether this node is a fragment.
1830
+ */
1831
+ VALUE
1832
+ ruby_xml_node_fragment_q(VALUE self) {
1833
+
1834
+ </pre>
1835
+ </div>
1836
+ </div>
1837
+ </div>
1838
+
1839
+ <div id="method-M000136" class="method-detail">
1840
+ <a name="M000136"></a>
1841
+
1842
+ <div class="method-heading">
1843
+ <a href="#M000136" class="method-signature">
1844
+ <span class="method-name">node.html_doc? &rarr; (true|false)<br />
1845
+ </span>
1846
+ </a>
1847
+ </div>
1848
+
1849
+ <div class="method-description">
1850
+ <p>
1851
+ Determine whether this node is an html document node.
1852
+ </p>
1853
+ <p><a class="source-toggle" href="#"
1854
+ onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
1855
+ <div class="method-source-code" id="M000136-source">
1856
+ <pre>
1857
+ /*
1858
+ * call-seq:
1859
+ * node.html_doc? -&gt; (true|false)
1860
+ *
1861
+ * Determine whether this node is an html document node.
1862
+ */
1863
+ VALUE
1864
+ ruby_xml_node_html_doc_q(VALUE self) {
1865
+
1866
+ </pre>
1867
+ </div>
1868
+ </div>
1869
+ </div>
1870
+
1871
+ <div id="method-M000137" class="method-detail">
1872
+ <a name="M000137"></a>
1873
+
1874
+ <div class="method-heading">
1875
+ <a href="#M000137" class="method-signature">
1876
+ <span class="method-name">node.lang &rarr; "string"<br />
1877
+ </span>
1878
+ </a>
1879
+ </div>
1880
+
1881
+ <div class="method-description">
1882
+ <p>
1883
+ Obtain the language set for this node, if any. This is set in <a
1884
+ href="../XML.html">XML</a> via the xml:lang attribute.
1885
+ </p>
1886
+ <p><a class="source-toggle" href="#"
1887
+ onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
1888
+ <div class="method-source-code" id="M000137-source">
1889
+ <pre>
1890
+ /*
1891
+ * call-seq:
1892
+ * node.lang -&gt; &quot;string&quot;
1893
+ *
1894
+ * Obtain the language set for this node, if any.
1895
+ * This is set in XML via the xml:lang attribute.
1896
+ */
1897
+ VALUE
1898
+ ruby_xml_node_lang_get(VALUE self) {
1899
+
1900
+ </pre>
1901
+ </div>
1902
+ </div>
1903
+ </div>
1904
+
1905
+ <div id="method-M000138" class="method-detail">
1906
+ <a name="M000138"></a>
1907
+
1908
+ <div class="method-heading">
1909
+ <a href="#M000138" class="method-signature">
1910
+ <span class="method-name">node.lang = "string"<br />
1911
+ </span>
1912
+ </a>
1913
+ </div>
1914
+
1915
+ <div class="method-description">
1916
+ <p>
1917
+ <a href="Node/Set.html">Set</a> the language for this node. This affects
1918
+ the value of the xml:lang attribute.
1919
+ </p>
1920
+ <p><a class="source-toggle" href="#"
1921
+ onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
1922
+ <div class="method-source-code" id="M000138-source">
1923
+ <pre>
1924
+ /*
1925
+ * call-seq:
1926
+ * node.lang = &quot;string&quot;
1927
+ *
1928
+ * Set the language for this node. This affects the value
1929
+ * of the xml:lang attribute.
1930
+ */
1931
+ VALUE
1932
+ ruby_xml_node_lang_set(VALUE self, VALUE lang) {
1933
+
1934
+ </pre>
1935
+ </div>
1936
+ </div>
1937
+ </div>
1938
+
1939
+ <div id="method-M000139" class="method-detail">
1940
+ <a name="M000139"></a>
1941
+
1942
+ <div class="method-heading">
1943
+ <a href="#M000139" class="method-signature">
1944
+ <span class="method-name">node.last &rarr; node<br />
1945
+ </span>
1946
+ </a>
1947
+ </div>
1948
+
1949
+ <div class="method-description">
1950
+ <p>
1951
+ Obtain the last child node of this node, if any.
1952
+ </p>
1953
+ <p><a class="source-toggle" href="#"
1954
+ onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
1955
+ <div class="method-source-code" id="M000139-source">
1956
+ <pre>
1957
+ /*
1958
+ * call-seq:
1959
+ * node.last -&gt; node
1960
+ *
1961
+ * Obtain the last child node of this node, if any.
1962
+ */
1963
+ VALUE
1964
+ ruby_xml_node_last_get(VALUE self) {
1965
+
1966
+ </pre>
1967
+ </div>
1968
+ </div>
1969
+ </div>
1970
+
1971
+ <div id="method-M000140" class="method-detail">
1972
+ <a name="M000140"></a>
1973
+
1974
+ <div class="method-heading">
1975
+ <a href="#M000140" class="method-signature">
1976
+ <span class="method-name">node.last? &rarr; (true|false)<br />
1977
+ </span>
1978
+ </a>
1979
+ </div>
1980
+
1981
+ <div class="method-description">
1982
+ <p>
1983
+ Determine whether this node has a last child node.
1984
+ </p>
1985
+ <p><a class="source-toggle" href="#"
1986
+ onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
1987
+ <div class="method-source-code" id="M000140-source">
1988
+ <pre>
1989
+ /*
1990
+ * call-seq:
1991
+ * node.last? -&gt; (true|false)
1992
+ *
1993
+ * Determine whether this node has a last child node.
1994
+ */
1995
+ VALUE
1996
+ ruby_xml_node_last_q(VALUE self) {
1997
+
1998
+ </pre>
1999
+ </div>
2000
+ </div>
2001
+ </div>
2002
+
2003
+ <div id="method-M000141" class="method-detail">
2004
+ <a name="M000141"></a>
2005
+
2006
+ <div class="method-heading">
2007
+ <a href="#M000141" class="method-signature">
2008
+ <span class="method-name">node.line_num &rarr; num<br />
2009
+ </span>
2010
+ </a>
2011
+ </div>
2012
+
2013
+ <div class="method-description">
2014
+ <p>
2015
+ Obtain the line number (in the <a href="../XML.html">XML</a> document) that
2016
+ this node was read from. If <tt>default_line_numbers</tt> is set false (the
2017
+ default), this method returns zero.
2018
+ </p>
2019
+ <p><a class="source-toggle" href="#"
2020
+ onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
2021
+ <div class="method-source-code" id="M000141-source">
2022
+ <pre>
2023
+ /*
2024
+ * call-seq:
2025
+ * node.line_num -&gt; num
2026
+ *
2027
+ * Obtain the line number (in the XML document) that this
2028
+ * node was read from. If +default_line_numbers+ is set
2029
+ * false (the default), this method returns zero.
2030
+ */
2031
+ VALUE
2032
+ ruby_xml_node_line_num(VALUE self) {
2033
+
2034
+ </pre>
2035
+ </div>
2036
+ </div>
2037
+ </div>
2038
+
2039
+ <div id="method-M000142" class="method-detail">
2040
+ <a name="M000142"></a>
2041
+
2042
+ <div class="method-heading">
2043
+ <a href="#M000142" class="method-signature">
2044
+ <span class="method-name">node.name &rarr; "string"<br />
2045
+ </span>
2046
+ </a>
2047
+ </div>
2048
+
2049
+ <div class="method-description">
2050
+ <p>
2051
+ Obtain this node&#8217;s name.
2052
+ </p>
2053
+ <p><a class="source-toggle" href="#"
2054
+ onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
2055
+ <div class="method-source-code" id="M000142-source">
2056
+ <pre>
2057
+ /*
2058
+ * call-seq:
2059
+ * node.name -&gt; &quot;string&quot;
2060
+ *
2061
+ * Obtain this node's name.
2062
+ */
2063
+ VALUE
2064
+ ruby_xml_node_name_get(VALUE self) {
2065
+
2066
+ </pre>
2067
+ </div>
2068
+ </div>
2069
+ </div>
2070
+
2071
+ <div id="method-M000143" class="method-detail">
2072
+ <a name="M000143"></a>
2073
+
2074
+ <div class="method-heading">
2075
+ <a href="#M000143" class="method-signature">
2076
+ <span class="method-name">node.name = "string"<br />
2077
+ </span>
2078
+ </a>
2079
+ </div>
2080
+
2081
+ <div class="method-description">
2082
+ <p>
2083
+ <a href="Node/Set.html">Set</a> this node&#8217;s name.
2084
+ </p>
2085
+ <p><a class="source-toggle" href="#"
2086
+ onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
2087
+ <div class="method-source-code" id="M000143-source">
2088
+ <pre>
2089
+ /*
2090
+ * call-seq:
2091
+ * node.name = &quot;string&quot;
2092
+ *
2093
+ * Set this node's name.
2094
+ */
2095
+ VALUE
2096
+ ruby_xml_node_name_set(VALUE self, VALUE name) {
2097
+
2098
+ </pre>
2099
+ </div>
2100
+ </div>
2101
+ </div>
2102
+
2103
+ <div id="method-M000144" class="method-detail">
2104
+ <a name="M000144"></a>
2105
+
2106
+ <div class="method-heading">
2107
+ <a href="#M000144" class="method-signature">
2108
+ <span class="method-name">node.namespace &rarr; [namespace, ..., namespace]<br />
2109
+ </span>
2110
+ </a>
2111
+ </div>
2112
+
2113
+ <div class="method-description">
2114
+ <p>
2115
+ Obtain an array of +<a href="NS.html">XML::NS</a>+ objects representing
2116
+ this node&#8217;s xmlns attributes
2117
+ </p>
2118
+ <p><a class="source-toggle" href="#"
2119
+ onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
2120
+ <div class="method-source-code" id="M000144-source">
2121
+ <pre>
2122
+ /*
2123
+ * call-seq:
2124
+ * node.namespace -&gt; [namespace, ..., namespace]
2125
+ *
2126
+ * Obtain an array of +XML::NS+ objects representing
2127
+ * this node's xmlns attributes
2128
+ */
2129
+ VALUE
2130
+ ruby_xml_node_namespace_get(VALUE self) {
2131
+
2132
+ </pre>
2133
+ </div>
2134
+ </div>
2135
+ </div>
2136
+
2137
+ <div id="method-M000147" class="method-detail">
2138
+ <a name="M000147"></a>
2139
+
2140
+ <div class="method-heading">
2141
+ <a href="#M000147" class="method-signature">
2142
+ <span class="method-name">node.namespace = namespace<br />
2143
+ </span>
2144
+ </a>
2145
+ </div>
2146
+
2147
+ <div class="method-description">
2148
+ <p>
2149
+ Add the specified <a href="NS.html">XML::NS</a> object to this node&#8217;s
2150
+ xmlns attributes.
2151
+ </p>
2152
+ <p><a class="source-toggle" href="#"
2153
+ onclick="toggleCode('M000147-source');return false;">[Source]</a></p>
2154
+ <div class="method-source-code" id="M000147-source">
2155
+ <pre>
2156
+ /*
2157
+ * call-seq:
2158
+ * node.namespace = namespace
2159
+ *
2160
+ * Add the specified XML::NS object to this node's xmlns attributes.
2161
+ */
2162
+ VALUE
2163
+ ruby_xml_node_namespace_set(int argc, VALUE *argv, VALUE self) {
2164
+
2165
+ </pre>
2166
+ </div>
2167
+ </div>
2168
+ </div>
2169
+
2170
+ <div id="method-M000146" class="method-detail">
2171
+ <a name="M000146"></a>
2172
+
2173
+ <div class="method-heading">
2174
+ <a href="#M000146" class="method-signature">
2175
+ <span class="method-name">node.namespace? &rarr; (true|false)<br />
2176
+ </span>
2177
+ </a>
2178
+ </div>
2179
+
2180
+ <div class="method-description">
2181
+ <p>
2182
+ Determine whether this node <b>is</b> (not has) a namespace node.
2183
+ </p>
2184
+ <p><a class="source-toggle" href="#"
2185
+ onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
2186
+ <div class="method-source-code" id="M000146-source">
2187
+ <pre>
2188
+ /*
2189
+ * call-seq:
2190
+ * node.namespace? -&gt; (true|false)
2191
+ *
2192
+ * Determine whether this node *is* (not has) a namespace
2193
+ * node.
2194
+ */
2195
+ VALUE
2196
+ ruby_xml_node_namespace_q(VALUE self) {
2197
+
2198
+ </pre>
2199
+ </div>
2200
+ </div>
2201
+ </div>
2202
+
2203
+ <div id="method-M000145" class="method-detail">
2204
+ <a name="M000145"></a>
2205
+
2206
+ <div class="method-heading">
2207
+ <a href="#M000145" class="method-signature">
2208
+ <span class="method-name">node.namespace_node &rarr; namespace.<br />
2209
+ </span>
2210
+ </a>
2211
+ </div>
2212
+
2213
+ <div class="method-description">
2214
+ <p>
2215
+ Obtain this node&#8217;s namespace node.
2216
+ </p>
2217
+ <p><a class="source-toggle" href="#"
2218
+ onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
2219
+ <div class="method-source-code" id="M000145-source">
2220
+ <pre>
2221
+ /*
2222
+ * call-seq:
2223
+ * node.namespace_node -&gt; namespace.
2224
+ *
2225
+ * Obtain this node's namespace node.
2226
+ */
2227
+ VALUE
2228
+ ruby_xml_node_namespace_get_node(VALUE self) {
2229
+
2230
+ </pre>
2231
+ </div>
2232
+ </div>
2233
+ </div>
2234
+
2235
+ <div id="method-M000148" class="method-detail">
2236
+ <a name="M000148"></a>
2237
+
2238
+ <div class="method-heading">
2239
+ <a href="#M000148" class="method-signature">
2240
+ <span class="method-name">node.next &rarr; node<br />
2241
+ </span>
2242
+ </a>
2243
+ </div>
2244
+
2245
+ <div class="method-description">
2246
+ <p>
2247
+ Obtain the next sibling node, if any.
2248
+ </p>
2249
+ <p><a class="source-toggle" href="#"
2250
+ onclick="toggleCode('M000148-source');return false;">[Source]</a></p>
2251
+ <div class="method-source-code" id="M000148-source">
2252
+ <pre>
2253
+ /*
2254
+ * call-seq:
2255
+ * node.next -&gt; node
2256
+ *
2257
+ * Obtain the next sibling node, if any.
2258
+ */
2259
+ VALUE
2260
+ ruby_xml_node_next_get(VALUE self) {
2261
+
2262
+ </pre>
2263
+ </div>
2264
+ </div>
2265
+ </div>
2266
+
2267
+ <div id="method-M000150" class="method-detail">
2268
+ <a name="M000150"></a>
2269
+
2270
+ <div class="method-heading">
2271
+ <a href="#M000150" class="method-signature">
2272
+ <span class="method-name">node.next = node<br />
2273
+ </span>
2274
+ </a>
2275
+ </div>
2276
+
2277
+ <div class="method-description">
2278
+ <p>
2279
+ Insert the specified node as this node&#8217;s next sibling.
2280
+ </p>
2281
+ <p><a class="source-toggle" href="#"
2282
+ onclick="toggleCode('M000150-source');return false;">[Source]</a></p>
2283
+ <div class="method-source-code" id="M000150-source">
2284
+ <pre>
2285
+ /*
2286
+ * call-seq:
2287
+ * node.next = node
2288
+ *
2289
+ * Insert the specified node as this node's next sibling.
2290
+ */
2291
+ VALUE
2292
+ ruby_xml_node_next_set(VALUE self, VALUE rnode) {
2293
+
2294
+ </pre>
2295
+ </div>
2296
+ </div>
2297
+ </div>
2298
+
2299
+ <div id="method-M000149" class="method-detail">
2300
+ <a name="M000149"></a>
2301
+
2302
+ <div class="method-heading">
2303
+ <a href="#M000149" class="method-signature">
2304
+ <span class="method-name">node.next? &rarr; (true|false)<br />
2305
+ </span>
2306
+ </a>
2307
+ </div>
2308
+
2309
+ <div class="method-description">
2310
+ <p>
2311
+ Determine whether this node has a next sibling.
2312
+ </p>
2313
+ <p><a class="source-toggle" href="#"
2314
+ onclick="toggleCode('M000149-source');return false;">[Source]</a></p>
2315
+ <div class="method-source-code" id="M000149-source">
2316
+ <pre>
2317
+ /*
2318
+ * call-seq:
2319
+ * node.next? -&gt; (true|false)
2320
+ *
2321
+ * Determine whether this node has a next sibling.
2322
+ */
2323
+ VALUE
2324
+ ruby_xml_node_next_q(VALUE self) {
2325
+
2326
+ </pre>
2327
+ </div>
2328
+ </div>
2329
+ </div>
2330
+
2331
+ <div id="method-M000151" class="method-detail">
2332
+ <a name="M000151"></a>
2333
+
2334
+ <div class="method-heading">
2335
+ <a href="#M000151" class="method-signature">
2336
+ <span class="method-name">node.type &rarr; num<br />
2337
+ </span>
2338
+ </a>
2339
+ </div>
2340
+
2341
+ <div class="method-description">
2342
+ <p>
2343
+ Obtain this node&#8217;s type identifier.
2344
+ </p>
2345
+ <p><a class="source-toggle" href="#"
2346
+ onclick="toggleCode('M000151-source');return false;">[Source]</a></p>
2347
+ <div class="method-source-code" id="M000151-source">
2348
+ <pre>
2349
+ /*
2350
+ * call-seq:
2351
+ * node.type -&gt; num
2352
+ *
2353
+ * Obtain this node's type identifier.
2354
+ */
2355
+ VALUE
2356
+ ruby_xml_node_type(VALUE self) {
2357
+
2358
+ </pre>
2359
+ </div>
2360
+ </div>
2361
+ </div>
2362
+
2363
+ <div id="method-M000152" class="method-detail">
2364
+ <a name="M000152"></a>
2365
+
2366
+ <div class="method-heading">
2367
+ <a href="#M000152" class="method-signature">
2368
+ <span class="method-name">node.type_name &rarr; num<br />
2369
+ </span>
2370
+ </a>
2371
+ </div>
2372
+
2373
+ <div class="method-description">
2374
+ <p>
2375
+ Obtain this node&#8217;s type name.
2376
+ </p>
2377
+ <p><a class="source-toggle" href="#"
2378
+ onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
2379
+ <div class="method-source-code" id="M000152-source">
2380
+ <pre>
2381
+ /*
2382
+ * call-seq:
2383
+ * node.type_name -&gt; num
2384
+ *
2385
+ * Obtain this node's type name.
2386
+ */
2387
+ VALUE
2388
+ ruby_xml_node_type_name(VALUE self) {
2389
+
2390
+ </pre>
2391
+ </div>
2392
+ </div>
2393
+ </div>
2394
+
2395
+ <div id="method-M000153" class="method-detail">
2396
+ <a name="M000153"></a>
2397
+
2398
+ <div class="method-heading">
2399
+ <a href="#M000153" class="method-signature">
2400
+ <span class="method-name">node.notation? &rarr; (true|false)<br />
2401
+ </span>
2402
+ </a>
2403
+ </div>
2404
+
2405
+ <div class="method-description">
2406
+ <p>
2407
+ Determine whether this is a notation node
2408
+ </p>
2409
+ <p><a class="source-toggle" href="#"
2410
+ onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
2411
+ <div class="method-source-code" id="M000153-source">
2412
+ <pre>
2413
+ /*
2414
+ * call-seq:
2415
+ * node.notation? -&gt; (true|false)
2416
+ *
2417
+ * Determine whether this is a notation node
2418
+ */
2419
+ VALUE
2420
+ ruby_xml_node_notation_q(VALUE self) {
2421
+
2422
+ </pre>
2423
+ </div>
2424
+ </div>
2425
+ </div>
2426
+
2427
+ <div id="method-M000154" class="method-detail">
2428
+ <a name="M000154"></a>
2429
+
2430
+ <div class="method-heading">
2431
+ <a href="#M000154" class="method-signature">
2432
+ <span class="method-name">node.namespace &rarr; [namespace, ..., namespace]<br />
2433
+ </span>
2434
+ </a>
2435
+ </div>
2436
+
2437
+ <div class="method-description">
2438
+ <p>
2439
+ Obtain an array of +<a href="NS.html">XML::NS</a>+ objects representing
2440
+ this node&#8217;s xmlns attributes
2441
+ </p>
2442
+ <p><a class="source-toggle" href="#"
2443
+ onclick="toggleCode('M000154-source');return false;">[Source]</a></p>
2444
+ <div class="method-source-code" id="M000154-source">
2445
+ <pre>
2446
+ /*
2447
+ * call-seq:
2448
+ * node.namespace -&gt; [namespace, ..., namespace]
2449
+ *
2450
+ * Obtain an array of +XML::NS+ objects representing
2451
+ * this node's xmlns attributes
2452
+ */
2453
+ VALUE
2454
+ ruby_xml_node_namespace_get(VALUE self) {
2455
+
2456
+ </pre>
2457
+ </div>
2458
+ </div>
2459
+ </div>
2460
+
2461
+ <div id="method-M000155" class="method-detail">
2462
+ <a name="M000155"></a>
2463
+
2464
+ <div class="method-heading">
2465
+ <a href="#M000155" class="method-signature">
2466
+ <span class="method-name">node.ns? &rarr; (true|false)<br />
2467
+ </span>
2468
+ </a>
2469
+ </div>
2470
+
2471
+ <div class="method-description">
2472
+ <p>
2473
+ Determine whether this node is a namespace node.
2474
+ </p>
2475
+ <p><a class="source-toggle" href="#"
2476
+ onclick="toggleCode('M000155-source');return false;">[Source]</a></p>
2477
+ <div class="method-source-code" id="M000155-source">
2478
+ <pre>
2479
+ /*
2480
+ * call-seq:
2481
+ * node.ns? -&gt; (true|false)
2482
+ *
2483
+ * Determine whether this node is a namespace node.
2484
+ */
2485
+ VALUE
2486
+ ruby_xml_node_ns_q(VALUE self) {
2487
+
2488
+ </pre>
2489
+ </div>
2490
+ </div>
2491
+ </div>
2492
+
2493
+ <div id="method-M000156" class="method-detail">
2494
+ <a name="M000156"></a>
2495
+
2496
+ <div class="method-heading">
2497
+ <a href="#M000156" class="method-signature">
2498
+ <span class="method-name">node.ns_def &rarr; namespace<br />
2499
+ </span>
2500
+ </a>
2501
+ </div>
2502
+
2503
+ <div class="method-description">
2504
+ <p>
2505
+ Obtain this node&#8217;s default namespace.
2506
+ </p>
2507
+ <p><a class="source-toggle" href="#"
2508
+ onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
2509
+ <div class="method-source-code" id="M000156-source">
2510
+ <pre>
2511
+ /*
2512
+ * call-seq:
2513
+ * node.ns_def -&gt; namespace
2514
+ *
2515
+ * Obtain this node's default namespace.
2516
+ */
2517
+ VALUE
2518
+ ruby_xml_node_ns_def_get(VALUE self) {
2519
+
2520
+ </pre>
2521
+ </div>
2522
+ </div>
2523
+ </div>
2524
+
2525
+ <div id="method-M000157" class="method-detail">
2526
+ <a name="M000157"></a>
2527
+
2528
+ <div class="method-heading">
2529
+ <a href="#M000157" class="method-signature">
2530
+ <span class="method-name">node.ns_def? &rarr; (true|false)<br />
2531
+ </span>
2532
+ </a>
2533
+ </div>
2534
+
2535
+ <div class="method-description">
2536
+ <p>
2537
+ Obtain an array of +<a href="NS.html">XML::NS</a>+ objects representing
2538
+ this node&#8217;s xmlns attributes
2539
+ </p>
2540
+ <p><a class="source-toggle" href="#"
2541
+ onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
2542
+ <div class="method-source-code" id="M000157-source">
2543
+ <pre>
2544
+ /*
2545
+ * call-seq:
2546
+ * node.ns_def? -&gt; (true|false)
2547
+ *
2548
+ * Obtain an array of +XML::NS+ objects representing
2549
+ * this node's xmlns attributes
2550
+ */
2551
+ VALUE
2552
+ ruby_xml_node_ns_def_q(VALUE self) {
2553
+
2554
+ </pre>
2555
+ </div>
2556
+ </div>
2557
+ </div>
2558
+
2559
+ <div id="method-M000158" class="method-detail">
2560
+ <a name="M000158"></a>
2561
+
2562
+ <div class="method-heading">
2563
+ <a href="#M000158" class="method-signature">
2564
+ <span class="method-name">node.parent &rarr; node<br />
2565
+ </span>
2566
+ </a>
2567
+ </div>
2568
+
2569
+ <div class="method-description">
2570
+ <p>
2571
+ Obtain this node&#8217;s parent node, if any.
2572
+ </p>
2573
+ <p><a class="source-toggle" href="#"
2574
+ onclick="toggleCode('M000158-source');return false;">[Source]</a></p>
2575
+ <div class="method-source-code" id="M000158-source">
2576
+ <pre>
2577
+ /*
2578
+ * call-seq:
2579
+ * node.parent -&gt; node
2580
+ *
2581
+ * Obtain this node's parent node, if any.
2582
+ */
2583
+ VALUE
2584
+ ruby_xml_node_parent_get(VALUE self) {
2585
+
2586
+ </pre>
2587
+ </div>
2588
+ </div>
2589
+ </div>
2590
+
2591
+ <div id="method-M000159" class="method-detail">
2592
+ <a name="M000159"></a>
2593
+
2594
+ <div class="method-heading">
2595
+ <a href="#M000159" class="method-signature">
2596
+ <span class="method-name">node.parent? &rarr; (true|false)<br />
2597
+ </span>
2598
+ </a>
2599
+ </div>
2600
+
2601
+ <div class="method-description">
2602
+ <p>
2603
+ Determine whether this node has a parent node.
2604
+ </p>
2605
+ <p><a class="source-toggle" href="#"
2606
+ onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
2607
+ <div class="method-source-code" id="M000159-source">
2608
+ <pre>
2609
+ /*
2610
+ * call-seq:
2611
+ * node.parent? -&gt; (true|false)
2612
+ *
2613
+ * Determine whether this node has a parent node.
2614
+ */
2615
+ VALUE
2616
+ ruby_xml_node_parent_q(VALUE self) {
2617
+
2618
+ </pre>
2619
+ </div>
2620
+ </div>
2621
+ </div>
2622
+
2623
+ <div id="method-M000160" class="method-detail">
2624
+ <a name="M000160"></a>
2625
+
2626
+ <div class="method-heading">
2627
+ <a href="#M000160" class="method-signature">
2628
+ <span class="method-name">node.path &rarr; path<br />
2629
+ </span>
2630
+ </a>
2631
+ </div>
2632
+
2633
+ <div class="method-description">
2634
+ <p>
2635
+ Obtain this node&#8217;s path.
2636
+ </p>
2637
+ <p><a class="source-toggle" href="#"
2638
+ onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
2639
+ <div class="method-source-code" id="M000160-source">
2640
+ <pre>
2641
+ /*
2642
+ * call-seq:
2643
+ * node.path -&gt; path
2644
+ *
2645
+ * Obtain this node's path.
2646
+ */
2647
+ VALUE
2648
+ ruby_xml_node_path(VALUE self) {
2649
+
2650
+ </pre>
2651
+ </div>
2652
+ </div>
2653
+ </div>
2654
+
2655
+ <div id="method-M000161" class="method-detail">
2656
+ <a name="M000161"></a>
2657
+
2658
+ <div class="method-heading">
2659
+ <a href="#M000161" class="method-signature">
2660
+ <span class="method-name">node.pi? &rarr; (true|false)<br />
2661
+ </span>
2662
+ </a>
2663
+ </div>
2664
+
2665
+ <div class="method-description">
2666
+ <p>
2667
+ Determine whether this is a processing instruction node.
2668
+ </p>
2669
+ <p><a class="source-toggle" href="#"
2670
+ onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
2671
+ <div class="method-source-code" id="M000161-source">
2672
+ <pre>
2673
+ /*
2674
+ * call-seq:
2675
+ * node.pi? -&gt; (true|false)
2676
+ *
2677
+ * Determine whether this is a processing instruction node.
2678
+ */
2679
+ VALUE
2680
+ ruby_xml_node_pi_q(VALUE self) {
2681
+
2682
+ </pre>
2683
+ </div>
2684
+ </div>
2685
+ </div>
2686
+
2687
+ <div id="method-M000162" class="method-detail">
2688
+ <a name="M000162"></a>
2689
+
2690
+ <div class="method-heading">
2691
+ <a href="#M000162" class="method-signature">
2692
+ <span class="method-name">node.pointer &rarr; node_set<br />
2693
+ </span>
2694
+ </a>
2695
+ </div>
2696
+
2697
+ <div class="method-description">
2698
+ <p>
2699
+ Evaluates an <a href="XPointer.html">XPointer</a> expression relative to
2700
+ this node.
2701
+ </p>
2702
+ <p><a class="source-toggle" href="#"
2703
+ onclick="toggleCode('M000162-source');return false;">[Source]</a></p>
2704
+ <div class="method-source-code" id="M000162-source">
2705
+ <pre>
2706
+ /*
2707
+ * call-seq:
2708
+ * node.pointer -&gt; node_set
2709
+ *
2710
+ * Evaluates an XPointer expression relative to this node.
2711
+ */
2712
+ VALUE
2713
+ ruby_xml_node_pointer(VALUE self, VALUE xptr_str) {
2714
+
2715
+ </pre>
2716
+ </div>
2717
+ </div>
2718
+ </div>
2719
+
2720
+ <div id="method-M000163" class="method-detail">
2721
+ <a name="M000163"></a>
2722
+
2723
+ <div class="method-heading">
2724
+ <a href="#M000163" class="method-signature">
2725
+ <span class="method-name">node.prev &rarr; node<br />
2726
+ </span>
2727
+ </a>
2728
+ </div>
2729
+
2730
+ <div class="method-description">
2731
+ <p>
2732
+ Obtain the previous sibling, if any.
2733
+ </p>
2734
+ <p><a class="source-toggle" href="#"
2735
+ onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
2736
+ <div class="method-source-code" id="M000163-source">
2737
+ <pre>
2738
+ /*
2739
+ * call-seq:
2740
+ * node.prev -&gt; node
2741
+ *
2742
+ * Obtain the previous sibling, if any.
2743
+ */
2744
+ VALUE
2745
+ ruby_xml_node_prev_get(VALUE self) {
2746
+
2747
+ </pre>
2748
+ </div>
2749
+ </div>
2750
+ </div>
2751
+
2752
+ <div id="method-M000165" class="method-detail">
2753
+ <a name="M000165"></a>
2754
+
2755
+ <div class="method-heading">
2756
+ <a href="#M000165" class="method-signature">
2757
+ <span class="method-name">node.prev = node<br />
2758
+ </span>
2759
+ </a>
2760
+ </div>
2761
+
2762
+ <div class="method-description">
2763
+ <p>
2764
+ Insert the specified node as this node&#8217;s previous sibling.
2765
+ </p>
2766
+ <p><a class="source-toggle" href="#"
2767
+ onclick="toggleCode('M000165-source');return false;">[Source]</a></p>
2768
+ <div class="method-source-code" id="M000165-source">
2769
+ <pre>
2770
+ /*
2771
+ * call-seq:
2772
+ * node.prev = node
2773
+ *
2774
+ * Insert the specified node as this node's previous sibling.
2775
+ */
2776
+ VALUE
2777
+ ruby_xml_node_prev_set(VALUE self, VALUE rnode) {
2778
+
2779
+ </pre>
2780
+ </div>
2781
+ </div>
2782
+ </div>
2783
+
2784
+ <div id="method-M000164" class="method-detail">
2785
+ <a name="M000164"></a>
2786
+
2787
+ <div class="method-heading">
2788
+ <a href="#M000164" class="method-signature">
2789
+ <span class="method-name">node.prev? &rarr; (true|false)<br />
2790
+ </span>
2791
+ </a>
2792
+ </div>
2793
+
2794
+ <div class="method-description">
2795
+ <p>
2796
+ Determines whether this node has a previous sibling node.
2797
+ </p>
2798
+ <p><a class="source-toggle" href="#"
2799
+ onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
2800
+ <div class="method-source-code" id="M000164-source">
2801
+ <pre>
2802
+ /*
2803
+ * call-seq:
2804
+ * node.prev? -&gt; (true|false)
2805
+ *
2806
+ * Determines whether this node has a previous sibling node.
2807
+ */
2808
+ VALUE
2809
+ ruby_xml_node_prev_q(VALUE self) {
2810
+
2811
+ </pre>
2812
+ </div>
2813
+ </div>
2814
+ </div>
2815
+
2816
+ <div id="method-M000180" class="method-detail">
2817
+ <a name="M000180"></a>
2818
+
2819
+ <div class="method-heading">
2820
+ <span class="method-name">properties?</span><span class="method-args">()</span>
2821
+ </div>
2822
+
2823
+ <div class="method-description">
2824
+ <p>
2825
+ Alias for <a href="Node.html#M000104">attributes?</a>
2826
+ </p>
2827
+ </div>
2828
+ </div>
2829
+
2830
+ <div id="method-M000166" class="method-detail">
2831
+ <a name="M000166"></a>
2832
+
2833
+ <div class="method-heading">
2834
+ <a href="#M000166" class="method-signature">
2835
+ <span class="method-name">node.remove! &rarr; nil<br />
2836
+ </span>
2837
+ </a>
2838
+ </div>
2839
+
2840
+ <div class="method-description">
2841
+ <p>
2842
+ Removes this node from it&#8217;s parent.
2843
+ </p>
2844
+ <p><a class="source-toggle" href="#"
2845
+ onclick="toggleCode('M000166-source');return false;">[Source]</a></p>
2846
+ <div class="method-source-code" id="M000166-source">
2847
+ <pre>
2848
+ /*
2849
+ * call-seq:
2850
+ * node.remove! -&gt; nil
2851
+ *
2852
+ * Removes this node from it's parent.
2853
+ */
2854
+ VALUE
2855
+ ruby_xml_node_remove_ex(VALUE self) {
2856
+
2857
+ </pre>
2858
+ </div>
2859
+ </div>
2860
+ </div>
2861
+
2862
+ <div id="method-M000168" class="method-detail">
2863
+ <a name="M000168"></a>
2864
+
2865
+ <div class="method-heading">
2866
+ <a href="#M000168" class="method-signature">
2867
+ <span class="method-name">node.search_href &rarr; namespace<br />
2868
+ </span>
2869
+ </a>
2870
+ </div>
2871
+
2872
+ <div class="method-description">
2873
+ <p>
2874
+ Search for a namespace by href.
2875
+ </p>
2876
+ <p><a class="source-toggle" href="#"
2877
+ onclick="toggleCode('M000168-source');return false;">[Source]</a></p>
2878
+ <div class="method-source-code" id="M000168-source">
2879
+ <pre>
2880
+ /*
2881
+ * call-seq:
2882
+ * node.search_href -&gt; namespace
2883
+ *
2884
+ * Search for a namespace by href.
2885
+ */
2886
+ VALUE
2887
+ ruby_xml_node_search_href(VALUE self, VALUE href) {
2888
+
2889
+ </pre>
2890
+ </div>
2891
+ </div>
2892
+ </div>
2893
+
2894
+ <div id="method-M000167" class="method-detail">
2895
+ <a name="M000167"></a>
2896
+
2897
+ <div class="method-heading">
2898
+ <a href="#M000167" class="method-signature">
2899
+ <span class="method-name">node.search_ns &rarr; namespace<br />
2900
+ </span>
2901
+ </a>
2902
+ </div>
2903
+
2904
+ <div class="method-description">
2905
+ <p>
2906
+ Search for a namespace by namespace.
2907
+ </p>
2908
+ <p><a class="source-toggle" href="#"
2909
+ onclick="toggleCode('M000167-source');return false;">[Source]</a></p>
2910
+ <div class="method-source-code" id="M000167-source">
2911
+ <pre>
2912
+ /*
2913
+ * call-seq:
2914
+ * node.search_ns -&gt; namespace
2915
+ *
2916
+ * Search for a namespace by namespace.
2917
+ */
2918
+ VALUE
2919
+ ruby_xml_node_search_ns(VALUE self, VALUE ns) {
2920
+
2921
+ </pre>
2922
+ </div>
2923
+ </div>
2924
+ </div>
2925
+
2926
+ <div id="method-M000169" class="method-detail">
2927
+ <a name="M000169"></a>
2928
+
2929
+ <div class="method-heading">
2930
+ <a href="#M000169" class="method-signature">
2931
+ <span class="method-name">node.sibling(node) &rarr; node<br />
2932
+ </span>
2933
+ </a>
2934
+ </div>
2935
+
2936
+ <div class="method-description">
2937
+ <p>
2938
+ Add the specified node as a sibling of this node.
2939
+ </p>
2940
+ <p><a class="source-toggle" href="#"
2941
+ onclick="toggleCode('M000169-source');return false;">[Source]</a></p>
2942
+ <div class="method-source-code" id="M000169-source">
2943
+ <pre>
2944
+ /*
2945
+ * call-seq:
2946
+ * node.sibling(node) -&gt; node
2947
+ *
2948
+ * Add the specified node as a sibling of this node.
2949
+ */
2950
+ VALUE
2951
+ ruby_xml_node_sibling_set(VALUE self, VALUE rnode) {
2952
+
2953
+ </pre>
2954
+ </div>
2955
+ </div>
2956
+ </div>
2957
+
2958
+ <div id="method-M000170" class="method-detail">
2959
+ <a name="M000170"></a>
2960
+
2961
+ <div class="method-heading">
2962
+ <a href="#M000170" class="method-signature">
2963
+ <span class="method-name">node.space_preserve &rarr; (true|false)<br />
2964
+ </span>
2965
+ </a>
2966
+ </div>
2967
+
2968
+ <div class="method-description">
2969
+ <p>
2970
+ Determine whether this node preserves whitespace.
2971
+ </p>
2972
+ <p><a class="source-toggle" href="#"
2973
+ onclick="toggleCode('M000170-source');return false;">[Source]</a></p>
2974
+ <div class="method-source-code" id="M000170-source">
2975
+ <pre>
2976
+ /*
2977
+ * call-seq:
2978
+ * node.space_preserve -&gt; (true|false)
2979
+ *
2980
+ * Determine whether this node preserves whitespace.
2981
+ */
2982
+ VALUE
2983
+ ruby_xml_node_space_preserve_get(VALUE self) {
2984
+
2985
+ </pre>
2986
+ </div>
2987
+ </div>
2988
+ </div>
2989
+
2990
+ <div id="method-M000171" class="method-detail">
2991
+ <a name="M000171"></a>
2992
+
2993
+ <div class="method-heading">
2994
+ <a href="#M000171" class="method-signature">
2995
+ <span class="method-name">node.space_preserve = true|false<br />
2996
+ </span>
2997
+ </a>
2998
+ </div>
2999
+
3000
+ <div class="method-description">
3001
+ <p>
3002
+ Control whether this node preserves whitespace.
3003
+ </p>
3004
+ <p><a class="source-toggle" href="#"
3005
+ onclick="toggleCode('M000171-source');return false;">[Source]</a></p>
3006
+ <div class="method-source-code" id="M000171-source">
3007
+ <pre>
3008
+ /*
3009
+ * call-seq:
3010
+ * node.space_preserve = true|false
3011
+ *
3012
+ * Control whether this node preserves whitespace.
3013
+ */
3014
+ VALUE
3015
+ ruby_xml_node_space_preserve_set(VALUE self, VALUE bool) {
3016
+
3017
+ </pre>
3018
+ </div>
3019
+ </div>
3020
+ </div>
3021
+
3022
+ <div id="method-M000172" class="method-detail">
3023
+ <a name="M000172"></a>
3024
+
3025
+ <div class="method-heading">
3026
+ <a href="#M000172" class="method-signature">
3027
+ <span class="method-name">node.text? &rarr; (true|false)<br />
3028
+ </span>
3029
+ </a>
3030
+ </div>
3031
+
3032
+ <div class="method-description">
3033
+ <p>
3034
+ Determine whether this node has text.
3035
+ </p>
3036
+ <p><a class="source-toggle" href="#"
3037
+ onclick="toggleCode('M000172-source');return false;">[Source]</a></p>
3038
+ <div class="method-source-code" id="M000172-source">
3039
+ <pre>
3040
+ /*
3041
+ * call-seq:
3042
+ * node.text? -&gt; (true|false)
3043
+ *
3044
+ * Determine whether this node has text.
3045
+ */
3046
+ VALUE
3047
+ ruby_xml_node_text_q(VALUE self) {
3048
+
3049
+ </pre>
3050
+ </div>
3051
+ </div>
3052
+ </div>
3053
+
3054
+ <div id="method-M000185" class="method-detail">
3055
+ <a name="M000185"></a>
3056
+
3057
+ <div class="method-heading">
3058
+ <a href="#M000185" class="method-signature">
3059
+ <span class="method-name">to_a</span><span class="method-args">()</span>
3060
+ </a>
3061
+ </div>
3062
+
3063
+ <div class="method-description">
3064
+ <p><a class="source-toggle" href="#"
3065
+ onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
3066
+ <div class="method-source-code" id="M000185-source">
3067
+ <pre>
3068
+ <span class="ruby-comment cmt"># File lib/libxml.rb, line 94</span>
3069
+ 94: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
3070
+ 95: <span class="ruby-identifier">inject</span>([]) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ary</span>,<span class="ruby-identifier">n</span><span class="ruby-operator">|</span>
3071
+ 96: <span class="ruby-identifier">ary</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">n</span>
3072
+ 97: <span class="ruby-identifier">ary</span>
3073
+ 98: <span class="ruby-keyword kw">end</span>
3074
+ 99: <span class="ruby-keyword kw">end</span>
3075
+ </pre>
3076
+ </div>
3077
+ </div>
3078
+ </div>
3079
+
3080
+ <div id="method-M000173" class="method-detail">
3081
+ <a name="M000173"></a>
3082
+
3083
+ <div class="method-heading">
3084
+ <a href="#M000173" class="method-signature">
3085
+ <span class="method-name">node.to_s &rarr; "string"<br />
3086
+ </span>
3087
+ </a>
3088
+ </div>
3089
+
3090
+ <div class="method-description">
3091
+ <p>
3092
+ Coerce this node to a string representation of it&#8217;s <a
3093
+ href="../XML.html">XML</a>.
3094
+ </p>
3095
+ <p><a class="source-toggle" href="#"
3096
+ onclick="toggleCode('M000173-source');return false;">[Source]</a></p>
3097
+ <div class="method-source-code" id="M000173-source">
3098
+ <pre>
3099
+ /*
3100
+ * call-seq:
3101
+ * node.to_s -&gt; &quot;string&quot;
3102
+ *
3103
+ * Coerce this node to a string representation of
3104
+ * it's XML.
3105
+ */
3106
+ VALUE
3107
+ ruby_xml_node_to_s(VALUE self) {
3108
+
3109
+ </pre>
3110
+ </div>
3111
+ </div>
3112
+ </div>
3113
+
3114
+ <div id="method-M000174" class="method-detail">
3115
+ <a name="M000174"></a>
3116
+
3117
+ <div class="method-heading">
3118
+ <a href="#M000174" class="method-signature">
3119
+ <span class="method-name">node.xinclude_end? &rarr; num<br />
3120
+ </span>
3121
+ </a>
3122
+ </div>
3123
+
3124
+ <div class="method-description">
3125
+ <p>
3126
+ Determine whether this node is an xinclude end node.
3127
+ </p>
3128
+ <p><a class="source-toggle" href="#"
3129
+ onclick="toggleCode('M000174-source');return false;">[Source]</a></p>
3130
+ <div class="method-source-code" id="M000174-source">
3131
+ <pre>
3132
+ /*
3133
+ * call-seq:
3134
+ * node.xinclude_end? -&gt; num
3135
+ *
3136
+ * Determine whether this node is an xinclude end node.
3137
+ */
3138
+ VALUE
3139
+ ruby_xml_node_xinclude_end_q(VALUE self) {
3140
+
3141
+ </pre>
3142
+ </div>
3143
+ </div>
3144
+ </div>
3145
+
3146
+ <div id="method-M000175" class="method-detail">
3147
+ <a name="M000175"></a>
3148
+
3149
+ <div class="method-heading">
3150
+ <a href="#M000175" class="method-signature">
3151
+ <span class="method-name">node.xinclude_start? &rarr; num<br />
3152
+ </span>
3153
+ </a>
3154
+ </div>
3155
+
3156
+ <div class="method-description">
3157
+ <p>
3158
+ Determine whether this node is an xinclude start node.
3159
+ </p>
3160
+ <p><a class="source-toggle" href="#"
3161
+ onclick="toggleCode('M000175-source');return false;">[Source]</a></p>
3162
+ <div class="method-source-code" id="M000175-source">
3163
+ <pre>
3164
+ /*
3165
+ * call-seq:
3166
+ * node.xinclude_start? -&gt; num
3167
+ *
3168
+ * Determine whether this node is an xinclude start node.
3169
+ */
3170
+ VALUE
3171
+ ruby_xml_node_xinclude_start_q(VALUE self) {
3172
+
3173
+ </pre>
3174
+ </div>
3175
+ </div>
3176
+ </div>
3177
+
3178
+ <div id="method-M000176" class="method-detail">
3179
+ <a name="M000176"></a>
3180
+
3181
+ <div class="method-heading">
3182
+ <a href="#M000176" class="method-signature">
3183
+ <span class="method-name">node.xlink? &rarr; (true|false)<br />
3184
+ </span>
3185
+ </a>
3186
+ </div>
3187
+
3188
+ <div class="method-description">
3189
+ <p>
3190
+ Determine whether this node is an xlink node.
3191
+ </p>
3192
+ <p><a class="source-toggle" href="#"
3193
+ onclick="toggleCode('M000176-source');return false;">[Source]</a></p>
3194
+ <div class="method-source-code" id="M000176-source">
3195
+ <pre>
3196
+ /*
3197
+ * call-seq:
3198
+ * node.xlink? -&gt; (true|false)
3199
+ *
3200
+ * Determine whether this node is an xlink node.
3201
+ */
3202
+ VALUE
3203
+ ruby_xml_node_xlink_q(VALUE self) {
3204
+
3205
+ </pre>
3206
+ </div>
3207
+ </div>
3208
+ </div>
3209
+
3210
+ <div id="method-M000177" class="method-detail">
3211
+ <a name="M000177"></a>
3212
+
3213
+ <div class="method-heading">
3214
+ <a href="#M000177" class="method-signature">
3215
+ <span class="method-name">node.xlink_type &rarr; num<br />
3216
+ </span>
3217
+ </a>
3218
+ </div>
3219
+
3220
+ <div class="method-description">
3221
+ <p>
3222
+ Obtain the type identifier for this xlink, if applicable. If this is not an
3223
+ xlink node (see +xlink?+), will return nil.
3224
+ </p>
3225
+ <p><a class="source-toggle" href="#"
3226
+ onclick="toggleCode('M000177-source');return false;">[Source]</a></p>
3227
+ <div class="method-source-code" id="M000177-source">
3228
+ <pre>
3229
+ /*
3230
+ * call-seq:
3231
+ * node.xlink_type -&gt; num
3232
+ *
3233
+ * Obtain the type identifier for this xlink, if applicable.
3234
+ * If this is not an xlink node (see +xlink?+), will return
3235
+ * nil.
3236
+ */
3237
+ VALUE
3238
+ ruby_xml_node_xlink_type(VALUE self) {
3239
+
3240
+ </pre>
3241
+ </div>
3242
+ </div>
3243
+ </div>
3244
+
3245
+ <div id="method-M000178" class="method-detail">
3246
+ <a name="M000178"></a>
3247
+
3248
+ <div class="method-heading">
3249
+ <a href="#M000178" class="method-signature">
3250
+ <span class="method-name">node.xlink_type_name &rarr; "string"<br />
3251
+ </span>
3252
+ </a>
3253
+ </div>
3254
+
3255
+ <div class="method-description">
3256
+ <p>
3257
+ Obtain the type name for this xlink, if applicable. If this is not an xlink
3258
+ node (see +xlink?+), will return nil.
3259
+ </p>
3260
+ <p><a class="source-toggle" href="#"
3261
+ onclick="toggleCode('M000178-source');return false;">[Source]</a></p>
3262
+ <div class="method-source-code" id="M000178-source">
3263
+ <pre>
3264
+ /*
3265
+ * call-seq:
3266
+ * node.xlink_type_name -&gt; &quot;string&quot;
3267
+ *
3268
+ * Obtain the type name for this xlink, if applicable.
3269
+ * If this is not an xlink node (see +xlink?+), will return
3270
+ * nil.
3271
+ */
3272
+ VALUE
3273
+ ruby_xml_node_xlink_type_name(VALUE self) {
3274
+
3275
+ </pre>
3276
+ </div>
3277
+ </div>
3278
+ </div>
3279
+
3280
+
3281
+ </div>
3282
+
3283
+
3284
+ </div>
3285
+
3286
+
3287
+ <div id="validator-badges">
3288
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
3289
+ </div>
3290
+
3291
+ </body>
3292
+ </html>