libxml-ruby 0.8.3 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. data/CHANGES +18 -0
  2. data/RAKEFILE +15 -39
  3. data/README +48 -47
  4. data/ext/libxml/libxml.c +847 -22
  5. data/ext/libxml/ruby_libxml.h +71 -95
  6. data/ext/libxml/ruby_xml_attr.c +500 -500
  7. data/ext/libxml/ruby_xml_attributes.c +1 -1
  8. data/ext/libxml/ruby_xml_document.c +1144 -1135
  9. data/ext/libxml/ruby_xml_document.h +4 -11
  10. data/ext/libxml/ruby_xml_dtd.c +27 -0
  11. data/ext/libxml/ruby_xml_encoding.c +164 -0
  12. data/ext/libxml/ruby_xml_encoding.h +13 -0
  13. data/ext/libxml/ruby_xml_error.c +941 -0
  14. data/ext/libxml/ruby_xml_error.h +13 -0
  15. data/ext/libxml/ruby_xml_html_parser.c +71 -387
  16. data/ext/libxml/ruby_xml_html_parser.h +1 -17
  17. data/ext/libxml/ruby_xml_input.c +179 -0
  18. data/ext/libxml/ruby_xml_input.h +18 -0
  19. data/ext/libxml/ruby_xml_input_cbg.c +17 -3
  20. data/ext/libxml/ruby_xml_node.c +1566 -1582
  21. data/ext/libxml/ruby_xml_node.h +1 -4
  22. data/ext/libxml/ruby_xml_ns.c +14 -3
  23. data/ext/libxml/ruby_xml_parser.c +164 -1398
  24. data/ext/libxml/ruby_xml_parser.h +5 -17
  25. data/ext/libxml/ruby_xml_parser_context.c +131 -169
  26. data/ext/libxml/ruby_xml_parser_context.h +2 -9
  27. data/ext/libxml/ruby_xml_reader.c +910 -945
  28. data/ext/libxml/ruby_xml_relaxng.c +32 -3
  29. data/ext/libxml/ruby_xml_sax_parser.c +106 -364
  30. data/ext/libxml/ruby_xml_sax_parser.h +1 -37
  31. data/ext/libxml/ruby_xml_schema.c +174 -145
  32. data/ext/libxml/ruby_xml_xinclude.c +9 -5
  33. data/ext/libxml/ruby_xml_xpath.c +25 -6
  34. data/ext/libxml/ruby_xml_xpath.h +1 -2
  35. data/ext/libxml/ruby_xml_xpath_context.c +17 -19
  36. data/ext/libxml/ruby_xml_xpath_object.c +60 -56
  37. data/ext/libxml/ruby_xml_xpointer.c +11 -5
  38. data/ext/libxml/sax_parser_callbacks.inc +42 -37
  39. data/ext/libxml/version.h +3 -3
  40. data/ext/mingw/Rakefile +20 -27
  41. data/ext/mingw/build.rake +41 -0
  42. data/ext/vc/libxml_ruby.vcproj +23 -15
  43. data/lib/libxml.rb +8 -2
  44. data/lib/libxml/document.rb +16 -4
  45. data/lib/libxml/error.rb +84 -0
  46. data/lib/libxml/hpricot.rb +76 -0
  47. data/lib/libxml/html_parser.rb +61 -0
  48. data/lib/libxml/node.rb +36 -25
  49. data/lib/libxml/parser.rb +312 -33
  50. data/lib/libxml/parser_context.rb +17 -0
  51. data/lib/libxml/properties.rb +15 -2
  52. data/lib/libxml/reader.rb +15 -0
  53. data/lib/libxml/sax_callbacks.rb +179 -0
  54. data/lib/libxml/sax_parser.rb +42 -0
  55. data/lib/libxml/tree.rb +1 -2
  56. data/lib/libxml/xpath_object.rb +12 -0
  57. data/test/model/atom.xml +4 -0
  58. data/test/tc_attributes.rb +43 -19
  59. data/test/tc_document.rb +1 -1
  60. data/test/tc_document_write.rb +15 -8
  61. data/test/tc_dtd.rb +36 -20
  62. data/test/tc_encoding.rb +13 -0
  63. data/test/tc_error.rb +136 -0
  64. data/test/tc_node.rb +2 -3
  65. data/test/tc_node_copy.rb +1 -1
  66. data/test/tc_node_edit.rb +6 -0
  67. data/test/tc_ns.rb +18 -0
  68. data/test/tc_parser.rb +113 -228
  69. data/test/tc_parser_context.rb +1 -2
  70. data/test/tc_reader.rb +24 -14
  71. data/test/tc_relaxng.rb +18 -6
  72. data/test/tc_sax_parser.rb +48 -13
  73. data/test/tc_schema.rb +20 -8
  74. data/test/tc_well_formed.rb +2 -1
  75. data/test/tc_xml.rb +212 -0
  76. data/test/tc_xpath.rb +60 -46
  77. data/test/tc_xpointer.rb +7 -11
  78. data/test/test_suite.rb +4 -3
  79. metadata +26 -109
  80. data/doc/rdoc/classes/LibXML.html +0 -241
  81. data/doc/rdoc/classes/LibXML/XML.html +0 -185
  82. data/doc/rdoc/classes/LibXML/XML/Attr.html +0 -1010
  83. data/doc/rdoc/classes/LibXML/XML/Attributes.html +0 -526
  84. data/doc/rdoc/classes/LibXML/XML/Document.html +0 -1489
  85. data/doc/rdoc/classes/LibXML/XML/Dtd.html +0 -213
  86. data/doc/rdoc/classes/LibXML/XML/Error.html +0 -117
  87. data/doc/rdoc/classes/LibXML/XML/HTMLParser.html +0 -348
  88. data/doc/rdoc/classes/LibXML/XML/InputCallbacks.html +0 -160
  89. data/doc/rdoc/classes/LibXML/XML/NS.html +0 -381
  90. data/doc/rdoc/classes/LibXML/XML/Node.html +0 -3396
  91. data/doc/rdoc/classes/LibXML/XML/Node/FailedModify.html +0 -123
  92. data/doc/rdoc/classes/LibXML/XML/Node/Set.html +0 -440
  93. data/doc/rdoc/classes/LibXML/XML/Node/SetNamespace.html +0 -123
  94. data/doc/rdoc/classes/LibXML/XML/Node/UnknownType.html +0 -123
  95. data/doc/rdoc/classes/LibXML/XML/Parser.html +0 -2239
  96. data/doc/rdoc/classes/LibXML/XML/Parser/Context.html +0 -1255
  97. data/doc/rdoc/classes/LibXML/XML/Parser/ParseError.html +0 -123
  98. data/doc/rdoc/classes/LibXML/XML/Reader.html +0 -2264
  99. data/doc/rdoc/classes/LibXML/XML/RelaxNG.html +0 -237
  100. data/doc/rdoc/classes/LibXML/XML/SaxParser.html +0 -415
  101. data/doc/rdoc/classes/LibXML/XML/Schema.html +0 -308
  102. data/doc/rdoc/classes/LibXML/XML/State.html +0 -124
  103. data/doc/rdoc/classes/LibXML/XML/Tree.html +0 -111
  104. data/doc/rdoc/classes/LibXML/XML/XInclude.html +0 -123
  105. data/doc/rdoc/classes/LibXML/XML/XInclude/Error.html +0 -117
  106. data/doc/rdoc/classes/LibXML/XML/XMLParserOptions.html +0 -198
  107. data/doc/rdoc/classes/LibXML/XML/XPath.html +0 -184
  108. data/doc/rdoc/classes/LibXML/XML/XPath/Context.html +0 -404
  109. data/doc/rdoc/classes/LibXML/XML/XPath/InvalidPath.html +0 -172
  110. data/doc/rdoc/classes/LibXML/XML/XPath/Object.html +0 -627
  111. data/doc/rdoc/classes/LibXML/XML/XPointer.html +0 -170
  112. data/doc/rdoc/classes/LibXML/XML/XPointer/Context.html +0 -123
  113. data/doc/rdoc/classes/LibXML/XML/XPointer/Context/InvalidPath.html +0 -117
  114. data/doc/rdoc/classes/LibXML/XML/XPointer/InvalidExpression.html +0 -124
  115. data/doc/rdoc/classes/singleton.html +0 -114
  116. data/doc/rdoc/created.rid +0 -1
  117. data/doc/rdoc/files/CHANGES.html +0 -442
  118. data/doc/rdoc/files/LICENSE.html +0 -133
  119. data/doc/rdoc/files/README.html +0 -388
  120. data/doc/rdoc/files/VERSION.html +0 -107
  121. data/doc/rdoc/files/ext/libxml/cbg_c.html +0 -101
  122. data/doc/rdoc/files/ext/libxml/libxml_c.html +0 -101
  123. data/doc/rdoc/files/ext/libxml/ruby_xml_attr_c.html +0 -101
  124. data/doc/rdoc/files/ext/libxml/ruby_xml_attributes_c.html +0 -101
  125. data/doc/rdoc/files/ext/libxml/ruby_xml_document_c.html +0 -101
  126. data/doc/rdoc/files/ext/libxml/ruby_xml_dtd_c.html +0 -101
  127. data/doc/rdoc/files/ext/libxml/ruby_xml_html_parser_c.html +0 -101
  128. data/doc/rdoc/files/ext/libxml/ruby_xml_input_cbg_c.html +0 -101
  129. data/doc/rdoc/files/ext/libxml/ruby_xml_node_c.html +0 -101
  130. data/doc/rdoc/files/ext/libxml/ruby_xml_node_set_c.html +0 -101
  131. data/doc/rdoc/files/ext/libxml/ruby_xml_ns_c.html +0 -101
  132. data/doc/rdoc/files/ext/libxml/ruby_xml_parser_c.html +0 -101
  133. data/doc/rdoc/files/ext/libxml/ruby_xml_parser_context_c.html +0 -101
  134. data/doc/rdoc/files/ext/libxml/ruby_xml_reader_c.html +0 -101
  135. data/doc/rdoc/files/ext/libxml/ruby_xml_relaxng_c.html +0 -101
  136. data/doc/rdoc/files/ext/libxml/ruby_xml_sax_parser_c.html +0 -101
  137. data/doc/rdoc/files/ext/libxml/ruby_xml_schema_c.html +0 -101
  138. data/doc/rdoc/files/ext/libxml/ruby_xml_state_c.html +0 -101
  139. data/doc/rdoc/files/ext/libxml/ruby_xml_xinclude_c.html +0 -101
  140. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_c.html +0 -101
  141. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_context_c.html +0 -101
  142. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_object_c.html +0 -101
  143. data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_c.html +0 -101
  144. data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_context_c.html +0 -101
  145. data/doc/rdoc/files/lib/libxml/attr_rb.html +0 -108
  146. data/doc/rdoc/files/lib/libxml/attributes_rb.html +0 -108
  147. data/doc/rdoc/files/lib/libxml/document_rb.html +0 -108
  148. data/doc/rdoc/files/lib/libxml/node_rb.html +0 -108
  149. data/doc/rdoc/files/lib/libxml/node_set_rb.html +0 -108
  150. data/doc/rdoc/files/lib/libxml/parser_options_rb.html +0 -107
  151. data/doc/rdoc/files/lib/libxml/parser_rb.html +0 -101
  152. data/doc/rdoc/files/lib/libxml/properties_rb.html +0 -108
  153. data/doc/rdoc/files/lib/libxml/tree_rb.html +0 -107
  154. data/doc/rdoc/files/lib/libxml_rb.html +0 -124
  155. data/doc/rdoc/files/lib/xml/libxml_rb.html +0 -124
  156. data/doc/rdoc/files/lib/xml_rb.html +0 -134
  157. data/doc/rdoc/fr_class_index.html +0 -62
  158. data/doc/rdoc/fr_file_index.html +0 -66
  159. data/doc/rdoc/fr_method_index.html +0 -392
  160. data/doc/rdoc/index.html +0 -24
  161. data/doc/rdoc/rdoc-style.css +0 -208
  162. data/ext/libxml/ruby_xml_node_set.c +0 -172
  163. data/ext/libxml/ruby_xml_node_set.h +0 -20
  164. data/ext/libxml/ruby_xml_xpointer_context.c +0 -22
  165. data/ext/libxml/ruby_xml_xpointer_context.h +0 -18
  166. data/lib/libxml/node_set.rb +0 -27
  167. data/test/tc_node_set.rb +0 -24
  168. data/test/tc_node_set2.rb +0 -37
