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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. data/CHANGES +24 -1
  2. data/README +48 -3
  3. data/benchmark/depixelate.rb +632 -0
  4. data/benchmark/hamlet.xml +9055 -0
  5. data/benchmark/sock_entries.xml +507 -0
  6. data/benchmark/throughput.rb +39 -0
  7. data/benchmark/xml_benchmarks.rb +222 -0
  8. data/doc/classes/LibXML.html +237 -0
  9. data/doc/classes/LibXML/XML.html +178 -0
  10. data/doc/classes/{XML → LibXML/XML}/Attr.html +213 -182
  11. data/doc/classes/{XML → LibXML/XML}/Attributes.html +126 -54
  12. data/doc/classes/{XML → LibXML/XML}/Document.html +299 -297
  13. data/doc/classes/{XML → LibXML/XML}/Dtd.html +10 -10
  14. data/doc/classes/{XML/XInclude → LibXML/XML}/Error.html +4 -4
  15. data/doc/classes/{XML → LibXML/XML}/HTMLParser.html +40 -40
  16. data/doc/classes/{XML → LibXML/XML}/InputCallbacks.html +10 -10
  17. data/doc/classes/{XML → LibXML/XML}/NS.html +46 -46
  18. data/doc/classes/{XML → LibXML/XML}/Node.html +935 -788
  19. data/doc/classes/LibXML/XML/Node/FailedModify.html +111 -0
  20. data/doc/classes/{XML → LibXML/XML}/Node/Set.html +69 -68
  21. data/doc/classes/{XML → LibXML/XML}/Node/SetNamespace.html +4 -4
  22. data/doc/classes/{XML/Node/FailedModify.html → LibXML/XML/Node/UnknownType.html} +4 -4
  23. data/doc/classes/{XML → LibXML/XML}/Parser.html +426 -389
  24. data/doc/classes/{XML → LibXML/XML}/Parser/Context.html +208 -208
  25. data/doc/classes/{XML → LibXML/XML}/Parser/ParseError.html +4 -4
  26. data/doc/classes/{XML → LibXML/XML}/Reader.html +288 -287
  27. data/doc/classes/{XML → LibXML/XML}/SaxParser.html +52 -52
  28. data/doc/classes/{XML/XPath/Context.html → LibXML/XML/Schema.html} +60 -32
  29. data/doc/classes/{XML → LibXML/XML}/State.html +4 -4
  30. data/doc/classes/{XML/Node/UnknownType.html → LibXML/XML/Tree.html} +5 -5
  31. data/doc/classes/{XML → LibXML/XML}/XInclude.html +5 -5
  32. data/doc/classes/{XML → LibXML/XML/XInclude}/Error.html +5 -5
  33. data/doc/classes/{XML → LibXML/XML}/XMLParserOptions.html +5 -5
  34. data/doc/classes/{XML → LibXML/XML}/XPath.html +23 -64
  35. data/doc/classes/LibXML/XML/XPath/Context.html +403 -0
  36. data/doc/classes/{XML/XPointer/Context → LibXML/XML/XPath}/InvalidPath.html +4 -4
  37. data/doc/classes/LibXML/XML/XPath/Object.html +623 -0
  38. data/doc/classes/{XML → LibXML/XML}/XPointer.html +12 -12
  39. data/doc/classes/{XML → LibXML/XML}/XPointer/Context.html +5 -5
  40. data/doc/classes/{XML/XPath → LibXML/XML/XPointer/Context}/InvalidPath.html +5 -5
  41. data/doc/classes/{XML → LibXML/XML}/XPointer/InvalidExpression.html +4 -4
  42. data/doc/classes/XML.html +17 -123
  43. data/doc/created.rid +1 -1
  44. data/doc/files/CHANGES.html +49 -25
  45. data/doc/files/LICENSE.html +1 -1
  46. data/doc/files/README.html +79 -4
  47. data/doc/files/VERSION.html +2 -2
  48. data/doc/files/ext/libxml/cbg_c.html +1 -1
  49. data/doc/files/ext/libxml/libxml_c.html +1 -1
  50. data/doc/files/ext/libxml/ruby_xml_attr_c.html +1 -1
  51. data/doc/files/ext/libxml/ruby_xml_attributes_c.html +1 -1
  52. data/doc/files/ext/libxml/ruby_xml_document_c.html +1 -1
  53. data/doc/files/ext/libxml/ruby_xml_dtd_c.html +1 -1
  54. data/doc/files/ext/libxml/ruby_xml_html_parser_c.html +1 -1
  55. data/doc/files/ext/libxml/ruby_xml_input_cbg_c.html +1 -1
  56. data/doc/files/ext/libxml/ruby_xml_node_c.html +1 -1
  57. data/doc/files/ext/libxml/ruby_xml_node_set_c.html +1 -1
  58. data/doc/files/ext/libxml/ruby_xml_ns_c.html +1 -1
  59. data/doc/files/ext/libxml/ruby_xml_parser_c.html +1 -1
  60. data/doc/files/ext/libxml/ruby_xml_parser_context_c.html +1 -1
  61. data/doc/files/ext/libxml/ruby_xml_reader_c.html +1 -1
  62. data/doc/files/ext/libxml/ruby_xml_sax_parser_c.html +1 -1
  63. data/doc/files/ext/libxml/ruby_xml_schema_c.html +1 -1
  64. data/doc/files/ext/libxml/ruby_xml_state_c.html +1 -1
  65. data/doc/files/ext/libxml/ruby_xml_xinclude_c.html +1 -1
  66. data/doc/files/ext/libxml/ruby_xml_xpath_c.html +1 -1
  67. data/doc/files/ext/libxml/ruby_xml_xpath_context_c.html +1 -1
  68. data/doc/files/ext/libxml/ruby_xml_xpath_object_c.html +1 -1
  69. data/doc/files/ext/libxml/ruby_xml_xpointer_c.html +1 -1
  70. data/doc/files/ext/libxml/ruby_xml_xpointer_context_c.html +1 -1
  71. data/doc/files/lib/libxml/attr_rb.html +108 -0
  72. data/doc/files/lib/libxml/attributes_rb.html +108 -0
  73. data/doc/files/lib/libxml/document_rb.html +108 -0
  74. data/doc/files/lib/libxml/node_rb.html +108 -0
  75. data/doc/files/lib/libxml/node_set_rb.html +108 -0
  76. data/doc/files/lib/libxml/parser_options_rb.html +107 -0
  77. data/doc/files/{ext/libxml/ruby_xml_tree_c.html → lib/libxml/parser_rb.html} +4 -4
  78. data/doc/files/lib/libxml/properties_rb.html +108 -0
  79. data/doc/files/lib/libxml/tree_rb.html +107 -0
  80. data/doc/files/lib/libxml_rb.html +12 -3
  81. data/doc/fr_class_index.html +34 -32
  82. data/doc/fr_file_index.html +9 -1
  83. data/doc/fr_method_index.html +362 -347
  84. data/ext/libxml/cbg.c +76 -76
  85. data/ext/libxml/libxml.c +4 -3
  86. data/ext/libxml/ruby_libxml.h +1 -1
  87. data/ext/libxml/ruby_xml_attr.c +4 -3
  88. data/ext/libxml/ruby_xml_attr.h +16 -16
  89. data/ext/libxml/ruby_xml_attributes.c +267 -266
  90. data/ext/libxml/ruby_xml_attributes.h +17 -17
  91. data/ext/libxml/ruby_xml_document.c +30 -59
  92. data/ext/libxml/ruby_xml_document.h +27 -27
  93. data/ext/libxml/ruby_xml_dtd.c +2 -1
  94. data/ext/libxml/ruby_xml_dtd.h +17 -17
  95. data/ext/libxml/ruby_xml_html_parser.c +3 -2
  96. data/ext/libxml/ruby_xml_html_parser.h +29 -29
  97. data/ext/libxml/ruby_xml_input_cbg.c +2 -1
  98. data/ext/libxml/ruby_xml_input_cbg.h +20 -20
  99. data/ext/libxml/ruby_xml_node.c +127 -470
  100. data/ext/libxml/ruby_xml_node.h +17 -17
  101. data/ext/libxml/ruby_xml_node_set.c +5 -4
  102. data/ext/libxml/ruby_xml_node_set.h +20 -20
  103. data/ext/libxml/ruby_xml_ns.c +3 -2
  104. data/ext/libxml/ruby_xml_ns.h +12 -12
  105. data/ext/libxml/ruby_xml_parser.c +20 -48
  106. data/ext/libxml/ruby_xml_parser.h +31 -31
  107. data/ext/libxml/ruby_xml_parser_context.c +3 -2
  108. data/ext/libxml/ruby_xml_parser_context.h +20 -20
  109. data/ext/libxml/ruby_xml_reader.c +2 -1
  110. data/ext/libxml/ruby_xml_sax_parser.c +3 -2
  111. data/ext/libxml/ruby_xml_sax_parser.h +56 -56
  112. data/ext/libxml/ruby_xml_schema.c +6 -0
  113. data/ext/libxml/ruby_xml_schema.h +16 -16
  114. data/ext/libxml/ruby_xml_state.c +13 -12
  115. data/ext/libxml/ruby_xml_state.h +1 -1
  116. data/ext/libxml/ruby_xml_xinclude.c +3 -2
  117. data/ext/libxml/ruby_xml_xinclude.h +13 -13
  118. data/ext/libxml/ruby_xml_xpath.c +35 -228
  119. data/ext/libxml/ruby_xml_xpath.h +22 -23
  120. data/ext/libxml/ruby_xml_xpath_context.c +223 -62
  121. data/ext/libxml/ruby_xml_xpath_context.h +15 -20
  122. data/ext/libxml/ruby_xml_xpath_object.c +63 -19
  123. data/ext/libxml/ruby_xml_xpointer.c +19 -15
  124. data/ext/libxml/ruby_xml_xpointer.h +27 -27
  125. data/ext/libxml/ruby_xml_xpointer_context.c +3 -2
  126. data/ext/libxml/ruby_xml_xpointer_context.h +18 -18
  127. data/ext/libxml/version.h +9 -9
  128. data/lib/libxml.rb +16 -128
  129. data/lib/libxml/attr.rb +45 -0
  130. data/lib/libxml/attributes.rb +15 -0
  131. data/lib/libxml/document.rb +54 -0
  132. data/lib/libxml/node.rb +132 -0
  133. data/lib/libxml/node_set.rb +27 -0
  134. data/lib/libxml/parser.rb +42 -0
  135. data/lib/libxml/parser_options.rb +25 -0
  136. data/lib/libxml/properties.rb +19 -0
  137. data/lib/libxml/tree.rb +29 -0
  138. data/lib/libxml_ruby.so +0 -0
  139. data/mingw/libxml_ruby.so +0 -0
  140. data/{work/task/setup → setup.rb} +1585 -1616
  141. data/test/gc.log +0 -0
  142. data/test/model/books.xml +147 -0
  143. data/{work/test/runner.rb → test/model/default_validation_bug.rb} +0 -0
  144. data/test/model/merge_bug_data.xml +58 -0
  145. data/test/model/rubynet.xml +78 -0
  146. data/test/model/rubynet_project +1 -0
  147. data/test/model/saxtest.xml +5 -0
  148. data/test/model/shiporder.xml +23 -0
  149. data/test/model/shiporder.xsd +31 -0
  150. data/test/model/simple.xml +7 -0
  151. data/test/model/soap.xml +27 -0
  152. data/test/model/xinclude.xml +5 -0
  153. data/test/tc_deprecated_require.rb +13 -0
  154. data/test/tc_xml_document.rb +57 -16
  155. data/test/tc_xml_document_write.rb +125 -10
  156. data/test/tc_xml_dtd.rb +22 -1
  157. data/test/tc_xml_node.rb +13 -0
  158. data/test/tc_xml_node_edit.rb +1 -1
  159. data/test/tc_xml_node_xlink.rb +1 -1
  160. data/test/tc_xml_parser.rb +64 -7
  161. data/test/tc_xml_properties.rb +42 -0
  162. data/test/tc_xml_reader.rb +4 -4
  163. data/test/tc_xml_sax_parser.rb +50 -50
  164. data/test/tc_xml_schema.rb +2 -2
  165. data/test/tc_xml_traversal.rb +220 -0
  166. data/test/tc_xml_xinclude.rb +12 -15
  167. data/test/tc_xml_xpath.rb +74 -6
  168. data/test/tc_xml_xpath_context.rb +72 -0
  169. data/test/test_suite.rb +6 -4
  170. data/vc/libxml_ruby.vcproj +1 -9
  171. metadata +92 -65
  172. data/doc/classes/XML/SiblingEnum.html +0 -142
  173. data/doc/classes/XML/Tree.html +0 -224
  174. data/doc/classes/XML/XPath/Object.html +0 -439
  175. data/ext/libxml/ruby_xml_tree.c +0 -43
  176. data/ext/libxml/ruby_xml_tree.h +0 -12
  177. data/test/ets_copy_bug2.rb +0 -21
  178. data/test/tc_xml_document_write2.rb +0 -54
  179. data/test/tc_xml_document_write3.rb +0 -96
  180. data/test/tc_xml_sax_parser2.rb +0 -51
  181. data/work/Rakefile +0 -247
  182. data/work/task/make +0 -26
  183. data/work/task/memory +0 -37
  184. data/work/task/rdoc +0 -39
  185. data/work/task/test +0 -29
  186. data/work/test/ets_runner.rb +0 -33
  187. data/work/test/libxml_test.rb +0 -3
  188. data/work/test/runner_ets.rb +0 -33
