libxml-ruby 0.8.3-x86-mswin32-60 → 0.9.0-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) 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/{lib → ext/mingw}/libiconv-2.dll +0 -0
  43. data/ext/mingw/libxml2-2.dll +0 -0
  44. data/ext/mingw/libxml_ruby.dll.a +0 -0
  45. data/ext/mingw/libxml_ruby.so +0 -0
  46. data/ext/vc/libxml_ruby.vcproj +23 -15
  47. data/lib/libxml.rb +8 -2
  48. data/lib/libxml/document.rb +16 -4
  49. data/lib/libxml/error.rb +84 -0
  50. data/lib/libxml/hpricot.rb +76 -0
  51. data/lib/libxml/html_parser.rb +61 -0
  52. data/lib/libxml/node.rb +36 -25
  53. data/lib/libxml/parser.rb +312 -33
  54. data/lib/libxml/parser_context.rb +17 -0
  55. data/lib/libxml/properties.rb +15 -2
  56. data/lib/libxml/reader.rb +15 -0
  57. data/lib/libxml/sax_callbacks.rb +179 -0
  58. data/lib/libxml/sax_parser.rb +42 -0
  59. data/lib/libxml/tree.rb +1 -2
  60. data/lib/libxml/xpath_object.rb +12 -0
  61. data/test/model/atom.xml +4 -0
  62. data/test/tc_attributes.rb +43 -19
  63. data/test/tc_document.rb +1 -1
  64. data/test/tc_document_write.rb +15 -8
  65. data/test/tc_dtd.rb +36 -20
  66. data/test/tc_encoding.rb +13 -0
  67. data/test/tc_error.rb +136 -0
  68. data/test/tc_node.rb +2 -3
  69. data/test/tc_node_copy.rb +1 -1
  70. data/test/tc_node_edit.rb +6 -0
  71. data/test/tc_ns.rb +18 -0
  72. data/test/tc_parser.rb +113 -228
  73. data/test/tc_parser_context.rb +1 -2
  74. data/test/tc_reader.rb +24 -14
  75. data/test/tc_relaxng.rb +18 -6
  76. data/test/tc_sax_parser.rb +48 -13
  77. data/test/tc_schema.rb +20 -8
  78. data/test/tc_well_formed.rb +2 -1
  79. data/test/tc_xml.rb +212 -0
  80. data/test/tc_xpath.rb +60 -46
  81. data/test/tc_xpointer.rb +7 -11
  82. data/test/test_suite.rb +4 -3
  83. metadata +32 -115
  84. data/doc/rdoc/classes/LibXML.html +0 -241
  85. data/doc/rdoc/classes/LibXML/XML.html +0 -185
  86. data/doc/rdoc/classes/LibXML/XML/Attr.html +0 -1010
  87. data/doc/rdoc/classes/LibXML/XML/Attributes.html +0 -526
  88. data/doc/rdoc/classes/LibXML/XML/Document.html +0 -1489
  89. data/doc/rdoc/classes/LibXML/XML/Dtd.html +0 -213
  90. data/doc/rdoc/classes/LibXML/XML/Error.html +0 -117
  91. data/doc/rdoc/classes/LibXML/XML/HTMLParser.html +0 -348
  92. data/doc/rdoc/classes/LibXML/XML/InputCallbacks.html +0 -160
  93. data/doc/rdoc/classes/LibXML/XML/NS.html +0 -381
  94. data/doc/rdoc/classes/LibXML/XML/Node.html +0 -3396
  95. data/doc/rdoc/classes/LibXML/XML/Node/FailedModify.html +0 -123
  96. data/doc/rdoc/classes/LibXML/XML/Node/Set.html +0 -440
  97. data/doc/rdoc/classes/LibXML/XML/Node/SetNamespace.html +0 -123
  98. data/doc/rdoc/classes/LibXML/XML/Node/UnknownType.html +0 -123
  99. data/doc/rdoc/classes/LibXML/XML/Parser.html +0 -2239
  100. data/doc/rdoc/classes/LibXML/XML/Parser/Context.html +0 -1255
  101. data/doc/rdoc/classes/LibXML/XML/Parser/ParseError.html +0 -123
  102. data/doc/rdoc/classes/LibXML/XML/Reader.html +0 -2264
  103. data/doc/rdoc/classes/LibXML/XML/RelaxNG.html +0 -237
  104. data/doc/rdoc/classes/LibXML/XML/SaxParser.html +0 -415
  105. data/doc/rdoc/classes/LibXML/XML/Schema.html +0 -308
  106. data/doc/rdoc/classes/LibXML/XML/State.html +0 -124
  107. data/doc/rdoc/classes/LibXML/XML/Tree.html +0 -111
  108. data/doc/rdoc/classes/LibXML/XML/XInclude.html +0 -123
  109. data/doc/rdoc/classes/LibXML/XML/XInclude/Error.html +0 -117
  110. data/doc/rdoc/classes/LibXML/XML/XMLParserOptions.html +0 -198
  111. data/doc/rdoc/classes/LibXML/XML/XPath.html +0 -184
  112. data/doc/rdoc/classes/LibXML/XML/XPath/Context.html +0 -404
  113. data/doc/rdoc/classes/LibXML/XML/XPath/InvalidPath.html +0 -172
  114. data/doc/rdoc/classes/LibXML/XML/XPath/Object.html +0 -627
  115. data/doc/rdoc/classes/LibXML/XML/XPointer.html +0 -170
  116. data/doc/rdoc/classes/LibXML/XML/XPointer/Context.html +0 -123
  117. data/doc/rdoc/classes/LibXML/XML/XPointer/Context/InvalidPath.html +0 -117
  118. data/doc/rdoc/classes/LibXML/XML/XPointer/InvalidExpression.html +0 -124
  119. data/doc/rdoc/classes/singleton.html +0 -114
  120. data/doc/rdoc/created.rid +0 -1
  121. data/doc/rdoc/files/CHANGES.html +0 -442
  122. data/doc/rdoc/files/LICENSE.html +0 -133
  123. data/doc/rdoc/files/README.html +0 -388
  124. data/doc/rdoc/files/VERSION.html +0 -107
  125. data/doc/rdoc/files/ext/libxml/cbg_c.html +0 -101
  126. data/doc/rdoc/files/ext/libxml/libxml_c.html +0 -101
  127. data/doc/rdoc/files/ext/libxml/ruby_xml_attr_c.html +0 -101
  128. data/doc/rdoc/files/ext/libxml/ruby_xml_attributes_c.html +0 -101
  129. data/doc/rdoc/files/ext/libxml/ruby_xml_document_c.html +0 -101
  130. data/doc/rdoc/files/ext/libxml/ruby_xml_dtd_c.html +0 -101
  131. data/doc/rdoc/files/ext/libxml/ruby_xml_html_parser_c.html +0 -101
  132. data/doc/rdoc/files/ext/libxml/ruby_xml_input_cbg_c.html +0 -101
  133. data/doc/rdoc/files/ext/libxml/ruby_xml_node_c.html +0 -101
  134. data/doc/rdoc/files/ext/libxml/ruby_xml_node_set_c.html +0 -101
  135. data/doc/rdoc/files/ext/libxml/ruby_xml_ns_c.html +0 -101
  136. data/doc/rdoc/files/ext/libxml/ruby_xml_parser_c.html +0 -101
  137. data/doc/rdoc/files/ext/libxml/ruby_xml_parser_context_c.html +0 -101
  138. data/doc/rdoc/files/ext/libxml/ruby_xml_reader_c.html +0 -101
  139. data/doc/rdoc/files/ext/libxml/ruby_xml_relaxng_c.html +0 -101
  140. data/doc/rdoc/files/ext/libxml/ruby_xml_sax_parser_c.html +0 -101
  141. data/doc/rdoc/files/ext/libxml/ruby_xml_schema_c.html +0 -101
  142. data/doc/rdoc/files/ext/libxml/ruby_xml_state_c.html +0 -101
  143. data/doc/rdoc/files/ext/libxml/ruby_xml_xinclude_c.html +0 -101
  144. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_c.html +0 -101
  145. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_context_c.html +0 -101
  146. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_object_c.html +0 -101
  147. data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_c.html +0 -101
  148. data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_context_c.html +0 -101
  149. data/doc/rdoc/files/lib/libxml/attr_rb.html +0 -108
  150. data/doc/rdoc/files/lib/libxml/attributes_rb.html +0 -108
  151. data/doc/rdoc/files/lib/libxml/document_rb.html +0 -108
  152. data/doc/rdoc/files/lib/libxml/node_rb.html +0 -108
  153. data/doc/rdoc/files/lib/libxml/node_set_rb.html +0 -108
  154. data/doc/rdoc/files/lib/libxml/parser_options_rb.html +0 -107
  155. data/doc/rdoc/files/lib/libxml/parser_rb.html +0 -101
  156. data/doc/rdoc/files/lib/libxml/properties_rb.html +0 -108
  157. data/doc/rdoc/files/lib/libxml/tree_rb.html +0 -107
  158. data/doc/rdoc/files/lib/libxml_rb.html +0 -124
  159. data/doc/rdoc/files/lib/xml/libxml_rb.html +0 -124
  160. data/doc/rdoc/files/lib/xml_rb.html +0 -134
  161. data/doc/rdoc/fr_class_index.html +0 -62
  162. data/doc/rdoc/fr_file_index.html +0 -66
  163. data/doc/rdoc/fr_method_index.html +0 -392
  164. data/doc/rdoc/index.html +0 -24
  165. data/doc/rdoc/rdoc-style.css +0 -208
  166. data/ext/libxml/ruby_xml_node_set.c +0 -172
  167. data/ext/libxml/ruby_xml_node_set.h +0 -20
  168. data/ext/libxml/ruby_xml_xpointer_context.c +0 -22
  169. data/ext/libxml/ruby_xml_xpointer_context.h +0 -18
  170. data/lib/libxml/node_set.rb +0 -27
  171. data/lib/libxml2-2.dll +0 -0
  172. data/lib/libxml_ruby.dll.a +0 -0
  173. data/lib/libxml_ruby.so +0 -0
  174. data/test/tc_node_set.rb +0 -24
  175. data/test/tc_node_set2.rb +0 -37
