libxml-ruby 1.1.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{CHANGES → HISTORY} +35 -0
- data/LICENSE +1 -0
- data/MANIFEST +165 -0
- data/{README → README.rdoc} +2 -2
- data/Rakefile +47 -147
- data/ext/libxml/libxml.c +17 -1
- data/ext/libxml/ruby_libxml.h +9 -1
- data/ext/libxml/ruby_xml_attr.c +3 -3
- data/ext/libxml/ruby_xml_attr_decl.c +32 -32
- data/ext/libxml/ruby_xml_attributes.c +1 -1
- data/ext/libxml/ruby_xml_cbg.c +1 -2
- data/ext/libxml/ruby_xml_document.c +26 -4
- data/ext/libxml/ruby_xml_dtd.c +3 -3
- data/ext/libxml/ruby_xml_encoding.c +92 -5
- data/ext/libxml/ruby_xml_encoding.h +4 -0
- data/ext/libxml/ruby_xml_namespace.c +2 -2
- data/ext/libxml/ruby_xml_node.c +14 -14
- data/ext/libxml/ruby_xml_parser_context.c +8 -8
- data/ext/libxml/ruby_xml_reader.c +98 -43
- data/ext/libxml/ruby_xml_sax2_handler.c +13 -1
- data/ext/libxml/ruby_xml_sax_parser.c +4 -5
- data/ext/libxml/ruby_xml_version.h +5 -5
- data/ext/libxml/ruby_xml_xpath_context.c +9 -6
- data/ext/libxml/ruby_xml_xpath_object.c +1 -1
- data/ext/vc/libxml_ruby.sln +4 -4
- data/lib/libxml.rb +29 -29
- data/lib/libxml/attr.rb +112 -110
- data/lib/libxml/attr_decl.rb +2 -0
- data/lib/libxml/attributes.rb +13 -11
- data/lib/libxml/document.rb +192 -190
- data/lib/libxml/error.rb +89 -87
- data/lib/libxml/hpricot.rb +77 -75
- data/lib/libxml/html_parser.rb +96 -94
- data/lib/libxml/namespace.rb +61 -59
- data/lib/libxml/namespaces.rb +37 -35
- data/lib/libxml/node.rb +398 -384
- data/lib/libxml/ns.rb +21 -19
- data/lib/libxml/parser.rb +366 -364
- data/lib/libxml/properties.rb +22 -20
- data/lib/libxml/reader.rb +2 -0
- data/lib/libxml/sax_callbacks.rb +179 -177
- data/lib/libxml/sax_parser.rb +57 -55
- data/lib/libxml/tree.rb +28 -26
- data/lib/libxml/xpath_object.rb +15 -13
- data/lib/xml.rb +16 -14
- data/lib/xml/libxml.rb +10 -8
- data/libxml-ruby.gemspec +50 -0
- data/script/benchmark/depixelate +634 -0
- data/script/benchmark/hamlet.xml +9055 -0
- data/script/benchmark/parsecount +170 -0
- data/script/benchmark/sock_entries.xml +507 -0
- data/script/benchmark/throughput +41 -0
- data/script/test +6 -0
- data/test/etc_doc_to_s.rb +21 -19
- data/test/ets_doc_file.rb +17 -15
- data/test/ets_doc_to_s.rb +23 -21
- data/test/ets_gpx.rb +28 -26
- data/test/ets_node_gc.rb +23 -21
- data/test/ets_tsr.rb +11 -9
- data/test/model/bands.iso-8859-1.xml +5 -0
- data/test/model/bands.utf-8.xml +5 -0
- data/test/rb-magic-comment.rb +33 -0
- data/test/tc_attr.rb +181 -170
- data/test/tc_attr_decl.rb +3 -1
- data/test/tc_attributes.rb +134 -132
- data/test/tc_deprecated_require.rb +13 -11
- data/test/tc_document.rb +119 -113
- data/test/tc_document_write.rb +186 -117
- data/test/tc_dtd.rb +125 -123
- data/test/tc_error.rb +3 -1
- data/test/tc_html_parser.rb +139 -137
- data/test/tc_namespace.rb +61 -58
- data/test/tc_namespaces.rb +176 -173
- data/test/tc_node.rb +257 -180
- data/test/tc_node_cdata.rb +51 -49
- data/test/tc_node_comment.rb +33 -30
- data/test/tc_node_copy.rb +42 -40
- data/test/tc_node_edit.rb +159 -157
- data/test/tc_node_text.rb +71 -69
- data/test/tc_node_write.rb +41 -16
- data/test/tc_node_xlink.rb +29 -26
- data/test/tc_parser.rb +335 -329
- data/test/tc_parser_context.rb +188 -185
- data/test/tc_properties.rb +39 -36
- data/test/tc_reader.rb +297 -283
- data/test/tc_relaxng.rb +54 -51
- data/test/tc_sax_parser.rb +275 -273
- data/test/tc_schema.rb +53 -51
- data/test/tc_traversal.rb +222 -220
- data/test/tc_xinclude.rb +21 -19
- data/test/tc_xml.rb +3 -1
- data/test/tc_xpath.rb +195 -193
- data/test/tc_xpath_context.rb +80 -78
- data/test/tc_xpath_expression.rb +38 -35
- data/test/tc_xpointer.rb +74 -72
- data/test/test_helper.rb +14 -0
- data/test/test_suite.rb +39 -33
- metadata +65 -105
- data/doc/css/normal.css +0 -182
- data/doc/img/raze-tiny.png +0 -0
- data/doc/img/red-cube.jpg +0 -0
- data/doc/img/xml-ruby.png +0 -0
- data/doc/index.xml +0 -43
- data/doc/install.xml +0 -77
- data/doc/layout.rhtml +0 -38
- data/doc/layout.xsl +0 -67
- data/doc/license.xml +0 -32
- data/doc/log/changelog.xml +0 -1324
- data/doc/log/changelog.xsl +0 -42
- data/ext/libxml/Makefile +0 -156
- data/ext/libxml/extconf.h +0 -5
- data/ext/libxml/libxml-ruby.so.a +0 -0
- data/ext/libxml/libxml.o +0 -0
- data/ext/libxml/libxml_ruby.so +0 -0
- data/ext/libxml/mkmf.log +0 -129
- data/ext/libxml/ruby_xml.o +0 -0
- data/ext/libxml/ruby_xml_attr.o +0 -0
- data/ext/libxml/ruby_xml_attr_decl.o +0 -0
- data/ext/libxml/ruby_xml_attributes.o +0 -0
- data/ext/libxml/ruby_xml_cbg.o +0 -0
- data/ext/libxml/ruby_xml_document.o +0 -0
- data/ext/libxml/ruby_xml_dtd.o +0 -0
- data/ext/libxml/ruby_xml_encoding.o +0 -0
- data/ext/libxml/ruby_xml_error.o +0 -0
- data/ext/libxml/ruby_xml_html_parser.o +0 -0
- data/ext/libxml/ruby_xml_html_parser_context.o +0 -0
- data/ext/libxml/ruby_xml_html_parser_options.o +0 -0
- data/ext/libxml/ruby_xml_input_cbg.o +0 -0
- data/ext/libxml/ruby_xml_io.o +0 -0
- data/ext/libxml/ruby_xml_namespace.o +0 -0
- data/ext/libxml/ruby_xml_namespaces.o +0 -0
- data/ext/libxml/ruby_xml_node.o +0 -0
- data/ext/libxml/ruby_xml_parser.o +0 -0
- data/ext/libxml/ruby_xml_parser_context.o +0 -0
- data/ext/libxml/ruby_xml_parser_options.o +0 -0
- data/ext/libxml/ruby_xml_reader.o +0 -0
- data/ext/libxml/ruby_xml_relaxng.o +0 -0
- data/ext/libxml/ruby_xml_sax2_handler.o +0 -0
- data/ext/libxml/ruby_xml_sax_parser.o +0 -0
- data/ext/libxml/ruby_xml_schema.o +0 -0
- data/ext/libxml/ruby_xml_xinclude.o +0 -0
- data/ext/libxml/ruby_xml_xpath.o +0 -0
- data/ext/libxml/ruby_xml_xpath_context.o +0 -0
- data/ext/libxml/ruby_xml_xpath_expression.o +0 -0
- data/ext/libxml/ruby_xml_xpath_object.o +0 -0
- data/ext/libxml/ruby_xml_xpointer.o +0 -0
data/lib/libxml/ns.rb
CHANGED
@@ -1,20 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
module LibXML
|
4
|
+
module XML
|
5
|
+
class NS < Namespace # :nodoc:
|
6
|
+
def initialize(node, prefix, href)
|
7
|
+
warn('The XML::NS class is deprecated. Use XML::Namespace instead.')
|
8
|
+
super(node, href, prefix)
|
9
|
+
end
|
10
|
+
|
11
|
+
def href?
|
12
|
+
warn('XML::NS#href? is deprecated. Use !XML::NS#href.nil? instead.')
|
13
|
+
not self.href.nil?
|
14
|
+
end
|
15
|
+
|
16
|
+
def prefix?
|
17
|
+
warn('XML::NS#prefix? is deprecated. Use !XML::NS#prefix?.nil? instead.')
|
18
|
+
not self.previx.nil?
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
20
22
|
end
|
data/lib/libxml/parser.rb
CHANGED
@@ -1,365 +1,367 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
#
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
context
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
context
|
60
|
-
context.
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
#
|
67
|
-
#
|
68
|
-
#
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
72
|
-
#
|
73
|
-
#
|
74
|
-
#
|
75
|
-
#
|
76
|
-
#
|
77
|
-
#
|
78
|
-
#
|
79
|
-
#
|
80
|
-
#
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
context
|
85
|
-
context.
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
Error.
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
#
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
module LibXML
|
4
|
+
module XML
|
5
|
+
class Parser
|
6
|
+
# call-seq:
|
7
|
+
# XML::Parser.document(document) -> XML::Parser
|
8
|
+
#
|
9
|
+
# Creates a new parser for the specified document.
|
10
|
+
#
|
11
|
+
# Parameters:
|
12
|
+
#
|
13
|
+
# document - A preparsed document.
|
14
|
+
def self.document(doc)
|
15
|
+
context = XML::Parser::Context.document(doc)
|
16
|
+
self.new(context)
|
17
|
+
end
|
18
|
+
|
19
|
+
# call-seq:
|
20
|
+
# XML::Parser.file(path) -> XML::Parser
|
21
|
+
# XML::Parser.file(path, :encoding => XML::Encoding::UTF_8,
|
22
|
+
# :options => XML::Parser::Options::NOENT) -> XML::Parser
|
23
|
+
#
|
24
|
+
# Creates a new parser for the specified file or uri.
|
25
|
+
#
|
26
|
+
# You may provide an optional hash table to control how the
|
27
|
+
# parsing is performed. Valid options are:
|
28
|
+
#
|
29
|
+
# encoding - The document encoding, defaults to nil. Valid values
|
30
|
+
# are the encoding constants defined on XML::Encoding.
|
31
|
+
# options - Parser options. Valid values are the constants defined on
|
32
|
+
# XML::Parser::Options. Mutliple options can be combined
|
33
|
+
# by using Bitwise OR (|).
|
34
|
+
def self.file(path, options = {})
|
35
|
+
context = XML::Parser::Context.file(path)
|
36
|
+
context.encoding = options[:encoding] if options[:encoding]
|
37
|
+
context.options = options[:options] if options[:options]
|
38
|
+
self.new(context)
|
39
|
+
end
|
40
|
+
|
41
|
+
# call-seq:
|
42
|
+
# XML::Parser.io(io) -> XML::Parser
|
43
|
+
# XML::Parser.io(io, :encoding => XML::Encoding::UTF_8,
|
44
|
+
# :options => XML::Parser::Options::NOENT
|
45
|
+
# :base_uri="http://libxml.org") -> XML::Parser
|
46
|
+
#
|
47
|
+
# Creates a new parser for the specified io object.
|
48
|
+
#
|
49
|
+
# Parameters:
|
50
|
+
#
|
51
|
+
# io - io object that contains the xml to parser
|
52
|
+
# base_uri - The base url for the parsed document.
|
53
|
+
# encoding - The document encoding, defaults to nil. Valid values
|
54
|
+
# are the encoding constants defined on XML::Encoding.
|
55
|
+
# options - Parser options. Valid values are the constants defined on
|
56
|
+
# XML::Parser::Options. Mutliple options can be combined
|
57
|
+
# by using Bitwise OR (|).
|
58
|
+
def self.io(io, options = {})
|
59
|
+
context = XML::Parser::Context.io(io)
|
60
|
+
context.base_uri = options[:base_uri] if options[:base_uri]
|
61
|
+
context.encoding = options[:encoding] if options[:encoding]
|
62
|
+
context.options = options[:options] if options[:options]
|
63
|
+
self.new(context)
|
64
|
+
end
|
65
|
+
|
66
|
+
# call-seq:
|
67
|
+
# XML::Parser.string(string)
|
68
|
+
# XML::Parser.string(string, :encoding => XML::Encoding::UTF_8,
|
69
|
+
# :options => XML::Parser::Options::NOENT
|
70
|
+
# :base_uri="http://libxml.org") -> XML::Parser
|
71
|
+
#
|
72
|
+
# Creates a new parser by parsing the specified string.
|
73
|
+
#
|
74
|
+
# You may provide an optional hash table to control how the
|
75
|
+
# parsing is performed. Valid options are:
|
76
|
+
#
|
77
|
+
# base_uri - The base url for the parsed document.
|
78
|
+
# encoding - The document encoding, defaults to nil. Valid values
|
79
|
+
# are the encoding constants defined on XML::Encoding.
|
80
|
+
# options - Parser options. Valid values are the constants defined on
|
81
|
+
# XML::Parser::Options. Mutliple options can be combined
|
82
|
+
# by using Bitwise OR (|).
|
83
|
+
def self.string(string, options = {})
|
84
|
+
context = XML::Parser::Context.string(string)
|
85
|
+
context.base_uri = options[:base_uri] if options[:base_uri]
|
86
|
+
context.encoding = options[:encoding] if options[:encoding]
|
87
|
+
context.options = options[:options] if options[:options]
|
88
|
+
self.new(context)
|
89
|
+
end
|
90
|
+
|
91
|
+
def self.register_error_handler(proc)
|
92
|
+
warn('Parser.register_error_handler is deprecated. Use Error.set_handler instead')
|
93
|
+
if proc.nil?
|
94
|
+
Error.reset_handler
|
95
|
+
else
|
96
|
+
Error.set_handler(&proc)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# :enddoc:
|
101
|
+
|
102
|
+
# Bunch of deprecated methods that have moved to the XML module
|
103
|
+
VERSION = XML::VERSION
|
104
|
+
VERNUM = XML::VERNUM
|
105
|
+
|
106
|
+
def document=(value)
|
107
|
+
warn("XML::Parser#document= is deprecated. Use XML::Parser.document= instead")
|
108
|
+
@context = XML::Parser::Context.document(value)
|
109
|
+
end
|
110
|
+
|
111
|
+
def file=(value)
|
112
|
+
warn("XML::Parser#file is deprecated. Use XML::Parser.file instead")
|
113
|
+
@context = XML::Parser::Context.file(value)
|
114
|
+
end
|
115
|
+
|
116
|
+
def filename=(value)
|
117
|
+
warn("XML::Parser#filename is deprecated. Use XML::Parser.file instead")
|
118
|
+
self.file = value
|
119
|
+
end
|
120
|
+
|
121
|
+
def io=(value)
|
122
|
+
warn("XML::Parser#io is deprecated. Use XML::Parser.io instead")
|
123
|
+
@context = XML::Parser::Context.io(value)
|
124
|
+
end
|
125
|
+
|
126
|
+
def string=(value)
|
127
|
+
warn("XML::Parser#string is deprecated. Use XML::Parser.string instead")
|
128
|
+
@context = XML::Parser::Context.string(value)
|
129
|
+
end
|
130
|
+
|
131
|
+
def self.enabled_automata?
|
132
|
+
warn("XML::Parser.enabled_automata? has been deprecated. Use XML.enabled_automata? instead")
|
133
|
+
XML.enabled_automata?
|
134
|
+
end
|
135
|
+
|
136
|
+
def self.enabled_c14n?
|
137
|
+
warn("XML::Parser.enabled_c14n? has been deprecated. Use XML.enabled_c14n? instead")
|
138
|
+
XML.enabled_c14n?
|
139
|
+
end
|
140
|
+
|
141
|
+
def self.enabled_catalog?
|
142
|
+
warn("XML::Parser.enabled_catalog? has been deprecated. Use XML.enabled_catalog? instead")
|
143
|
+
XML.enabled_catalog?
|
144
|
+
end
|
145
|
+
|
146
|
+
def self.enabled_debug?
|
147
|
+
warn("XML::Parser.enabled_debug? has been deprecated. Use XML.enabled_debug? instead")
|
148
|
+
XML.enabled_debug?
|
149
|
+
end
|
150
|
+
|
151
|
+
def self.enabled_docbook?
|
152
|
+
warn("XML::Parser.enabled_docbook? has been deprecated. Use XML.enabled_docbook? instead")
|
153
|
+
XML.enabled_docbook?
|
154
|
+
end
|
155
|
+
|
156
|
+
def self.enabled_ftp?
|
157
|
+
warn("XML::Parser.enabled_ftp? has been deprecated. Use XML.enabled_ftp? instead")
|
158
|
+
XML.enabled_ftp?
|
159
|
+
end
|
160
|
+
|
161
|
+
def self.enabled_http?
|
162
|
+
warn("XML::Parser.enabled_http? has been deprecated. Use XML.enabled_http? instead")
|
163
|
+
XML.enabled_http?
|
164
|
+
end
|
165
|
+
|
166
|
+
def self.enabled_html?
|
167
|
+
warn("XML::Parser.enabled_html? has been deprecated. Use XML.enabled_html? instead")
|
168
|
+
XML.enabled_html?
|
169
|
+
end
|
170
|
+
|
171
|
+
def self.enabled_iconv?
|
172
|
+
warn("XML::Parser.enabled_iconv? has been deprecated. Use XML.enabled_iconv? instead")
|
173
|
+
XML.enabled_iconv?
|
174
|
+
end
|
175
|
+
|
176
|
+
def self.enabled_memory_debug?
|
177
|
+
warn("XML::Parser.enabled_memory_debug_location? has been deprecated. Use XML.enabled_memory_debug_location? instead")
|
178
|
+
XML.enabled_memory_debug_location?
|
179
|
+
end
|
180
|
+
|
181
|
+
def self.enabled_regexp?
|
182
|
+
warn("XML::Parser.enabled_regexp? has been deprecated. Use XML.enabled_regexp? instead")
|
183
|
+
XML.enabled_regexp?
|
184
|
+
end
|
185
|
+
|
186
|
+
def self.enabled_schemas?
|
187
|
+
warn("XML::Parser.enabled_schemas? has been deprecated. Use XML.enabled_schemas? instead")
|
188
|
+
XML.enabled_schemas?
|
189
|
+
end
|
190
|
+
|
191
|
+
def self.enabled_thread?
|
192
|
+
warn("XML::Parser.enabled_thread? has been deprecated. Use XML.enabled_thread? instead")
|
193
|
+
XML.enabled_thread?
|
194
|
+
end
|
195
|
+
|
196
|
+
def self.enabled_unicode?
|
197
|
+
warn("XML::Parser.enabled_unicode? has been deprecated. Use XML.enabled_unicode? instead")
|
198
|
+
XML.enabled_unicode?
|
199
|
+
end
|
200
|
+
|
201
|
+
def self.enabled_xinclude?
|
202
|
+
warn("XML::Parser.enabled_xinclude? has been deprecated. Use XML.enabled_xinclude? instead")
|
203
|
+
XML.enabled_xinclude?
|
204
|
+
end
|
205
|
+
|
206
|
+
def self.enabled_xpath?
|
207
|
+
warn("XML::Parser.enabled_xpath? has been deprecated. Use XML.enabled_xpath? instead")
|
208
|
+
XML.enabled_xpath?
|
209
|
+
end
|
210
|
+
|
211
|
+
def self.enabled_xpointer?
|
212
|
+
warn("XML::Parser.enabled_xpointer? has been deprecated. Use XML.enabled_xpointer? instead")
|
213
|
+
XML.enabled_xpointer?
|
214
|
+
end
|
215
|
+
|
216
|
+
def self.enabled_zlib?
|
217
|
+
warn("XML::Parser.enabled_zlib? has been deprecated. Use XML.enabled_zlib? instead")
|
218
|
+
XML.enabled_zlib?
|
219
|
+
end
|
220
|
+
|
221
|
+
def self.catalog_dump
|
222
|
+
warn("XML::Parser.catalog_dump has been deprecated. Use XML.catalog_dump instead")
|
223
|
+
XML.catalog_dump
|
224
|
+
end
|
225
|
+
|
226
|
+
def self.catalog_remove
|
227
|
+
warn("XML::Parser.catalog_remove has been deprecated. Use XML.catalog_remove instead")
|
228
|
+
XML.catalog_remove
|
229
|
+
end
|
230
|
+
|
231
|
+
def self.check_lib_versions
|
232
|
+
warn("XML::Parser.check_lib_versions has been deprecated. Use XML.check_lib_versions instead")
|
233
|
+
XML.check_lib_versions
|
234
|
+
end
|
235
|
+
|
236
|
+
def self.debug_entities
|
237
|
+
warn("XML::Parser.debug_entities has been deprecated. Use XML.debug_entities instead")
|
238
|
+
XML.debug_entities
|
239
|
+
end
|
240
|
+
|
241
|
+
def self.debug_entities=(value)
|
242
|
+
warn("XML::Parser.debug_entities_set has been deprecated. Use XML.debug_entities= value instead")
|
243
|
+
XML.debug_entities= value
|
244
|
+
end
|
245
|
+
|
246
|
+
def self.default_compression
|
247
|
+
warn("XML::Parser.default_compression has been deprecated. Use XML.default_compression instead")
|
248
|
+
XML.default_compression
|
249
|
+
end
|
250
|
+
|
251
|
+
def self.default_compression=(value)
|
252
|
+
warn("XML::Parser.default_compression= value has been deprecated. Use XML.default_compression= value instead")
|
253
|
+
XML.default_compression= value
|
254
|
+
end
|
255
|
+
|
256
|
+
def self.default_keep_blanks
|
257
|
+
warn("XML::Parser.default_keep_blanks has been deprecated. Use XML.default_keep_blanks instead")
|
258
|
+
XML.default_keep_blanks
|
259
|
+
end
|
260
|
+
|
261
|
+
def self.default_keep_blanks=(value)
|
262
|
+
warn("XML::Parser.default_keep_blanks= value has been deprecated. Use XML.default_keep_blanks= value instead")
|
263
|
+
XML.default_keep_blanks= value
|
264
|
+
end
|
265
|
+
|
266
|
+
def self.default_load_external_dtd
|
267
|
+
warn("XML::Parser.default_load_external_dtd has been deprecated. Use XML.default_load_external_dtd instead")
|
268
|
+
XML.default_load_external_dtd
|
269
|
+
end
|
270
|
+
|
271
|
+
def self.default_load_external_dtd=(value)
|
272
|
+
warn("XML::Parser.default_load_external_dtd= value has been deprecated. Use XML.default_load_external_dtd= value instead")
|
273
|
+
XML.default_load_external_dtd= value
|
274
|
+
end
|
275
|
+
|
276
|
+
def self.default_line_numbers
|
277
|
+
warn("XML::Parser.default_line_numbers has been deprecated. Use XML.default_line_numbers instead")
|
278
|
+
XML.default_line_numbers
|
279
|
+
end
|
280
|
+
|
281
|
+
def self.default_line_numbers=(value)
|
282
|
+
warn("XML::Parser.default_line_numbers= value has been deprecated. Use XML.default_line_numbers= value instead")
|
283
|
+
XML.default_line_numbers= value
|
284
|
+
end
|
285
|
+
|
286
|
+
def self.default_pedantic_parser
|
287
|
+
warn("XML::Parser.default_pedantic_parser has been deprecated. Use XML.default_pedantic_parser instead")
|
288
|
+
XML.default_pedantic_parser
|
289
|
+
end
|
290
|
+
|
291
|
+
def self.default_pedantic_parser=(value)
|
292
|
+
warn("XML::Parser.default_pedantic_parser= value has been deprecated. Use XML.default_pedantic_parser= value instead")
|
293
|
+
XML.default_pedantic_parser= value
|
294
|
+
end
|
295
|
+
|
296
|
+
def self.default_substitute_entities
|
297
|
+
warn("XML::Parser.default_substitute_entities has been deprecated. Use XML.default_substitute_entities instead")
|
298
|
+
XML.default_substitute_entities
|
299
|
+
end
|
300
|
+
|
301
|
+
def self.default_substitute_entities=(value)
|
302
|
+
warn("XML::Parser.default_substitute_entities= value has been deprecated. Use XML.default_substitute_entities= value instead")
|
303
|
+
XML.default_substitute_entities= value
|
304
|
+
end
|
305
|
+
|
306
|
+
def self.default_tree_indent_string
|
307
|
+
warn("XML::Parser.default_tree_indent_string has been deprecated. Use XML.default_tree_indent_string instead")
|
308
|
+
XML.default_tree_indent_string
|
309
|
+
end
|
310
|
+
|
311
|
+
def self.default_tree_indent_string=(value)
|
312
|
+
warn("XML::Parser.default_tree_indent_string= value has been deprecated. Use XML.default_tree_indent_string= value instead")
|
313
|
+
XML.default_tree_indent_string= value
|
314
|
+
end
|
315
|
+
|
316
|
+
def self.default_validity_checking
|
317
|
+
warn("XML::Parser.default_validity_checking has been deprecated. Use XML.default_validity_checking instead")
|
318
|
+
XML.default_validity_checking
|
319
|
+
end
|
320
|
+
|
321
|
+
def self.default_validity_checking=(value)
|
322
|
+
warn("XML::Parser.default_validity_checking= value has been deprecated. Use XML.default_validity_checking= value instead")
|
323
|
+
XML.default_validity_checking= value
|
324
|
+
end
|
325
|
+
|
326
|
+
def self.default_warnings
|
327
|
+
warn("XML::Parser.default_warnings has been deprecated. Use XML.default_warnings instead")
|
328
|
+
XML.default_warnings
|
329
|
+
end
|
330
|
+
|
331
|
+
def self.default_warnings=(value)
|
332
|
+
warn("XML::Parser.default_warnings= value has been deprecated. Use XML.default_warnings= value instead")
|
333
|
+
XML.default_warnings= value
|
334
|
+
end
|
335
|
+
|
336
|
+
def self.features
|
337
|
+
warn("XML::Parser.features has been deprecated. Use XML.features instead")
|
338
|
+
XML.features
|
339
|
+
end
|
340
|
+
|
341
|
+
def self.indent_tree_output
|
342
|
+
warn("XML::Parser.indent_tree_output has been deprecated. Use XML.indent_tree_output instead")
|
343
|
+
XML.indent_tree_output
|
344
|
+
end
|
345
|
+
|
346
|
+
def self.indent_tree_output=(value)
|
347
|
+
warn("XML::Parser.indent_tree_output= value has been deprecated. Use XML.indent_tree_output= value instead")
|
348
|
+
XML.indent_tree_output= value
|
349
|
+
end
|
350
|
+
|
351
|
+
def self.filename(value)
|
352
|
+
warn("Parser.filename is deprecated. Use Parser.file instead")
|
353
|
+
self.file(value)
|
354
|
+
end
|
355
|
+
|
356
|
+
def self.memory_dump
|
357
|
+
warn("XML::Parser.memory_dump has been deprecated. Use XML.memory_dump instead")
|
358
|
+
XML.memory_dump
|
359
|
+
end
|
360
|
+
|
361
|
+
def self.memory_used
|
362
|
+
warn("XML::Parser.memory_used has been deprecated. Use XML.memory_used instead")
|
363
|
+
XML.memory_used
|
364
|
+
end
|
365
|
+
end
|
366
|
+
end
|
365
367
|
end
|