@@ -5,7 +5,7 @@
5
5
 
6
6
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
7
  <head>
8
- <title>Class: XML::XPointer::Context::InvalidPath</title>
8
+ <title>Class: LibXML::XML::XPath::InvalidPath</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
11
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
@@ -50,13 +50,13 @@
50
50
  <table class="header-table">
51
51
  <tr class="top-aligned-row">
52
52
  <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">XML::XPointer::Context::InvalidPath</td>
53
+ <td class="class-name-in-header">LibXML::XML::XPath::InvalidPath</td>
54
54
  </tr>
55
55
  <tr class="top-aligned-row">
56
56
  <td><strong>In:</strong></td>
57
57
  <td>
58
- <a href="../../../../files/ext/libxml/ruby_xml_xpointer_context_c.html">
59
- ext/libxml/ruby_xml_xpointer_context.c
58
+ <a href="../../../../files/ext/libxml/ruby_xml_xpath_c.html">
59
+ ext/libxml/ruby_xml_xpath.c
60
60
  </a>
61
61
  <br />
62
62
  </td>
@@ -0,0 +1,623 @@
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: LibXML::XML::XPath::Object</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">LibXML::XML::XPath::Object</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../../files/ext/libxml/ruby_xml_xpath_c.html">
59
+ ext/libxml/ruby_xml_xpath.c
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="Object.html">
69
+ Object
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+ <div id="description">
84
+ <p>
85
+ A collection of nodes returned from the evaluation of an <a
86
+ href="../XPath.html">XML::XPath</a> or <a
87
+ href="../XPointer.html">XML::XPointer</a> expression.
88
+ </p>
89
+
90
+ </div>
91
+
92
+
93
+ </div>
94
+
95
+ <div id="method-list">
96
+ <h3 class="section-bar">Methods</h3>
97
+
98
+ <div class="name-list">
99
+ <a href="#M000014">[]</a>&nbsp;&nbsp;
100
+ <a href="#M000016">debug</a>&nbsp;&nbsp;
101
+ <a href="#M000007">each</a>&nbsp;&nbsp;
102
+ <a href="#M000009">empty?</a>&nbsp;&nbsp;
103
+ <a href="#M000010">first</a>&nbsp;&nbsp;
104
+ <a href="#M000011">length</a>&nbsp;&nbsp;
105
+ <a href="#M000017">set</a>&nbsp;&nbsp;
106
+ <a href="#M000012">size</a>&nbsp;&nbsp;
107
+ <a href="#M000015">string</a>&nbsp;&nbsp;
108
+ <a href="#M000013">to_a</a>&nbsp;&nbsp;
109
+ <a href="#M000008">xpath_type</a>&nbsp;&nbsp;
110
+ </div>
111
+ </div>
112
+
113
+ </div>
114
+
115
+
116
+ <!-- if includes -->
117
+ <div id="includes">
118
+ <h3 class="section-bar">Included Modules</h3>
119
+
120
+ <div id="includes-list">
121
+ <span class="include-name">Enumerable</span>
122
+ </div>
123
+ </div>
124
+
125
+ <div id="section">
126
+
127
+
128
+
129
+
130
+
131
+ <div id="attribute-list">
132
+ <h3 class="section-bar">Attributes</h3>
133
+
134
+ <div class="name-list">
135
+ <table>
136
+ <tr class="top-aligned-row context-row">
137
+ <td class="context-item-name">context</td>
138
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
139
+ <td class="context-item-desc"></td>
140
+ </tr>
141
+ </table>
142
+ </div>
143
+ </div>
144
+
145
+
146
+
147
+ <!-- if method_list -->
148
+ <div id="methods">
149
+ <h3 class="section-bar">Public Instance methods</h3>
150
+
151
+ <div id="method-M000014" class="method-detail">
152
+ <a name="M000014"></a>
153
+
154
+ <div class="method-heading">
155
+ <a href="#M000014" class="method-signature">
156
+ <span class="method-name">xpath_object[i] &rarr; node<br />
157
+ </span>
158
+ </a>
159
+ </div>
160
+
161
+ <div class="method-description">
162
+ <p>
163
+ array index into set of nodes
164
+ </p>
165
+ <p><a class="source-toggle" href="#"
166
+ onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
167
+ <div class="method-source-code" id="M000014-source">
168
+ <pre>
169
+ /*
170
+ * call-seq:
171
+ * xpath_object[i] -&gt; node
172
+ *
173
+ * array index into set of nodes
174
+ */
175
+ VALUE
176
+ ruby_xml_xpath_object_aref(VALUE self, VALUE aref) {
177
+
178
+ </pre>
179
+ </div>
180
+ </div>
181
+ </div>
182
+
183
+ <div id="method-M000016" class="method-detail">
184
+ <a name="M000016"></a>
185
+
186
+ <div class="method-heading">
187
+ <a href="#M000016" class="method-signature">
188
+ <span class="method-name">nodes.debug &rarr; (true|false)<br />
189
+ </span>
190
+ </a>
191
+ </div>
192
+
193
+ <div class="method-description">
194
+ <p>
195
+ Dump libxml debugging information to stdout. Requires Libxml be compiled
196
+ with debugging enabled.
197
+ </p>
198
+ <p><a class="source-toggle" href="#"
199
+ onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
200
+ <div class="method-source-code" id="M000016-source">
201
+ <pre>
202
+ /*
203
+ * call-seq:
204
+ * nodes.debug -&gt; (true|false)
205
+ *
206
+ * Dump libxml debugging information to stdout.
207
+ * Requires Libxml be compiled with debugging enabled.
208
+ */
209
+ VALUE
210
+ ruby_xml_xpath_object_debug(VALUE self) {
211
+
212
+ </pre>
213
+ </div>
214
+ </div>
215
+ </div>
216
+
217
+ <div id="method-M000007" class="method-detail">
218
+ <a name="M000007"></a>
219
+
220
+ <div class="method-heading">
221
+ <a href="#M000007" class="method-signature">
222
+ <span class="method-name">xpath_object.each { |node| ... } &rarr; self<br />
223
+ </span>
224
+ </a>
225
+ </div>
226
+
227
+ <div class="method-description">
228
+ <p>
229
+ Call the supplied block for each node in this set.
230
+ </p>
231
+ <p><a class="source-toggle" href="#"
232
+ onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
233
+ <div class="method-source-code" id="M000007-source">
234
+ <pre>
235
+ /*
236
+ * call-seq:
237
+ * xpath_object.each { |node| ... } -&gt; self
238
+ *
239
+ * Call the supplied block for each node in this set.
240
+ */
241
+ VALUE
242
+ ruby_xml_xpath_object_each(VALUE self)
243
+ {
244
+ xmlXPathObjectPtr xpop;
245
+ int i;
246
+
247
+ if ( ruby_xml_xpath_object_empty_q(self) == Qtrue )
248
+ return Qnil;
249
+
250
+ Data_Get_Struct(self,xmlXPathObject,xpop);
251
+
252
+ for (i = 0; i &lt; xpop-&gt;nodesetval-&gt;nodeNr; i++) {
253
+ rb_yield(ruby_xml_xpath_object_tabref(xpop,i));
254
+ }
255
+ return(self);
256
+ }
257
+ </pre>
258
+ </div>
259
+ </div>
260
+ </div>
261
+
262
+ <div id="method-M000009" class="method-detail">
263
+ <a name="M000009"></a>
264
+
265
+ <div class="method-heading">
266
+ <a href="#M000009" class="method-signature">
267
+ <span class="method-name">xpath_object.empty? &rarr; (true|false)<br />
268
+ </span>
269
+ </a>
270
+ </div>
271
+
272
+ <div class="method-description">
273
+ <p>
274
+ Determine whether this nodeset is empty (contains no nodes).
275
+ </p>
276
+ <p><a class="source-toggle" href="#"
277
+ onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
278
+ <div class="method-source-code" id="M000009-source">
279
+ <pre>
280
+ /*
281
+ * call-seq:
282
+ * xpath_object.empty? -&gt; (true|false)
283
+ *
284
+ * Determine whether this nodeset is empty (contains no nodes).
285
+ */
286
+ VALUE
287
+ ruby_xml_xpath_object_empty_q(VALUE self) {
288
+
289
+ </pre>
290
+ </div>
291
+ </div>
292
+ </div>
293
+
294
+ <div id="method-M000010" class="method-detail">
295
+ <a name="M000010"></a>
296
+
297
+ <div class="method-heading">
298
+ <a href="#M000010" class="method-signature">
299
+ <span class="method-name">xpath_object.first &rarr; node<br />
300
+ </span>
301
+ </a>
302
+ </div>
303
+
304
+ <div class="method-description">
305
+ <p>
306
+ Returns the first node in this node set, or nil if none exist.
307
+ </p>
308
+ <p><a class="source-toggle" href="#"
309
+ onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
310
+ <div class="method-source-code" id="M000010-source">
311
+ <pre>
312
+ /*
313
+ * call-seq:
314
+ * xpath_object.first -&gt; node
315
+ *
316
+ * Returns the first node in this node set, or nil if none exist.
317
+ */
318
+ VALUE
319
+ ruby_xml_xpath_object_first(VALUE self) {
320
+
321
+ </pre>
322
+ </div>
323
+ </div>
324
+ </div>
325
+
326
+ <div id="method-M000011" class="method-detail">
327
+ <a name="M000011"></a>
328
+
329
+ <div class="method-heading">
330
+ <a href="#M000011" class="method-signature">
331
+ <span class="method-name">xpath_object.length &rarr; num<br />
332
+ </span>
333
+ </a>
334
+ </div>
335
+
336
+ <div class="method-description">
337
+ <p>
338
+ Obtain the length of the nodesetval node list.
339
+ </p>
340
+ <p><a class="source-toggle" href="#"
341
+ onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
342
+ <div class="method-source-code" id="M000011-source">
343
+ <pre>
344
+ /*
345
+ * call-seq:
346
+ * xpath_object.length -&gt; num
347
+ *
348
+ * Obtain the length of the nodesetval node list.
349
+ */
350
+ VALUE
351
+ ruby_xml_xpath_object_length(VALUE self) {
352
+
353
+ </pre>
354
+ </div>
355
+ </div>
356
+ </div>
357
+
358
+ <div id="method-M000017" class="method-detail">
359
+ <a name="M000017"></a>
360
+
361
+ <div class="method-heading">
362
+ <a href="#M000017" class="method-signature">
363
+ <span class="method-name">xpath_object.set &rarr; Node::Set<br />
364
+ </span>
365
+ </a>
366
+ </div>
367
+
368
+ <div class="method-description">
369
+ <p>
370
+ Obtain the previous type object which is really just a proxy back to this
371
+ object. Unless the type is not a NODESET, in which case it is nil.
372
+ </p>
373
+ <p><a class="source-toggle" href="#"
374
+ onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
375
+ <div class="method-source-code" id="M000017-source">
376
+ <pre>
377
+ /*
378
+ * call-seq:
379
+ * xpath_object.set -&gt; Node::Set
380
+ *
381
+ * Obtain the previous type object which is really
382
+ * just a proxy back to this object. Unless the
383
+ * type is not a NODESET, in which case it is nil.
384
+ */
385
+ VALUE
386
+ ruby_xml_xpath_object_set(VALUE self)
387
+ {
388
+ xmlXPathObjectPtr xpop;
389
+ VALUE r;
390
+
391
+ Data_Get_Struct(self,xmlXPathObject,xpop);
392
+ r=Qnil;
393
+
394
+ if (xpop-&gt;type == XPATH_NODESET)
395
+ r=ruby_xml_node_set_new2(self);
396
+
397
+ return r;
398
+ }
399
+ </pre>
400
+ </div>
401
+ </div>
402
+ </div>
403
+
404
+ <div id="method-M000012" class="method-detail">
405
+ <a name="M000012"></a>
406
+
407
+ <div class="method-heading">
408
+ <a href="#M000012" class="method-signature">
409
+ <span class="method-name">xpath_object.length &rarr; num<br />
410
+ </span>
411
+ </a>
412
+ </div>
413
+
414
+ <div class="method-description">
415
+ <p>
416
+ Obtain the length of the nodesetval node list.
417
+ </p>
418
+ <p><a class="source-toggle" href="#"
419
+ onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
420
+ <div class="method-source-code" id="M000012-source">
421
+ <pre>
422
+ /*
423
+ * call-seq:
424
+ * xpath_object.length -&gt; num
425
+ *
426
+ * Obtain the length of the nodesetval node list.
427
+ */
428
+ VALUE
429
+ ruby_xml_xpath_object_length(VALUE self) {
430
+
431
+ </pre>
432
+ </div>
433
+ </div>
434
+ </div>
435
+
436
+ <div id="method-M000015" class="method-detail">
437
+ <a name="M000015"></a>
438
+
439
+ <div class="method-heading">
440
+ <a href="#M000015" class="method-signature">
441
+ <span class="method-name">xpath_object.string &rarr; String<br />
442
+ </span>
443
+ </a>
444
+ </div>
445
+
446
+ <div class="method-description">
447
+ <p>
448
+ Returns the original <a href="../XPath.html">XPath</a> expression as a
449
+ string.
450
+ </p>
451
+ <p><a class="source-toggle" href="#"
452
+ onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
453
+ <div class="method-source-code" id="M000015-source">
454
+ <pre>
455
+ /*
456
+ * call-seq:
457
+ * xpath_object.string -&gt; String
458
+ *
459
+ * Returns the original XPath expression as a string.
460
+ */
461
+ VALUE
462
+ ruby_xml_xpath_object_string(VALUE self)
463
+ {
464
+ xmlXPathObjectPtr xpop;
465
+
466
+ Data_Get_Struct(self,xmlXPathObject,xpop);
467
+
468
+ if (xpop-&gt;stringval == NULL)
469
+ return Qnil;
470
+
471
+ return rb_str_new2((const char*) xpop-&gt;stringval);
472
+ }
473
+ </pre>
474
+ </div>
475
+ </div>
476
+ </div>
477
+
478
+ <div id="method-M000013" class="method-detail">
479
+ <a name="M000013"></a>
480
+
481
+ <div class="method-heading">
482
+ <a href="#M000013" class="method-signature">
483
+ <span class="method-name">xpath_object.to_a &rarr; [node, ..., node]<br />
484
+ </span>
485
+ </a>
486
+ </div>
487
+
488
+ <div class="method-description">
489
+ <p>
490
+ Obtain an array of the nodes in this set.
491
+ </p>
492
+ <p><a class="source-toggle" href="#"
493
+ onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
494
+ <div class="method-source-code" id="M000013-source">
495
+ <pre>
496
+ /*
497
+ * call-seq:
498
+ * xpath_object.to_a -&gt; [node, ..., node]
499
+ *
500
+ * Obtain an array of the nodes in this set.
501
+ */
502
+ VALUE
503
+ ruby_xml_xpath_object_to_a(VALUE self)
504
+ {
505
+ VALUE set_ary, nodeobj;
506
+ xmlXPathObjectPtr xpop;
507
+ int i;
508
+
509
+ Data_Get_Struct(self,xmlXPathObject,xpop);
510
+
511
+ set_ary = rb_ary_new();
512
+ if (!((xpop-&gt;nodesetval == NULL) || (xpop-&gt;nodesetval-&gt;nodeNr == 0))) {
513
+ for (i = 0; i &lt; xpop-&gt;nodesetval-&gt;nodeNr; i++) {
514
+ nodeobj = ruby_xml_xpath_object_tabref(xpop, i);
515
+ rb_ary_push(set_ary, nodeobj);
516
+ }
517
+ }
518
+
519
+ return(set_ary);
520
+ }
521
+ </pre>
522
+ </div>
523
+ </div>
524
+ </div>
525
+
526
+ <div id="method-M000008" class="method-detail">
527
+ <a name="M000008"></a>
528
+
529
+ <div class="method-heading">
530
+ <a href="#M000008" class="method-signature">
531
+ <span class="method-name">xpath_object.xpath_type &rarr; int<br />
532
+ </span>
533
+ </a>
534
+ </div>
535
+
536
+ <div class="method-description">
537
+ <p>
538
+ Returns the <a href="../XPath.html">XPath</a> type of the result object.
539
+ Possible values are defined as constants on the <a
540
+ href="../XPath.html">XML::XPath</a> class and include:
541
+ </p>
542
+ <ul>
543
+ <li>XML::XPath::UNDEFINED
544
+
545
+ </li>
546
+ <li>XML::XPath::NODESET
547
+
548
+ </li>
549
+ <li>XML::XPath::BOOLEAN
550
+
551
+ </li>
552
+ <li>XML::XPath::NUMBER
553
+
554
+ </li>
555
+ <li>XML::XPath::STRING
556
+
557
+ </li>
558
+ <li>XML::XPath::POINT
559
+
560
+ </li>
561
+ <li>XML::XPath::RANGE
562
+
563
+ </li>
564
+ <li>XML::XPath::LOCATIONSET
565
+
566
+ </li>
567
+ <li>XML::XPath::USERS
568
+
569
+ </li>
570
+ <li>XML::XPath::XSLT_TREE
571
+
572
+ </li>
573
+ </ul>
574
+ <p><a class="source-toggle" href="#"
575
+ onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
576
+ <div class="method-source-code" id="M000008-source">
577
+ <pre>
578
+ /*
579
+ * call-seq:
580
+ * xpath_object.xpath_type -&gt; int
581
+ *
582
+ * Returns the XPath type of the result object.
583
+ * Possible values are defined as constants
584
+ * on the XML::XPath class and include:
585
+ *
586
+ * * XML::XPath::UNDEFINED
587
+ * * XML::XPath::NODESET
588
+ * * XML::XPath::BOOLEAN
589
+ * * XML::XPath::NUMBER
590
+ * * XML::XPath::STRING
591
+ * * XML::XPath::POINT
592
+ * * XML::XPath::RANGE
593
+ * * XML::XPath::LOCATIONSET
594
+ * * XML::XPath::USERS
595
+ * * XML::XPath::XSLT_TREE
596
+ */
597
+ VALUE
598
+ ruby_xml_xpath_object_get_type(VALUE self)
599
+ {
600
+ xmlXPathObjectPtr xpop;
601
+
602
+ Data_Get_Struct(self,xmlXPathObject,xpop);
603
+
604
+ return INT2FIX(xpop-&gt;type);
605
+ }
606
+ </pre>
607
+ </div>
608
+ </div>
609
+ </div>
610
+
611
+
612
+ </div>
613
+
614
+
615
+ </div>
616
+
617
+
618
+ <div id="validator-badges">
619
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
620
+ </div>
621
+
622
+ </body>
623
+ </html>