@@ -1,9 +1,20 @@
1
- # $Id: libxml.rb 374 2008-07-11 04:51:41Z cfis $
2
- # Please see the LICENSE file for copyright and distribution information
3
-
4
1
  module LibXML
5
2
  module XML
6
3
  class Node
4
+ # Register the prefix (i.e., name) of the default namespace to
5
+ # make xpath searches easier
6
+ def register_default_namespace(prefix)
7
+ ns = self.namespace.find do |ns|
8
+ ns.prefix.nil?
9
+ end
10
+
11
+ if ns
12
+ NS.new(self, ns.href, prefix)
13
+ else
14
+ raise(ArgumentError, "No default namespace was found")
15
+ end
16
+ end
17
+
7
18
  # Determines whether this node has attributes
8
19
  def attributes?
9
20
  attributes.length > 0
@@ -105,49 +116,49 @@ module LibXML
105
116
  def node_type_name
106
117
  case node_type
107
118
  # Most common choices first
108
- when ATTRIBUTE_NODE:
119
+ when ATTRIBUTE_NODE
109
120
  'attribute'
110
- when DOCUMENT_NODE:
121
+ when DOCUMENT_NODE
111
122
  'document_xml'
112
- when ELEMENT_NODE:
123
+ when ELEMENT_NODE
113
124
  'element'