@@ -1,1255 +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: LibXML::XML::Parser::Context</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::Parser::Context</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_parser_c.html">
59
- ext/libxml/ruby_xml_parser.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
- <div id="description">
82
- <p>
83
- call-seq:
84
- </p>
85
- <pre>
86
- context.well_formed? -&gt; (true|false)
87
- </pre>
88
- <p>
89
- Determine whether this context contains well-formed <a
90
- href="../../XML.html">XML</a>.
91
- </p>
92
-
93
- </div>
94
-
95
-
96
- </div>
97
-
98
- <div id="method-list">
99
- <h3 class="section-bar">Methods</h3>
100
-
101
- <div class="name-list">
102
- <a href="#M000081">data_directory</a>&nbsp;&nbsp;
103
- <a href="#M000082">depth</a>&nbsp;&nbsp;
104
- <a href="#M000083">disable_sax?</a>&nbsp;&nbsp;
105
- <a href="#M000084">docbook?</a>&nbsp;&nbsp;
106
- <a href="#M000085">encoding</a>&nbsp;&nbsp;
107
- <a href="#M000086">errno</a>&nbsp;&nbsp;
108
- <a href="#M000087">html?</a>&nbsp;&nbsp;
109
- <a href="#M000088">io_max_num_streams</a>&nbsp;&nbsp;
110
- <a href="#M000089">io_num_streams</a>&nbsp;&nbsp;
111
- <a href="#M000090">keep_blanks?</a>&nbsp;&nbsp;
112
- <a href="#M000092">name_depth</a>&nbsp;&nbsp;
113
- <a href="#M000093">name_depth_max</a>&nbsp;&nbsp;
114
- <a href="#M000091">name_node</a>&nbsp;&nbsp;
115
- <a href="#M000094">name_tab</a>&nbsp;&nbsp;
116
- <a href="#M000095">node</a>&nbsp;&nbsp;
117
- <a href="#M000096">node_depth</a>&nbsp;&nbsp;
118
- <a href="#M000097">node_depth_max</a>&nbsp;&nbsp;
119
- <a href="#M000098">num_chars</a>&nbsp;&nbsp;
120
- <a href="#M000100">replace_entities=</a>&nbsp;&nbsp;
121
- <a href="#M000099">replace_entities?</a>&nbsp;&nbsp;
122
- <a href="#M000101">space_depth</a>&nbsp;&nbsp;
123
- <a href="#M000102">space_depth_max</a>&nbsp;&nbsp;
124
- <a href="#M000109">standalone?</a>&nbsp;&nbsp;
125
- <a href="#M000108">stats?</a>&nbsp;&nbsp;
126
- <a href="#M000103">subset_external?</a>&nbsp;&nbsp;
127
- <a href="#M000104">subset_external_system_id</a>&nbsp;&nbsp;
128
- <a href="#M000105">subset_external_uri</a>&nbsp;&nbsp;
129
- <a href="#M000106">subset_internal?</a>&nbsp;&nbsp;
130
- <a href="#M000107">subset_internal_name</a>&nbsp;&nbsp;
131
- <a href="#M000110">valid</a>&nbsp;&nbsp;
132
- <a href="#M000111">validate?</a>&nbsp;&nbsp;
133
- <a href="#M000112">version</a>&nbsp;&nbsp;
134
- <a href="#M000113">well_formed?</a>&nbsp;&nbsp;
135
- </div>
136
- </div>
137
-
138
- </div>
139
-
140
-
141
- <!-- if includes -->
142
-
143
- <div id="section">
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
- <!-- if method_list -->
153
- <div id="methods">
154
- <h3 class="section-bar">Public Instance methods</h3>
155
-
156
- <div id="method-M000081" class="method-detail">
157
- <a name="M000081"></a>
158
-
159
- <div class="method-heading">
160
- <a href="#M000081" class="method-signature">
161
- <span class="method-name">context.data_directory &rarr; "dir"<br />
162
- </span>
163
- </a>
164
- </div>
165
-
166
- <div class="method-description">
167
- <p>
168
- Obtain the data directory associated with this context.
169
- </p>
170
- <p><a class="source-toggle" href="#"
171
- onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
172
- <div class="method-source-code" id="M000081-source">
173
- <pre>
174
- /*
175
- * call-seq:
176
- * context.data_directory -&gt; &quot;dir&quot;
177
- *
178
- * Obtain the data directory associated with this context.
179
- */
180
- VALUE
181
- ruby_xml_parser_context_data_directory_get(VALUE self) {
182
-
183
- </pre>
184
- </div>
185
- </div>
186
- </div>
187
-
188
- <div id="method-M000082" class="method-detail">
189
- <a name="M000082"></a>
190
-
191
- <div class="method-heading">
192
- <a href="#M000082" class="method-signature">
193
- <span class="method-name">context.depth &rarr; num<br />
194
- </span>
195
- </a>
196
- </div>
197
-
198
- <div class="method-description">
199
- <p>
200
- Obtain the <a href="Context.html#M000082">depth</a> of this context.
201
- </p>
202
- <p><a class="source-toggle" href="#"
203
- onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
204
- <div class="method-source-code" id="M000082-source">
205
- <pre>
206
- /*
207
- * call-seq:
208
- * context.depth -&gt; num
209
- *
210
- * Obtain the depth of this context.
211
- */
212
- VALUE
213
- ruby_xml_parser_context_depth_get(VALUE self) {
214
-
215
- </pre>
216
- </div>
217
- </div>
218
- </div>
219
-
220
- <div id="method-M000083" class="method-detail">
221
- <a name="M000083"></a>
222
-
223
- <div class="method-heading">
224
- <a href="#M000083" class="method-signature">
225
- <span class="method-name">context.disable_sax? &rarr; (true|false)<br />
226
- </span>
227
- </a>
228
- </div>
229
-
230
- <div class="method-description">
231
- <p>
232
- Determine whether SAX-based processing is disabled in this context.
233
- </p>
234
- <p><a class="source-toggle" href="#"
235
- onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
236
- <div class="method-source-code" id="M000083-source">
237
- <pre>
238
- /*
239
- * call-seq:
240
- * context.disable_sax? -&gt; (true|false)
241
- *
242
- * Determine whether SAX-based processing is disabled
243
- * in this context.
244
- */
245
- VALUE
246
- ruby_xml_parser_context_disable_sax_q(VALUE self) {
247
-
248
- </pre>
249
- </div>
250
- </div>
251
- </div>
252
-
253
- <div id="method-M000084" class="method-detail">
254
- <a name="M000084"></a>
255
-
256
- <div class="method-heading">
257
- <a href="#M000084" class="method-signature">
258
- <span class="method-name">context.docbook? &rarr; (true|false)<br />
259
- </span>
260
- </a>
261
- </div>
262
-
263
- <div class="method-description">
264
- <p>
265
- Determine whether this is a docbook context.
266
- </p>
267
- <p><a class="source-toggle" href="#"
268
- onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
269
- <div class="method-source-code" id="M000084-source">
270
- <pre>
271
- /*
272
- * call-seq:
273
- * context.docbook? -&gt; (true|false)
274
- *
275
- * Determine whether this is a docbook context.
276
- */
277
- VALUE
278
- ruby_xml_parser_context_docbook_q(VALUE self) {
279
-
280
- </pre>
281
- </div>
282
- </div>
283
- </div>
284
-
285
- <div id="method-M000085" class="method-detail">
286
- <a name="M000085"></a>
287
-
288
- <div class="method-heading">
289
- <a href="#M000085" class="method-signature">
290
- <span class="method-name">context.encoding &rarr; "encoding"<br />
291
- </span>
292
- </a>
293
- </div>
294
-
295
- <div class="method-description">
296
- <p>
297
- Obtain the character <a href="Context.html#M000085">encoding</a> identifier
298
- used in this context.
299
- </p>
300
- <p><a class="source-toggle" href="#"
301
- onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
302
- <div class="method-source-code" id="M000085-source">
303
- <pre>
304
- /*
305
- * call-seq:
306
- * context.encoding -&gt; &quot;encoding&quot;
307
- *
308
- * Obtain the character encoding identifier used in
309
- * this context.
310
- */
311
- VALUE
312
- ruby_xml_parser_context_encoding_get(VALUE self) {
313
-
314
- </pre>
315
- </div>
316
- </div>
317
- </div>
318
-
319
- <div id="method-M000086" class="method-detail">
320
- <a name="M000086"></a>
321
-
322
- <div class="method-heading">
323
- <a href="#M000086" class="method-signature">
324
- <span class="method-name">context.errno &rarr; num<br />
325
- </span>
326
- </a>
327
- </div>
328
-
329
- <div class="method-description">
330
- <p>
331
- Obtain the last-error number in this context.
332
- </p>
333
- <p><a class="source-toggle" href="#"
334
- onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
335
- <div class="method-source-code" id="M000086-source">
336
- <pre>
337
- /*
338
- * call-seq:
339
- * context.errno -&gt; num
340
- *
341
- * Obtain the last-error number in this context.
342
- */
343
- VALUE
344
- ruby_xml_parser_context_errno_get(VALUE self) {
345
-
346
- </pre>
347
- </div>
348
- </div>
349
- </div>
350
-
351
- <div id="method-M000087" class="method-detail">
352
- <a name="M000087"></a>
353
-
354
- <div class="method-heading">
355
- <a href="#M000087" class="method-signature">
356
- <span class="method-name">context.html? &rarr; (true|false)<br />
357
- </span>
358
- </a>
359
- </div>
360
-
361
- <div class="method-description">
362
- <p>
363
- Determine whether this is an html context.
364
- </p>
365
- <p><a class="source-toggle" href="#"
366
- onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
367
- <div class="method-source-code" id="M000087-source">
368
- <pre>
369
- /*
370
- * call-seq:
371
- * context.html? -&gt; (true|false)
372
- *
373
- * Determine whether this is an html context.
374
- */
375
- VALUE
376
- ruby_xml_parser_context_html_q(VALUE self) {
377
-
378
- </pre>
379
- </div>
380
- </div>
381
- </div>
382
-
383
- <div id="method-M000088" class="method-detail">
384
- <a name="M000088"></a>
385
-
386
- <div class="method-heading">
387
- <a href="#M000088" class="method-signature">
388
- <span class="method-name">context.max_num_streams &rarr; num<br />
389
- </span>
390
- </a>
391
- </div>
392
-
393
- <div class="method-description">
394
- <p>
395
- Obtain the limit on the number of IO streams opened in this context.
396
- </p>
397
- <p><a class="source-toggle" href="#"
398
- onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
399
- <div class="method-source-code" id="M000088-source">
400
- <pre>
401
- /*
402
- * call-seq:
403
- * context.max_num_streams -&gt; num
404
- *
405
- * Obtain the limit on the number of IO streams opened in
406
- * this context.
407
- */
408
- VALUE
409
- ruby_xml_parser_context_io_max_num_streams_get(VALUE self) {
410
-
411
- </pre>
412
- </div>
413
- </div>
414
- </div>
415
-
416
- <div id="method-M000089" class="method-detail">
417
- <a name="M000089"></a>
418
-
419
- <div class="method-heading">
420
- <a href="#M000089" class="method-signature">
421
- <span class="method-name">context.num_streams &rarr; "dir"<br />
422
- </span>
423
- </a>
424
- </div>
425
-
426
- <div class="method-description">
427
- <p>
428
- Obtain the actual number of IO streams in this context.
429
- </p>
430
- <p><a class="source-toggle" href="#"
431
- onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
432
- <div class="method-source-code" id="M000089-source">
433
- <pre>
434
- /*
435
- * call-seq:
436
- * context.num_streams -&gt; &quot;dir&quot;
437
- *
438
- * Obtain the actual number of IO streams in this
439
- * context.
440
- */
441
- VALUE
442
- ruby_xml_parser_context_io_num_streams_get(VALUE self) {
443
-
444
- </pre>
445
- </div>
446
- </div>
447
- </div>
448
-
449
- <div id="method-M000090" class="method-detail">
450
- <a name="M000090"></a>
451
-
452
- <div class="method-heading">
453
- <a href="#M000090" class="method-signature">
454
- <span class="method-name">context.keep_blanks? &rarr; (true|false)<br />
455
- </span>
456
- </a>
457
- </div>
458
-
459
- <div class="method-description">
460
- <p>
461
- Determine whether parsers in this context retain whitespace.
462
- </p>
463
- <p><a class="source-toggle" href="#"
464
- onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
465
- <div class="method-source-code" id="M000090-source">
466
- <pre>
467
- /*
468
- * call-seq:
469
- * context.keep_blanks? -&gt; (true|false)
470
- *
471
- * Determine whether parsers in this context retain
472
- * whitespace.
473
- */
474
- VALUE
475
- ruby_xml_parser_context_keep_blanks_q(VALUE self) {
476
-
477
- </pre>
478
- </div>
479
- </div>
480
- </div>
481
-
482
- <div id="method-M000092" class="method-detail">
483
- <a name="M000092"></a>
484
-
485
- <div class="method-heading">
486
- <a href="#M000092" class="method-signature">
487
- <span class="method-name">context.name_depth &rarr; num<br />
488
- </span>
489
- </a>
490
- </div>
491
-
492
- <div class="method-description">
493
- <p>
494
- Obtain the name <a href="Context.html#M000082">depth</a> for this context.
495
- </p>
496
- <p><a class="source-toggle" href="#"
497
- onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
498
- <div class="method-source-code" id="M000092-source">
499
- <pre>
500
- /*
501
- * call-seq:
502
- * context.name_depth -&gt; num
503
- *
504
- * Obtain the name depth for this context.
505
- */
506
- VALUE
507
- ruby_xml_parser_context_name_depth_get(VALUE self) {
508
-
509
- </pre>
510
- </div>
511
- </div>
512
- </div>
513
-
514
- <div id="method-M000093" class="method-detail">
515
- <a name="M000093"></a>
516
-
517
- <div class="method-heading">
518
- <a href="#M000093" class="method-signature">
519
- <span class="method-name">context.name_depth_max &rarr; num<br />
520
- </span>
521
- </a>
522
- </div>
523
-
524
- <div class="method-description">
525
- <p>
526
- Obtain the maximum name <a href="Context.html#M000082">depth</a> for this
527
- context.
528
- </p>
529
- <p><a class="source-toggle" href="#"
530
- onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
531
- <div class="method-source-code" id="M000093-source">
532
- <pre>
533
- /*
534
- * call-seq:
535
- * context.name_depth_max -&gt; num
536
- *
537
- * Obtain the maximum name depth for this context.
538
- */
539
- VALUE
540
- ruby_xml_parser_context_name_depth_max_get(VALUE self) {
541
-
542
- </pre>
543
- </div>
544
- </div>
545
- </div>
546
-
547
- <div id="method-M000091" class="method-detail">
548
- <a name="M000091"></a>
549
-
550
- <div class="method-heading">
551
- <a href="#M000091" class="method-signature">
552
- <span class="method-name">context.name_node &rarr; "name"<br />
553
- </span>
554
- </a>
555
- </div>
556
-
557
- <div class="method-description">
558
- <p>
559
- Obtain the name <a href="Context.html#M000095">node</a> for this context.
560
- </p>
561
- <p><a class="source-toggle" href="#"
562
- onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
563
- <div class="method-source-code" id="M000091-source">
564
- <pre>
565
- /*
566
- * call-seq:
567
- * context.name_node -&gt; &quot;name&quot;
568
- *
569
- * Obtain the name node for this context.
570
- */
571
- VALUE
572
- ruby_xml_parser_context_name_node_get(VALUE self) {
573
-
574
- </pre>
575
- </div>
576
- </div>
577
- </div>
578
-
579
- <div id="method-M000094" class="method-detail">
580
- <a name="M000094"></a>
581
-
582
- <div class="method-heading">
583
- <a href="#M000094" class="method-signature">
584
- <span class="method-name">context.name_tab &rarr; ["name", ..., "name"]<br />
585
- </span>
586
- </a>
587
- </div>
588
-
589
- <div class="method-description">
590
- <p>
591
- Obtain the name table for this context.
592
- </p>
593
- <p><a class="source-toggle" href="#"
594
- onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
595
- <div class="method-source-code" id="M000094-source">
596
- <pre>
597
- /*
598
- * call-seq:
599
- * context.name_tab -&gt; [&quot;name&quot;, ..., &quot;name&quot;]
600
- *
601
- * Obtain the name table for this context.
602
- */
603
- VALUE
604
- ruby_xml_parser_context_name_tab_get(VALUE self) {
605
-
606
- </pre>
607
- </div>
608
- </div>
609
- </div>
610
-
611
- <div id="method-M000095" class="method-detail">
612
- <a name="M000095"></a>
613
-
614
- <div class="method-heading">
615
- <a href="#M000095" class="method-signature">
616
- <span class="method-name">context.node &rarr; node<br />
617
- </span>
618
- </a>
619
- </div>
620
-
621
- <div class="method-description">
622
- <p>
623
- Obtain the root <a href="Context.html#M000095">node</a> of this context.
624
- </p>
625
- <p><a class="source-toggle" href="#"
626
- onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
627
- <div class="method-source-code" id="M000095-source">
628
- <pre>
629
- /*
630
- * call-seq:
631
- * context.node -&gt; node
632
- *
633
- * Obtain the root node of this context.
634
- */
635
- VALUE
636
- ruby_xml_parser_context_node_get(VALUE self) {
637
-
638
- </pre>
639
- </div>
640
- </div>
641
- </div>
642
-
643
- <div id="method-M000096" class="method-detail">
644
- <a name="M000096"></a>
645
-
646
- <div class="method-heading">
647
- <a href="#M000096" class="method-signature">
648
- <span class="method-name">context.node_depth &rarr; num<br />
649
- </span>
650
- </a>
651
- </div>
652
-
653
- <div class="method-description">
654
- <p>
655
- Obtain the <a href="Context.html#M000095">node</a> <a
656
- href="Context.html#M000082">depth</a> for this context.
657
- </p>
658
- <p><a class="source-toggle" href="#"
659
- onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
660
- <div class="method-source-code" id="M000096-source">
661
- <pre>
662
- /*
663
- * call-seq:
664
- * context.node_depth -&gt; num
665
- *
666
- * Obtain the node depth for this context.
667
- */
668
- VALUE
669
- ruby_xml_parser_context_node_depth_get(VALUE self) {
670
-
671
- </pre>
672
- </div>
673
- </div>
674
- </div>
675
-
676
- <div id="method-M000097" class="method-detail">
677
- <a name="M000097"></a>
678
-
679
- <div class="method-heading">
680
- <a href="#M000097" class="method-signature">
681
- <span class="method-name">context.node_depth_max &rarr; num<br />
682
- </span>
683
- </a>
684
- </div>
685
-
686
- <div class="method-description">
687
- <p>
688
- Obtain the maximum <a href="Context.html#M000095">node</a> <a
689
- href="Context.html#M000082">depth</a> for this context.
690
- </p>
691
- <p><a class="source-toggle" href="#"
692
- onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
693
- <div class="method-source-code" id="M000097-source">
694
- <pre>
695
- /*
696
- * call-seq:
697
- * context.node_depth_max -&gt; num
698
- *
699
- * Obtain the maximum node depth for this context.
700
- */
701
- VALUE
702
- ruby_xml_parser_context_node_depth_max_get(VALUE self) {
703
-
704
- </pre>
705
- </div>
706
- </div>
707
- </div>
708
-
709
- <div id="method-M000098" class="method-detail">
710
- <a name="M000098"></a>
711
-
712
- <div class="method-heading">
713
- <a href="#M000098" class="method-signature">
714
- <span class="method-name">context.num_chars &rarr; num<br />
715
- </span>
716
- </a>
717
- </div>
718
-
719
- <div class="method-description">
720
- <p>
721
- Obtain the number of characters in this context.
722
- </p>
723
- <p><a class="source-toggle" href="#"
724
- onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
725
- <div class="method-source-code" id="M000098-source">
726
- <pre>
727
- /*
728
- * call-seq:
729
- * context.num_chars -&gt; num
730
- *
731
- * Obtain the number of characters in this context.
732
- */
733
- VALUE
734
- ruby_xml_parser_context_num_chars_get(VALUE self) {
735
-
736
- </pre>
737
- </div>
738
- </div>
739
- </div>
740
-
741
- <div id="method-M000100" class="method-detail">
742
- <a name="M000100"></a>
743
-
744
- <div class="method-heading">
745
- <a href="#M000100" class="method-signature">
746
- <span class="method-name">context.replace_entities = true|false<br />
747
- </span>
748
- </a>
749
- </div>
750
-
751
- <div class="method-description">
752
- <p>
753
- Control whether external entity replacement is enabled in this context.
754
- </p>
755
- <p><a class="source-toggle" href="#"
756
- onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
757
- <div class="method-source-code" id="M000100-source">
758
- <pre>
759
- /*
760
- * call-seq:
761
- * context.replace_entities = true|false
762
- *
763
- * Control whether external entity replacement is enabled in this
764
- * context.
765
- */
766
- VALUE
767
- ruby_xml_parser_context_replace_entities_set(VALUE self, VALUE bool) {
768
-
769
- </pre>
770
- </div>
771
- </div>
772
- </div>
773
-
774
- <div id="method-M000099" class="method-detail">
775
- <a name="M000099"></a>
776
-
777
- <div class="method-heading">
778
- <a href="#M000099" class="method-signature">
779
- <span class="method-name">context.replace_entities? &rarr; (true|false)<br />
780
- </span>
781
- </a>
782
- </div>
783
-
784
- <div class="method-description">
785
- <p>
786
- Determine whether external entity replacement is enabled in this context.
787
- </p>
788
- <p><a class="source-toggle" href="#"
789
- onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
790
- <div class="method-source-code" id="M000099-source">
791
- <pre>
792
- /*
793
- * call-seq:
794
- * context.replace_entities? -&gt; (true|false)
795
- *
796
- * Determine whether external entity replacement is enabled in this
797
- * context.
798
- */
799
- VALUE
800
- ruby_xml_parser_context_replace_entities_q(VALUE self) {
801
-
802
- </pre>
803
- </div>
804
- </div>
805
- </div>
806
-
807
- <div id="method-M000101" class="method-detail">
808
- <a name="M000101"></a>
809
-
810
- <div class="method-heading">
811
- <a href="#M000101" class="method-signature">
812
- <span class="method-name">context.space_depth &rarr; num<br />
813
- </span>
814
- </a>
815
- </div>
816
-
817
- <div class="method-description">
818
- <p>
819
- Obtain the space <a href="Context.html#M000082">depth</a> for this context.
820
- </p>
821
- <p><a class="source-toggle" href="#"
822
- onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
823
- <div class="method-source-code" id="M000101-source">
824
- <pre>
825
- /*
826
- * call-seq:
827
- * context.space_depth -&gt; num
828
- *
829
- * Obtain the space depth for this context.
830
- */
831
- VALUE
832
- ruby_xml_parser_context_space_depth_get(VALUE self) {
833
-
834
- </pre>
835
- </div>
836
- </div>
837
- </div>
838
-
839
- <div id="method-M000102" class="method-detail">
840
- <a name="M000102"></a>
841
-
842
- <div class="method-heading">
843
- <a href="#M000102" class="method-signature">
844
- <span class="method-name">context.space_depth &rarr; num<br />
845
- </span>
846
- </a>
847
- </div>
848
-
849
- <div class="method-description">
850
- <p>
851
- Obtain the maximum space <a href="Context.html#M000082">depth</a> for this
852
- context.
853
- </p>
854
- <p><a class="source-toggle" href="#"
855
- onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
856
- <div class="method-source-code" id="M000102-source">
857
- <pre>
858
- /*
859
- * call-seq:
860
- * context.space_depth -&gt; num
861
- *
862
- * Obtain the maximum space depth for this context.
863
- */
864
- VALUE
865
- ruby_xml_parser_context_space_depth_max_get(VALUE self) {
866
-
867
- </pre>
868
- </div>
869
- </div>
870
- </div>
871
-
872
- <div id="method-M000109" class="method-detail">
873
- <a name="M000109"></a>
874
-
875
- <div class="method-heading">
876
- <a href="#M000109" class="method-signature">
877
- <span class="method-name">context.standalone? &rarr; (true|false)<br />
878
- </span>
879
- </a>
880
- </div>
881
-
882
- <div class="method-description">
883
- <p>
884
- Determine whether this is a standalone context.
885
- </p>
886
- <p><a class="source-toggle" href="#"
887
- onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
888
- <div class="method-source-code" id="M000109-source">
889
- <pre>
890
- /*
891
- * call-seq:
892
- * context.standalone? -&gt; (true|false)
893
- *
894
- * Determine whether this is a standalone context.
895
- */
896
- VALUE
897
- ruby_xml_parser_context_standalone_q(VALUE self) {
898
-
899
- </pre>
900
- </div>
901
- </div>
902
- </div>
903
-
904
- <div id="method-M000108" class="method-detail">
905
- <a name="M000108"></a>
906
-
907
- <div class="method-heading">
908
- <a href="#M000108" class="method-signature">
909
- <span class="method-name">context.stats? &rarr; (true|false)<br />
910
- </span>
911
- </a>
912
- </div>
913
-
914
- <div class="method-description">
915
- <p>
916
- Determine whether this context maintains statistics.
917
- </p>
918
- <p><a class="source-toggle" href="#"
919
- onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
920
- <div class="method-source-code" id="M000108-source">
921
- <pre>
922
- /*
923
- * call-seq:
924
- * context.stats? -&gt; (true|false)
925
- *
926
- * Determine whether this context maintains statistics.
927
- */
928
- VALUE
929
- ruby_xml_parser_context_stats_q(VALUE self) {
930
-
931
- </pre>
932
- </div>
933
- </div>
934
- </div>
935
-
936
- <div id="method-M000103" class="method-detail">
937
- <a name="M000103"></a>
938
-
939
- <div class="method-heading">
940
- <a href="#M000103" class="method-signature">
941
- <span class="method-name">context.subset_external? &rarr; (true|false)<br />
942
- </span>
943
- </a>
944
- </div>
945
-
946
- <div class="method-description">
947
- <p>
948
- Determine whether this context is a subset of an external context.
949
- </p>
950
- <p><a class="source-toggle" href="#"
951
- onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
952
- <div class="method-source-code" id="M000103-source">
953
- <pre>
954
- /*
955
- * call-seq:
956
- * context.subset_external? -&gt; (true|false)
957
- *
958
- * Determine whether this context is a subset of an
959
- * external context.
960
- */
961
- VALUE
962
- ruby_xml_parser_context_subset_external_q(VALUE self) {
963
-
964
- </pre>
965
- </div>
966
- </div>
967
- </div>
968
-
969
- <div id="method-M000104" class="method-detail">
970
- <a name="M000104"></a>
971
-
972
- <div class="method-heading">
973
- <a href="#M000104" class="method-signature">
974
- <span class="method-name">context.subset_external_system_id &rarr; "system_id"<br />
975
- </span>
976
- </a>
977
- </div>
978
-
979
- <div class="method-description">
980
- <p>
981
- Obtain this context&#8216;s external subset system identifier. (<a
982
- href="Context.html#M000110">valid</a> only if either of <a
983
- href="Context.html#M000103">subset_external?</a> or <a
984
- href="Context.html#M000106">subset_internal?</a> is true).
985
- </p>
986
- <p><a class="source-toggle" href="#"
987
- onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
988
- <div class="method-source-code" id="M000104-source">
989
- <pre>
990
- /*
991
- * call-seq:
992
- * context.subset_external_system_id -&gt; &quot;system_id&quot;
993
- *
994
- * Obtain this context's external subset system identifier.
995
- * (valid only if either of subset_external? or subset_internal?
996
- * is true).
997
- */
998
- VALUE
999
- ruby_xml_parser_context_subset_external_system_id_get(VALUE self) {
1000
-
1001
- </pre>
1002
- </div>
1003
- </div>
1004
- </div>
1005
-
1006
- <div id="method-M000105" class="method-detail">
1007
- <a name="M000105"></a>
1008
-
1009
- <div class="method-heading">
1010
- <a href="#M000105" class="method-signature">
1011
- <span class="method-name">context.subset_name &rarr; "name"<br />
1012
- </span>
1013
- </a>
1014
- </div>
1015
-
1016
- <div class="method-description">
1017
- <p>
1018
- Obtain this context&#8216;s subset name (<a
1019
- href="Context.html#M000110">valid</a> only if either of <a
1020
- href="Context.html#M000103">subset_external?</a> or <a
1021
- href="Context.html#M000106">subset_internal?</a> is true).
1022
- </p>
1023
- <p><a class="source-toggle" href="#"
1024
- onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
1025
- <div class="method-source-code" id="M000105-source">
1026
- <pre>
1027
- /*
1028
- * call-seq:
1029
- * context.subset_name -&gt; &quot;name&quot;
1030
- *
1031
- * Obtain this context's subset name (valid only if
1032
- * either of subset_external? or subset_internal?
1033
- * is true).
1034
- */
1035
- VALUE
1036
- ruby_xml_parser_context_subset_name_get(VALUE self) {
1037
-
1038
- </pre>
1039
- </div>
1040
- </div>
1041
- </div>
1042
-
1043
- <div id="method-M000106" class="method-detail">
1044
- <a name="M000106"></a>
1045
-
1046
- <div class="method-heading">
1047
- <a href="#M000106" class="method-signature">
1048
- <span class="method-name">context.subset_internal? &rarr; (true|false)<br />
1049
- </span>
1050
- </a>
1051
- </div>
1052
-
1053
- <div class="method-description">
1054
- <p>
1055
- Determine whether this context is a subset of an internal context.
1056
- </p>
1057
- <p><a class="source-toggle" href="#"
1058
- onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
1059
- <div class="method-source-code" id="M000106-source">
1060
- <pre>
1061
- /*
1062
- * call-seq:
1063
- * context.subset_internal? -&gt; (true|false)
1064
- *
1065
- * Determine whether this context is a subset of an
1066
- * internal context.
1067
- */
1068
- VALUE
1069
- ruby_xml_parser_context_subset_internal_q(VALUE self) {
1070
-
1071
- </pre>
1072
- </div>
1073
- </div>
1074
- </div>
1075
-
1076
- <div id="method-M000107" class="method-detail">
1077
- <a name="M000107"></a>
1078
-
1079
- <div class="method-heading">
1080
- <a href="#M000107" class="method-signature">
1081
- <span class="method-name">context.subset_name &rarr; "name"<br />
1082
- </span>
1083
- </a>
1084
- </div>
1085
-
1086
- <div class="method-description">
1087
- <p>
1088
- Obtain this context&#8216;s subset name (<a
1089
- href="Context.html#M000110">valid</a> only if either of <a
1090
- href="Context.html#M000103">subset_external?</a> or <a
1091
- href="Context.html#M000106">subset_internal?</a> is true).
1092
- </p>
1093
- <p><a class="source-toggle" href="#"
1094
- onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
1095
- <div class="method-source-code" id="M000107-source">
1096
- <pre>
1097
- /*
1098
- * call-seq:
1099
- * context.subset_name -&gt; &quot;name&quot;
1100
- *
1101
- * Obtain this context's subset name (valid only if
1102
- * either of subset_external? or subset_internal?
1103
- * is true).
1104
- */
1105
- VALUE
1106
- ruby_xml_parser_context_subset_name_get(VALUE self) {
1107
-
1108
- </pre>
1109
- </div>
1110
- </div>
1111
- </div>
1112
-
1113
- <div id="method-M000110" class="method-detail">
1114
- <a name="M000110"></a>
1115
-
1116
- <div class="method-heading">
1117
- <a href="#M000110" class="method-signature">
1118
- <span class="method-name">context.valid? &rarr; (true|false)<br />
1119
- </span>
1120
- </a>
1121
- </div>
1122
-
1123
- <div class="method-description">
1124
- <p>
1125
- Determine whether this context is <a href="Context.html#M000110">valid</a>.
1126
- </p>
1127
- <p><a class="source-toggle" href="#"
1128
- onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
1129
- <div class="method-source-code" id="M000110-source">
1130
- <pre>
1131
- /*
1132
- * call-seq:
1133
- * context.valid? -&gt; (true|false)
1134
- *
1135
- * Determine whether this context is valid.
1136
- */
1137
- VALUE
1138
- ruby_xml_parser_context_valid_q(VALUE self) {
1139
-
1140
- </pre>
1141
- </div>
1142
- </div>
1143
- </div>
1144
-
1145
- <div id="method-M000111" class="method-detail">
1146
- <a name="M000111"></a>
1147
-
1148
- <div class="method-heading">
1149
- <a href="#M000111" class="method-signature">
1150
- <span class="method-name">context.validate? &rarr; (true|false)<br />
1151
- </span>
1152
- </a>
1153
- </div>
1154
-
1155
- <div class="method-description">
1156
- <p>
1157
- Determine whether validation is enabled in this context.
1158
- </p>
1159
- <p><a class="source-toggle" href="#"
1160
- onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
1161
- <div class="method-source-code" id="M000111-source">
1162
- <pre>
1163
- /*
1164
- * call-seq:
1165
- * context.validate? -&gt; (true|false)
1166
- *
1167
- * Determine whether validation is enabled in this context.
1168
- */
1169
- VALUE
1170
- ruby_xml_parser_context_validate_q(VALUE self) {
1171
-
1172
- </pre>
1173
- </div>
1174
- </div>
1175
- </div>
1176
-
1177
- <div id="method-M000112" class="method-detail">
1178
- <a name="M000112"></a>
1179
-
1180
- <div class="method-heading">
1181
- <a href="#M000112" class="method-signature">
1182
- <span class="method-name">context.version &rarr; "version"<br />
1183
- </span>
1184
- </a>
1185
- </div>
1186
-
1187
- <div class="method-description">
1188
- <p>
1189
- Obtain this context&#8216;s <a href="Context.html#M000112">version</a>
1190
- identifier.
1191
- </p>
1192
- <p><a class="source-toggle" href="#"
1193
- onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
1194
- <div class="method-source-code" id="M000112-source">
1195
- <pre>
1196
- /*
1197
- * call-seq:
1198
- * context.version -&gt; &quot;version&quot;
1199
- *
1200
- * Obtain this context's version identifier.
1201
- */
1202
- VALUE
1203
- ruby_xml_parser_context_version_get(VALUE self) {
1204
-
1205
- </pre>
1206
- </div>
1207
- </div>
1208
- </div>
1209
-
1210
- <div id="method-M000113" class="method-detail">
1211
- <a name="M000113"></a>
1212
-
1213
- <div class="method-heading">
1214
- <a href="#M000113" class="method-signature">
1215
- <span class="method-name">context.well_formed? &rarr; (true|false)<br />
1216
- </span>
1217
- </a>
1218
- </div>
1219
-
1220
- <div class="method-description">
1221
- <p>
1222
- Determine whether this context contains well-formed <a
1223
- href="../../XML.html">XML</a>.
1224
- </p>
1225
- <p><a class="source-toggle" href="#"
1226
- onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
1227
- <div class="method-source-code" id="M000113-source">
1228
- <pre>
1229
- /*
1230
- * call-seq:
1231
- * context.well_formed? -&gt; (true|false)
1232
- *
1233
- * Determine whether this context contains well-formed XML.
1234
- */
1235
- VALUE
1236
- ruby_xml_parser_context_well_formed_q(VALUE self) {
1237
-
1238
- </pre>
1239
- </div>
1240
- </div>
1241
- </div>
1242
-
1243
-
1244
- </div>
1245
-
1246
-
1247
- </div>
1248
-
1249
-
1250
- <div id="validator-badges">
1251
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
1252
- </div>
1253
-
1254
- </body>
1255
- </html>