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
@@ -1,224 +0,0 @@
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::Tree</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::Tree</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
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
-
82
-
83
- </div>
84
-
85
-
86
- </div>
87
-
88
-
89
- <!-- if includes -->
90
-
91
- <div id="section">
92
-
93
-
94
- <div id="constants-list">
95
- <h3 class="section-bar">Constants</h3>
96
-
97
- <div class="name-list">
98
- <table summary="Constants">
99
- <tr class="top-aligned-row context-row">
100
- <td class="context-item-name">ELEMENT_NODE</td>
101
- <td>=</td>
102
- <td class="context-item-value">INT2FIX(XML_ELEMENT_NODE)</td>
103
- </tr>
104
- <tr class="top-aligned-row context-row">
105
- <td class="context-item-name">ATTRIBUTE_NODE</td>
106
- <td>=</td>
107
- <td class="context-item-value">INT2FIX(XML_ATTRIBUTE_NODE)</td>
108
- </tr>
109
- <tr class="top-aligned-row context-row">
110
- <td class="context-item-name">TEXT_NODE</td>
111
- <td>=</td>
112
- <td class="context-item-value">INT2FIX(XML_TEXT_NODE)</td>
113
- </tr>
114
- <tr class="top-aligned-row context-row">
115
- <td class="context-item-name">CDATA_SECTION_NODE</td>
116
- <td>=</td>
117
- <td class="context-item-value">INT2FIX(XML_CDATA_SECTION_NODE)</td>
118
- </tr>
119
- <tr class="top-aligned-row context-row">
120
- <td class="context-item-name">ENTITY_REF_NODE</td>
121
- <td>=</td>
122
- <td class="context-item-value">INT2FIX(XML_ENTITY_REF_NODE)</td>
123
- </tr>
124
- <tr class="top-aligned-row context-row">
125
- <td class="context-item-name">ENTITY_NODE</td>
126
- <td>=</td>
127
- <td class="context-item-value">INT2FIX(XML_ENTITY_NODE)</td>
128
- </tr>
129
- <tr class="top-aligned-row context-row">
130
- <td class="context-item-name">PI_NODE</td>
131
- <td>=</td>
132
- <td class="context-item-value">INT2FIX(XML_PI_NODE)</td>
133
- </tr>
134
- <tr class="top-aligned-row context-row">
135
- <td class="context-item-name">COMMENT_NODE</td>
136
- <td>=</td>
137
- <td class="context-item-value">INT2FIX(XML_COMMENT_NODE)</td>
138
- </tr>
139
- <tr class="top-aligned-row context-row">
140
- <td class="context-item-name">DOCUMENT_NODE</td>
141
- <td>=</td>
142
- <td class="context-item-value">INT2FIX(XML_DOCUMENT_NODE)</td>
143
- </tr>
144
- <tr class="top-aligned-row context-row">
145
- <td class="context-item-name">DOCUMENT_TYPE_NODE</td>
146
- <td>=</td>
147
- <td class="context-item-value">INT2FIX(XML_DOCUMENT_TYPE_NODE)</td>
148
- </tr>
149
- <tr class="top-aligned-row context-row">
150
- <td class="context-item-name">DOCUMENT_FRAG_NODE</td>
151
- <td>=</td>
152
- <td class="context-item-value">INT2FIX(XML_DOCUMENT_FRAG_NODE)</td>
153
- </tr>
154
- <tr class="top-aligned-row context-row">
155
- <td class="context-item-name">NOTATION_NODE</td>
156
- <td>=</td>
157
- <td class="context-item-value">INT2FIX(XML_NOTATION_NODE)</td>
158
- </tr>
159
- <tr class="top-aligned-row context-row">
160
- <td class="context-item-name">HTML_DOCUMENT_NODE</td>
161
- <td>=</td>
162
- <td class="context-item-value">INT2FIX(XML_HTML_DOCUMENT_NODE)</td>
163
- </tr>
164
- <tr class="top-aligned-row context-row">
165
- <td class="context-item-name">DTD_NODE</td>
166
- <td>=</td>
167
- <td class="context-item-value">INT2FIX(XML_DTD_NODE)</td>
168
- </tr>
169
- <tr class="top-aligned-row context-row">
170
- <td class="context-item-name">ELEMENT_DECL</td>
171
- <td>=</td>
172
- <td class="context-item-value">INT2FIX(XML_ELEMENT_DECL)</td>
173
- </tr>
174
- <tr class="top-aligned-row context-row">
175
- <td class="context-item-name">ATTRIBUTE_DECL</td>
176
- <td>=</td>
177
- <td class="context-item-value">INT2FIX(XML_ATTRIBUTE_DECL)</td>
178
- </tr>
179
- <tr class="top-aligned-row context-row">
180
- <td class="context-item-name">ENTITY_DECL</td>
181
- <td>=</td>
182
- <td class="context-item-value">INT2FIX(XML_ENTITY_DECL)</td>
183
- </tr>
184
- <tr class="top-aligned-row context-row">
185
- <td class="context-item-name">NAMESPACE_DECL</td>
186
- <td>=</td>
187
- <td class="context-item-value">INT2FIX(XML_NAMESPACE_DECL)</td>
188
- </tr>
189
- <tr class="top-aligned-row context-row">
190
- <td class="context-item-name">XINCLUDE_START</td>
191
- <td>=</td>
192
- <td class="context-item-value">INT2FIX(XML_XINCLUDE_START)</td>
193
- </tr>
194
- <tr class="top-aligned-row context-row">
195
- <td class="context-item-name">XINCLUDE_END</td>
196
- <td>=</td>
197
- <td class="context-item-value">INT2FIX(XML_XINCLUDE_END)</td>
198
- </tr>
199
- <tr class="top-aligned-row context-row">
200
- <td class="context-item-name">DOCB_DOCUMENT_NODE</td>
201
- <td>=</td>
202
- <td class="context-item-value">INT2FIX(XML_DOCB_DOCUMENT_NODE)</td>
203
- </tr>
204
- </table>
205
- </div>
206
- </div>
207
-
208
-
209
-
210
-
211
-
212
-
213
- <!-- if method_list -->
214
-
215
-
216
- </div>
217
-
218
-
219
- <div id="validator-badges">
220
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
221
- </div>
222
-
223
- </body>
224
- </html>
@@ -1,439 +0,0 @@
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::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">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
- All <a href="../XPath.html">XPath</a> and <a
86
- href="../XPointer.html">XPointer</a> evals result in this type. nodeset
87
- should become entirely virtual and refer back to this class/data structure.
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="#M000247">[]</a>&nbsp;&nbsp;
100
- <a href="#M000241">each</a>&nbsp;&nbsp;
101
- <a href="#M000242">empty?</a>&nbsp;&nbsp;
102
- <a href="#M000243">first</a>&nbsp;&nbsp;
103
- <a href="#M000244">length</a>&nbsp;&nbsp;
104
- <a href="#M000248">set</a>&nbsp;&nbsp;
105
- <a href="#M000245">size</a>&nbsp;&nbsp;
106
- <a href="#M000246">to_a</a>&nbsp;&nbsp;
107
- </div>
108
- </div>
109
-
110
- </div>
111
-
112
-
113
- <!-- if includes -->
114
-
115
- <div id="section">
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
- <!-- if method_list -->
125
- <div id="methods">
126
- <h3 class="section-bar">Public Instance methods</h3>
127
-
128
- <div id="method-M000247" class="method-detail">
129
- <a name="M000247"></a>
130
-
131
- <div class="method-heading">
132
- <a href="#M000247" class="method-signature">
133
- <span class="method-name">xpath_object[i] &rarr; node<br />
134
- </span>
135
- </a>
136
- </div>
137
-
138
- <div class="method-description">
139
- <p>
140
- array index into set of nodes
141
- </p>
142
- <p><a class="source-toggle" href="#"
143
- onclick="toggleCode('M000247-source');return false;">[Source]</a></p>
144
- <div class="method-source-code" id="M000247-source">
145
- <pre>
146
- /*
147
- * call-seq:
148
- * xpath_object[i] -&gt; node
149
- *
150
- * array index into set of nodes
151
- */
152
- VALUE
153
- ruby_xml_xpath_object_aref(VALUE self, VALUE aref) {
154
-
155
- </pre>
156
- </div>
157
- </div>
158
- </div>
159
-
160
- <div id="method-M000241" class="method-detail">
161
- <a name="M000241"></a>
162
-
163
- <div class="method-heading">
164
- <a href="#M000241" class="method-signature">
165
- <span class="method-name">xpath_object.each { |node| ... } &rarr; self<br />
166
- </span>
167
- </a>
168
- </div>
169
-
170
- <div class="method-description">
171
- <p>
172
- Call the supplied block for each node in this set.
173
- </p>
174
- <p><a class="source-toggle" href="#"
175
- onclick="toggleCode('M000241-source');return false;">[Source]</a></p>
176
- <div class="method-source-code" id="M000241-source">
177
- <pre>
178
- /*
179
- * call-seq:
180
- * xpath_object.each { |node| ... } -&gt; self
181
- *
182
- * Call the supplied block for each node in this set.
183
- */
184
- VALUE
185
- ruby_xml_xpath_object_each(VALUE self)
186
- {
187
- xmlXPathObjectPtr xpop;
188
- int i;
189
-
190
- if ( ruby_xml_xpath_object_empty_q(self) == Qtrue )
191
- return Qnil;
192
-
193
- Data_Get_Struct(self,xmlXPathObject,xpop);
194
-
195
- for (i = 0; i &lt; xpop-&gt;nodesetval-&gt;nodeNr; i++) {
196
- rb_yield(ruby_xml_xpath_object_tabref(xpop,i));
197
- }
198
- return(self);
199
- }
200
- </pre>
201
- </div>
202
- </div>
203
- </div>
204
-
205
- <div id="method-M000242" class="method-detail">
206
- <a name="M000242"></a>
207
-
208
- <div class="method-heading">
209
- <a href="#M000242" class="method-signature">
210
- <span class="method-name">xpath_object.empty? &rarr; (true|false)<br />
211
- </span>
212
- </a>
213
- </div>
214
-
215
- <div class="method-description">
216
- <p>
217
- Determine whether this nodeset is empty (contains no nodes).
218
- </p>
219
- <p><a class="source-toggle" href="#"
220
- onclick="toggleCode('M000242-source');return false;">[Source]</a></p>
221
- <div class="method-source-code" id="M000242-source">
222
- <pre>
223
- /*
224
- * call-seq:
225
- * xpath_object.empty? -&gt; (true|false)
226
- *
227
- * Determine whether this nodeset is empty (contains no nodes).
228
- */
229
- VALUE
230
- ruby_xml_xpath_object_empty_q(VALUE self) {
231
-
232
- </pre>
233
- </div>
234
- </div>
235
- </div>
236
-
237
- <div id="method-M000243" class="method-detail">
238
- <a name="M000243"></a>
239
-
240
- <div class="method-heading">
241
- <a href="#M000243" class="method-signature">
242
- <span class="method-name">xpath_object.first &rarr; node<br />
243
- </span>
244
- </a>
245
- </div>
246
-
247
- <div class="method-description">
248
- <p>
249
- Returns the first node in this node set, or nil if none exist.
250
- </p>
251
- <p><a class="source-toggle" href="#"
252
- onclick="toggleCode('M000243-source');return false;">[Source]</a></p>
253
- <div class="method-source-code" id="M000243-source">
254
- <pre>
255
- /*
256
- * call-seq:
257
- * xpath_object.first -&gt; node
258
- *
259
- * Returns the first node in this node set, or nil if none exist.
260
- */
261
- VALUE
262
- ruby_xml_xpath_object_first(VALUE self) {
263
-
264
- </pre>
265
- </div>
266
- </div>
267
- </div>
268
-
269
- <div id="method-M000244" class="method-detail">
270
- <a name="M000244"></a>
271
-
272
- <div class="method-heading">
273
- <a href="#M000244" class="method-signature">
274
- <span class="method-name">xpath_object.length &rarr; num<br />
275
- </span>
276
- </a>
277
- </div>
278
-
279
- <div class="method-description">
280
- <p>
281
- Obtain the length of the nodesetval node list.
282
- </p>
283
- <p><a class="source-toggle" href="#"
284
- onclick="toggleCode('M000244-source');return false;">[Source]</a></p>
285
- <div class="method-source-code" id="M000244-source">
286
- <pre>
287
- /*
288
- * call-seq:
289
- * xpath_object.length -&gt; num
290
- *
291
- * Obtain the length of the nodesetval node list.
292
- */
293
- VALUE
294
- ruby_xml_xpath_object_length(VALUE self) {
295
-
296
- </pre>
297
- </div>
298
- </div>
299
- </div>
300
-
301
- <div id="method-M000248" class="method-detail">
302
- <a name="M000248"></a>
303
-
304
- <div class="method-heading">
305
- <a href="#M000248" class="method-signature">
306
- <span class="method-name">xpath_object.set &rarr; Node::Set<br />
307
- </span>
308
- </a>
309
- </div>
310
-
311
- <div class="method-description">
312
- <p>
313
- Obtain the previous type object which is really just a proxy back to this
314
- object. Unless the type is not a NODESET, in which case it is nil.
315
- </p>
316
- <p><a class="source-toggle" href="#"
317
- onclick="toggleCode('M000248-source');return false;">[Source]</a></p>
318
- <div class="method-source-code" id="M000248-source">
319
- <pre>
320
- /*
321
- * call-seq:
322
- * xpath_object.set -&gt; Node::Set
323
- *
324
- * Obtain the previous type object which is really
325
- * just a proxy back to this object. Unless the
326
- * type is not a NODESET, in which case it is nil.
327
- */
328
- VALUE
329
- ruby_xml_xpath_object_set(VALUE self)
330
- {
331
- xmlXPathObjectPtr xpop;
332
- VALUE r;
333
-
334
- Data_Get_Struct(self,xmlXPathObject,xpop);
335
- r=Qnil;
336
-
337
- if (xpop-&gt;type == XPATH_NODESET)
338
- r=ruby_xml_node_set_new2(self);
339
-
340
- return r;
341
- }
342
- </pre>
343
- </div>
344
- </div>
345
- </div>
346
-
347
- <div id="method-M000245" class="method-detail">
348
- <a name="M000245"></a>
349
-
350
- <div class="method-heading">
351
- <a href="#M000245" class="method-signature">
352
- <span class="method-name">xpath_object.length &rarr; num<br />
353
- </span>
354
- </a>
355
- </div>
356
-
357
- <div class="method-description">
358
- <p>
359
- Obtain the length of the nodesetval node list.
360
- </p>
361
- <p><a class="source-toggle" href="#"
362
- onclick="toggleCode('M000245-source');return false;">[Source]</a></p>
363
- <div class="method-source-code" id="M000245-source">
364
- <pre>
365
- /*
366
- * call-seq:
367
- * xpath_object.length -&gt; num
368
- *
369
- * Obtain the length of the nodesetval node list.
370
- */
371
- VALUE
372
- ruby_xml_xpath_object_length(VALUE self) {
373
-
374
- </pre>
375
- </div>
376
- </div>
377
- </div>
378
-
379
- <div id="method-M000246" class="method-detail">
380
- <a name="M000246"></a>
381
-
382
- <div class="method-heading">
383
- <a href="#M000246" class="method-signature">
384
- <span class="method-name">xpath_object.to_a &rarr; [node, ..., node]<br />
385
- </span>
386
- </a>
387
- </div>
388
-
389
- <div class="method-description">
390
- <p>
391
- Obtain an array of the nodes in this set.
392
- </p>
393
- <p><a class="source-toggle" href="#"
394
- onclick="toggleCode('M000246-source');return false;">[Source]</a></p>
395
- <div class="method-source-code" id="M000246-source">
396
- <pre>
397
- /*
398
- * call-seq:
399
- * xpath_object.to_a -&gt; [node, ..., node]
400
- *
401
- * Obtain an array of the nodes in this set.
402
- */
403
- VALUE
404
- ruby_xml_xpath_object_to_a(VALUE self)
405
- {
406
- VALUE set_ary, nodeobj;
407
- xmlXPathObjectPtr xpop;
408
- int i;
409
-
410
- Data_Get_Struct(self,xmlXPathObject,xpop);
411
-
412
- set_ary = rb_ary_new();
413
- if (!((xpop-&gt;nodesetval == NULL) || (xpop-&gt;nodesetval-&gt;nodeNr == 0))) {
414
- for (i = 0; i &lt; xpop-&gt;nodesetval-&gt;nodeNr; i++) {
415
- nodeobj = ruby_xml_xpath_object_tabref(xpop, i);
416
- rb_ary_push(set_ary, nodeobj);
417
- }
418
- }
419
-
420
- return(set_ary);
421
- }
422
- </pre>
423
- </div>
424
- </div>
425
- </div>
426
-
427
-
428
- </div>
429
-
430
-
431
- </div>
432
-
433
-
434
- <div id="validator-badges">
435
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
436
- </div>
437
-
438
- </body>
439
- </html>