114
- when TEXT_NODE:
125
+ when TEXT_NODE
115
126
  'text'
116
127
 
117
128
  # Now the rest
118
- when ATTRIBUTE_DECL:
129
+ when ATTRIBUTE_DECL
119
130
  'attribute_decl'
120
- when CDATA_SECTION_NODE:
131
+ when CDATA_SECTION_NODE
121
132
  'cdata'
122
- when COMMENT_NODE:
133
+ when COMMENT_NODE
123
134
  'comment'
124
- when DOCB_DOCUMENT_NODE:
135
+ when DOCB_DOCUMENT_NODE
125
136
  'document_docbook'
126
- when DOCUMENT_FRAG_NODE:
137
+ when DOCUMENT_FRAG_NODE
127
138
  'fragment'
128
- when DOCUMENT_TYPE_NODE:
139
+ when DOCUMENT_TYPE_NODE
129
140
  'doctype'
130
- when DTD_NODE:
141
+ when DTD_NODE
131
142
  'dtd'
132
- when ELEMENT_DECL:
143
+ when ELEMENT_DECL
133
144
  'elem_decl'
134
- when ENTITY_DECL:
145
+ when ENTITY_DECL
135
146
  'entity_decl'
136
- when ENTITY_NODE:
147
+ when ENTITY_NODE
137
148
  'entity'
138
- when ENTITY_REF_NODE:
149
+ when ENTITY_REF_NODE
139
150
  'entity_ref'
140
- when HTML_DOCUMENT_NODE:
151
+ when HTML_DOCUMENT_NODE
141
152
  'document_html'
142
- when NAMESPACE_DECL:
153
+ when NAMESPACE_DECL
143
154
  'namespace'
144
- when NOTATION_NODE:
155
+ when NOTATION_NODE
145
156
  'notation'
146
- when PI_NODE:
157
+ when PI_NODE
147
158
  'pi'
148
- when XINCLUDE_START:
159
+ when XINCLUDE_START
149
160
  'xinclude_start'
150
- when XINCLUDE_END:
161
+ when XINCLUDE_END
151
162
  'xinclude_end'
152
163
  else
153
164
  raise(UnknownType, "Unknown node type: %n", node.node_type);
@@ -261,4 +272,4 @@ module LibXML
261
272
  alias :each_child :each
262
273
  end
263
274
  end
264
- end
275
+ end
@@ -1,42 +1,321 @@
1
1
  module LibXML
2
2
  module XML
3
3
  class Parser
4
- class << self
5
- attr_reader :error_handler
6
-
7
- # Register the attached block as the handler for parser errors.
8
- #
9
- # Parser.register_error_handler {|msg| <do stuff>}
10
- # Parser.register_error_handler(lambda {|msg| <do stuff>})
11
- # Parser.register_error_handler(nil)
12
- #
13
- # A message describing parse errors is passed to the block.
14
- # Libxml passes error messages to the handler in parts, one per call.
15
- # A typical error results in six calls to this proc, with arguments:
16
- #
17
- # "Entity: line 1: ",
18
- # "parser ",
19
- # "error : ",
20
- # "Opening and ending tag mismatch: foo line 1 and foz\n",
21
- # "<foo><bar/></foz>\n",
22
- # " ^\n"
23
- #
24
- # Note that the error handler is shared by all threads.
25
- def register_error_handler(value = nil, &block)
26
- # Value may be nil or a proc.
27
- tmp = self.error_handler
28
- @error_handler = block_given? ? block : value
29
- tmp
30
- end
4
+ def self.filename(value)
5
+ warn("Parser.filename is deprecated. Use Parser.file instead")
6
+ self.file(value)
7
+ end
8
+
9
+ def self.file(value)
10
+ parser = Parser.new
11
+ parser.input.file = value
12
+ parser
13
+ end
14
+
15
+ def self.string(value)
16
+ parser = Parser.new
17
+ parser.input.string = value
18
+ parser
19
+ end
20
+
21
+ def self.document(value)
22
+ parser = Parser.new
23
+ parser.input.document = value
24
+ parser
25
+ end
31
26
 
32
- def xml_error_func_handler(msg)
33
- if not self.error_handler
34
- $stderr.puts(msg)
35
- else
36
- self.error_handler.call(msg)
37
- end
27
+ def self.io(value)
28
+ parser = Parser.new
29
+ parser.input.io = value
30
+ parser
31
+ end
32
+
33
+ def self.register_error_handler(proc)
34
+ warn('Parser.register_error_handler is deprecated. Use Error.set_handler instead')
35
+ if proc.nil?
36
+ Error.reset_handler
37
+ else
38
+ Error.set_handler(&proc)
38
39
  end
39
40
  end
41
+
42
+ def filename
43
+ warn("Parser#filename is deprecated. Use Parser#file instead")
44
+ self.file
45
+ end
46
+
47
+ def filename=(value)
48
+ warn("Parser#filename is deprecated. Use Parser#file instead")
49
+ self.file = value
50
+ end
51
+
52
+ def file
53
+ input.file
54
+ end
55
+
56
+ def file=(value)
57
+ input.file = value
58
+ end
59
+
60
+ def string
61
+ input.string
62
+ end
63
+
64
+ def string=(value)
65
+ input.string = value
66
+ end
67
+
68
+ def document
69
+ input.document
70
+ end
71
+
72
+ def document=(value)
73
+ input.document = value
74
+ end
75
+
76
+ def io
77
+ input.io
78
+ end
79
+
80
+ def io=(value)
81
+ input.io = value
82
+ end
83
+
84
+ # :enddoc:
85
+
86
+ # Bunch of deprecated methods that have moved to the XML module
87
+ VERSION = XML::VERSION
88
+ VERNUM = XML::VERNUM
89
+
90
+ def self.enabled_automata?
91
+ warn("XML::Parser.enabled_automata? has been deprecated. Use XML.enabled_automata? instead")
92
+ XML.enabled_automata?
93
+ end
94
+
95
+ def self.enabled_c14n?
96
+ warn("XML::Parser.enabled_c14n? has been deprecated. Use XML.enabled_c14n? instead")
97
+ XML.enabled_c14n?
98
+ end
99
+
100
+ def self.enabled_catalog?
101
+ warn("XML::Parser.enabled_catalog? has been deprecated. Use XML.enabled_catalog? instead")
102
+ XML.enabled_catalog?
103
+ end
104
+
105
+ def self.enabled_debug?
106
+ warn("XML::Parser.enabled_debug? has been deprecated. Use XML.enabled_debug? instead")
107
+ XML.enabled_debug?
108
+ end
109
+
110
+ def self.enabled_docbook?
111
+ warn("XML::Parser.enabled_docbook? has been deprecated. Use XML.enabled_docbook? instead")
112
+ XML.enabled_docbook?
113
+ end
114
+
115
+ def self.enabled_ftp?
116
+ warn("XML::Parser.enabled_ftp? has been deprecated. Use XML.enabled_ftp? instead")
117
+ XML.enabled_ftp?
118
+ end
119
+
120
+ def self.enabled_http?
121
+ warn("XML::Parser.enabled_http? has been deprecated. Use XML.enabled_http? instead")
122
+ XML.enabled_http?
123
+ end
124
+
125
+ def self.enabled_html?
126
+ warn("XML::Parser.enabled_html? has been deprecated. Use XML.enabled_html? instead")
127
+ XML.enabled_html?
128
+ end
129
+
130
+ def self.enabled_iconv?
131
+ warn("XML::Parser.enabled_iconv? has been deprecated. Use XML.enabled_iconv? instead")
132
+ XML.enabled_iconv?
133
+ end
134
+
135
+ def self.enabled_memory_debug?
136
+ warn("XML::Parser.enabled_memory_debug_location? has been deprecated. Use XML.enabled_memory_debug_location? instead")
137
+ XML.enabled_memory_debug_location?
138
+ end
139
+
140
+ def self.enabled_regexp?
141
+ warn("XML::Parser.enabled_regexp? has been deprecated. Use XML.enabled_regexp? instead")
142
+ XML.enabled_regexp?
143
+ end
144
+
145
+ def self.enabled_schemas?
146
+ warn("XML::Parser.enabled_schemas? has been deprecated. Use XML.enabled_schemas? instead")
147
+ XML.enabled_schemas?
148
+ end
149
+
150
+ def self.enabled_thread?
151
+ warn("XML::Parser.enabled_thread? has been deprecated. Use XML.enabled_thread? instead")
152
+ XML.enabled_thread?
153
+ end
154
+
155
+ def self.enabled_unicode?
156
+ warn("XML::Parser.enabled_unicode? has been deprecated. Use XML.enabled_unicode? instead")
157
+ XML.enabled_unicode?
158
+ end
159
+
160
+ def self.enabled_xinclude?
161
+ warn("XML::Parser.enabled_xinclude? has been deprecated. Use XML.enabled_xinclude? instead")
162
+ XML.enabled_xinclude?
163
+ end
164
+
165
+ def self.enabled_xpath?
166
+ warn("XML::Parser.enabled_xpath? has been deprecated. Use XML.enabled_xpath? instead")
167
+ XML.enabled_xpath?
168
+ end
169
+
170
+ def self.enabled_xpointer?
171
+ warn("XML::Parser.enabled_xpointer? has been deprecated. Use XML.enabled_xpointer? instead")
172
+ XML.enabled_xpointer?
173
+ end
174
+
175
+ def self.enabled_zlib?
176
+ warn("XML::Parser.enabled_zlib? has been deprecated. Use XML.enabled_zlib? instead")
177
+ XML.enabled_zlib?
178
+ end
179
+
180
+ def self.catalog_dump
181
+ warn("XML::Parser.catalog_dump has been deprecated. Use XML.catalog_dump instead")
182
+ XML.catalog_dump
183
+ end
184
+
185
+ def self.catalog_remove
186
+ warn("XML::Parser.catalog_remove has been deprecated. Use XML.catalog_remove instead")
187
+ XML.catalog_remove
188
+ end
189
+
190
+ def self.check_lib_versions
191
+ warn("XML::Parser.check_lib_versions has been deprecated. Use XML.check_lib_versions instead")
192
+ XML.check_lib_versions
193
+ end
194
+
195
+ def self.debug_entities
196
+ warn("XML::Parser.debug_entities has been deprecated. Use XML.debug_entities instead")
197
+ XML.debug_entities
198
+ end
199
+
200
+ def self.debug_entities=(value)
201
+ warn("XML::Parser.debug_entities_set has been deprecated. Use XML.debug_entities= value instead")
202
+ XML.debug_entities= value
203
+ end
204
+
205
+ def self.default_compression
206
+ warn("XML::Parser.default_compression has been deprecated. Use XML.default_compression instead")
207
+ XML.default_compression
208
+ end
209
+
210
+ def self.default_compression=(value)
211
+ warn("XML::Parser.default_compression= value has been deprecated. Use XML.default_compression= value instead")
212
+ XML.default_compression= value
213
+ end
214
+
215
+ def self.default_keep_blanks
216
+ warn("XML::Parser.default_keep_blanks has been deprecated. Use XML.default_keep_blanks instead")
217
+ XML.default_keep_blanks
218
+ end
219
+
220
+ def self.default_keep_blanks=(value)
221
+ warn("XML::Parser.default_keep_blanks= value has been deprecated. Use XML.default_keep_blanks= value instead")
222
+ XML.default_keep_blanks= value
223
+ end
224
+
225
+ def self.default_load_external_dtd
226
+ warn("XML::Parser.default_load_external_dtd has been deprecated. Use XML.default_load_external_dtd instead")
227
+ XML.default_load_external_dtd
228
+ end
229
+
230
+ def self.default_load_external_dtd=(value)
231
+ warn("XML::Parser.default_load_external_dtd= value has been deprecated. Use XML.default_load_external_dtd= value instead")
232
+ XML.default_load_external_dtd= value
233
+ end
234
+
235
+ def self.default_line_numbers
236
+ warn("XML::Parser.default_line_numbers has been deprecated. Use XML.default_line_numbers instead")
237
+ XML.default_line_numbers
238
+ end
239
+
240
+ def self.default_line_numbers=(value)
241
+ warn("XML::Parser.default_line_numbers= value has been deprecated. Use XML.default_line_numbers= value instead")
242
+ XML.default_line_numbers= value
243
+ end
244
+
245
+ def self.default_pedantic_parser
246
+ warn("XML::Parser.default_pedantic_parser has been deprecated. Use XML.default_pedantic_parser instead")
247
+ XML.default_pedantic_parser
248
+ end
249
+
250
+ def self.default_pedantic_parser=(value)
251
+ warn("XML::Parser.default_pedantic_parser= value has been deprecated. Use XML.default_pedantic_parser= value instead")
252
+ XML.default_pedantic_parser= value
253
+ end
254
+
255
+ def self.default_substitute_entities
256
+ warn("XML::Parser.default_substitute_entities has been deprecated. Use XML.default_substitute_entities instead")
257
+ XML.default_substitute_entities
258
+ end
259
+
260
+ def self.default_substitute_entities=(value)
261
+ warn("XML::Parser.default_substitute_entities= value has been deprecated. Use XML.default_substitute_entities= value instead")
262
+ XML.default_substitute_entities= value
263
+ end
264
+
265
+ def self.default_tree_indent_string
266
+ warn("XML::Parser.default_tree_indent_string has been deprecated. Use XML.default_tree_indent_string instead")
267
+ XML.default_tree_indent_string
268
+ end
269
+
270
+ def self.default_tree_indent_string=(value)
271
+ warn("XML::Parser.default_tree_indent_string= value has been deprecated. Use XML.default_tree_indent_string= value instead")
272
+ XML.default_tree_indent_string= value
273
+ end
274
+
275
+ def self.default_validity_checking
276
+ warn("XML::Parser.default_validity_checking has been deprecated. Use XML.default_validity_checking instead")
277
+ XML.default_validity_checking
278
+ end
279
+
280
+ def self.default_validity_checking=(value)
281
+ warn("XML::Parser.default_validity_checking= value has been deprecated. Use XML.default_validity_checking= value instead")
282
+ XML.default_validity_checking= value
283
+ end
284
+
285
+ def self.default_warnings
286
+ warn("XML::Parser.default_warnings has been deprecated. Use XML.default_warnings instead")
287
+ XML.default_warnings
288
+ end
289
+
290
+ def self.default_warnings=(value)
291
+ warn("XML::Parser.default_warnings= value has been deprecated. Use XML.default_warnings= value instead")
292
+ XML.default_warnings= value
293
+ end
294
+
295
+ def self.features
296
+ warn("XML::Parser.features has been deprecated. Use XML.features instead")
297
+ XML.features
298
+ end
299
+
300
+ def self.indent_tree_output
301
+ warn("XML::Parser.indent_tree_output has been deprecated. Use XML.indent_tree_output instead")
302
+ XML.indent_tree_output
303
+ end
304
+
305
+ def self.indent_tree_output=(value)
306
+ warn("XML::Parser.indent_tree_output= value has been deprecated. Use XML.indent_tree_output= value instead")
307
+ XML.indent_tree_output= value
308
+ end
309
+
310
+ def self.memory_dump
311
+ warn("XML::Parser.memory_dump has been deprecated. Use XML.memory_dump instead")
312
+ XML.memory_dump
313
+ end
314
+
315
+ def self.memory_used
316
+ warn("XML::Parser.memory_used has been deprecated. Use XML.memory_used instead")
317
+ XML.memory_used
318
+ end
40
319
  end
41
320
  end
42
321
  end