libxml-ruby 0.9.8-x86-mswin32-60 → 0.9.9-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/CHANGES +41 -1
  2. data/LICENSE +3 -4
  3. data/README +37 -24
  4. data/Rakefile +2 -2
  5. data/ext/libxml/extconf.rb +31 -12
  6. data/ext/libxml/libxml.c +56 -858
  7. data/ext/libxml/ruby_libxml.h +93 -96
  8. data/ext/libxml/ruby_xml.c +855 -0
  9. data/ext/libxml/ruby_xml.h +9 -0
  10. data/ext/libxml/ruby_xml_attr.c +3 -9
  11. data/ext/libxml/ruby_xml_attr.h +2 -2
  12. data/ext/libxml/ruby_xml_attr_decl.c +2 -8
  13. data/ext/libxml/ruby_xml_attr_decl.h +1 -1
  14. data/ext/libxml/ruby_xml_attributes.c +6 -8
  15. data/ext/libxml/ruby_xml_attributes.h +1 -1
  16. data/ext/libxml/ruby_xml_document.c +915 -895
  17. data/ext/libxml/ruby_xml_document.h +2 -2
  18. data/ext/libxml/ruby_xml_dtd.c +257 -136
  19. data/ext/libxml/ruby_xml_dtd.h +1 -1
  20. data/ext/libxml/ruby_xml_encoding.c +55 -37
  21. data/ext/libxml/ruby_xml_encoding.h +1 -1
  22. data/ext/libxml/ruby_xml_error.c +526 -1058
  23. data/ext/libxml/ruby_xml_error.h +1 -1
  24. data/ext/libxml/ruby_xml_html_parser.c +2 -8
  25. data/ext/libxml/ruby_xml_html_parser.h +2 -2
  26. data/ext/libxml/ruby_xml_html_parser_context.c +175 -145
  27. data/ext/libxml/ruby_xml_html_parser_context.h +1 -1
  28. data/ext/libxml/ruby_xml_html_parser_options.c +12 -20
  29. data/ext/libxml/ruby_xml_html_parser_options.h +1 -1
  30. data/ext/libxml/ruby_xml_input_cbg.c +2 -8
  31. data/ext/libxml/ruby_xml_input_cbg.h +1 -1
  32. data/ext/libxml/ruby_xml_namespace.c +2 -8
  33. data/ext/libxml/ruby_xml_namespace.h +2 -2
  34. data/ext/libxml/ruby_xml_namespaces.c +1 -9
  35. data/ext/libxml/ruby_xml_namespaces.h +1 -1
  36. data/ext/libxml/ruby_xml_node.c +182 -121
  37. data/ext/libxml/ruby_xml_node.h +2 -2
  38. data/ext/libxml/ruby_xml_parser.c +2 -8
  39. data/ext/libxml/ruby_xml_parser.h +2 -2
  40. data/ext/libxml/ruby_xml_parser_context.c +952 -901
  41. data/ext/libxml/ruby_xml_parser_context.h +2 -2
  42. data/ext/libxml/ruby_xml_parser_options.c +2 -9
  43. data/ext/libxml/ruby_xml_parser_options.h +1 -1
  44. data/ext/libxml/ruby_xml_reader.c +1002 -993
  45. data/ext/libxml/ruby_xml_reader.h +1 -1
  46. data/ext/libxml/ruby_xml_relaxng.c +1 -7
  47. data/ext/libxml/ruby_xml_relaxng.h +1 -1
  48. data/ext/libxml/ruby_xml_sax2_handler.c +2 -2
  49. data/ext/libxml/ruby_xml_sax2_handler.h +1 -1
  50. data/ext/libxml/ruby_xml_sax_parser.c +2 -8
  51. data/ext/libxml/ruby_xml_sax_parser.h +2 -2
  52. data/ext/libxml/ruby_xml_schema.c +1 -7
  53. data/ext/libxml/ruby_xml_schema.h +1 -1
  54. data/ext/libxml/{version.h → ruby_xml_version.h} +2 -2
  55. data/ext/libxml/ruby_xml_xinclude.c +2 -8
  56. data/ext/libxml/ruby_xml_xinclude.h +2 -2
  57. data/ext/libxml/ruby_xml_xpath.c +17 -18
  58. data/ext/libxml/ruby_xml_xpath.h +2 -2
  59. data/ext/libxml/ruby_xml_xpath_context.c +387 -389
  60. data/ext/libxml/ruby_xml_xpath_context.h +2 -2
  61. data/ext/libxml/ruby_xml_xpath_expression.c +18 -8
  62. data/ext/libxml/ruby_xml_xpath_expression.h +1 -1
  63. data/ext/libxml/ruby_xml_xpath_object.c +19 -8
  64. data/ext/libxml/ruby_xml_xpath_object.h +1 -1
  65. data/ext/libxml/ruby_xml_xpointer.c +2 -8
  66. data/ext/libxml/ruby_xml_xpointer.h +2 -2
  67. data/ext/mingw/libxml_ruby.dll.a +0 -0
  68. data/ext/mingw/libxml_ruby.so +0 -0
  69. data/ext/vc/libxml_ruby.sln +7 -1
  70. data/lib/libxml.rb +1 -12
  71. data/lib/libxml/attr.rb +0 -3
  72. data/lib/libxml/attr_decl.rb +0 -3
  73. data/lib/libxml/attributes.rb +0 -3
  74. data/lib/libxml/document.rb +31 -5
  75. data/lib/libxml/error.rb +8 -4
  76. data/lib/libxml/properties.rb +0 -5
  77. data/lib/libxml/sax_callbacks.rb +30 -19
  78. data/lib/libxml/tree.rb +0 -1
  79. data/lib/libxml/xpath_object.rb +0 -13
  80. data/test/model/definition.dtd +8 -0
  81. data/test/tc_attributes.rb +4 -1
  82. data/test/tc_document.rb +16 -0
  83. data/test/tc_dtd.rb +30 -2
  84. data/test/tc_html_parser.rb +55 -10
  85. data/test/tc_node.rb +67 -1
  86. data/test/tc_node_edit.rb +26 -6
  87. data/test/tc_node_text.rb +41 -23
  88. data/test/tc_parser.rb +50 -0
  89. data/test/tc_reader.rb +15 -0
  90. data/test/tc_relaxng.rb +1 -1
  91. data/test/tc_sax_parser.rb +37 -5
  92. data/test/tc_schema.rb +1 -1
  93. data/test/tc_xpath.rb +1 -0
  94. data/test/tc_xpath_expression.rb +4 -2
  95. metadata +6 -6
  96. data/ext/libxml/ruby_xml_state.c +0 -51
  97. data/ext/libxml/ruby_xml_state.h +0 -11
  98. data/ext/vc/libxml_ruby.vcproj +0 -460
@@ -7,6 +7,6 @@
7
7
 
8
8
  extern VALUE mXMLEncoding;
9
9
 
10
- void ruby_init_xml_encoding();
10
+ void rxml_init_encoding();
11
11
 
12
12
  #endif
@@ -162,13 +162,6 @@ static void structuredErrorFunc(void *userData, xmlErrorPtr xerror)
162
162
  }
163
163
  }
164
164
 
165
-
166
- // Rdoc needs to know
167
- #ifdef RDOC_NEVER_DEFINED
168
- mLibXML = rb_define_module("LibXML");
169
- mXML = rb_define_module_under(mLibXML, "XML");
170
- #endif
171
-
172
165
  void rxml_raise(xmlErrorPtr xerror)
173
166
  {
174
167
  /* Wrap error up as Ruby object and send it off to ruby */
@@ -176,7 +169,7 @@ void rxml_raise(xmlErrorPtr xerror)
176
169
  rb_exc_raise(error);
177
170
  }
178
171
 
179
- void ruby_init_xml_error()
172
+ void rxml_init_error()
180
173
  {
181
174
  /* Intercept libxml error handlers */
182
175
  xmlSetStructuredErrorFunc(NULL, structuredErrorFunc);
@@ -255,174 +248,102 @@ void ruby_init_xml_error()
255
248
  rb_define_const(eXMLError, "DOCUMENT_START", INT2NUM(XML_ERR_DOCUMENT_START));
256
249
  rb_define_const(eXMLError, "DOCUMENT_EMPTY", INT2NUM(XML_ERR_DOCUMENT_EMPTY));
257
250
  rb_define_const(eXMLError, "DOCUMENT_END", INT2NUM(XML_ERR_DOCUMENT_END));
258
- rb_define_const(eXMLError, "INVALID_HEX_CHARREF", INT2NUM(
259
- XML_ERR_INVALID_HEX_CHARREF));
260
- rb_define_const(eXMLError, "INVALID_DEC_CHARREF", INT2NUM(
261
- XML_ERR_INVALID_DEC_CHARREF));
262
- rb_define_const(eXMLError, "INVALID_CHARREF",
263
- INT2NUM(XML_ERR_INVALID_CHARREF));
251
+ rb_define_const(eXMLError, "INVALID_HEX_CHARREF", INT2NUM(XML_ERR_INVALID_HEX_CHARREF));
252
+ rb_define_const(eXMLError, "INVALID_DEC_CHARREF", INT2NUM(XML_ERR_INVALID_DEC_CHARREF));
253
+ rb_define_const(eXMLError, "INVALID_CHARREF", INT2NUM(XML_ERR_INVALID_CHARREF));
264
254
  rb_define_const(eXMLError, "INVALID_CHAR", INT2NUM(XML_ERR_INVALID_CHAR));
265
255
  rb_define_const(eXMLError, "CHARREF_AT_EOF", INT2NUM(XML_ERR_CHARREF_AT_EOF));
266
- rb_define_const(eXMLError, "CHARREF_IN_PROLOG", INT2NUM(
267
- XML_ERR_CHARREF_IN_PROLOG));
268
- rb_define_const(eXMLError, "CHARREF_IN_EPILOG", INT2NUM(
269
- XML_ERR_CHARREF_IN_EPILOG));
256
+ rb_define_const(eXMLError, "CHARREF_IN_PROLOG", INT2NUM(XML_ERR_CHARREF_IN_PROLOG));
257
+ rb_define_const(eXMLError, "CHARREF_IN_EPILOG", INT2NUM(XML_ERR_CHARREF_IN_EPILOG));
270
258
  rb_define_const(eXMLError, "CHARREF_IN_DTD", INT2NUM(XML_ERR_CHARREF_IN_DTD));
271
- rb_define_const(eXMLError, "ENTITYREF_AT_EOF", INT2NUM(
272
- XML_ERR_ENTITYREF_AT_EOF));
273
- rb_define_const(eXMLError, "ENTITYREF_IN_PROLOG", INT2NUM(
274
- XML_ERR_ENTITYREF_IN_PROLOG));
275
- rb_define_const(eXMLError, "ENTITYREF_IN_EPILOG", INT2NUM(
276
- XML_ERR_ENTITYREF_IN_EPILOG));
277
- rb_define_const(eXMLError, "ENTITYREF_IN_DTD", INT2NUM(
278
- XML_ERR_ENTITYREF_IN_DTD));
259
+ rb_define_const(eXMLError, "ENTITYREF_AT_EOF", INT2NUM(XML_ERR_ENTITYREF_AT_EOF));
260
+ rb_define_const(eXMLError, "ENTITYREF_IN_PROLOG", INT2NUM(XML_ERR_ENTITYREF_IN_PROLOG));
261
+ rb_define_const(eXMLError, "ENTITYREF_IN_EPILOG", INT2NUM(XML_ERR_ENTITYREF_IN_EPILOG));
262
+ rb_define_const(eXMLError, "ENTITYREF_IN_DTD", INT2NUM(XML_ERR_ENTITYREF_IN_DTD));
279
263
  rb_define_const(eXMLError, "PEREF_AT_EOF", INT2NUM(XML_ERR_PEREF_AT_EOF));
280
- rb_define_const(eXMLError, "PEREF_IN_PROLOG",
281
- INT2NUM(XML_ERR_PEREF_IN_PROLOG));
282
- rb_define_const(eXMLError, "PEREF_IN_EPILOG",
283
- INT2NUM(XML_ERR_PEREF_IN_EPILOG));
284
- rb_define_const(eXMLError, "PEREF_IN_INT_SUBSET", INT2NUM(
285
- XML_ERR_PEREF_IN_INT_SUBSET));
286
- rb_define_const(eXMLError, "ENTITYREF_NO_NAME", INT2NUM(
287
- XML_ERR_ENTITYREF_NO_NAME));
288
- rb_define_const(eXMLError, "ENTITYREF_SEMICOL_MISSING", INT2NUM(
289
- XML_ERR_ENTITYREF_SEMICOL_MISSING));
264
+ rb_define_const(eXMLError, "PEREF_IN_PROLOG", INT2NUM(XML_ERR_PEREF_IN_PROLOG));
265
+ rb_define_const(eXMLError, "PEREF_IN_EPILOG",INT2NUM(XML_ERR_PEREF_IN_EPILOG));
266
+ rb_define_const(eXMLError, "PEREF_IN_INT_SUBSET", INT2NUM(XML_ERR_PEREF_IN_INT_SUBSET));
267
+ rb_define_const(eXMLError, "ENTITYREF_NO_NAME", INT2NUM(XML_ERR_ENTITYREF_NO_NAME));
268
+ rb_define_const(eXMLError, "ENTITYREF_SEMICOL_MISSING", INT2NUM(XML_ERR_ENTITYREF_SEMICOL_MISSING));
290
269
  rb_define_const(eXMLError, "PEREF_NO_NAME", INT2NUM(XML_ERR_PEREF_NO_NAME));
291
- rb_define_const(eXMLError, "PEREF_SEMICOL_MISSING", INT2NUM(
292
- XML_ERR_PEREF_SEMICOL_MISSING));
293
- rb_define_const(eXMLError, "UNDECLARED_ENTITY", INT2NUM(
294
- XML_ERR_UNDECLARED_ENTITY));
295
- rb_define_const(eXMLError, "XML_WAR_UNDECLARED_ENTITY", INT2NUM(
296
- XML_WAR_UNDECLARED_ENTITY));
297
- rb_define_const(eXMLError, "UNPARSED_ENTITY",
298
- INT2NUM(XML_ERR_UNPARSED_ENTITY));
299
- rb_define_const(eXMLError, "ENTITY_IS_EXTERNAL", INT2NUM(
300
- XML_ERR_ENTITY_IS_EXTERNAL));
301
- rb_define_const(eXMLError, "ENTITY_IS_PARAMETER", INT2NUM(
302
- XML_ERR_ENTITY_IS_PARAMETER));
303
- rb_define_const(eXMLError, "UNKNOWN_ENCODING", INT2NUM(
304
- XML_ERR_UNKNOWN_ENCODING));
305
- rb_define_const(eXMLError, "UNSUPPORTED_ENCODING", INT2NUM(
306
- XML_ERR_UNSUPPORTED_ENCODING));
307
- rb_define_const(eXMLError, "STRING_NOT_STARTED", INT2NUM(
308
- XML_ERR_STRING_NOT_STARTED));
309
- rb_define_const(eXMLError, "STRING_NOT_CLOSED", INT2NUM(
310
- XML_ERR_STRING_NOT_CLOSED));
270
+ rb_define_const(eXMLError, "PEREF_SEMICOL_MISSING", INT2NUM(XML_ERR_PEREF_SEMICOL_MISSING));
271
+ rb_define_const(eXMLError, "UNDECLARED_ENTITY", INT2NUM(XML_ERR_UNDECLARED_ENTITY));
272
+ rb_define_const(eXMLError, "XML_WAR_UNDECLARED_ENTITY", INT2NUM(XML_WAR_UNDECLARED_ENTITY));
273
+ rb_define_const(eXMLError, "UNPARSED_ENTITY", INT2NUM(XML_ERR_UNPARSED_ENTITY));
274
+ rb_define_const(eXMLError, "ENTITY_IS_EXTERNAL", INT2NUM(XML_ERR_ENTITY_IS_EXTERNAL));
275
+ rb_define_const(eXMLError, "ENTITY_IS_PARAMETER", INT2NUM(XML_ERR_ENTITY_IS_PARAMETER));
276
+ rb_define_const(eXMLError, "UNKNOWN_ENCODING", INT2NUM(XML_ERR_UNKNOWN_ENCODING));
277
+ rb_define_const(eXMLError, "UNSUPPORTED_ENCODING", INT2NUM(XML_ERR_UNSUPPORTED_ENCODING));
278
+ rb_define_const(eXMLError, "STRING_NOT_STARTED", INT2NUM(XML_ERR_STRING_NOT_STARTED));
279
+ rb_define_const(eXMLError, "STRING_NOT_CLOSED", INT2NUM(XML_ERR_STRING_NOT_CLOSED));
311
280
  rb_define_const(eXMLError, "NS_DECL_ERROR", INT2NUM(XML_ERR_NS_DECL_ERROR));
312
- rb_define_const(eXMLError, "ENTITY_NOT_STARTED", INT2NUM(
313
- XML_ERR_ENTITY_NOT_STARTED));
314
- rb_define_const(eXMLError, "ENTITY_NOT_FINISHED", INT2NUM(
315
- XML_ERR_ENTITY_NOT_FINISHED));
316
- rb_define_const(eXMLError, "LT_IN_ATTRIBUTE",
317
- INT2NUM(XML_ERR_LT_IN_ATTRIBUTE));
318
- rb_define_const(eXMLError, "ATTRIBUTE_NOT_STARTED", INT2NUM(
319
- XML_ERR_ATTRIBUTE_NOT_STARTED));
320
- rb_define_const(eXMLError, "ATTRIBUTE_NOT_FINISHED", INT2NUM(
321
- XML_ERR_ATTRIBUTE_NOT_FINISHED));
322
- rb_define_const(eXMLError, "ATTRIBUTE_WITHOUT_VALUE", INT2NUM(
323
- XML_ERR_ATTRIBUTE_WITHOUT_VALUE));
324
- rb_define_const(eXMLError, "ATTRIBUTE_REDEFINED", INT2NUM(
325
- XML_ERR_ATTRIBUTE_REDEFINED));
326
- rb_define_const(eXMLError, "LITERAL_NOT_STARTED", INT2NUM(
327
- XML_ERR_LITERAL_NOT_STARTED));
328
- rb_define_const(eXMLError, "LITERAL_NOT_FINISHED", INT2NUM(
329
- XML_ERR_LITERAL_NOT_FINISHED));
330
- rb_define_const(eXMLError, "COMMENT_NOT_FINISHED", INT2NUM(
331
- XML_ERR_COMMENT_NOT_FINISHED));
281
+ rb_define_const(eXMLError, "ENTITY_NOT_STARTED", INT2NUM(XML_ERR_ENTITY_NOT_STARTED));
282
+ rb_define_const(eXMLError, "ENTITY_NOT_FINISHED", INT2NUM(XML_ERR_ENTITY_NOT_FINISHED));
283
+ rb_define_const(eXMLError, "LT_IN_ATTRIBUTE", INT2NUM(XML_ERR_LT_IN_ATTRIBUTE));
284
+ rb_define_const(eXMLError, "ATTRIBUTE_NOT_STARTED", INT2NUM(XML_ERR_ATTRIBUTE_NOT_STARTED));
285
+ rb_define_const(eXMLError, "ATTRIBUTE_NOT_FINISHED", INT2NUM(XML_ERR_ATTRIBUTE_NOT_FINISHED));
286
+ rb_define_const(eXMLError, "ATTRIBUTE_WITHOUT_VALUE", INT2NUM(XML_ERR_ATTRIBUTE_WITHOUT_VALUE));
287
+ rb_define_const(eXMLError, "ATTRIBUTE_REDEFINED", INT2NUM(XML_ERR_ATTRIBUTE_REDEFINED));
288
+ rb_define_const(eXMLError, "LITERAL_NOT_STARTED", INT2NUM(XML_ERR_LITERAL_NOT_STARTED));
289
+ rb_define_const(eXMLError, "LITERAL_NOT_FINISHED", INT2NUM(XML_ERR_LITERAL_NOT_FINISHED));
290
+ rb_define_const(eXMLError, "COMMENT_NOT_FINISHED", INT2NUM(XML_ERR_COMMENT_NOT_FINISHED));
332
291
  rb_define_const(eXMLError, "PI_NOT_STARTED", INT2NUM(XML_ERR_PI_NOT_STARTED));
333
- rb_define_const(eXMLError, "PI_NOT_FINISHED",
334
- INT2NUM(XML_ERR_PI_NOT_FINISHED));
335
- rb_define_const(eXMLError, "NOTATION_NOT_STARTED", INT2NUM(
336
- XML_ERR_NOTATION_NOT_STARTED));
337
- rb_define_const(eXMLError, "NOTATION_NOT_FINISHED", INT2NUM(
338
- XML_ERR_NOTATION_NOT_FINISHED));
339
- rb_define_const(eXMLError, "ATTLIST_NOT_STARTED", INT2NUM(
340
- XML_ERR_ATTLIST_NOT_STARTED));
341
- rb_define_const(eXMLError, "ATTLIST_NOT_FINISHED", INT2NUM(
342
- XML_ERR_ATTLIST_NOT_FINISHED));
343
- rb_define_const(eXMLError, "MIXED_NOT_STARTED", INT2NUM(
344
- XML_ERR_MIXED_NOT_STARTED));
345
- rb_define_const(eXMLError, "MIXED_NOT_FINISHED", INT2NUM(
346
- XML_ERR_MIXED_NOT_FINISHED));
347
- rb_define_const(eXMLError, "ELEMCONTENT_NOT_STARTED", INT2NUM(
348
- XML_ERR_ELEMCONTENT_NOT_STARTED));
349
- rb_define_const(eXMLError, "ELEMCONTENT_NOT_FINISHED", INT2NUM(
350
- XML_ERR_ELEMCONTENT_NOT_FINISHED));
351
- rb_define_const(eXMLError, "XMLDECL_NOT_STARTED", INT2NUM(
352
- XML_ERR_XMLDECL_NOT_STARTED));
353
- rb_define_const(eXMLError, "XMLDECL_NOT_FINISHED", INT2NUM(
354
- XML_ERR_XMLDECL_NOT_FINISHED));
355
- rb_define_const(eXMLError, "CONDSEC_NOT_STARTED", INT2NUM(
356
- XML_ERR_CONDSEC_NOT_STARTED));
357
- rb_define_const(eXMLError, "CONDSEC_NOT_FINISHED", INT2NUM(
358
- XML_ERR_CONDSEC_NOT_FINISHED));
359
- rb_define_const(eXMLError, "EXT_SUBSET_NOT_FINISHED", INT2NUM(
360
- XML_ERR_EXT_SUBSET_NOT_FINISHED));
361
- rb_define_const(eXMLError, "DOCTYPE_NOT_FINISHED", INT2NUM(
362
- XML_ERR_DOCTYPE_NOT_FINISHED));
363
- rb_define_const(eXMLError, "MISPLACED_CDATA_END", INT2NUM(
364
- XML_ERR_MISPLACED_CDATA_END));
365
- rb_define_const(eXMLError, "CDATA_NOT_FINISHED", INT2NUM(
366
- XML_ERR_CDATA_NOT_FINISHED));
367
- rb_define_const(eXMLError, "RESERVED_XML_NAME", INT2NUM(
368
- XML_ERR_RESERVED_XML_NAME));
292
+ rb_define_const(eXMLError, "PI_NOT_FINISHED", INT2NUM(XML_ERR_PI_NOT_FINISHED));
293
+ rb_define_const(eXMLError, "NOTATION_NOT_STARTED", INT2NUM(XML_ERR_NOTATION_NOT_STARTED));
294
+ rb_define_const(eXMLError, "NOTATION_NOT_FINISHED", INT2NUM(XML_ERR_NOTATION_NOT_FINISHED));
295
+ rb_define_const(eXMLError, "ATTLIST_NOT_STARTED", INT2NUM(XML_ERR_ATTLIST_NOT_STARTED));
296
+ rb_define_const(eXMLError, "ATTLIST_NOT_FINISHED", INT2NUM(XML_ERR_ATTLIST_NOT_FINISHED));
297
+ rb_define_const(eXMLError, "MIXED_NOT_STARTED", INT2NUM(XML_ERR_MIXED_NOT_STARTED));
298
+ rb_define_const(eXMLError, "MIXED_NOT_FINISHED", INT2NUM(XML_ERR_MIXED_NOT_FINISHED));
299
+ rb_define_const(eXMLError, "ELEMCONTENT_NOT_STARTED", INT2NUM(XML_ERR_ELEMCONTENT_NOT_STARTED));
300
+ rb_define_const(eXMLError, "ELEMCONTENT_NOT_FINISHED", INT2NUM(XML_ERR_ELEMCONTENT_NOT_FINISHED));
301
+ rb_define_const(eXMLError, "XMLDECL_NOT_STARTED", INT2NUM(XML_ERR_XMLDECL_NOT_STARTED));
302
+ rb_define_const(eXMLError, "XMLDECL_NOT_FINISHED", INT2NUM(XML_ERR_XMLDECL_NOT_FINISHED));
303
+ rb_define_const(eXMLError, "CONDSEC_NOT_STARTED", INT2NUM(XML_ERR_CONDSEC_NOT_STARTED));
304
+ rb_define_const(eXMLError, "CONDSEC_NOT_FINISHED", INT2NUM(XML_ERR_CONDSEC_NOT_FINISHED));
305
+ rb_define_const(eXMLError, "EXT_SUBSET_NOT_FINISHED", INT2NUM(XML_ERR_EXT_SUBSET_NOT_FINISHED));
306
+ rb_define_const(eXMLError, "DOCTYPE_NOT_FINISHED", INT2NUM(XML_ERR_DOCTYPE_NOT_FINISHED));
307
+ rb_define_const(eXMLError, "MISPLACED_CDATA_END", INT2NUM(XML_ERR_MISPLACED_CDATA_END));
308
+ rb_define_const(eXMLError, "CDATA_NOT_FINISHED", INT2NUM(XML_ERR_CDATA_NOT_FINISHED));
309
+ rb_define_const(eXMLError, "RESERVED_XML_NAME", INT2NUM(XML_ERR_RESERVED_XML_NAME));
369
310
  rb_define_const(eXMLError, "SPACE_REQUIRED", INT2NUM(XML_ERR_SPACE_REQUIRED));
370
- rb_define_const(eXMLError, "SEPARATOR_REQUIRED", INT2NUM(
371
- XML_ERR_SEPARATOR_REQUIRED));
372
- rb_define_const(eXMLError, "NMTOKEN_REQUIRED", INT2NUM(
373
- XML_ERR_NMTOKEN_REQUIRED));
311
+ rb_define_const(eXMLError, "SEPARATOR_REQUIRED", INT2NUM(XML_ERR_SEPARATOR_REQUIRED));
312
+ rb_define_const(eXMLError, "NMTOKEN_REQUIRED", INT2NUM(XML_ERR_NMTOKEN_REQUIRED));
374
313
  rb_define_const(eXMLError, "NAME_REQUIRED", INT2NUM(XML_ERR_NAME_REQUIRED));
375
- rb_define_const(eXMLError, "PCDATA_REQUIRED",
376
- INT2NUM(XML_ERR_PCDATA_REQUIRED));
314
+ rb_define_const(eXMLError, "PCDATA_REQUIRED", INT2NUM(XML_ERR_PCDATA_REQUIRED));
377
315
  rb_define_const(eXMLError, "URI_REQUIRED", INT2NUM(XML_ERR_URI_REQUIRED));
378
316
  rb_define_const(eXMLError, "PUBID_REQUIRED", INT2NUM(XML_ERR_PUBID_REQUIRED));
379
317
  rb_define_const(eXMLError, "LT_REQUIRED", INT2NUM(XML_ERR_LT_REQUIRED));
380
318
  rb_define_const(eXMLError, "GT_REQUIRED", INT2NUM(XML_ERR_GT_REQUIRED));
381
- rb_define_const(eXMLError, "LTSLASH_REQUIRED", INT2NUM(
382
- XML_ERR_LTSLASH_REQUIRED));
319
+ rb_define_const(eXMLError, "LTSLASH_REQUIRED", INT2NUM(XML_ERR_LTSLASH_REQUIRED));
383
320
  rb_define_const(eXMLError, "EQUAL_REQUIRED", INT2NUM(XML_ERR_EQUAL_REQUIRED));
384
- rb_define_const(eXMLError, "TAG_NAME_MISMATCH", INT2NUM(
385
- XML_ERR_TAG_NAME_MISMATCH));
386
- rb_define_const(eXMLError, "TAG_NOT_FINISHED", INT2NUM(
387
- XML_ERR_TAG_NOT_FINISHED));
388
- rb_define_const(eXMLError, "STANDALONE_VALUE", INT2NUM(
389
- XML_ERR_STANDALONE_VALUE));
321
+ rb_define_const(eXMLError, "TAG_NAME_MISMATCH", INT2NUM(XML_ERR_TAG_NAME_MISMATCH));
322
+ rb_define_const(eXMLError, "TAG_NOT_FINISHED", INT2NUM(XML_ERR_TAG_NOT_FINISHED));
323
+ rb_define_const(eXMLError, "STANDALONE_VALUE", INT2NUM(XML_ERR_STANDALONE_VALUE));
390
324
  rb_define_const(eXMLError, "ENCODING_NAME", INT2NUM(XML_ERR_ENCODING_NAME));
391
- rb_define_const(eXMLError, "HYPHEN_IN_COMMENT", INT2NUM(
392
- XML_ERR_HYPHEN_IN_COMMENT));
393
- rb_define_const(eXMLError, "INVALID_ENCODING", INT2NUM(
394
- XML_ERR_INVALID_ENCODING));
395
- rb_define_const(eXMLError, "EXT_ENTITY_STANDALONE", INT2NUM(
396
- XML_ERR_EXT_ENTITY_STANDALONE));
397
- rb_define_const(eXMLError, "CONDSEC_INVALID",
398
- INT2NUM(XML_ERR_CONDSEC_INVALID));
325
+ rb_define_const(eXMLError, "HYPHEN_IN_COMMENT", INT2NUM(XML_ERR_HYPHEN_IN_COMMENT));
326
+ rb_define_const(eXMLError, "INVALID_ENCODING", INT2NUM(XML_ERR_INVALID_ENCODING));
327
+ rb_define_const(eXMLError, "EXT_ENTITY_STANDALONE", INT2NUM(XML_ERR_EXT_ENTITY_STANDALONE));
328
+ rb_define_const(eXMLError, "CONDSEC_INVALID", INT2NUM(XML_ERR_CONDSEC_INVALID));
399
329
  rb_define_const(eXMLError, "VALUE_REQUIRED", INT2NUM(XML_ERR_VALUE_REQUIRED));
400
- rb_define_const(eXMLError, "NOT_WELL_BALANCED", INT2NUM(
401
- XML_ERR_NOT_WELL_BALANCED));
330
+ rb_define_const(eXMLError, "NOT_WELL_BALANCED", INT2NUM(XML_ERR_NOT_WELL_BALANCED));
402
331
  rb_define_const(eXMLError, "EXTRA_CONTENT", INT2NUM(XML_ERR_EXTRA_CONTENT));
403
- rb_define_const(eXMLError, "ENTITY_CHAR_ERROR", INT2NUM(
404
- XML_ERR_ENTITY_CHAR_ERROR));
405
- rb_define_const(eXMLError, "ENTITY_PE_INTERNAL", INT2NUM(
406
- XML_ERR_ENTITY_PE_INTERNAL));
332
+ rb_define_const(eXMLError, "ENTITY_CHAR_ERROR", INT2NUM(XML_ERR_ENTITY_CHAR_ERROR));
333
+ rb_define_const(eXMLError, "ENTITY_PE_INTERNAL", INT2NUM(XML_ERR_ENTITY_PE_INTERNAL));
407
334
  rb_define_const(eXMLError, "ENTITY_LOOP", INT2NUM(XML_ERR_ENTITY_LOOP));
408
- rb_define_const(eXMLError, "ENTITY_BOUNDARY",
409
- INT2NUM(XML_ERR_ENTITY_BOUNDARY));
335
+ rb_define_const(eXMLError, "ENTITY_BOUNDARY", INT2NUM(XML_ERR_ENTITY_BOUNDARY));
410
336
  rb_define_const(eXMLError, "INVALID_URI", INT2NUM(XML_ERR_INVALID_URI));
411
337
  rb_define_const(eXMLError, "URI_FRAGMENT", INT2NUM(XML_ERR_URI_FRAGMENT));
412
338
  rb_define_const(eXMLError, "XML_WAR_CATALOG_PI", INT2NUM(XML_WAR_CATALOG_PI));
413
339
  rb_define_const(eXMLError, "NO_DTD", INT2NUM(XML_ERR_NO_DTD));
414
- rb_define_const(eXMLError, "CONDSEC_INVALID_KEYWORD", INT2NUM(
415
- XML_ERR_CONDSEC_INVALID_KEYWORD));
416
- rb_define_const(eXMLError, "VERSION_MISSING",
417
- INT2NUM(XML_ERR_VERSION_MISSING));
418
- rb_define_const(eXMLError, "XML_WAR_UNKNOWN_VERSION", INT2NUM(
419
- XML_WAR_UNKNOWN_VERSION));
340
+ rb_define_const(eXMLError, "CONDSEC_INVALID_KEYWORD", INT2NUM(XML_ERR_CONDSEC_INVALID_KEYWORD));
341
+ rb_define_const(eXMLError, "VERSION_MISSING", INT2NUM(XML_ERR_VERSION_MISSING));
342
+ rb_define_const(eXMLError, "XML_WAR_UNKNOWN_VERSION", INT2NUM(XML_WAR_UNKNOWN_VERSION));
420
343
  rb_define_const(eXMLError, "XML_WAR_LANG_VALUE", INT2NUM(XML_WAR_LANG_VALUE));
421
344
  rb_define_const(eXMLError, "XML_WAR_NS_URI", INT2NUM(XML_WAR_NS_URI));
422
- rb_define_const(eXMLError, "XML_WAR_NS_URI_RELATIVE", INT2NUM(
423
- XML_WAR_NS_URI_RELATIVE));
424
- rb_define_const(eXMLError, "MISSING_ENCODING", INT2NUM(
425
- XML_ERR_MISSING_ENCODING));
345
+ rb_define_const(eXMLError, "XML_WAR_NS_URI_RELATIVE", INT2NUM(XML_WAR_NS_URI_RELATIVE));
346
+ rb_define_const(eXMLError, "MISSING_ENCODING", INT2NUM(XML_ERR_MISSING_ENCODING));
426
347
  #if LIBXML_VERSION >= 20620
427
348
  rb_define_const(eXMLError, "XML_WAR_SPACE_VALUE", INT2NUM(XML_WAR_SPACE_VALUE));
428
349
  rb_define_const(eXMLError, "NOT_STANDALONE", INT2NUM(XML_ERR_NOT_STANDALONE));
@@ -431,378 +352,215 @@ void ruby_init_xml_error()
431
352
  rb_define_const(eXMLError, "WAR_NS_COLUMN", INT2NUM(XML_WAR_NS_COLUMN));
432
353
  rb_define_const(eXMLError, "WAR_ENTITY_REDEFINED", INT2NUM(XML_WAR_ENTITY_REDEFINED));
433
354
  #endif
434
- rb_define_const(eXMLError, "NS_ERR_XML_NAMESPACE", INT2NUM(
435
- XML_NS_ERR_XML_NAMESPACE));
436
- rb_define_const(eXMLError, "NS_ERR_UNDEFINED_NAMESPACE", INT2NUM(
437
- XML_NS_ERR_UNDEFINED_NAMESPACE));
355
+ rb_define_const(eXMLError, "NS_ERR_XML_NAMESPACE", INT2NUM(XML_NS_ERR_XML_NAMESPACE));
356
+ rb_define_const(eXMLError, "NS_ERR_UNDEFINED_NAMESPACE", INT2NUM(XML_NS_ERR_UNDEFINED_NAMESPACE));
438
357
  rb_define_const(eXMLError, "NS_ERR_QNAME", INT2NUM(XML_NS_ERR_QNAME));
439
- rb_define_const(eXMLError, "NS_ERR_ATTRIBUTE_REDEFINED", INT2NUM(
440
- XML_NS_ERR_ATTRIBUTE_REDEFINED));
358
+ rb_define_const(eXMLError, "NS_ERR_ATTRIBUTE_REDEFINED", INT2NUM(XML_NS_ERR_ATTRIBUTE_REDEFINED));
441
359
  #if LIBXML_VERSION >= 20620
442
360
  rb_define_const(eXMLError, "NS_ERR_EMPTY", INT2NUM(XML_NS_ERR_EMPTY));
443
361
  #endif
444
362
  #if LIBXML_VERSION >= 20700
445
363
  rb_define_const(eXMLError, "NS_ERR_COLON", INT2NUM(XML_NS_ERR_COLON));
446
364
  #endif
447
- rb_define_const(eXMLError, "DTD_ATTRIBUTE_DEFAULT", INT2NUM(
448
- XML_DTD_ATTRIBUTE_DEFAULT));
449
- rb_define_const(eXMLError, "DTD_ATTRIBUTE_REDEFINED", INT2NUM(
450
- XML_DTD_ATTRIBUTE_REDEFINED));
451
- rb_define_const(eXMLError, "DTD_ATTRIBUTE_VALUE", INT2NUM(
452
- XML_DTD_ATTRIBUTE_VALUE));
453
- rb_define_const(eXMLError, "DTD_CONTENT_ERROR",
454
- INT2NUM(XML_DTD_CONTENT_ERROR));
455
- rb_define_const(eXMLError, "DTD_CONTENT_MODEL",
456
- INT2NUM(XML_DTD_CONTENT_MODEL));
457
- rb_define_const(eXMLError, "DTD_CONTENT_NOT_DETERMINIST", INT2NUM(
458
- XML_DTD_CONTENT_NOT_DETERMINIST));
459
- rb_define_const(eXMLError, "DTD_DIFFERENT_PREFIX", INT2NUM(
460
- XML_DTD_DIFFERENT_PREFIX));
461
- rb_define_const(eXMLError, "DTD_ELEM_DEFAULT_NAMESPACE", INT2NUM(
462
- XML_DTD_ELEM_DEFAULT_NAMESPACE));
463
- rb_define_const(eXMLError, "DTD_ELEM_NAMESPACE", INT2NUM(
464
- XML_DTD_ELEM_NAMESPACE));
465
- rb_define_const(eXMLError, "DTD_ELEM_REDEFINED", INT2NUM(
466
- XML_DTD_ELEM_REDEFINED));
467
- rb_define_const(eXMLError, "DTD_EMPTY_NOTATION", INT2NUM(
468
- XML_DTD_EMPTY_NOTATION));
365
+ rb_define_const(eXMLError, "DTD_ATTRIBUTE_DEFAULT", INT2NUM(XML_DTD_ATTRIBUTE_DEFAULT));
366
+ rb_define_const(eXMLError, "DTD_ATTRIBUTE_REDEFINED", INT2NUM(XML_DTD_ATTRIBUTE_REDEFINED));
367
+ rb_define_const(eXMLError, "DTD_ATTRIBUTE_VALUE", INT2NUM(XML_DTD_ATTRIBUTE_VALUE));
368
+ rb_define_const(eXMLError, "DTD_CONTENT_ERROR", INT2NUM(XML_DTD_CONTENT_ERROR));
369
+ rb_define_const(eXMLError, "DTD_CONTENT_MODEL", INT2NUM(XML_DTD_CONTENT_MODEL));
370
+ rb_define_const(eXMLError, "DTD_CONTENT_NOT_DETERMINIST", INT2NUM(XML_DTD_CONTENT_NOT_DETERMINIST));
371
+ rb_define_const(eXMLError, "DTD_DIFFERENT_PREFIX", INT2NUM(XML_DTD_DIFFERENT_PREFIX));
372
+ rb_define_const(eXMLError, "DTD_ELEM_DEFAULT_NAMESPACE", INT2NUM(XML_DTD_ELEM_DEFAULT_NAMESPACE));
373
+ rb_define_const(eXMLError, "DTD_ELEM_NAMESPACE", INT2NUM(XML_DTD_ELEM_NAMESPACE));
374
+ rb_define_const(eXMLError, "DTD_ELEM_REDEFINED", INT2NUM(XML_DTD_ELEM_REDEFINED));
375
+ rb_define_const(eXMLError, "DTD_EMPTY_NOTATION", INT2NUM(XML_DTD_EMPTY_NOTATION));
469
376
  rb_define_const(eXMLError, "DTD_ENTITY_TYPE", INT2NUM(XML_DTD_ENTITY_TYPE));
470
377
  rb_define_const(eXMLError, "DTD_ID_FIXED", INT2NUM(XML_DTD_ID_FIXED));
471
378
  rb_define_const(eXMLError, "DTD_ID_REDEFINED", INT2NUM(XML_DTD_ID_REDEFINED));
472
379
  rb_define_const(eXMLError, "DTD_ID_SUBSET", INT2NUM(XML_DTD_ID_SUBSET));
473
- rb_define_const(eXMLError, "DTD_INVALID_CHILD",
474
- INT2NUM(XML_DTD_INVALID_CHILD));
475
- rb_define_const(eXMLError, "DTD_INVALID_DEFAULT", INT2NUM(
476
- XML_DTD_INVALID_DEFAULT));
380
+ rb_define_const(eXMLError, "DTD_INVALID_CHILD", INT2NUM(XML_DTD_INVALID_CHILD));
381
+ rb_define_const(eXMLError, "DTD_INVALID_DEFAULT", INT2NUM(XML_DTD_INVALID_DEFAULT));
477
382
  rb_define_const(eXMLError, "DTD_LOAD_ERROR", INT2NUM(XML_DTD_LOAD_ERROR));
478
- rb_define_const(eXMLError, "DTD_MISSING_ATTRIBUTE", INT2NUM(
479
- XML_DTD_MISSING_ATTRIBUTE));
480
- rb_define_const(eXMLError, "DTD_MIXED_CORRUPT",
481
- INT2NUM(XML_DTD_MIXED_CORRUPT));
383
+ rb_define_const(eXMLError, "DTD_MISSING_ATTRIBUTE", INT2NUM(XML_DTD_MISSING_ATTRIBUTE));
384
+ rb_define_const(eXMLError, "DTD_MIXED_CORRUPT", INT2NUM(XML_DTD_MIXED_CORRUPT));
482
385
  rb_define_const(eXMLError, "DTD_MULTIPLE_ID", INT2NUM(XML_DTD_MULTIPLE_ID));
483
386
  rb_define_const(eXMLError, "DTD_NO_DOC", INT2NUM(XML_DTD_NO_DOC));
484
387
  rb_define_const(eXMLError, "DTD_NO_DTD", INT2NUM(XML_DTD_NO_DTD));
485
388
  rb_define_const(eXMLError, "DTD_NO_ELEM_NAME", INT2NUM(XML_DTD_NO_ELEM_NAME));
486
389
  rb_define_const(eXMLError, "DTD_NO_PREFIX", INT2NUM(XML_DTD_NO_PREFIX));
487
390
  rb_define_const(eXMLError, "DTD_NO_ROOT", INT2NUM(XML_DTD_NO_ROOT));
488
- rb_define_const(eXMLError, "DTD_NOTATION_REDEFINED", INT2NUM(
489
- XML_DTD_NOTATION_REDEFINED));
490
- rb_define_const(eXMLError, "DTD_NOTATION_VALUE", INT2NUM(
491
- XML_DTD_NOTATION_VALUE));
391
+ rb_define_const(eXMLError, "DTD_NOTATION_REDEFINED", INT2NUM(XML_DTD_NOTATION_REDEFINED));
392
+ rb_define_const(eXMLError, "DTD_NOTATION_VALUE", INT2NUM(XML_DTD_NOTATION_VALUE));
492
393
  rb_define_const(eXMLError, "DTD_NOT_EMPTY", INT2NUM(XML_DTD_NOT_EMPTY));
493
394
  rb_define_const(eXMLError, "DTD_NOT_PCDATA", INT2NUM(XML_DTD_NOT_PCDATA));
494
- rb_define_const(eXMLError, "DTD_NOT_STANDALONE", INT2NUM(
495
- XML_DTD_NOT_STANDALONE));
395
+ rb_define_const(eXMLError, "DTD_NOT_STANDALONE", INT2NUM(XML_DTD_NOT_STANDALONE));
496
396
  rb_define_const(eXMLError, "DTD_ROOT_NAME", INT2NUM(XML_DTD_ROOT_NAME));
497
- rb_define_const(eXMLError, "DTD_STANDALONE_WHITE_SPACE", INT2NUM(
498
- XML_DTD_STANDALONE_WHITE_SPACE));
499
- rb_define_const(eXMLError, "DTD_UNKNOWN_ATTRIBUTE", INT2NUM(
500
- XML_DTD_UNKNOWN_ATTRIBUTE));
397
+ rb_define_const(eXMLError, "DTD_STANDALONE_WHITE_SPACE", INT2NUM(XML_DTD_STANDALONE_WHITE_SPACE));
398
+ rb_define_const(eXMLError, "DTD_UNKNOWN_ATTRIBUTE", INT2NUM(XML_DTD_UNKNOWN_ATTRIBUTE));
501
399
  rb_define_const(eXMLError, "DTD_UNKNOWN_ELEM", INT2NUM(XML_DTD_UNKNOWN_ELEM));
502
- rb_define_const(eXMLError, "DTD_UNKNOWN_ENTITY", INT2NUM(
503
- XML_DTD_UNKNOWN_ENTITY));
400
+ rb_define_const(eXMLError, "DTD_UNKNOWN_ENTITY", INT2NUM(XML_DTD_UNKNOWN_ENTITY));
504
401
  rb_define_const(eXMLError, "DTD_UNKNOWN_ID", INT2NUM(XML_DTD_UNKNOWN_ID));
505
- rb_define_const(eXMLError, "DTD_UNKNOWN_NOTATION", INT2NUM(
506
- XML_DTD_UNKNOWN_NOTATION));
507
- rb_define_const(eXMLError, "DTD_STANDALONE_DEFAULTED", INT2NUM(
508
- XML_DTD_STANDALONE_DEFAULTED));
402
+ rb_define_const(eXMLError, "DTD_UNKNOWN_NOTATION", INT2NUM(XML_DTD_UNKNOWN_NOTATION));
403
+ rb_define_const(eXMLError, "DTD_STANDALONE_DEFAULTED", INT2NUM(XML_DTD_STANDALONE_DEFAULTED));
509
404
  rb_define_const(eXMLError, "DTD_XMLID_VALUE", INT2NUM(XML_DTD_XMLID_VALUE));
510
405
  rb_define_const(eXMLError, "DTD_XMLID_TYPE", INT2NUM(XML_DTD_XMLID_TYPE));
511
- rb_define_const(eXMLError, "HTML_STRUCURE_ERROR", INT2NUM(
512
- XML_HTML_STRUCURE_ERROR));
406
+ rb_define_const(eXMLError, "HTML_STRUCURE_ERROR", INT2NUM(XML_HTML_STRUCURE_ERROR));
513
407
  rb_define_const(eXMLError, "HTML_UNKNOWN_TAG", INT2NUM(XML_HTML_UNKNOWN_TAG));
514
- rb_define_const(eXMLError, "RNGP_ANYNAME_ATTR_ANCESTOR", INT2NUM(
515
- XML_RNGP_ANYNAME_ATTR_ANCESTOR));
516
- rb_define_const(eXMLError, "RNGP_ATTR_CONFLICT", INT2NUM(
517
- XML_RNGP_ATTR_CONFLICT));
518
- rb_define_const(eXMLError, "RNGP_ATTRIBUTE_CHILDREN", INT2NUM(
519
- XML_RNGP_ATTRIBUTE_CHILDREN));
520
- rb_define_const(eXMLError, "RNGP_ATTRIBUTE_CONTENT", INT2NUM(
521
- XML_RNGP_ATTRIBUTE_CONTENT));
522
- rb_define_const(eXMLError, "RNGP_ATTRIBUTE_EMPTY", INT2NUM(
523
- XML_RNGP_ATTRIBUTE_EMPTY));
524
- rb_define_const(eXMLError, "RNGP_ATTRIBUTE_NOOP", INT2NUM(
525
- XML_RNGP_ATTRIBUTE_NOOP));
526
- rb_define_const(eXMLError, "RNGP_CHOICE_CONTENT", INT2NUM(
527
- XML_RNGP_CHOICE_CONTENT));
528
- rb_define_const(eXMLError, "RNGP_CHOICE_EMPTY",
529
- INT2NUM(XML_RNGP_CHOICE_EMPTY));
530
- rb_define_const(eXMLError, "RNGP_CREATE_FAILURE", INT2NUM(
531
- XML_RNGP_CREATE_FAILURE));
532
- rb_define_const(eXMLError, "RNGP_DATA_CONTENT",
533
- INT2NUM(XML_RNGP_DATA_CONTENT));
534
- rb_define_const(eXMLError, "RNGP_DEF_CHOICE_AND_INTERLEAVE", INT2NUM(
535
- XML_RNGP_DEF_CHOICE_AND_INTERLEAVE));
536
- rb_define_const(eXMLError, "RNGP_DEFINE_CREATE_FAILED", INT2NUM(
537
- XML_RNGP_DEFINE_CREATE_FAILED));
538
- rb_define_const(eXMLError, "RNGP_DEFINE_EMPTY",
539
- INT2NUM(XML_RNGP_DEFINE_EMPTY));
540
- rb_define_const(eXMLError, "RNGP_DEFINE_MISSING", INT2NUM(
541
- XML_RNGP_DEFINE_MISSING));
542
- rb_define_const(eXMLError, "RNGP_DEFINE_NAME_MISSING", INT2NUM(
543
- XML_RNGP_DEFINE_NAME_MISSING));
544
- rb_define_const(eXMLError, "RNGP_ELEM_CONTENT_EMPTY", INT2NUM(
545
- XML_RNGP_ELEM_CONTENT_EMPTY));
546
- rb_define_const(eXMLError, "RNGP_ELEM_CONTENT_ERROR", INT2NUM(
547
- XML_RNGP_ELEM_CONTENT_ERROR));
548
- rb_define_const(eXMLError, "RNGP_ELEMENT_EMPTY", INT2NUM(
549
- XML_RNGP_ELEMENT_EMPTY));
550
- rb_define_const(eXMLError, "RNGP_ELEMENT_CONTENT", INT2NUM(
551
- XML_RNGP_ELEMENT_CONTENT));
552
- rb_define_const(eXMLError, "RNGP_ELEMENT_NAME",
553
- INT2NUM(XML_RNGP_ELEMENT_NAME));
554
- rb_define_const(eXMLError, "RNGP_ELEMENT_NO_CONTENT", INT2NUM(
555
- XML_RNGP_ELEMENT_NO_CONTENT));
556
- rb_define_const(eXMLError, "RNGP_ELEM_TEXT_CONFLICT", INT2NUM(
557
- XML_RNGP_ELEM_TEXT_CONFLICT));
408
+ rb_define_const(eXMLError, "RNGP_ANYNAME_ATTR_ANCESTOR", INT2NUM(XML_RNGP_ANYNAME_ATTR_ANCESTOR));
409
+ rb_define_const(eXMLError, "RNGP_ATTR_CONFLICT", INT2NUM(XML_RNGP_ATTR_CONFLICT));
410
+ rb_define_const(eXMLError, "RNGP_ATTRIBUTE_CHILDREN", INT2NUM(XML_RNGP_ATTRIBUTE_CHILDREN));
411
+ rb_define_const(eXMLError, "RNGP_ATTRIBUTE_CONTENT", INT2NUM(XML_RNGP_ATTRIBUTE_CONTENT));
412
+ rb_define_const(eXMLError, "RNGP_ATTRIBUTE_EMPTY", INT2NUM(XML_RNGP_ATTRIBUTE_EMPTY));
413
+ rb_define_const(eXMLError, "RNGP_ATTRIBUTE_NOOP", INT2NUM(XML_RNGP_ATTRIBUTE_NOOP));
414
+ rb_define_const(eXMLError, "RNGP_CHOICE_CONTENT", INT2NUM(XML_RNGP_CHOICE_CONTENT));
415
+ rb_define_const(eXMLError, "RNGP_CHOICE_EMPTY", INT2NUM(XML_RNGP_CHOICE_EMPTY));
416
+ rb_define_const(eXMLError, "RNGP_CREATE_FAILURE", INT2NUM(XML_RNGP_CREATE_FAILURE));
417
+ rb_define_const(eXMLError, "RNGP_DATA_CONTENT", INT2NUM(XML_RNGP_DATA_CONTENT));
418
+ rb_define_const(eXMLError, "RNGP_DEF_CHOICE_AND_INTERLEAVE", INT2NUM(XML_RNGP_DEF_CHOICE_AND_INTERLEAVE));
419
+ rb_define_const(eXMLError, "RNGP_DEFINE_CREATE_FAILED", INT2NUM(XML_RNGP_DEFINE_CREATE_FAILED));
420
+ rb_define_const(eXMLError, "RNGP_DEFINE_EMPTY", INT2NUM(XML_RNGP_DEFINE_EMPTY));
421
+ rb_define_const(eXMLError, "RNGP_DEFINE_MISSING", INT2NUM(XML_RNGP_DEFINE_MISSING));
422
+ rb_define_const(eXMLError, "RNGP_DEFINE_NAME_MISSING", INT2NUM(XML_RNGP_DEFINE_NAME_MISSING));
423
+ rb_define_const(eXMLError, "RNGP_ELEM_CONTENT_EMPTY", INT2NUM(XML_RNGP_ELEM_CONTENT_EMPTY));
424
+ rb_define_const(eXMLError, "RNGP_ELEM_CONTENT_ERROR", INT2NUM(XML_RNGP_ELEM_CONTENT_ERROR));
425
+ rb_define_const(eXMLError, "RNGP_ELEMENT_EMPTY", INT2NUM(XML_RNGP_ELEMENT_EMPTY));
426
+ rb_define_const(eXMLError, "RNGP_ELEMENT_CONTENT", INT2NUM(XML_RNGP_ELEMENT_CONTENT));
427
+ rb_define_const(eXMLError, "RNGP_ELEMENT_NAME", INT2NUM(XML_RNGP_ELEMENT_NAME));
428
+ rb_define_const(eXMLError, "RNGP_ELEMENT_NO_CONTENT", INT2NUM(XML_RNGP_ELEMENT_NO_CONTENT));
429
+ rb_define_const(eXMLError, "RNGP_ELEM_TEXT_CONFLICT", INT2NUM(XML_RNGP_ELEM_TEXT_CONFLICT));
558
430
  rb_define_const(eXMLError, "RNGP_EMPTY", INT2NUM(XML_RNGP_EMPTY));
559
- rb_define_const(eXMLError, "RNGP_EMPTY_CONSTRUCT", INT2NUM(
560
- XML_RNGP_EMPTY_CONSTRUCT));
561
- rb_define_const(eXMLError, "RNGP_EMPTY_CONTENT", INT2NUM(
562
- XML_RNGP_EMPTY_CONTENT));
563
- rb_define_const(eXMLError, "RNGP_EMPTY_NOT_EMPTY", INT2NUM(
564
- XML_RNGP_EMPTY_NOT_EMPTY));
565
- rb_define_const(eXMLError, "RNGP_ERROR_TYPE_LIB", INT2NUM(
566
- XML_RNGP_ERROR_TYPE_LIB));
567
- rb_define_const(eXMLError, "RNGP_EXCEPT_EMPTY",
568
- INT2NUM(XML_RNGP_EXCEPT_EMPTY));
569
- rb_define_const(eXMLError, "RNGP_EXCEPT_MISSING", INT2NUM(
570
- XML_RNGP_EXCEPT_MISSING));
571
- rb_define_const(eXMLError, "RNGP_EXCEPT_MULTIPLE", INT2NUM(
572
- XML_RNGP_EXCEPT_MULTIPLE));
573
- rb_define_const(eXMLError, "RNGP_EXCEPT_NO_CONTENT", INT2NUM(
574
- XML_RNGP_EXCEPT_NO_CONTENT));
575
- rb_define_const(eXMLError, "RNGP_EXTERNALREF_EMTPY", INT2NUM(
576
- XML_RNGP_EXTERNALREF_EMTPY));
577
- rb_define_const(eXMLError, "RNGP_EXTERNAL_REF_FAILURE", INT2NUM(
578
- XML_RNGP_EXTERNAL_REF_FAILURE));
579
- rb_define_const(eXMLError, "RNGP_EXTERNALREF_RECURSE", INT2NUM(
580
- XML_RNGP_EXTERNALREF_RECURSE));
581
- rb_define_const(eXMLError, "RNGP_FORBIDDEN_ATTRIBUTE", INT2NUM(
582
- XML_RNGP_FORBIDDEN_ATTRIBUTE));
583
- rb_define_const(eXMLError, "RNGP_FOREIGN_ELEMENT", INT2NUM(
584
- XML_RNGP_FOREIGN_ELEMENT));
585
- rb_define_const(eXMLError, "RNGP_GRAMMAR_CONTENT", INT2NUM(
586
- XML_RNGP_GRAMMAR_CONTENT));
587
- rb_define_const(eXMLError, "RNGP_GRAMMAR_EMPTY", INT2NUM(
588
- XML_RNGP_GRAMMAR_EMPTY));
589
- rb_define_const(eXMLError, "RNGP_GRAMMAR_MISSING", INT2NUM(
590
- XML_RNGP_GRAMMAR_MISSING));
591
- rb_define_const(eXMLError, "RNGP_GRAMMAR_NO_START", INT2NUM(
592
- XML_RNGP_GRAMMAR_NO_START));
593
- rb_define_const(eXMLError, "RNGP_GROUP_ATTR_CONFLICT", INT2NUM(
594
- XML_RNGP_GROUP_ATTR_CONFLICT));
431
+ rb_define_const(eXMLError, "RNGP_EMPTY_CONSTRUCT", INT2NUM(XML_RNGP_EMPTY_CONSTRUCT));
432
+ rb_define_const(eXMLError, "RNGP_EMPTY_CONTENT", INT2NUM(XML_RNGP_EMPTY_CONTENT));
433
+ rb_define_const(eXMLError, "RNGP_EMPTY_NOT_EMPTY", INT2NUM(XML_RNGP_EMPTY_NOT_EMPTY));
434
+ rb_define_const(eXMLError, "RNGP_ERROR_TYPE_LIB", INT2NUM(XML_RNGP_ERROR_TYPE_LIB));
435
+ rb_define_const(eXMLError, "RNGP_EXCEPT_EMPTY", INT2NUM(XML_RNGP_EXCEPT_EMPTY));
436
+ rb_define_const(eXMLError, "RNGP_EXCEPT_MISSING", INT2NUM(XML_RNGP_EXCEPT_MISSING));
437
+ rb_define_const(eXMLError, "RNGP_EXCEPT_MULTIPLE", INT2NUM(XML_RNGP_EXCEPT_MULTIPLE));
438
+ rb_define_const(eXMLError, "RNGP_EXCEPT_NO_CONTENT", INT2NUM(XML_RNGP_EXCEPT_NO_CONTENT));
439
+ rb_define_const(eXMLError, "RNGP_EXTERNALREF_EMTPY", INT2NUM(XML_RNGP_EXTERNALREF_EMTPY));
440
+ rb_define_const(eXMLError, "RNGP_EXTERNAL_REF_FAILURE", INT2NUM(XML_RNGP_EXTERNAL_REF_FAILURE));
441
+ rb_define_const(eXMLError, "RNGP_EXTERNALREF_RECURSE", INT2NUM(XML_RNGP_EXTERNALREF_RECURSE));
442
+ rb_define_const(eXMLError, "RNGP_FORBIDDEN_ATTRIBUTE", INT2NUM(XML_RNGP_FORBIDDEN_ATTRIBUTE));
443
+ rb_define_const(eXMLError, "RNGP_FOREIGN_ELEMENT", INT2NUM(XML_RNGP_FOREIGN_ELEMENT));
444
+ rb_define_const(eXMLError, "RNGP_GRAMMAR_CONTENT", INT2NUM(XML_RNGP_GRAMMAR_CONTENT));
445
+ rb_define_const(eXMLError, "RNGP_GRAMMAR_EMPTY", INT2NUM(XML_RNGP_GRAMMAR_EMPTY));
446
+ rb_define_const(eXMLError, "RNGP_GRAMMAR_MISSING", INT2NUM(XML_RNGP_GRAMMAR_MISSING));
447
+ rb_define_const(eXMLError, "RNGP_GRAMMAR_NO_START", INT2NUM(XML_RNGP_GRAMMAR_NO_START));
448
+ rb_define_const(eXMLError, "RNGP_GROUP_ATTR_CONFLICT", INT2NUM(XML_RNGP_GROUP_ATTR_CONFLICT));
595
449
  rb_define_const(eXMLError, "RNGP_HREF_ERROR", INT2NUM(XML_RNGP_HREF_ERROR));
596
- rb_define_const(eXMLError, "RNGP_INCLUDE_EMPTY", INT2NUM(
597
- XML_RNGP_INCLUDE_EMPTY));
598
- rb_define_const(eXMLError, "RNGP_INCLUDE_FAILURE", INT2NUM(
599
- XML_RNGP_INCLUDE_FAILURE));
600
- rb_define_const(eXMLError, "RNGP_INCLUDE_RECURSE", INT2NUM(
601
- XML_RNGP_INCLUDE_RECURSE));
602
- rb_define_const(eXMLError, "RNGP_INTERLEAVE_ADD", INT2NUM(
603
- XML_RNGP_INTERLEAVE_ADD));
604
- rb_define_const(eXMLError, "RNGP_INTERLEAVE_CREATE_FAILED", INT2NUM(
605
- XML_RNGP_INTERLEAVE_CREATE_FAILED));
606
- rb_define_const(eXMLError, "RNGP_INTERLEAVE_EMPTY", INT2NUM(
607
- XML_RNGP_INTERLEAVE_EMPTY));
608
- rb_define_const(eXMLError, "RNGP_INTERLEAVE_NO_CONTENT", INT2NUM(
609
- XML_RNGP_INTERLEAVE_NO_CONTENT));
610
- rb_define_const(eXMLError, "RNGP_INVALID_DEFINE_NAME", INT2NUM(
611
- XML_RNGP_INVALID_DEFINE_NAME));
450
+ rb_define_const(eXMLError, "RNGP_INCLUDE_EMPTY", INT2NUM(XML_RNGP_INCLUDE_EMPTY));
451
+ rb_define_const(eXMLError, "RNGP_INCLUDE_FAILURE", INT2NUM(XML_RNGP_INCLUDE_FAILURE));
452
+ rb_define_const(eXMLError, "RNGP_INCLUDE_RECURSE", INT2NUM(XML_RNGP_INCLUDE_RECURSE));
453
+ rb_define_const(eXMLError, "RNGP_INTERLEAVE_ADD", INT2NUM(XML_RNGP_INTERLEAVE_ADD));
454
+ rb_define_const(eXMLError, "RNGP_INTERLEAVE_CREATE_FAILED", INT2NUM(XML_RNGP_INTERLEAVE_CREATE_FAILED));
455
+ rb_define_const(eXMLError, "RNGP_INTERLEAVE_EMPTY", INT2NUM(XML_RNGP_INTERLEAVE_EMPTY));
456
+ rb_define_const(eXMLError, "RNGP_INTERLEAVE_NO_CONTENT", INT2NUM(XML_RNGP_INTERLEAVE_NO_CONTENT));
457
+ rb_define_const(eXMLError, "RNGP_INVALID_DEFINE_NAME", INT2NUM(XML_RNGP_INVALID_DEFINE_NAME));
612
458
  rb_define_const(eXMLError, "RNGP_INVALID_URI", INT2NUM(XML_RNGP_INVALID_URI));
613
- rb_define_const(eXMLError, "RNGP_INVALID_VALUE", INT2NUM(
614
- XML_RNGP_INVALID_VALUE));
615
- rb_define_const(eXMLError, "RNGP_MISSING_HREF",
616
- INT2NUM(XML_RNGP_MISSING_HREF));
617
- rb_define_const(eXMLError, "RNGP_NAME_MISSING",
618
- INT2NUM(XML_RNGP_NAME_MISSING));
619
- rb_define_const(eXMLError, "RNGP_NEED_COMBINE",
620
- INT2NUM(XML_RNGP_NEED_COMBINE));
621
- rb_define_const(eXMLError, "RNGP_NOTALLOWED_NOT_EMPTY", INT2NUM(
622
- XML_RNGP_NOTALLOWED_NOT_EMPTY));
623
- rb_define_const(eXMLError, "RNGP_NSNAME_ATTR_ANCESTOR", INT2NUM(
624
- XML_RNGP_NSNAME_ATTR_ANCESTOR));
625
- rb_define_const(eXMLError, "RNGP_NSNAME_NO_NS",
626
- INT2NUM(XML_RNGP_NSNAME_NO_NS));
627
- rb_define_const(eXMLError, "RNGP_PARAM_FORBIDDEN", INT2NUM(
628
- XML_RNGP_PARAM_FORBIDDEN));
629
- rb_define_const(eXMLError, "RNGP_PARAM_NAME_MISSING", INT2NUM(
630
- XML_RNGP_PARAM_NAME_MISSING));
631
- rb_define_const(eXMLError, "RNGP_PARENTREF_CREATE_FAILED", INT2NUM(
632
- XML_RNGP_PARENTREF_CREATE_FAILED));
633
- rb_define_const(eXMLError, "RNGP_PARENTREF_NAME_INVALID", INT2NUM(
634
- XML_RNGP_PARENTREF_NAME_INVALID));
635
- rb_define_const(eXMLError, "RNGP_PARENTREF_NO_NAME", INT2NUM(
636
- XML_RNGP_PARENTREF_NO_NAME));
637
- rb_define_const(eXMLError, "RNGP_PARENTREF_NO_PARENT", INT2NUM(
638
- XML_RNGP_PARENTREF_NO_PARENT));
639
- rb_define_const(eXMLError, "RNGP_PARENTREF_NOT_EMPTY", INT2NUM(
640
- XML_RNGP_PARENTREF_NOT_EMPTY));
459
+ rb_define_const(eXMLError, "RNGP_INVALID_VALUE", INT2NUM(XML_RNGP_INVALID_VALUE));
460
+ rb_define_const(eXMLError, "RNGP_MISSING_HREF", INT2NUM(XML_RNGP_MISSING_HREF));
461
+ rb_define_const(eXMLError, "RNGP_NAME_MISSING", INT2NUM(XML_RNGP_NAME_MISSING));
462
+ rb_define_const(eXMLError, "RNGP_NEED_COMBINE", INT2NUM(XML_RNGP_NEED_COMBINE));
463
+ rb_define_const(eXMLError, "RNGP_NOTALLOWED_NOT_EMPTY", INT2NUM(XML_RNGP_NOTALLOWED_NOT_EMPTY));
464
+ rb_define_const(eXMLError, "RNGP_NSNAME_ATTR_ANCESTOR", INT2NUM(XML_RNGP_NSNAME_ATTR_ANCESTOR));
465
+ rb_define_const(eXMLError, "RNGP_NSNAME_NO_NS", INT2NUM(XML_RNGP_NSNAME_NO_NS));
466
+ rb_define_const(eXMLError, "RNGP_PARAM_FORBIDDEN", INT2NUM(XML_RNGP_PARAM_FORBIDDEN));
467
+ rb_define_const(eXMLError, "RNGP_PARAM_NAME_MISSING", INT2NUM(XML_RNGP_PARAM_NAME_MISSING));
468
+ rb_define_const(eXMLError, "RNGP_PARENTREF_CREATE_FAILED", INT2NUM(XML_RNGP_PARENTREF_CREATE_FAILED));
469
+ rb_define_const(eXMLError, "RNGP_PARENTREF_NAME_INVALID", INT2NUM(XML_RNGP_PARENTREF_NAME_INVALID));
470
+ rb_define_const(eXMLError, "RNGP_PARENTREF_NO_NAME", INT2NUM(XML_RNGP_PARENTREF_NO_NAME));
471
+ rb_define_const(eXMLError, "RNGP_PARENTREF_NO_PARENT", INT2NUM(XML_RNGP_PARENTREF_NO_PARENT));
472
+ rb_define_const(eXMLError, "RNGP_PARENTREF_NOT_EMPTY", INT2NUM(XML_RNGP_PARENTREF_NOT_EMPTY));
641
473
  rb_define_const(eXMLError, "RNGP_PARSE_ERROR", INT2NUM(XML_RNGP_PARSE_ERROR));
642
- rb_define_const(eXMLError, "RNGP_PAT_ANYNAME_EXCEPT_ANYNAME", INT2NUM(
643
- XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME));
644
- rb_define_const(eXMLError, "RNGP_PAT_ATTR_ATTR", INT2NUM(
645
- XML_RNGP_PAT_ATTR_ATTR));
646
- rb_define_const(eXMLError, "RNGP_PAT_ATTR_ELEM", INT2NUM(
647
- XML_RNGP_PAT_ATTR_ELEM));
648
- rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_ATTR", INT2NUM(
649
- XML_RNGP_PAT_DATA_EXCEPT_ATTR));
650
- rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_ELEM", INT2NUM(
651
- XML_RNGP_PAT_DATA_EXCEPT_ELEM));
652
- rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_EMPTY", INT2NUM(
653
- XML_RNGP_PAT_DATA_EXCEPT_EMPTY));
654
- rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_GROUP", INT2NUM(
655
- XML_RNGP_PAT_DATA_EXCEPT_GROUP));
656
- rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_INTERLEAVE", INT2NUM(
657
- XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE));
658
- rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_LIST", INT2NUM(
659
- XML_RNGP_PAT_DATA_EXCEPT_LIST));
660
- rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_ONEMORE", INT2NUM(
661
- XML_RNGP_PAT_DATA_EXCEPT_ONEMORE));
662
- rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_REF", INT2NUM(
663
- XML_RNGP_PAT_DATA_EXCEPT_REF));
664
- rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_TEXT", INT2NUM(
665
- XML_RNGP_PAT_DATA_EXCEPT_TEXT));
666
- rb_define_const(eXMLError, "RNGP_PAT_LIST_ATTR", INT2NUM(
667
- XML_RNGP_PAT_LIST_ATTR));
668
- rb_define_const(eXMLError, "RNGP_PAT_LIST_ELEM", INT2NUM(
669
- XML_RNGP_PAT_LIST_ELEM));
670
- rb_define_const(eXMLError, "RNGP_PAT_LIST_INTERLEAVE", INT2NUM(
671
- XML_RNGP_PAT_LIST_INTERLEAVE));
672
- rb_define_const(eXMLError, "RNGP_PAT_LIST_LIST", INT2NUM(
673
- XML_RNGP_PAT_LIST_LIST));
674
- rb_define_const(eXMLError, "RNGP_PAT_LIST_REF",
675
- INT2NUM(XML_RNGP_PAT_LIST_REF));
676
- rb_define_const(eXMLError, "RNGP_PAT_LIST_TEXT", INT2NUM(
677
- XML_RNGP_PAT_LIST_TEXT));
678
- rb_define_const(eXMLError, "RNGP_PAT_NSNAME_EXCEPT_ANYNAME", INT2NUM(
679
- XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME));
680
- rb_define_const(eXMLError, "RNGP_PAT_NSNAME_EXCEPT_NSNAME", INT2NUM(
681
- XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME));
682
- rb_define_const(eXMLError, "RNGP_PAT_ONEMORE_GROUP_ATTR", INT2NUM(
683
- XML_RNGP_PAT_ONEMORE_GROUP_ATTR));
684
- rb_define_const(eXMLError, "RNGP_PAT_ONEMORE_INTERLEAVE_ATTR", INT2NUM(
685
- XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR));
686
- rb_define_const(eXMLError, "RNGP_PAT_START_ATTR", INT2NUM(
687
- XML_RNGP_PAT_START_ATTR));
688
- rb_define_const(eXMLError, "RNGP_PAT_START_DATA", INT2NUM(
689
- XML_RNGP_PAT_START_DATA));
690
- rb_define_const(eXMLError, "RNGP_PAT_START_EMPTY", INT2NUM(
691
- XML_RNGP_PAT_START_EMPTY));
692
- rb_define_const(eXMLError, "RNGP_PAT_START_GROUP", INT2NUM(
693
- XML_RNGP_PAT_START_GROUP));
694
- rb_define_const(eXMLError, "RNGP_PAT_START_INTERLEAVE", INT2NUM(
695
- XML_RNGP_PAT_START_INTERLEAVE));
696
- rb_define_const(eXMLError, "RNGP_PAT_START_LIST", INT2NUM(
697
- XML_RNGP_PAT_START_LIST));
698
- rb_define_const(eXMLError, "RNGP_PAT_START_ONEMORE", INT2NUM(
699
- XML_RNGP_PAT_START_ONEMORE));
700
- rb_define_const(eXMLError, "RNGP_PAT_START_TEXT", INT2NUM(
701
- XML_RNGP_PAT_START_TEXT));
702
- rb_define_const(eXMLError, "RNGP_PAT_START_VALUE", INT2NUM(
703
- XML_RNGP_PAT_START_VALUE));
704
- rb_define_const(eXMLError, "RNGP_PREFIX_UNDEFINED", INT2NUM(
705
- XML_RNGP_PREFIX_UNDEFINED));
706
- rb_define_const(eXMLError, "RNGP_REF_CREATE_FAILED", INT2NUM(
707
- XML_RNGP_REF_CREATE_FAILED));
474
+ rb_define_const(eXMLError, "RNGP_PAT_ANYNAME_EXCEPT_ANYNAME", INT2NUM(XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME));
475
+ rb_define_const(eXMLError, "RNGP_PAT_ATTR_ATTR", INT2NUM(XML_RNGP_PAT_ATTR_ATTR));
476
+ rb_define_const(eXMLError, "RNGP_PAT_ATTR_ELEM", INT2NUM(XML_RNGP_PAT_ATTR_ELEM));
477
+ rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_ATTR", INT2NUM(XML_RNGP_PAT_DATA_EXCEPT_ATTR));
478
+ rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_ELEM", INT2NUM(XML_RNGP_PAT_DATA_EXCEPT_ELEM));
479
+ rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_EMPTY", INT2NUM(XML_RNGP_PAT_DATA_EXCEPT_EMPTY));
480
+ rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_GROUP", INT2NUM(XML_RNGP_PAT_DATA_EXCEPT_GROUP));
481
+ rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_INTERLEAVE", INT2NUM(XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE));
482
+ rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_LIST", INT2NUM(XML_RNGP_PAT_DATA_EXCEPT_LIST));
483
+ rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_ONEMORE", INT2NUM(XML_RNGP_PAT_DATA_EXCEPT_ONEMORE));
484
+ rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_REF", INT2NUM(XML_RNGP_PAT_DATA_EXCEPT_REF));
485
+ rb_define_const(eXMLError, "RNGP_PAT_DATA_EXCEPT_TEXT", INT2NUM(XML_RNGP_PAT_DATA_EXCEPT_TEXT));
486
+ rb_define_const(eXMLError, "RNGP_PAT_LIST_ATTR", INT2NUM(XML_RNGP_PAT_LIST_ATTR));
487
+ rb_define_const(eXMLError, "RNGP_PAT_LIST_ELEM", INT2NUM(XML_RNGP_PAT_LIST_ELEM));
488
+ rb_define_const(eXMLError, "RNGP_PAT_LIST_INTERLEAVE", INT2NUM(XML_RNGP_PAT_LIST_INTERLEAVE));
489
+ rb_define_const(eXMLError, "RNGP_PAT_LIST_LIST", INT2NUM(XML_RNGP_PAT_LIST_LIST));
490
+ rb_define_const(eXMLError, "RNGP_PAT_LIST_REF", INT2NUM(XML_RNGP_PAT_LIST_REF));
491
+ rb_define_const(eXMLError, "RNGP_PAT_LIST_TEXT", INT2NUM(XML_RNGP_PAT_LIST_TEXT));
492
+ rb_define_const(eXMLError, "RNGP_PAT_NSNAME_EXCEPT_ANYNAME", INT2NUM(XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME));
493
+ rb_define_const(eXMLError, "RNGP_PAT_NSNAME_EXCEPT_NSNAME", INT2NUM(XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME));
494
+ rb_define_const(eXMLError, "RNGP_PAT_ONEMORE_GROUP_ATTR", INT2NUM(XML_RNGP_PAT_ONEMORE_GROUP_ATTR));
495
+ rb_define_const(eXMLError, "RNGP_PAT_ONEMORE_INTERLEAVE_ATTR", INT2NUM(XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR));
496
+ rb_define_const(eXMLError, "RNGP_PAT_START_ATTR", INT2NUM(XML_RNGP_PAT_START_ATTR));
497
+ rb_define_const(eXMLError, "RNGP_PAT_START_DATA", INT2NUM(XML_RNGP_PAT_START_DATA));
498
+ rb_define_const(eXMLError, "RNGP_PAT_START_EMPTY", INT2NUM(XML_RNGP_PAT_START_EMPTY));
499
+ rb_define_const(eXMLError, "RNGP_PAT_START_GROUP", INT2NUM(XML_RNGP_PAT_START_GROUP));
500
+ rb_define_const(eXMLError, "RNGP_PAT_START_INTERLEAVE", INT2NUM(XML_RNGP_PAT_START_INTERLEAVE));
501
+ rb_define_const(eXMLError, "RNGP_PAT_START_LIST", INT2NUM(XML_RNGP_PAT_START_LIST));
502
+ rb_define_const(eXMLError, "RNGP_PAT_START_ONEMORE", INT2NUM(XML_RNGP_PAT_START_ONEMORE));
503
+ rb_define_const(eXMLError, "RNGP_PAT_START_TEXT", INT2NUM(XML_RNGP_PAT_START_TEXT));
504
+ rb_define_const(eXMLError, "RNGP_PAT_START_VALUE", INT2NUM(XML_RNGP_PAT_START_VALUE));
505
+ rb_define_const(eXMLError, "RNGP_PREFIX_UNDEFINED", INT2NUM(XML_RNGP_PREFIX_UNDEFINED));
506
+ rb_define_const(eXMLError, "RNGP_REF_CREATE_FAILED", INT2NUM(XML_RNGP_REF_CREATE_FAILED));
708
507
  rb_define_const(eXMLError, "RNGP_REF_CYCLE", INT2NUM(XML_RNGP_REF_CYCLE));
709
- rb_define_const(eXMLError, "RNGP_REF_NAME_INVALID", INT2NUM(
710
- XML_RNGP_REF_NAME_INVALID));
508
+ rb_define_const(eXMLError, "RNGP_REF_NAME_INVALID", INT2NUM(XML_RNGP_REF_NAME_INVALID));
711
509
  rb_define_const(eXMLError, "RNGP_REF_NO_DEF", INT2NUM(XML_RNGP_REF_NO_DEF));
712
510
  rb_define_const(eXMLError, "RNGP_REF_NO_NAME", INT2NUM(XML_RNGP_REF_NO_NAME));
713
- rb_define_const(eXMLError, "RNGP_REF_NOT_EMPTY", INT2NUM(
714
- XML_RNGP_REF_NOT_EMPTY));
715
- rb_define_const(eXMLError, "RNGP_START_CHOICE_AND_INTERLEAVE", INT2NUM(
716
- XML_RNGP_START_CHOICE_AND_INTERLEAVE));
717
- rb_define_const(eXMLError, "RNGP_START_CONTENT", INT2NUM(
718
- XML_RNGP_START_CONTENT));
511
+ rb_define_const(eXMLError, "RNGP_REF_NOT_EMPTY", INT2NUM(XML_RNGP_REF_NOT_EMPTY));
512
+ rb_define_const(eXMLError, "RNGP_START_CHOICE_AND_INTERLEAVE", INT2NUM(XML_RNGP_START_CHOICE_AND_INTERLEAVE));
513
+ rb_define_const(eXMLError, "RNGP_START_CONTENT", INT2NUM(XML_RNGP_START_CONTENT));
719
514
  rb_define_const(eXMLError, "RNGP_START_EMPTY", INT2NUM(XML_RNGP_START_EMPTY));
720
- rb_define_const(eXMLError, "RNGP_START_MISSING", INT2NUM(
721
- XML_RNGP_START_MISSING));
722
- rb_define_const(eXMLError, "RNGP_TEXT_EXPECTED", INT2NUM(
723
- XML_RNGP_TEXT_EXPECTED));
724
- rb_define_const(eXMLError, "RNGP_TEXT_HAS_CHILD", INT2NUM(
725
- XML_RNGP_TEXT_HAS_CHILD));
726
- rb_define_const(eXMLError, "RNGP_TYPE_MISSING",
727
- INT2NUM(XML_RNGP_TYPE_MISSING));
728
- rb_define_const(eXMLError, "RNGP_TYPE_NOT_FOUND", INT2NUM(
729
- XML_RNGP_TYPE_NOT_FOUND));
515
+ rb_define_const(eXMLError, "RNGP_START_MISSING", INT2NUM(XML_RNGP_START_MISSING));
516
+ rb_define_const(eXMLError, "RNGP_TEXT_EXPECTED", INT2NUM(XML_RNGP_TEXT_EXPECTED));
517
+ rb_define_const(eXMLError, "RNGP_TEXT_HAS_CHILD", INT2NUM(XML_RNGP_TEXT_HAS_CHILD));
518
+ rb_define_const(eXMLError, "RNGP_TYPE_MISSING", INT2NUM(XML_RNGP_TYPE_MISSING));
519
+ rb_define_const(eXMLError, "RNGP_TYPE_NOT_FOUND", INT2NUM(XML_RNGP_TYPE_NOT_FOUND));
730
520
  rb_define_const(eXMLError, "RNGP_TYPE_VALUE", INT2NUM(XML_RNGP_TYPE_VALUE));
731
- rb_define_const(eXMLError, "RNGP_UNKNOWN_ATTRIBUTE", INT2NUM(
732
- XML_RNGP_UNKNOWN_ATTRIBUTE));
733
- rb_define_const(eXMLError, "RNGP_UNKNOWN_COMBINE", INT2NUM(
734
- XML_RNGP_UNKNOWN_COMBINE));
735
- rb_define_const(eXMLError, "RNGP_UNKNOWN_CONSTRUCT", INT2NUM(
736
- XML_RNGP_UNKNOWN_CONSTRUCT));
737
- rb_define_const(eXMLError, "RNGP_UNKNOWN_TYPE_LIB", INT2NUM(
738
- XML_RNGP_UNKNOWN_TYPE_LIB));
739
- rb_define_const(eXMLError, "RNGP_URI_FRAGMENT",
740
- INT2NUM(XML_RNGP_URI_FRAGMENT));
741
- rb_define_const(eXMLError, "RNGP_URI_NOT_ABSOLUTE", INT2NUM(
742
- XML_RNGP_URI_NOT_ABSOLUTE));
521
+ rb_define_const(eXMLError, "RNGP_UNKNOWN_ATTRIBUTE", INT2NUM(XML_RNGP_UNKNOWN_ATTRIBUTE));
522
+ rb_define_const(eXMLError, "RNGP_UNKNOWN_COMBINE", INT2NUM(XML_RNGP_UNKNOWN_COMBINE));
523
+ rb_define_const(eXMLError, "RNGP_UNKNOWN_CONSTRUCT", INT2NUM(XML_RNGP_UNKNOWN_CONSTRUCT));
524
+ rb_define_const(eXMLError, "RNGP_UNKNOWN_TYPE_LIB", INT2NUM(XML_RNGP_UNKNOWN_TYPE_LIB));
525
+ rb_define_const(eXMLError, "RNGP_URI_FRAGMENT", INT2NUM(XML_RNGP_URI_FRAGMENT));
526
+ rb_define_const(eXMLError, "RNGP_URI_NOT_ABSOLUTE", INT2NUM(XML_RNGP_URI_NOT_ABSOLUTE));
743
527
  rb_define_const(eXMLError, "RNGP_VALUE_EMPTY", INT2NUM(XML_RNGP_VALUE_EMPTY));
744
- rb_define_const(eXMLError, "RNGP_VALUE_NO_CONTENT", INT2NUM(
745
- XML_RNGP_VALUE_NO_CONTENT));
528
+ rb_define_const(eXMLError, "RNGP_VALUE_NO_CONTENT", INT2NUM(XML_RNGP_VALUE_NO_CONTENT));
746
529
  rb_define_const(eXMLError, "RNGP_XMLNS_NAME", INT2NUM(XML_RNGP_XMLNS_NAME));
747
530
  rb_define_const(eXMLError, "RNGP_XML_NS", INT2NUM(XML_RNGP_XML_NS));
748
- rb_define_const(eXMLError, "XPATH_EXPRESSION_OK", INT2NUM(
749
- XML_XPATH_EXPRESSION_OK));
750
- rb_define_const(eXMLError, "XPATH_NUMBER_ERROR", INT2NUM(
751
- XML_XPATH_NUMBER_ERROR));
752
- rb_define_const(eXMLError, "XPATH_UNFINISHED_LITERAL_ERROR", INT2NUM(
753
- XML_XPATH_UNFINISHED_LITERAL_ERROR));
754
- rb_define_const(eXMLError, "XPATH_START_LITERAL_ERROR", INT2NUM(
755
- XML_XPATH_START_LITERAL_ERROR));
756
- rb_define_const(eXMLError, "XPATH_VARIABLE_REF_ERROR", INT2NUM(
757
- XML_XPATH_VARIABLE_REF_ERROR));
758
- rb_define_const(eXMLError, "XPATH_UNDEF_VARIABLE_ERROR", INT2NUM(
759
- XML_XPATH_UNDEF_VARIABLE_ERROR));
760
- rb_define_const(eXMLError, "XPATH_INVALID_PREDICATE_ERROR", INT2NUM(
761
- XML_XPATH_INVALID_PREDICATE_ERROR));
531
+ rb_define_const(eXMLError, "XPATH_EXPRESSION_OK", INT2NUM(XML_XPATH_EXPRESSION_OK));
532
+ rb_define_const(eXMLError, "XPATH_NUMBER_ERROR", INT2NUM(XML_XPATH_NUMBER_ERROR));
533
+ rb_define_const(eXMLError, "XPATH_UNFINISHED_LITERAL_ERROR", INT2NUM(XML_XPATH_UNFINISHED_LITERAL_ERROR));
534
+ rb_define_const(eXMLError, "XPATH_START_LITERAL_ERROR", INT2NUM(XML_XPATH_START_LITERAL_ERROR));
535
+ rb_define_const(eXMLError, "XPATH_VARIABLE_REF_ERROR", INT2NUM(XML_XPATH_VARIABLE_REF_ERROR));
536
+ rb_define_const(eXMLError, "XPATH_UNDEF_VARIABLE_ERROR", INT2NUM(XML_XPATH_UNDEF_VARIABLE_ERROR));
537
+ rb_define_const(eXMLError, "XPATH_INVALID_PREDICATE_ERROR", INT2NUM(XML_XPATH_INVALID_PREDICATE_ERROR));
762
538
  rb_define_const(eXMLError, "XPATH_EXPR_ERROR", INT2NUM(XML_XPATH_EXPR_ERROR));
763
- rb_define_const(eXMLError, "XPATH_UNCLOSED_ERROR", INT2NUM(
764
- XML_XPATH_UNCLOSED_ERROR));
765
- rb_define_const(eXMLError, "XPATH_UNKNOWN_FUNC_ERROR", INT2NUM(
766
- XML_XPATH_UNKNOWN_FUNC_ERROR));
767
- rb_define_const(eXMLError, "XPATH_INVALID_OPERAND", INT2NUM(
768
- XML_XPATH_INVALID_OPERAND));
769
- rb_define_const(eXMLError, "XPATH_INVALID_TYPE", INT2NUM(
770
- XML_XPATH_INVALID_TYPE));
771
- rb_define_const(eXMLError, "XPATH_INVALID_ARITY", INT2NUM(
772
- XML_XPATH_INVALID_ARITY));
773
- rb_define_const(eXMLError, "XPATH_INVALID_CTXT_SIZE", INT2NUM(
774
- XML_XPATH_INVALID_CTXT_SIZE));
775
- rb_define_const(eXMLError, "XPATH_INVALID_CTXT_POSITION", INT2NUM(
776
- XML_XPATH_INVALID_CTXT_POSITION));
777
- rb_define_const(eXMLError, "XPATH_MEMORY_ERROR", INT2NUM(
778
- XML_XPATH_MEMORY_ERROR));
779
- rb_define_const(eXMLError, "XPTR_SYNTAX_ERROR",
780
- INT2NUM(XML_XPTR_SYNTAX_ERROR));
781
- rb_define_const(eXMLError, "XPTR_RESOURCE_ERROR", INT2NUM(
782
- XML_XPTR_RESOURCE_ERROR));
783
- rb_define_const(eXMLError, "XPTR_SUB_RESOURCE_ERROR", INT2NUM(
784
- XML_XPTR_SUB_RESOURCE_ERROR));
785
- rb_define_const(eXMLError, "XPATH_UNDEF_PREFIX_ERROR", INT2NUM(
786
- XML_XPATH_UNDEF_PREFIX_ERROR));
787
- rb_define_const(eXMLError, "XPATH_ENCODING_ERROR", INT2NUM(
788
- XML_XPATH_ENCODING_ERROR));
789
- rb_define_const(eXMLError, "XPATH_INVALID_CHAR_ERROR", INT2NUM(
790
- XML_XPATH_INVALID_CHAR_ERROR));
539
+ rb_define_const(eXMLError, "XPATH_UNCLOSED_ERROR", INT2NUM(XML_XPATH_UNCLOSED_ERROR));
540
+ rb_define_const(eXMLError, "XPATH_UNKNOWN_FUNC_ERROR", INT2NUM(XML_XPATH_UNKNOWN_FUNC_ERROR));
541
+ rb_define_const(eXMLError, "XPATH_INVALID_OPERAND", INT2NUM(XML_XPATH_INVALID_OPERAND));
542
+ rb_define_const(eXMLError, "XPATH_INVALID_TYPE", INT2NUM(XML_XPATH_INVALID_TYPE));
543
+ rb_define_const(eXMLError, "XPATH_INVALID_ARITY", INT2NUM(XML_XPATH_INVALID_ARITY));
544
+ rb_define_const(eXMLError, "XPATH_INVALID_CTXT_SIZE", INT2NUM(XML_XPATH_INVALID_CTXT_SIZE));
545
+ rb_define_const(eXMLError, "XPATH_INVALID_CTXT_POSITION", INT2NUM(XML_XPATH_INVALID_CTXT_POSITION));
546
+ rb_define_const(eXMLError, "XPATH_MEMORY_ERROR", INT2NUM(XML_XPATH_MEMORY_ERROR));
547
+ rb_define_const(eXMLError, "XPTR_SYNTAX_ERROR", INT2NUM(XML_XPTR_SYNTAX_ERROR));
548
+ rb_define_const(eXMLError, "XPTR_RESOURCE_ERROR", INT2NUM(XML_XPTR_RESOURCE_ERROR));
549
+ rb_define_const(eXMLError, "XPTR_SUB_RESOURCE_ERROR", INT2NUM(XML_XPTR_SUB_RESOURCE_ERROR));
550
+ rb_define_const(eXMLError, "XPATH_UNDEF_PREFIX_ERROR", INT2NUM(XML_XPATH_UNDEF_PREFIX_ERROR));
551
+ rb_define_const(eXMLError, "XPATH_ENCODING_ERROR", INT2NUM(XML_XPATH_ENCODING_ERROR));
552
+ rb_define_const(eXMLError, "XPATH_INVALID_CHAR_ERROR", INT2NUM(XML_XPATH_INVALID_CHAR_ERROR));
791
553
  rb_define_const(eXMLError, "TREE_INVALID_HEX", INT2NUM(XML_TREE_INVALID_HEX));
792
554
  rb_define_const(eXMLError, "TREE_INVALID_DEC", INT2NUM(XML_TREE_INVALID_DEC));
793
- rb_define_const(eXMLError, "TREE_UNTERMINATED_ENTITY", INT2NUM(
794
- XML_TREE_UNTERMINATED_ENTITY));
555
+ rb_define_const(eXMLError, "TREE_UNTERMINATED_ENTITY", INT2NUM(XML_TREE_UNTERMINATED_ENTITY));
795
556
  #if LIBXML_VERSION >= 20632
796
557
  rb_define_const(eXMLError, "TREE_NOT_UTF8", INT2NUM(XML_TREE_NOT_UTF8));
797
558
  #endif
798
559
  rb_define_const(eXMLError, "SAVE_NOT_UTF8", INT2NUM(XML_SAVE_NOT_UTF8));
799
- rb_define_const(eXMLError, "SAVE_CHAR_INVALID",
800
- INT2NUM(XML_SAVE_CHAR_INVALID));
560
+ rb_define_const(eXMLError, "SAVE_CHAR_INVALID", INT2NUM(XML_SAVE_CHAR_INVALID));
801
561
  rb_define_const(eXMLError, "SAVE_NO_DOCTYPE", INT2NUM(XML_SAVE_NO_DOCTYPE));
802
- rb_define_const(eXMLError, "SAVE_UNKNOWN_ENCODING", INT2NUM(
803
- XML_SAVE_UNKNOWN_ENCODING));
804
- rb_define_const(eXMLError, "REGEXP_COMPILE_ERROR", INT2NUM(
805
- XML_REGEXP_COMPILE_ERROR));
562
+ rb_define_const(eXMLError, "SAVE_UNKNOWN_ENCODING", INT2NUM(XML_SAVE_UNKNOWN_ENCODING));
563
+ rb_define_const(eXMLError, "REGEXP_COMPILE_ERROR", INT2NUM(XML_REGEXP_COMPILE_ERROR));
806
564
  rb_define_const(eXMLError, "IO_UNKNOWN", INT2NUM(XML_IO_UNKNOWN));
807
565
  rb_define_const(eXMLError, "IO_EACCES", INT2NUM(XML_IO_EACCES));
808
566
  rb_define_const(eXMLError, "IO_EAGAIN", INT2NUM(XML_IO_EAGAIN));
@@ -846,8 +604,7 @@ void ruby_init_xml_error()
846
604
  rb_define_const(eXMLError, "IO_ESRCH", INT2NUM(XML_IO_ESRCH));
847
605
  rb_define_const(eXMLError, "IO_ETIMEDOUT", INT2NUM(XML_IO_ETIMEDOUT));
848
606
  rb_define_const(eXMLError, "IO_EXDEV", INT2NUM(XML_IO_EXDEV));
849
- rb_define_const(eXMLError, "IO_NETWORK_ATTEMPT", INT2NUM(
850
- XML_IO_NETWORK_ATTEMPT));
607
+ rb_define_const(eXMLError, "IO_NETWORK_ATTEMPT", INT2NUM(XML_IO_NETWORK_ATTEMPT));
851
608
  rb_define_const(eXMLError, "IO_ENCODER", INT2NUM(XML_IO_ENCODER));
852
609
  rb_define_const(eXMLError, "IO_FLUSH", INT2NUM(XML_IO_FLUSH));
853
610
  rb_define_const(eXMLError, "IO_WRITE", INT2NUM(XML_IO_WRITE));
@@ -861,397 +618,207 @@ void ruby_init_xml_error()
861
618
  rb_define_const(eXMLError, "IO_EADDRINUSE", INT2NUM(XML_IO_EADDRINUSE));
862
619
  rb_define_const(eXMLError, "IO_EALREADY", INT2NUM(XML_IO_EALREADY));
863
620
  rb_define_const(eXMLError, "IO_EAFNOSUPPORT", INT2NUM(XML_IO_EAFNOSUPPORT));
864
- rb_define_const(eXMLError, "XINCLUDE_RECURSION", INT2NUM(
865
- XML_XINCLUDE_RECURSION));
866
- rb_define_const(eXMLError, "XINCLUDE_PARSE_VALUE", INT2NUM(
867
- XML_XINCLUDE_PARSE_VALUE));
868
- rb_define_const(eXMLError, "XINCLUDE_ENTITY_DEF_MISMATCH", INT2NUM(
869
- XML_XINCLUDE_ENTITY_DEF_MISMATCH));
621
+ rb_define_const(eXMLError, "XINCLUDE_RECURSION", INT2NUM(XML_XINCLUDE_RECURSION));
622
+ rb_define_const(eXMLError, "XINCLUDE_PARSE_VALUE", INT2NUM(XML_XINCLUDE_PARSE_VALUE));
623
+ rb_define_const(eXMLError, "XINCLUDE_ENTITY_DEF_MISMATCH", INT2NUM(XML_XINCLUDE_ENTITY_DEF_MISMATCH));
870
624
  rb_define_const(eXMLError, "XINCLUDE_NO_HREF", INT2NUM(XML_XINCLUDE_NO_HREF));
871
- rb_define_const(eXMLError, "XINCLUDE_NO_FALLBACK", INT2NUM(
872
- XML_XINCLUDE_NO_FALLBACK));
873
- rb_define_const(eXMLError, "XINCLUDE_HREF_URI",
874
- INT2NUM(XML_XINCLUDE_HREF_URI));
875
- rb_define_const(eXMLError, "XINCLUDE_TEXT_FRAGMENT", INT2NUM(
876
- XML_XINCLUDE_TEXT_FRAGMENT));
877
- rb_define_const(eXMLError, "XINCLUDE_TEXT_DOCUMENT", INT2NUM(
878
- XML_XINCLUDE_TEXT_DOCUMENT));
879
- rb_define_const(eXMLError, "XINCLUDE_INVALID_CHAR", INT2NUM(
880
- XML_XINCLUDE_INVALID_CHAR));
881
- rb_define_const(eXMLError, "XINCLUDE_BUILD_FAILED", INT2NUM(
882
- XML_XINCLUDE_BUILD_FAILED));
883
- rb_define_const(eXMLError, "XINCLUDE_UNKNOWN_ENCODING", INT2NUM(
884
- XML_XINCLUDE_UNKNOWN_ENCODING));
885
- rb_define_const(eXMLError, "XINCLUDE_MULTIPLE_ROOT", INT2NUM(
886
- XML_XINCLUDE_MULTIPLE_ROOT));
887
- rb_define_const(eXMLError, "XINCLUDE_XPTR_FAILED", INT2NUM(
888
- XML_XINCLUDE_XPTR_FAILED));
889
- rb_define_const(eXMLError, "XINCLUDE_XPTR_RESULT", INT2NUM(
890
- XML_XINCLUDE_XPTR_RESULT));
891
- rb_define_const(eXMLError, "XINCLUDE_INCLUDE_IN_INCLUDE", INT2NUM(
892
- XML_XINCLUDE_INCLUDE_IN_INCLUDE));
893
- rb_define_const(eXMLError, "XINCLUDE_FALLBACKS_IN_INCLUDE", INT2NUM(
894
- XML_XINCLUDE_FALLBACKS_IN_INCLUDE));
895
- rb_define_const(eXMLError, "XINCLUDE_FALLBACK_NOT_IN_INCLUDE", INT2NUM(
896
- XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE));
897
- rb_define_const(eXMLError, "XINCLUDE_DEPRECATED_NS", INT2NUM(
898
- XML_XINCLUDE_DEPRECATED_NS));
899
- rb_define_const(eXMLError, "XINCLUDE_FRAGMENT_ID", INT2NUM(
900
- XML_XINCLUDE_FRAGMENT_ID));
901
- rb_define_const(eXMLError, "CATALOG_MISSING_ATTR", INT2NUM(
902
- XML_CATALOG_MISSING_ATTR));
903
- rb_define_const(eXMLError, "CATALOG_ENTRY_BROKEN", INT2NUM(
904
- XML_CATALOG_ENTRY_BROKEN));
905
- rb_define_const(eXMLError, "CATALOG_PREFER_VALUE", INT2NUM(
906
- XML_CATALOG_PREFER_VALUE));
907
- rb_define_const(eXMLError, "CATALOG_NOT_CATALOG", INT2NUM(
908
- XML_CATALOG_NOT_CATALOG));
909
- rb_define_const(eXMLError, "CATALOG_RECURSION",
910
- INT2NUM(XML_CATALOG_RECURSION));
911
- rb_define_const(eXMLError, "SCHEMAP_PREFIX_UNDEFINED", INT2NUM(
912
- XML_SCHEMAP_PREFIX_UNDEFINED));
913
- rb_define_const(eXMLError, "SCHEMAP_ATTRFORMDEFAULT_VALUE", INT2NUM(
914
- XML_SCHEMAP_ATTRFORMDEFAULT_VALUE));
915
- rb_define_const(eXMLError, "SCHEMAP_ATTRGRP_NONAME_NOREF", INT2NUM(
916
- XML_SCHEMAP_ATTRGRP_NONAME_NOREF));
917
- rb_define_const(eXMLError, "SCHEMAP_ATTR_NONAME_NOREF", INT2NUM(
918
- XML_SCHEMAP_ATTR_NONAME_NOREF));
919
- rb_define_const(eXMLError, "SCHEMAP_COMPLEXTYPE_NONAME_NOREF", INT2NUM(
920
- XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF));
921
- rb_define_const(eXMLError, "SCHEMAP_ELEMFORMDEFAULT_VALUE", INT2NUM(
922
- XML_SCHEMAP_ELEMFORMDEFAULT_VALUE));
923
- rb_define_const(eXMLError, "SCHEMAP_ELEM_NONAME_NOREF", INT2NUM(
924
- XML_SCHEMAP_ELEM_NONAME_NOREF));
925
- rb_define_const(eXMLError, "SCHEMAP_EXTENSION_NO_BASE", INT2NUM(
926
- XML_SCHEMAP_EXTENSION_NO_BASE));
927
- rb_define_const(eXMLError, "SCHEMAP_FACET_NO_VALUE", INT2NUM(
928
- XML_SCHEMAP_FACET_NO_VALUE));
929
- rb_define_const(eXMLError, "SCHEMAP_FAILED_BUILD_IMPORT", INT2NUM(
930
- XML_SCHEMAP_FAILED_BUILD_IMPORT));
931
- rb_define_const(eXMLError, "SCHEMAP_GROUP_NONAME_NOREF", INT2NUM(
932
- XML_SCHEMAP_GROUP_NONAME_NOREF));
933
- rb_define_const(eXMLError, "SCHEMAP_IMPORT_NAMESPACE_NOT_URI", INT2NUM(
934
- XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI));
935
- rb_define_const(eXMLError, "SCHEMAP_IMPORT_REDEFINE_NSNAME", INT2NUM(
936
- XML_SCHEMAP_IMPORT_REDEFINE_NSNAME));
937
- rb_define_const(eXMLError, "SCHEMAP_IMPORT_SCHEMA_NOT_URI", INT2NUM(
938
- XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI));
939
- rb_define_const(eXMLError, "SCHEMAP_INVALID_BOOLEAN", INT2NUM(
940
- XML_SCHEMAP_INVALID_BOOLEAN));
941
- rb_define_const(eXMLError, "SCHEMAP_INVALID_ENUM", INT2NUM(
942
- XML_SCHEMAP_INVALID_ENUM));
943
- rb_define_const(eXMLError, "SCHEMAP_INVALID_FACET", INT2NUM(
944
- XML_SCHEMAP_INVALID_FACET));
945
- rb_define_const(eXMLError, "SCHEMAP_INVALID_FACET_VALUE", INT2NUM(
946
- XML_SCHEMAP_INVALID_FACET_VALUE));
947
- rb_define_const(eXMLError, "SCHEMAP_INVALID_MAXOCCURS", INT2NUM(
948
- XML_SCHEMAP_INVALID_MAXOCCURS));
949
- rb_define_const(eXMLError, "SCHEMAP_INVALID_MINOCCURS", INT2NUM(
950
- XML_SCHEMAP_INVALID_MINOCCURS));
951
- rb_define_const(eXMLError, "SCHEMAP_INVALID_REF_AND_SUBTYPE", INT2NUM(
952
- XML_SCHEMAP_INVALID_REF_AND_SUBTYPE));
953
- rb_define_const(eXMLError, "SCHEMAP_INVALID_WHITE_SPACE", INT2NUM(
954
- XML_SCHEMAP_INVALID_WHITE_SPACE));
955
- rb_define_const(eXMLError, "SCHEMAP_NOATTR_NOREF", INT2NUM(
956
- XML_SCHEMAP_NOATTR_NOREF));
957
- rb_define_const(eXMLError, "SCHEMAP_NOTATION_NO_NAME", INT2NUM(
958
- XML_SCHEMAP_NOTATION_NO_NAME));
959
- rb_define_const(eXMLError, "SCHEMAP_NOTYPE_NOREF", INT2NUM(
960
- XML_SCHEMAP_NOTYPE_NOREF));
961
- rb_define_const(eXMLError, "SCHEMAP_REF_AND_SUBTYPE", INT2NUM(
962
- XML_SCHEMAP_REF_AND_SUBTYPE));
963
- rb_define_const(eXMLError, "SCHEMAP_RESTRICTION_NONAME_NOREF", INT2NUM(
964
- XML_SCHEMAP_RESTRICTION_NONAME_NOREF));
965
- rb_define_const(eXMLError, "SCHEMAP_SIMPLETYPE_NONAME", INT2NUM(
966
- XML_SCHEMAP_SIMPLETYPE_NONAME));
967
- rb_define_const(eXMLError, "SCHEMAP_TYPE_AND_SUBTYPE", INT2NUM(
968
- XML_SCHEMAP_TYPE_AND_SUBTYPE));
969
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ALL_CHILD", INT2NUM(
970
- XML_SCHEMAP_UNKNOWN_ALL_CHILD));
971
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD", INT2NUM(
972
- XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD));
973
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ATTR_CHILD", INT2NUM(
974
- XML_SCHEMAP_UNKNOWN_ATTR_CHILD));
975
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ATTRGRP_CHILD", INT2NUM(
976
- XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD));
977
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP", INT2NUM(
978
- XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP));
979
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_BASE_TYPE", INT2NUM(
980
- XML_SCHEMAP_UNKNOWN_BASE_TYPE));
981
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_CHOICE_CHILD", INT2NUM(
982
- XML_SCHEMAP_UNKNOWN_CHOICE_CHILD));
983
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD", INT2NUM(
984
- XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD));
985
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD", INT2NUM(
986
- XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD));
987
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ELEM_CHILD", INT2NUM(
988
- XML_SCHEMAP_UNKNOWN_ELEM_CHILD));
989
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_EXTENSION_CHILD", INT2NUM(
990
- XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD));
991
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_FACET_CHILD", INT2NUM(
992
- XML_SCHEMAP_UNKNOWN_FACET_CHILD));
993
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_FACET_TYPE", INT2NUM(
994
- XML_SCHEMAP_UNKNOWN_FACET_TYPE));
995
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_GROUP_CHILD", INT2NUM(
996
- XML_SCHEMAP_UNKNOWN_GROUP_CHILD));
997
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_IMPORT_CHILD", INT2NUM(
998
- XML_SCHEMAP_UNKNOWN_IMPORT_CHILD));
999
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_LIST_CHILD", INT2NUM(
1000
- XML_SCHEMAP_UNKNOWN_LIST_CHILD));
1001
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_NOTATION_CHILD", INT2NUM(
1002
- XML_SCHEMAP_UNKNOWN_NOTATION_CHILD));
1003
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD", INT2NUM(
1004
- XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD));
1005
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_REF", INT2NUM(
1006
- XML_SCHEMAP_UNKNOWN_REF));
1007
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_RESTRICTION_CHILD", INT2NUM(
1008
- XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD));
1009
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_SCHEMAS_CHILD", INT2NUM(
1010
- XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD));
1011
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_SEQUENCE_CHILD", INT2NUM(
1012
- XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD));
1013
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD", INT2NUM(
1014
- XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD));
1015
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD", INT2NUM(
1016
- XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD));
1017
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_TYPE", INT2NUM(
1018
- XML_SCHEMAP_UNKNOWN_TYPE));
1019
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_UNION_CHILD", INT2NUM(
1020
- XML_SCHEMAP_UNKNOWN_UNION_CHILD));
1021
- rb_define_const(eXMLError, "SCHEMAP_ELEM_DEFAULT_FIXED", INT2NUM(
1022
- XML_SCHEMAP_ELEM_DEFAULT_FIXED));
1023
- rb_define_const(eXMLError, "SCHEMAP_REGEXP_INVALID", INT2NUM(
1024
- XML_SCHEMAP_REGEXP_INVALID));
1025
- rb_define_const(eXMLError, "SCHEMAP_FAILED_LOAD", INT2NUM(
1026
- XML_SCHEMAP_FAILED_LOAD));
1027
- rb_define_const(eXMLError, "SCHEMAP_NOTHING_TO_PARSE", INT2NUM(
1028
- XML_SCHEMAP_NOTHING_TO_PARSE));
625
+ rb_define_const(eXMLError, "XINCLUDE_NO_FALLBACK", INT2NUM(XML_XINCLUDE_NO_FALLBACK));
626
+ rb_define_const(eXMLError, "XINCLUDE_HREF_URI", INT2NUM(XML_XINCLUDE_HREF_URI));
627
+ rb_define_const(eXMLError, "XINCLUDE_TEXT_FRAGMENT", INT2NUM(XML_XINCLUDE_TEXT_FRAGMENT));
628
+ rb_define_const(eXMLError, "XINCLUDE_TEXT_DOCUMENT", INT2NUM(XML_XINCLUDE_TEXT_DOCUMENT));
629
+ rb_define_const(eXMLError, "XINCLUDE_INVALID_CHAR", INT2NUM(XML_XINCLUDE_INVALID_CHAR));
630
+ rb_define_const(eXMLError, "XINCLUDE_BUILD_FAILED", INT2NUM(XML_XINCLUDE_BUILD_FAILED));
631
+ rb_define_const(eXMLError, "XINCLUDE_UNKNOWN_ENCODING", INT2NUM(XML_XINCLUDE_UNKNOWN_ENCODING));
632
+ rb_define_const(eXMLError, "XINCLUDE_MULTIPLE_ROOT", INT2NUM(XML_XINCLUDE_MULTIPLE_ROOT));
633
+ rb_define_const(eXMLError, "XINCLUDE_XPTR_FAILED", INT2NUM(XML_XINCLUDE_XPTR_FAILED));
634
+ rb_define_const(eXMLError, "XINCLUDE_XPTR_RESULT", INT2NUM(XML_XINCLUDE_XPTR_RESULT));
635
+ rb_define_const(eXMLError, "XINCLUDE_INCLUDE_IN_INCLUDE", INT2NUM(XML_XINCLUDE_INCLUDE_IN_INCLUDE));
636
+ rb_define_const(eXMLError, "XINCLUDE_FALLBACKS_IN_INCLUDE", INT2NUM(XML_XINCLUDE_FALLBACKS_IN_INCLUDE));
637
+ rb_define_const(eXMLError, "XINCLUDE_FALLBACK_NOT_IN_INCLUDE", INT2NUM(XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE));
638
+ rb_define_const(eXMLError, "XINCLUDE_DEPRECATED_NS", INT2NUM(XML_XINCLUDE_DEPRECATED_NS));
639
+ rb_define_const(eXMLError, "XINCLUDE_FRAGMENT_ID", INT2NUM(XML_XINCLUDE_FRAGMENT_ID));
640
+ rb_define_const(eXMLError, "CATALOG_MISSING_ATTR", INT2NUM(XML_CATALOG_MISSING_ATTR));
641
+ rb_define_const(eXMLError, "CATALOG_ENTRY_BROKEN", INT2NUM(XML_CATALOG_ENTRY_BROKEN));
642
+ rb_define_const(eXMLError, "CATALOG_PREFER_VALUE", INT2NUM(XML_CATALOG_PREFER_VALUE));
643
+ rb_define_const(eXMLError, "CATALOG_NOT_CATALOG", INT2NUM(XML_CATALOG_NOT_CATALOG));
644
+ rb_define_const(eXMLError, "CATALOG_RECURSION", INT2NUM(XML_CATALOG_RECURSION));
645
+ rb_define_const(eXMLError, "SCHEMAP_PREFIX_UNDEFINED", INT2NUM(XML_SCHEMAP_PREFIX_UNDEFINED));
646
+ rb_define_const(eXMLError, "SCHEMAP_ATTRFORMDEFAULT_VALUE", INT2NUM(XML_SCHEMAP_ATTRFORMDEFAULT_VALUE));
647
+ rb_define_const(eXMLError, "SCHEMAP_ATTRGRP_NONAME_NOREF", INT2NUM(XML_SCHEMAP_ATTRGRP_NONAME_NOREF));
648
+ rb_define_const(eXMLError, "SCHEMAP_ATTR_NONAME_NOREF", INT2NUM(XML_SCHEMAP_ATTR_NONAME_NOREF));
649
+ rb_define_const(eXMLError, "SCHEMAP_COMPLEXTYPE_NONAME_NOREF", INT2NUM(XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF));
650
+ rb_define_const(eXMLError, "SCHEMAP_ELEMFORMDEFAULT_VALUE", INT2NUM(XML_SCHEMAP_ELEMFORMDEFAULT_VALUE));
651
+ rb_define_const(eXMLError, "SCHEMAP_ELEM_NONAME_NOREF", INT2NUM(XML_SCHEMAP_ELEM_NONAME_NOREF));
652
+ rb_define_const(eXMLError, "SCHEMAP_EXTENSION_NO_BASE", INT2NUM(XML_SCHEMAP_EXTENSION_NO_BASE));
653
+ rb_define_const(eXMLError, "SCHEMAP_FACET_NO_VALUE", INT2NUM(XML_SCHEMAP_FACET_NO_VALUE));
654
+ rb_define_const(eXMLError, "SCHEMAP_FAILED_BUILD_IMPORT", INT2NUM(XML_SCHEMAP_FAILED_BUILD_IMPORT));
655
+ rb_define_const(eXMLError, "SCHEMAP_GROUP_NONAME_NOREF", INT2NUM(XML_SCHEMAP_GROUP_NONAME_NOREF));
656
+ rb_define_const(eXMLError, "SCHEMAP_IMPORT_NAMESPACE_NOT_URI", INT2NUM(XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI));
657
+ rb_define_const(eXMLError, "SCHEMAP_IMPORT_REDEFINE_NSNAME", INT2NUM(XML_SCHEMAP_IMPORT_REDEFINE_NSNAME));
658
+ rb_define_const(eXMLError, "SCHEMAP_IMPORT_SCHEMA_NOT_URI", INT2NUM(XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI));
659
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_BOOLEAN", INT2NUM(XML_SCHEMAP_INVALID_BOOLEAN));
660
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_ENUM", INT2NUM(XML_SCHEMAP_INVALID_ENUM));
661
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_FACET", INT2NUM(XML_SCHEMAP_INVALID_FACET));
662
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_FACET_VALUE", INT2NUM(XML_SCHEMAP_INVALID_FACET_VALUE));
663
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_MAXOCCURS", INT2NUM(XML_SCHEMAP_INVALID_MAXOCCURS));
664
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_MINOCCURS", INT2NUM(XML_SCHEMAP_INVALID_MINOCCURS));
665
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_REF_AND_SUBTYPE", INT2NUM(XML_SCHEMAP_INVALID_REF_AND_SUBTYPE));
666
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_WHITE_SPACE", INT2NUM(XML_SCHEMAP_INVALID_WHITE_SPACE));
667
+ rb_define_const(eXMLError, "SCHEMAP_NOATTR_NOREF", INT2NUM(XML_SCHEMAP_NOATTR_NOREF));
668
+ rb_define_const(eXMLError, "SCHEMAP_NOTATION_NO_NAME", INT2NUM(XML_SCHEMAP_NOTATION_NO_NAME));
669
+ rb_define_const(eXMLError, "SCHEMAP_NOTYPE_NOREF", INT2NUM(XML_SCHEMAP_NOTYPE_NOREF));
670
+ rb_define_const(eXMLError, "SCHEMAP_REF_AND_SUBTYPE", INT2NUM(XML_SCHEMAP_REF_AND_SUBTYPE));
671
+ rb_define_const(eXMLError, "SCHEMAP_RESTRICTION_NONAME_NOREF", INT2NUM(XML_SCHEMAP_RESTRICTION_NONAME_NOREF));
672
+ rb_define_const(eXMLError, "SCHEMAP_SIMPLETYPE_NONAME", INT2NUM(XML_SCHEMAP_SIMPLETYPE_NONAME));
673
+ rb_define_const(eXMLError, "SCHEMAP_TYPE_AND_SUBTYPE", INT2NUM(XML_SCHEMAP_TYPE_AND_SUBTYPE));
674
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ALL_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_ALL_CHILD));
675
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD));
676
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ATTR_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_ATTR_CHILD));
677
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ATTRGRP_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD));
678
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP", INT2NUM(XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP));
679
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_BASE_TYPE", INT2NUM(XML_SCHEMAP_UNKNOWN_BASE_TYPE));
680
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_CHOICE_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_CHOICE_CHILD));
681
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD));
682
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD));
683
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_ELEM_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_ELEM_CHILD));
684
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_EXTENSION_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD));
685
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_FACET_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_FACET_CHILD));
686
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_FACET_TYPE", INT2NUM(XML_SCHEMAP_UNKNOWN_FACET_TYPE));
687
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_GROUP_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_GROUP_CHILD));
688
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_IMPORT_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_IMPORT_CHILD));
689
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_LIST_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_LIST_CHILD));
690
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_NOTATION_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_NOTATION_CHILD));
691
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD));
692
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_REF", INT2NUM(XML_SCHEMAP_UNKNOWN_REF));
693
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_RESTRICTION_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD));
694
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_SCHEMAS_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD));
695
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_SEQUENCE_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD));
696
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD));
697
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD));
698
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_TYPE", INT2NUM(XML_SCHEMAP_UNKNOWN_TYPE));
699
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_UNION_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_UNION_CHILD));
700
+ rb_define_const(eXMLError, "SCHEMAP_ELEM_DEFAULT_FIXED", INT2NUM(XML_SCHEMAP_ELEM_DEFAULT_FIXED));
701
+ rb_define_const(eXMLError, "SCHEMAP_REGEXP_INVALID", INT2NUM(XML_SCHEMAP_REGEXP_INVALID));
702
+ rb_define_const(eXMLError, "SCHEMAP_FAILED_LOAD", INT2NUM(XML_SCHEMAP_FAILED_LOAD));
703
+ rb_define_const(eXMLError, "SCHEMAP_NOTHING_TO_PARSE", INT2NUM(XML_SCHEMAP_NOTHING_TO_PARSE));
1029
704
  rb_define_const(eXMLError, "SCHEMAP_NOROOT", INT2NUM(XML_SCHEMAP_NOROOT));
1030
- rb_define_const(eXMLError, "SCHEMAP_REDEFINED_GROUP", INT2NUM(
1031
- XML_SCHEMAP_REDEFINED_GROUP));
1032
- rb_define_const(eXMLError, "SCHEMAP_REDEFINED_TYPE", INT2NUM(
1033
- XML_SCHEMAP_REDEFINED_TYPE));
1034
- rb_define_const(eXMLError, "SCHEMAP_REDEFINED_ELEMENT", INT2NUM(
1035
- XML_SCHEMAP_REDEFINED_ELEMENT));
1036
- rb_define_const(eXMLError, "SCHEMAP_REDEFINED_ATTRGROUP", INT2NUM(
1037
- XML_SCHEMAP_REDEFINED_ATTRGROUP));
1038
- rb_define_const(eXMLError, "SCHEMAP_REDEFINED_ATTR", INT2NUM(
1039
- XML_SCHEMAP_REDEFINED_ATTR));
1040
- rb_define_const(eXMLError, "SCHEMAP_REDEFINED_NOTATION", INT2NUM(
1041
- XML_SCHEMAP_REDEFINED_NOTATION));
1042
- rb_define_const(eXMLError, "SCHEMAP_FAILED_PARSE", INT2NUM(
1043
- XML_SCHEMAP_FAILED_PARSE));
1044
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_PREFIX", INT2NUM(
1045
- XML_SCHEMAP_UNKNOWN_PREFIX));
1046
- rb_define_const(eXMLError, "SCHEMAP_DEF_AND_PREFIX", INT2NUM(
1047
- XML_SCHEMAP_DEF_AND_PREFIX));
1048
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_INCLUDE_CHILD", INT2NUM(
1049
- XML_SCHEMAP_UNKNOWN_INCLUDE_CHILD));
1050
- rb_define_const(eXMLError, "SCHEMAP_INCLUDE_SCHEMA_NOT_URI", INT2NUM(
1051
- XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URI));
1052
- rb_define_const(eXMLError, "SCHEMAP_INCLUDE_SCHEMA_NO_URI", INT2NUM(
1053
- XML_SCHEMAP_INCLUDE_SCHEMA_NO_URI));
1054
- rb_define_const(eXMLError, "SCHEMAP_NOT_SCHEMA", INT2NUM(
1055
- XML_SCHEMAP_NOT_SCHEMA));
1056
- rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_MEMBER_TYPE", INT2NUM(
1057
- XML_SCHEMAP_UNKNOWN_MEMBER_TYPE));
1058
- rb_define_const(eXMLError, "SCHEMAP_INVALID_ATTR_USE", INT2NUM(
1059
- XML_SCHEMAP_INVALID_ATTR_USE));
1060
- rb_define_const(eXMLError, "SCHEMAP_RECURSIVE",
1061
- INT2NUM(XML_SCHEMAP_RECURSIVE));
1062
- rb_define_const(eXMLError, "SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE", INT2NUM(
1063
- XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE));
1064
- rb_define_const(eXMLError, "SCHEMAP_INVALID_ATTR_COMBINATION", INT2NUM(
1065
- XML_SCHEMAP_INVALID_ATTR_COMBINATION));
1066
- rb_define_const(eXMLError, "SCHEMAP_INVALID_ATTR_INLINE_COMBINATION",
1067
- INT2NUM(XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATION));
1068
- rb_define_const(eXMLError, "SCHEMAP_MISSING_SIMPLETYPE_CHILD", INT2NUM(
1069
- XML_SCHEMAP_MISSING_SIMPLETYPE_CHILD));
1070
- rb_define_const(eXMLError, "SCHEMAP_INVALID_ATTR_NAME", INT2NUM(
1071
- XML_SCHEMAP_INVALID_ATTR_NAME));
1072
- rb_define_const(eXMLError, "SCHEMAP_REF_AND_CONTENT", INT2NUM(
1073
- XML_SCHEMAP_REF_AND_CONTENT));
1074
- rb_define_const(eXMLError, "SCHEMAP_CT_PROPS_CORRECT_1", INT2NUM(
1075
- XML_SCHEMAP_CT_PROPS_CORRECT_1));
1076
- rb_define_const(eXMLError, "SCHEMAP_CT_PROPS_CORRECT_2", INT2NUM(
1077
- XML_SCHEMAP_CT_PROPS_CORRECT_2));
1078
- rb_define_const(eXMLError, "SCHEMAP_CT_PROPS_CORRECT_3", INT2NUM(
1079
- XML_SCHEMAP_CT_PROPS_CORRECT_3));
1080
- rb_define_const(eXMLError, "SCHEMAP_CT_PROPS_CORRECT_4", INT2NUM(
1081
- XML_SCHEMAP_CT_PROPS_CORRECT_4));
1082
- rb_define_const(eXMLError, "SCHEMAP_CT_PROPS_CORRECT_5", INT2NUM(
1083
- XML_SCHEMAP_CT_PROPS_CORRECT_5));
1084
- rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_1", INT2NUM(
1085
- XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1));
1086
- rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1",
1087
- INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1));
1088
- rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2",
1089
- INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2));
1090
- rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_2_2", INT2NUM(
1091
- XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2));
1092
- rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_3", INT2NUM(
1093
- XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3));
1094
- rb_define_const(eXMLError, "SCHEMAP_WILDCARD_INVALID_NS_MEMBER", INT2NUM(
1095
- XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBER));
1096
- rb_define_const(eXMLError, "SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE", INT2NUM(
1097
- XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE));
1098
- rb_define_const(eXMLError, "SCHEMAP_UNION_NOT_EXPRESSIBLE", INT2NUM(
1099
- XML_SCHEMAP_UNION_NOT_EXPRESSIBLE));
1100
- rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_3_1", INT2NUM(
1101
- XML_SCHEMAP_SRC_IMPORT_3_1));
1102
- rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_3_2", INT2NUM(
1103
- XML_SCHEMAP_SRC_IMPORT_3_2));
1104
- rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_4_1", INT2NUM(
1105
- XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1));
1106
- rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_4_2", INT2NUM(
1107
- XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2));
1108
- rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_4_3", INT2NUM(
1109
- XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3));
1110
- rb_define_const(eXMLError, "SCHEMAP_COS_CT_EXTENDS_1_3", INT2NUM(
1111
- XML_SCHEMAP_COS_CT_EXTENDS_1_3));
705
+ rb_define_const(eXMLError, "SCHEMAP_REDEFINED_GROUP", INT2NUM(XML_SCHEMAP_REDEFINED_GROUP));
706
+ rb_define_const(eXMLError, "SCHEMAP_REDEFINED_TYPE", INT2NUM(XML_SCHEMAP_REDEFINED_TYPE));
707
+ rb_define_const(eXMLError, "SCHEMAP_REDEFINED_ELEMENT", INT2NUM(XML_SCHEMAP_REDEFINED_ELEMENT));
708
+ rb_define_const(eXMLError, "SCHEMAP_REDEFINED_ATTRGROUP", INT2NUM(XML_SCHEMAP_REDEFINED_ATTRGROUP));
709
+ rb_define_const(eXMLError, "SCHEMAP_REDEFINED_ATTR", INT2NUM(XML_SCHEMAP_REDEFINED_ATTR));
710
+ rb_define_const(eXMLError, "SCHEMAP_REDEFINED_NOTATION", INT2NUM(XML_SCHEMAP_REDEFINED_NOTATION));
711
+ rb_define_const(eXMLError, "SCHEMAP_FAILED_PARSE", INT2NUM(XML_SCHEMAP_FAILED_PARSE));
712
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_PREFIX", INT2NUM(XML_SCHEMAP_UNKNOWN_PREFIX));
713
+ rb_define_const(eXMLError, "SCHEMAP_DEF_AND_PREFIX", INT2NUM(XML_SCHEMAP_DEF_AND_PREFIX));
714
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_INCLUDE_CHILD", INT2NUM(XML_SCHEMAP_UNKNOWN_INCLUDE_CHILD));
715
+ rb_define_const(eXMLError, "SCHEMAP_INCLUDE_SCHEMA_NOT_URI", INT2NUM(XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URI));
716
+ rb_define_const(eXMLError, "SCHEMAP_INCLUDE_SCHEMA_NO_URI", INT2NUM(XML_SCHEMAP_INCLUDE_SCHEMA_NO_URI));
717
+ rb_define_const(eXMLError, "SCHEMAP_NOT_SCHEMA", INT2NUM(XML_SCHEMAP_NOT_SCHEMA));
718
+ rb_define_const(eXMLError, "SCHEMAP_UNKNOWN_MEMBER_TYPE", INT2NUM(XML_SCHEMAP_UNKNOWN_MEMBER_TYPE));
719
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_ATTR_USE", INT2NUM(XML_SCHEMAP_INVALID_ATTR_USE));
720
+ rb_define_const(eXMLError, "SCHEMAP_RECURSIVE", INT2NUM(XML_SCHEMAP_RECURSIVE));
721
+ rb_define_const(eXMLError, "SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE", INT2NUM(XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE));
722
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_ATTR_COMBINATION", INT2NUM(XML_SCHEMAP_INVALID_ATTR_COMBINATION));
723
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_ATTR_INLINE_COMBINATION", INT2NUM(XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATION));
724
+ rb_define_const(eXMLError, "SCHEMAP_MISSING_SIMPLETYPE_CHILD", INT2NUM(XML_SCHEMAP_MISSING_SIMPLETYPE_CHILD));
725
+ rb_define_const(eXMLError, "SCHEMAP_INVALID_ATTR_NAME", INT2NUM(XML_SCHEMAP_INVALID_ATTR_NAME));
726
+ rb_define_const(eXMLError, "SCHEMAP_REF_AND_CONTENT", INT2NUM(XML_SCHEMAP_REF_AND_CONTENT));
727
+ rb_define_const(eXMLError, "SCHEMAP_CT_PROPS_CORRECT_1", INT2NUM(XML_SCHEMAP_CT_PROPS_CORRECT_1));
728
+ rb_define_const(eXMLError, "SCHEMAP_CT_PROPS_CORRECT_2", INT2NUM(XML_SCHEMAP_CT_PROPS_CORRECT_2));
729
+ rb_define_const(eXMLError, "SCHEMAP_CT_PROPS_CORRECT_3", INT2NUM(XML_SCHEMAP_CT_PROPS_CORRECT_3));
730
+ rb_define_const(eXMLError, "SCHEMAP_CT_PROPS_CORRECT_4", INT2NUM(XML_SCHEMAP_CT_PROPS_CORRECT_4));
731
+ rb_define_const(eXMLError, "SCHEMAP_CT_PROPS_CORRECT_5", INT2NUM(XML_SCHEMAP_CT_PROPS_CORRECT_5));
732
+ rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_1", INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1));
733
+ rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1", INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1));
734
+ rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2", INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2));
735
+ rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_2_2", INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2));
736
+ rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_3", INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3));
737
+ rb_define_const(eXMLError, "SCHEMAP_WILDCARD_INVALID_NS_MEMBER", INT2NUM(XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBER));
738
+ rb_define_const(eXMLError, "SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE", INT2NUM(XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE));
739
+ rb_define_const(eXMLError, "SCHEMAP_UNION_NOT_EXPRESSIBLE", INT2NUM(XML_SCHEMAP_UNION_NOT_EXPRESSIBLE));
740
+ rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_3_1", INT2NUM(XML_SCHEMAP_SRC_IMPORT_3_1));
741
+ rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_3_2", INT2NUM(XML_SCHEMAP_SRC_IMPORT_3_2));
742
+ rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_4_1", INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1));
743
+ rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_4_2", INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2));
744
+ rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_4_3", INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3));
745
+ rb_define_const(eXMLError, "SCHEMAP_COS_CT_EXTENDS_1_3", INT2NUM(XML_SCHEMAP_COS_CT_EXTENDS_1_3));
1112
746
  rb_define_const(eXMLError, "SCHEMAV_NOROOT", INT2NUM(XML_SCHEMAV_NOROOT));
1113
- rb_define_const(eXMLError, "SCHEMAV_UNDECLAREDELEM", INT2NUM(
1114
- XML_SCHEMAV_UNDECLAREDELEM));
1115
- rb_define_const(eXMLError, "SCHEMAV_NOTTOPLEVEL", INT2NUM(
1116
- XML_SCHEMAV_NOTTOPLEVEL));
747
+ rb_define_const(eXMLError, "SCHEMAV_UNDECLAREDELEM", INT2NUM(XML_SCHEMAV_UNDECLAREDELEM));
748
+ rb_define_const(eXMLError, "SCHEMAV_NOTTOPLEVEL", INT2NUM(XML_SCHEMAV_NOTTOPLEVEL));
1117
749
  rb_define_const(eXMLError, "SCHEMAV_MISSING", INT2NUM(XML_SCHEMAV_MISSING));
1118
- rb_define_const(eXMLError, "SCHEMAV_WRONGELEM",
1119
- INT2NUM(XML_SCHEMAV_WRONGELEM));
750
+ rb_define_const(eXMLError, "SCHEMAV_WRONGELEM", INT2NUM(XML_SCHEMAV_WRONGELEM));
1120
751
  rb_define_const(eXMLError, "SCHEMAV_NOTYPE", INT2NUM(XML_SCHEMAV_NOTYPE));
1121
- rb_define_const(eXMLError, "SCHEMAV_NOROLLBACK", INT2NUM(
1122
- XML_SCHEMAV_NOROLLBACK));
1123
- rb_define_const(eXMLError, "SCHEMAV_ISABSTRACT", INT2NUM(
1124
- XML_SCHEMAV_ISABSTRACT));
752
+ rb_define_const(eXMLError, "SCHEMAV_NOROLLBACK", INT2NUM(XML_SCHEMAV_NOROLLBACK));
753
+ rb_define_const(eXMLError, "SCHEMAV_ISABSTRACT", INT2NUM(XML_SCHEMAV_ISABSTRACT));
1125
754
  rb_define_const(eXMLError, "SCHEMAV_NOTEMPTY", INT2NUM(XML_SCHEMAV_NOTEMPTY));
1126
755
  rb_define_const(eXMLError, "SCHEMAV_ELEMCONT", INT2NUM(XML_SCHEMAV_ELEMCONT));
1127
- rb_define_const(eXMLError, "SCHEMAV_HAVEDEFAULT", INT2NUM(
1128
- XML_SCHEMAV_HAVEDEFAULT));
1129
- rb_define_const(eXMLError, "SCHEMAV_NOTNILLABLE", INT2NUM(
1130
- XML_SCHEMAV_NOTNILLABLE));
1131
- rb_define_const(eXMLError, "SCHEMAV_EXTRACONTENT", INT2NUM(
1132
- XML_SCHEMAV_EXTRACONTENT));
1133
- rb_define_const(eXMLError, "SCHEMAV_INVALIDATTR", INT2NUM(
1134
- XML_SCHEMAV_INVALIDATTR));
1135
- rb_define_const(eXMLError, "SCHEMAV_INVALIDELEM", INT2NUM(
1136
- XML_SCHEMAV_INVALIDELEM));
1137
- rb_define_const(eXMLError, "SCHEMAV_NOTDETERMINIST", INT2NUM(
1138
- XML_SCHEMAV_NOTDETERMINIST));
1139
- rb_define_const(eXMLError, "SCHEMAV_CONSTRUCT",
1140
- INT2NUM(XML_SCHEMAV_CONSTRUCT));
756
+ rb_define_const(eXMLError, "SCHEMAV_HAVEDEFAULT", INT2NUM(XML_SCHEMAV_HAVEDEFAULT));
757
+ rb_define_const(eXMLError, "SCHEMAV_NOTNILLABLE", INT2NUM(XML_SCHEMAV_NOTNILLABLE));
758
+ rb_define_const(eXMLError, "SCHEMAV_EXTRACONTENT", INT2NUM(XML_SCHEMAV_EXTRACONTENT));
759
+ rb_define_const(eXMLError, "SCHEMAV_INVALIDATTR", INT2NUM(XML_SCHEMAV_INVALIDATTR));
760
+ rb_define_const(eXMLError, "SCHEMAV_INVALIDELEM", INT2NUM(XML_SCHEMAV_INVALIDELEM));
761
+ rb_define_const(eXMLError, "SCHEMAV_NOTDETERMINIST", INT2NUM(XML_SCHEMAV_NOTDETERMINIST));
762
+ rb_define_const(eXMLError, "SCHEMAV_CONSTRUCT", INT2NUM(XML_SCHEMAV_CONSTRUCT));
1141
763
  rb_define_const(eXMLError, "SCHEMAV_INTERNAL", INT2NUM(XML_SCHEMAV_INTERNAL));
1142
- rb_define_const(eXMLError, "SCHEMAV_NOTSIMPLE",
1143
- INT2NUM(XML_SCHEMAV_NOTSIMPLE));
1144
- rb_define_const(eXMLError, "SCHEMAV_ATTRUNKNOWN", INT2NUM(
1145
- XML_SCHEMAV_ATTRUNKNOWN));
1146
- rb_define_const(eXMLError, "SCHEMAV_ATTRINVALID", INT2NUM(
1147
- XML_SCHEMAV_ATTRINVALID));
764
+ rb_define_const(eXMLError, "SCHEMAV_NOTSIMPLE", INT2NUM(XML_SCHEMAV_NOTSIMPLE));
765
+ rb_define_const(eXMLError, "SCHEMAV_ATTRUNKNOWN", INT2NUM(XML_SCHEMAV_ATTRUNKNOWN));
766
+ rb_define_const(eXMLError, "SCHEMAV_ATTRINVALID", INT2NUM(XML_SCHEMAV_ATTRINVALID));
1148
767
  rb_define_const(eXMLError, "SCHEMAV_VALUE", INT2NUM(XML_SCHEMAV_VALUE));
1149
768
  rb_define_const(eXMLError, "SCHEMAV_FACET", INT2NUM(XML_SCHEMAV_FACET));
1150
- rb_define_const(eXMLError, "SCHEMAV_CVC_DATATYPE_VALID_1_2_1", INT2NUM(
1151
- XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1));
1152
- rb_define_const(eXMLError, "SCHEMAV_CVC_DATATYPE_VALID_1_2_2", INT2NUM(
1153
- XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2));
1154
- rb_define_const(eXMLError, "SCHEMAV_CVC_DATATYPE_VALID_1_2_3", INT2NUM(
1155
- XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3));
1156
- rb_define_const(eXMLError, "SCHEMAV_CVC_TYPE_3_1_1", INT2NUM(
1157
- XML_SCHEMAV_CVC_TYPE_3_1_1));
1158
- rb_define_const(eXMLError, "SCHEMAV_CVC_TYPE_3_1_2", INT2NUM(
1159
- XML_SCHEMAV_CVC_TYPE_3_1_2));
1160
- rb_define_const(eXMLError, "SCHEMAV_CVC_FACET_VALID", INT2NUM(
1161
- XML_SCHEMAV_CVC_FACET_VALID));
1162
- rb_define_const(eXMLError, "SCHEMAV_CVC_LENGTH_VALID", INT2NUM(
1163
- XML_SCHEMAV_CVC_LENGTH_VALID));
1164
- rb_define_const(eXMLError, "SCHEMAV_CVC_MINLENGTH_VALID", INT2NUM(
1165
- XML_SCHEMAV_CVC_MINLENGTH_VALID));
1166
- rb_define_const(eXMLError, "SCHEMAV_CVC_MAXLENGTH_VALID", INT2NUM(
1167
- XML_SCHEMAV_CVC_MAXLENGTH_VALID));
1168
- rb_define_const(eXMLError, "SCHEMAV_CVC_MININCLUSIVE_VALID", INT2NUM(
1169
- XML_SCHEMAV_CVC_MININCLUSIVE_VALID));
1170
- rb_define_const(eXMLError, "SCHEMAV_CVC_MAXINCLUSIVE_VALID", INT2NUM(
1171
- XML_SCHEMAV_CVC_MAXINCLUSIVE_VALID));
1172
- rb_define_const(eXMLError, "SCHEMAV_CVC_MINEXCLUSIVE_VALID", INT2NUM(
1173
- XML_SCHEMAV_CVC_MINEXCLUSIVE_VALID));
1174
- rb_define_const(eXMLError, "SCHEMAV_CVC_MAXEXCLUSIVE_VALID", INT2NUM(
1175
- XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALID));
1176
- rb_define_const(eXMLError, "SCHEMAV_CVC_TOTALDIGITS_VALID", INT2NUM(
1177
- XML_SCHEMAV_CVC_TOTALDIGITS_VALID));
1178
- rb_define_const(eXMLError, "SCHEMAV_CVC_FRACTIONDIGITS_VALID", INT2NUM(
1179
- XML_SCHEMAV_CVC_FRACTIONDIGITS_VALID));
1180
- rb_define_const(eXMLError, "SCHEMAV_CVC_PATTERN_VALID", INT2NUM(
1181
- XML_SCHEMAV_CVC_PATTERN_VALID));
1182
- rb_define_const(eXMLError, "SCHEMAV_CVC_ENUMERATION_VALID", INT2NUM(
1183
- XML_SCHEMAV_CVC_ENUMERATION_VALID));
1184
- rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_2_1", INT2NUM(
1185
- XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1));
1186
- rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_2_2", INT2NUM(
1187
- XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2));
1188
- rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_2_3", INT2NUM(
1189
- XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3));
1190
- rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_2_4", INT2NUM(
1191
- XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4));
1192
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_1",
1193
- INT2NUM(XML_SCHEMAV_CVC_ELT_1));
1194
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_2",
1195
- INT2NUM(XML_SCHEMAV_CVC_ELT_2));
1196
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_3_1", INT2NUM(
1197
- XML_SCHEMAV_CVC_ELT_3_1));
1198
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_3_2_1", INT2NUM(
1199
- XML_SCHEMAV_CVC_ELT_3_2_1));
1200
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_3_2_2", INT2NUM(
1201
- XML_SCHEMAV_CVC_ELT_3_2_2));
1202
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_4_1", INT2NUM(
1203
- XML_SCHEMAV_CVC_ELT_4_1));
1204
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_4_2", INT2NUM(
1205
- XML_SCHEMAV_CVC_ELT_4_2));
1206
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_4_3", INT2NUM(
1207
- XML_SCHEMAV_CVC_ELT_4_3));
1208
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_1_1", INT2NUM(
1209
- XML_SCHEMAV_CVC_ELT_5_1_1));
1210
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_1_2", INT2NUM(
1211
- XML_SCHEMAV_CVC_ELT_5_1_2));
1212
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_2_1", INT2NUM(
1213
- XML_SCHEMAV_CVC_ELT_5_2_1));
1214
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_2_2_1", INT2NUM(
1215
- XML_SCHEMAV_CVC_ELT_5_2_2_1));
1216
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_2_2_2_1", INT2NUM(
1217
- XML_SCHEMAV_CVC_ELT_5_2_2_2_1));
1218
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_2_2_2_2", INT2NUM(
1219
- XML_SCHEMAV_CVC_ELT_5_2_2_2_2));
1220
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_6",
1221
- INT2NUM(XML_SCHEMAV_CVC_ELT_6));
1222
- rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_7",
1223
- INT2NUM(XML_SCHEMAV_CVC_ELT_7));
1224
- rb_define_const(eXMLError, "SCHEMAV_CVC_ATTRIBUTE_1", INT2NUM(
1225
- XML_SCHEMAV_CVC_ATTRIBUTE_1));
1226
- rb_define_const(eXMLError, "SCHEMAV_CVC_ATTRIBUTE_2", INT2NUM(
1227
- XML_SCHEMAV_CVC_ATTRIBUTE_2));
1228
- rb_define_const(eXMLError, "SCHEMAV_CVC_ATTRIBUTE_3", INT2NUM(
1229
- XML_SCHEMAV_CVC_ATTRIBUTE_3));
1230
- rb_define_const(eXMLError, "SCHEMAV_CVC_ATTRIBUTE_4", INT2NUM(
1231
- XML_SCHEMAV_CVC_ATTRIBUTE_4));
1232
- rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_3_1", INT2NUM(
1233
- XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1));
1234
- rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_3_2_1", INT2NUM(
1235
- XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1));
1236
- rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_3_2_2", INT2NUM(
1237
- XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2));
1238
- rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_4", INT2NUM(
1239
- XML_SCHEMAV_CVC_COMPLEX_TYPE_4));
1240
- rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_5_1", INT2NUM(
1241
- XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1));
1242
- rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_5_2", INT2NUM(
1243
- XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2));
1244
- rb_define_const(eXMLError, "SCHEMAV_ELEMENT_CONTENT", INT2NUM(
1245
- XML_SCHEMAV_ELEMENT_CONTENT));
1246
- rb_define_const(eXMLError, "SCHEMAV_DOCUMENT_ELEMENT_MISSING", INT2NUM(
1247
- XML_SCHEMAV_DOCUMENT_ELEMENT_MISSING));
1248
- rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_1", INT2NUM(
1249
- XML_SCHEMAV_CVC_COMPLEX_TYPE_1));
769
+ rb_define_const(eXMLError, "SCHEMAV_CVC_DATATYPE_VALID_1_2_1", INT2NUM(XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1));
770
+ rb_define_const(eXMLError, "SCHEMAV_CVC_DATATYPE_VALID_1_2_2", INT2NUM(XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2));
771
+ rb_define_const(eXMLError, "SCHEMAV_CVC_DATATYPE_VALID_1_2_3", INT2NUM(XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3));
772
+ rb_define_const(eXMLError, "SCHEMAV_CVC_TYPE_3_1_1", INT2NUM(XML_SCHEMAV_CVC_TYPE_3_1_1));
773
+ rb_define_const(eXMLError, "SCHEMAV_CVC_TYPE_3_1_2", INT2NUM(XML_SCHEMAV_CVC_TYPE_3_1_2));
774
+ rb_define_const(eXMLError, "SCHEMAV_CVC_FACET_VALID", INT2NUM(XML_SCHEMAV_CVC_FACET_VALID));
775
+ rb_define_const(eXMLError, "SCHEMAV_CVC_LENGTH_VALID", INT2NUM(XML_SCHEMAV_CVC_LENGTH_VALID));
776
+ rb_define_const(eXMLError, "SCHEMAV_CVC_MINLENGTH_VALID", INT2NUM(XML_SCHEMAV_CVC_MINLENGTH_VALID));
777
+ rb_define_const(eXMLError, "SCHEMAV_CVC_MAXLENGTH_VALID", INT2NUM(XML_SCHEMAV_CVC_MAXLENGTH_VALID));
778
+ rb_define_const(eXMLError, "SCHEMAV_CVC_MININCLUSIVE_VALID", INT2NUM(XML_SCHEMAV_CVC_MININCLUSIVE_VALID));
779
+ rb_define_const(eXMLError, "SCHEMAV_CVC_MAXINCLUSIVE_VALID", INT2NUM(XML_SCHEMAV_CVC_MAXINCLUSIVE_VALID));
780
+ rb_define_const(eXMLError, "SCHEMAV_CVC_MINEXCLUSIVE_VALID", INT2NUM(XML_SCHEMAV_CVC_MINEXCLUSIVE_VALID));
781
+ rb_define_const(eXMLError, "SCHEMAV_CVC_MAXEXCLUSIVE_VALID", INT2NUM(XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALID));
782
+ rb_define_const(eXMLError, "SCHEMAV_CVC_TOTALDIGITS_VALID", INT2NUM(XML_SCHEMAV_CVC_TOTALDIGITS_VALID));
783
+ rb_define_const(eXMLError, "SCHEMAV_CVC_FRACTIONDIGITS_VALID", INT2NUM(XML_SCHEMAV_CVC_FRACTIONDIGITS_VALID));
784
+ rb_define_const(eXMLError, "SCHEMAV_CVC_PATTERN_VALID", INT2NUM(XML_SCHEMAV_CVC_PATTERN_VALID));
785
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ENUMERATION_VALID", INT2NUM(XML_SCHEMAV_CVC_ENUMERATION_VALID));
786
+ rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_2_1", INT2NUM(XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1));
787
+ rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_2_2", INT2NUM(XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2));
788
+ rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_2_3", INT2NUM(XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3));
789
+ rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_2_4", INT2NUM(XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4));
790
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_1", INT2NUM(XML_SCHEMAV_CVC_ELT_1));
791
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_2", INT2NUM(XML_SCHEMAV_CVC_ELT_2));
792
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_3_1", INT2NUM(XML_SCHEMAV_CVC_ELT_3_1));
793
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_3_2_1", INT2NUM(XML_SCHEMAV_CVC_ELT_3_2_1));
794
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_3_2_2", INT2NUM(XML_SCHEMAV_CVC_ELT_3_2_2));
795
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_4_1", INT2NUM(XML_SCHEMAV_CVC_ELT_4_1));
796
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_4_2", INT2NUM(XML_SCHEMAV_CVC_ELT_4_2));
797
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_4_3", INT2NUM(XML_SCHEMAV_CVC_ELT_4_3));
798
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_1_1", INT2NUM(XML_SCHEMAV_CVC_ELT_5_1_1));
799
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_1_2", INT2NUM(XML_SCHEMAV_CVC_ELT_5_1_2));
800
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_2_1", INT2NUM(XML_SCHEMAV_CVC_ELT_5_2_1));
801
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_2_2_1", INT2NUM(XML_SCHEMAV_CVC_ELT_5_2_2_1));
802
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_2_2_2_1", INT2NUM(XML_SCHEMAV_CVC_ELT_5_2_2_2_1));
803
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_5_2_2_2_2", INT2NUM(XML_SCHEMAV_CVC_ELT_5_2_2_2_2));
804
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_6", INT2NUM(XML_SCHEMAV_CVC_ELT_6));
805
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ELT_7",INT2NUM(XML_SCHEMAV_CVC_ELT_7));
806
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ATTRIBUTE_1", INT2NUM(XML_SCHEMAV_CVC_ATTRIBUTE_1));
807
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ATTRIBUTE_2", INT2NUM(XML_SCHEMAV_CVC_ATTRIBUTE_2));
808
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ATTRIBUTE_3", INT2NUM(XML_SCHEMAV_CVC_ATTRIBUTE_3));
809
+ rb_define_const(eXMLError, "SCHEMAV_CVC_ATTRIBUTE_4", INT2NUM(XML_SCHEMAV_CVC_ATTRIBUTE_4));
810
+ rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_3_1", INT2NUM(XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1));
811
+ rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_3_2_1", INT2NUM(XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1));
812
+ rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_3_2_2", INT2NUM(XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2));
813
+ rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_4", INT2NUM(XML_SCHEMAV_CVC_COMPLEX_TYPE_4));
814
+ rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_5_1", INT2NUM(XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1));
815
+ rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_5_2", INT2NUM(XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2));
816
+ rb_define_const(eXMLError, "SCHEMAV_ELEMENT_CONTENT", INT2NUM(XML_SCHEMAV_ELEMENT_CONTENT));
817
+ rb_define_const(eXMLError, "SCHEMAV_DOCUMENT_ELEMENT_MISSING", INT2NUM(XML_SCHEMAV_DOCUMENT_ELEMENT_MISSING));
818
+ rb_define_const(eXMLError, "SCHEMAV_CVC_COMPLEX_TYPE_1", INT2NUM(XML_SCHEMAV_CVC_COMPLEX_TYPE_1));
1250
819
  rb_define_const(eXMLError, "SCHEMAV_CVC_AU", INT2NUM(XML_SCHEMAV_CVC_AU));
1251
- rb_define_const(eXMLError, "SCHEMAV_CVC_TYPE_1", INT2NUM(
1252
- XML_SCHEMAV_CVC_TYPE_1));
1253
- rb_define_const(eXMLError, "SCHEMAV_CVC_TYPE_2", INT2NUM(
1254
- XML_SCHEMAV_CVC_TYPE_2));
820
+ rb_define_const(eXMLError, "SCHEMAV_CVC_TYPE_1", INT2NUM(XML_SCHEMAV_CVC_TYPE_1));
821
+ rb_define_const(eXMLError, "SCHEMAV_CVC_TYPE_2", INT2NUM(XML_SCHEMAV_CVC_TYPE_2));
1255
822
  #if LIBXML_VERSION >= 20618
1256
823
  rb_define_const(eXMLError, "SCHEMAV_CVC_IDC", INT2NUM(XML_SCHEMAV_CVC_IDC));
1257
824
  rb_define_const(eXMLError, "SCHEMAV_CVC_WILDCARD", INT2NUM(XML_SCHEMAV_CVC_WILDCARD));
@@ -1259,16 +826,12 @@ void ruby_init_xml_error()
1259
826
  #if LIBXML_VERSION >= 20631
1260
827
  rb_define_const(eXMLError, "SCHEMAV_MISC", INT2NUM(XML_SCHEMAV_MISC));
1261
828
  #endif
1262
- rb_define_const(eXMLError, "XPTR_UNKNOWN_SCHEME", INT2NUM(
1263
- XML_XPTR_UNKNOWN_SCHEME));
1264
- rb_define_const(eXMLError, "XPTR_CHILDSEQ_START", INT2NUM(
1265
- XML_XPTR_CHILDSEQ_START));
829
+ rb_define_const(eXMLError, "XPTR_UNKNOWN_SCHEME", INT2NUM(XML_XPTR_UNKNOWN_SCHEME));
830
+ rb_define_const(eXMLError, "XPTR_CHILDSEQ_START", INT2NUM(XML_XPTR_CHILDSEQ_START));
1266
831
  rb_define_const(eXMLError, "XPTR_EVAL_FAILED", INT2NUM(XML_XPTR_EVAL_FAILED));
1267
- rb_define_const(eXMLError, "XPTR_EXTRA_OBJECTS", INT2NUM(
1268
- XML_XPTR_EXTRA_OBJECTS));
832
+ rb_define_const(eXMLError, "XPTR_EXTRA_OBJECTS", INT2NUM(XML_XPTR_EXTRA_OBJECTS));
1269
833
  rb_define_const(eXMLError, "C14N_CREATE_CTXT", INT2NUM(XML_C14N_CREATE_CTXT));
1270
- rb_define_const(eXMLError, "C14N_REQUIRES_UTF8", INT2NUM(
1271
- XML_C14N_REQUIRES_UTF8));
834
+ rb_define_const(eXMLError, "C14N_REQUIRES_UTF8", INT2NUM(XML_C14N_REQUIRES_UTF8));
1272
835
  rb_define_const(eXMLError, "C14N_CREATE_STACK",
1273
836
  INT2NUM(XML_C14N_CREATE_STACK));
1274
837
  rb_define_const(eXMLError, "C14N_INVALID_NODE",
@@ -1285,164 +848,87 @@ void ruby_init_xml_error()
1285
848
  #endif
1286
849
  rb_define_const(eXMLError, "HTTP_URL_SYNTAX", INT2NUM(XML_HTTP_URL_SYNTAX));
1287
850
  rb_define_const(eXMLError, "HTTP_USE_IP", INT2NUM(XML_HTTP_USE_IP));
1288
- rb_define_const(eXMLError, "HTTP_UNKNOWN_HOST",
1289
- INT2NUM(XML_HTTP_UNKNOWN_HOST));
1290
- rb_define_const(eXMLError, "SCHEMAP_SRC_SIMPLE_TYPE_1", INT2NUM(
1291
- XML_SCHEMAP_SRC_SIMPLE_TYPE_1));
1292
- rb_define_const(eXMLError, "SCHEMAP_SRC_SIMPLE_TYPE_2", INT2NUM(
1293
- XML_SCHEMAP_SRC_SIMPLE_TYPE_2));
1294
- rb_define_const(eXMLError, "SCHEMAP_SRC_SIMPLE_TYPE_3", INT2NUM(
1295
- XML_SCHEMAP_SRC_SIMPLE_TYPE_3));
1296
- rb_define_const(eXMLError, "SCHEMAP_SRC_SIMPLE_TYPE_4", INT2NUM(
1297
- XML_SCHEMAP_SRC_SIMPLE_TYPE_4));
1298
- rb_define_const(eXMLError, "SCHEMAP_SRC_RESOLVE", INT2NUM(
1299
- XML_SCHEMAP_SRC_RESOLVE));
1300
- rb_define_const(eXMLError, "SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE",
1301
- INT2NUM(XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE));
1302
- rb_define_const(eXMLError, "SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE",
1303
- INT2NUM(XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE));
1304
- rb_define_const(eXMLError, "SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES",
1305
- INT2NUM(XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES));
1306
- rb_define_const(eXMLError, "SCHEMAP_ST_PROPS_CORRECT_1", INT2NUM(
1307
- XML_SCHEMAP_ST_PROPS_CORRECT_1));
1308
- rb_define_const(eXMLError, "SCHEMAP_ST_PROPS_CORRECT_2", INT2NUM(
1309
- XML_SCHEMAP_ST_PROPS_CORRECT_2));
1310
- rb_define_const(eXMLError, "SCHEMAP_ST_PROPS_CORRECT_3", INT2NUM(
1311
- XML_SCHEMAP_ST_PROPS_CORRECT_3));
1312
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_1_1", INT2NUM(
1313
- XML_SCHEMAP_COS_ST_RESTRICTS_1_1));
1314
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_1_2", INT2NUM(
1315
- XML_SCHEMAP_COS_ST_RESTRICTS_1_2));
1316
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_1_3_1", INT2NUM(
1317
- XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1));
1318
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_1_3_2", INT2NUM(
1319
- XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2));
1320
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_1", INT2NUM(
1321
- XML_SCHEMAP_COS_ST_RESTRICTS_2_1));
1322
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_1_1", INT2NUM(
1323
- XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1));
1324
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_1_2", INT2NUM(
1325
- XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2));
1326
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_2_1", INT2NUM(
1327
- XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1));
1328
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_2_2", INT2NUM(
1329
- XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2));
1330
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_2_3", INT2NUM(
1331
- XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3));
1332
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_2_4", INT2NUM(
1333
- XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4));
1334
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_2_5", INT2NUM(
1335
- XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5));
1336
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_1", INT2NUM(
1337
- XML_SCHEMAP_COS_ST_RESTRICTS_3_1));
1338
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_1", INT2NUM(
1339
- XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1));
1340
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_1_2", INT2NUM(
1341
- XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2));
1342
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_2_2", INT2NUM(
1343
- XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2));
1344
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_2_1", INT2NUM(
1345
- XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1));
1346
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_2_3", INT2NUM(
1347
- XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3));
1348
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_2_4", INT2NUM(
1349
- XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4));
1350
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_2_5", INT2NUM(
1351
- XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5));
1352
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_DERIVED_OK_2_1", INT2NUM(
1353
- XML_SCHEMAP_COS_ST_DERIVED_OK_2_1));
1354
- rb_define_const(eXMLError, "SCHEMAP_COS_ST_DERIVED_OK_2_2", INT2NUM(
1355
- XML_SCHEMAP_COS_ST_DERIVED_OK_2_2));
1356
- rb_define_const(eXMLError, "SCHEMAP_S4S_ELEM_NOT_ALLOWED", INT2NUM(
1357
- XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED));
1358
- rb_define_const(eXMLError, "SCHEMAP_S4S_ELEM_MISSING", INT2NUM(
1359
- XML_SCHEMAP_S4S_ELEM_MISSING));
1360
- rb_define_const(eXMLError, "SCHEMAP_S4S_ATTR_NOT_ALLOWED", INT2NUM(
1361
- XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED));
1362
- rb_define_const(eXMLError, "SCHEMAP_S4S_ATTR_MISSING", INT2NUM(
1363
- XML_SCHEMAP_S4S_ATTR_MISSING));
1364
- rb_define_const(eXMLError, "SCHEMAP_S4S_ATTR_INVALID_VALUE", INT2NUM(
1365
- XML_SCHEMAP_S4S_ATTR_INVALID_VALUE));
1366
- rb_define_const(eXMLError, "SCHEMAP_SRC_ELEMENT_1", INT2NUM(
1367
- XML_SCHEMAP_SRC_ELEMENT_1));
1368
- rb_define_const(eXMLError, "SCHEMAP_SRC_ELEMENT_2_1", INT2NUM(
1369
- XML_SCHEMAP_SRC_ELEMENT_2_1));
1370
- rb_define_const(eXMLError, "SCHEMAP_SRC_ELEMENT_2_2", INT2NUM(
1371
- XML_SCHEMAP_SRC_ELEMENT_2_2));
1372
- rb_define_const(eXMLError, "SCHEMAP_SRC_ELEMENT_3", INT2NUM(
1373
- XML_SCHEMAP_SRC_ELEMENT_3));
1374
- rb_define_const(eXMLError, "SCHEMAP_P_PROPS_CORRECT_1", INT2NUM(
1375
- XML_SCHEMAP_P_PROPS_CORRECT_1));
1376
- rb_define_const(eXMLError, "SCHEMAP_P_PROPS_CORRECT_2_1", INT2NUM(
1377
- XML_SCHEMAP_P_PROPS_CORRECT_2_1));
1378
- rb_define_const(eXMLError, "SCHEMAP_P_PROPS_CORRECT_2_2", INT2NUM(
1379
- XML_SCHEMAP_P_PROPS_CORRECT_2_2));
1380
- rb_define_const(eXMLError, "SCHEMAP_E_PROPS_CORRECT_2", INT2NUM(
1381
- XML_SCHEMAP_E_PROPS_CORRECT_2));
1382
- rb_define_const(eXMLError, "SCHEMAP_E_PROPS_CORRECT_3", INT2NUM(
1383
- XML_SCHEMAP_E_PROPS_CORRECT_3));
1384
- rb_define_const(eXMLError, "SCHEMAP_E_PROPS_CORRECT_4", INT2NUM(
1385
- XML_SCHEMAP_E_PROPS_CORRECT_4));
1386
- rb_define_const(eXMLError, "SCHEMAP_E_PROPS_CORRECT_5", INT2NUM(
1387
- XML_SCHEMAP_E_PROPS_CORRECT_5));
1388
- rb_define_const(eXMLError, "SCHEMAP_E_PROPS_CORRECT_6", INT2NUM(
1389
- XML_SCHEMAP_E_PROPS_CORRECT_6));
1390
- rb_define_const(eXMLError, "SCHEMAP_SRC_INCLUDE", INT2NUM(
1391
- XML_SCHEMAP_SRC_INCLUDE));
1392
- rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_1", INT2NUM(
1393
- XML_SCHEMAP_SRC_ATTRIBUTE_1));
1394
- rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_2", INT2NUM(
1395
- XML_SCHEMAP_SRC_ATTRIBUTE_2));
1396
- rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_3_1", INT2NUM(
1397
- XML_SCHEMAP_SRC_ATTRIBUTE_3_1));
1398
- rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_3_2", INT2NUM(
1399
- XML_SCHEMAP_SRC_ATTRIBUTE_3_2));
1400
- rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_4", INT2NUM(
1401
- XML_SCHEMAP_SRC_ATTRIBUTE_4));
851
+ rb_define_const(eXMLError, "HTTP_UNKNOWN_HOST", INT2NUM(XML_HTTP_UNKNOWN_HOST));
852
+ rb_define_const(eXMLError, "SCHEMAP_SRC_SIMPLE_TYPE_1", INT2NUM(XML_SCHEMAP_SRC_SIMPLE_TYPE_1));
853
+ rb_define_const(eXMLError, "SCHEMAP_SRC_SIMPLE_TYPE_2", INT2NUM(XML_SCHEMAP_SRC_SIMPLE_TYPE_2));
854
+ rb_define_const(eXMLError, "SCHEMAP_SRC_SIMPLE_TYPE_3", INT2NUM(XML_SCHEMAP_SRC_SIMPLE_TYPE_3));
855
+ rb_define_const(eXMLError, "SCHEMAP_SRC_SIMPLE_TYPE_4", INT2NUM(XML_SCHEMAP_SRC_SIMPLE_TYPE_4));
856
+ rb_define_const(eXMLError, "SCHEMAP_SRC_RESOLVE", INT2NUM(XML_SCHEMAP_SRC_RESOLVE));
857
+ rb_define_const(eXMLError, "SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE", INT2NUM(XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE));
858
+ rb_define_const(eXMLError, "SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE", INT2NUM(XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE));
859
+ rb_define_const(eXMLError, "SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES", INT2NUM(XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES));
860
+ rb_define_const(eXMLError, "SCHEMAP_ST_PROPS_CORRECT_1", INT2NUM(XML_SCHEMAP_ST_PROPS_CORRECT_1));
861
+ rb_define_const(eXMLError, "SCHEMAP_ST_PROPS_CORRECT_2", INT2NUM(XML_SCHEMAP_ST_PROPS_CORRECT_2));
862
+ rb_define_const(eXMLError, "SCHEMAP_ST_PROPS_CORRECT_3", INT2NUM(XML_SCHEMAP_ST_PROPS_CORRECT_3));
863
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_1_1", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_1_1));
864
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_1_2", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_1_2));
865
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_1_3_1", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1));
866
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_1_3_2", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2));
867
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_1", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_2_1));
868
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_1_1", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1));
869
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_1_2", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2));
870
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_2_1", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1));
871
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_2_2", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2));
872
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_2_3", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3));
873
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_2_4", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4));
874
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_2_3_2_5", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5));
875
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_1", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_3_1));
876
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_1", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1));
877
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_1_2", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2));
878
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_2_2", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2));
879
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_2_1", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1));
880
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_2_3", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3));
881
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_2_4", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4));
882
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_RESTRICTS_3_3_2_5", INT2NUM(XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5));
883
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_DERIVED_OK_2_1", INT2NUM(XML_SCHEMAP_COS_ST_DERIVED_OK_2_1));
884
+ rb_define_const(eXMLError, "SCHEMAP_COS_ST_DERIVED_OK_2_2", INT2NUM(XML_SCHEMAP_COS_ST_DERIVED_OK_2_2));
885
+ rb_define_const(eXMLError, "SCHEMAP_S4S_ELEM_NOT_ALLOWED", INT2NUM(XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED));
886
+ rb_define_const(eXMLError, "SCHEMAP_S4S_ELEM_MISSING", INT2NUM(XML_SCHEMAP_S4S_ELEM_MISSING));
887
+ rb_define_const(eXMLError, "SCHEMAP_S4S_ATTR_NOT_ALLOWED", INT2NUM(XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED));
888
+ rb_define_const(eXMLError, "SCHEMAP_S4S_ATTR_MISSING", INT2NUM(XML_SCHEMAP_S4S_ATTR_MISSING));
889
+ rb_define_const(eXMLError, "SCHEMAP_S4S_ATTR_INVALID_VALUE", INT2NUM(XML_SCHEMAP_S4S_ATTR_INVALID_VALUE));
890
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ELEMENT_1", INT2NUM(XML_SCHEMAP_SRC_ELEMENT_1));
891
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ELEMENT_2_1", INT2NUM(XML_SCHEMAP_SRC_ELEMENT_2_1));
892
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ELEMENT_2_2", INT2NUM(XML_SCHEMAP_SRC_ELEMENT_2_2));
893
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ELEMENT_3", INT2NUM(XML_SCHEMAP_SRC_ELEMENT_3));
894
+ rb_define_const(eXMLError, "SCHEMAP_P_PROPS_CORRECT_1", INT2NUM(XML_SCHEMAP_P_PROPS_CORRECT_1));
895
+ rb_define_const(eXMLError, "SCHEMAP_P_PROPS_CORRECT_2_1", INT2NUM(XML_SCHEMAP_P_PROPS_CORRECT_2_1));
896
+ rb_define_const(eXMLError, "SCHEMAP_P_PROPS_CORRECT_2_2", INT2NUM(XML_SCHEMAP_P_PROPS_CORRECT_2_2));
897
+ rb_define_const(eXMLError, "SCHEMAP_E_PROPS_CORRECT_2", INT2NUM(XML_SCHEMAP_E_PROPS_CORRECT_2));
898
+ rb_define_const(eXMLError, "SCHEMAP_E_PROPS_CORRECT_3", INT2NUM(XML_SCHEMAP_E_PROPS_CORRECT_3));
899
+ rb_define_const(eXMLError, "SCHEMAP_E_PROPS_CORRECT_4", INT2NUM(XML_SCHEMAP_E_PROPS_CORRECT_4));
900
+ rb_define_const(eXMLError, "SCHEMAP_E_PROPS_CORRECT_5", INT2NUM(XML_SCHEMAP_E_PROPS_CORRECT_5));
901
+ rb_define_const(eXMLError, "SCHEMAP_E_PROPS_CORRECT_6", INT2NUM(XML_SCHEMAP_E_PROPS_CORRECT_6));
902
+ rb_define_const(eXMLError, "SCHEMAP_SRC_INCLUDE", INT2NUM(XML_SCHEMAP_SRC_INCLUDE));
903
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_1", INT2NUM(XML_SCHEMAP_SRC_ATTRIBUTE_1));
904
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_2", INT2NUM(XML_SCHEMAP_SRC_ATTRIBUTE_2));
905
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_3_1", INT2NUM(XML_SCHEMAP_SRC_ATTRIBUTE_3_1));
906
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_3_2", INT2NUM(XML_SCHEMAP_SRC_ATTRIBUTE_3_2));
907
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_4", INT2NUM(XML_SCHEMAP_SRC_ATTRIBUTE_4));
1402
908
  rb_define_const(eXMLError, "SCHEMAP_NO_XMLNS", INT2NUM(XML_SCHEMAP_NO_XMLNS));
1403
909
  rb_define_const(eXMLError, "SCHEMAP_NO_XSI", INT2NUM(XML_SCHEMAP_NO_XSI));
1404
- rb_define_const(eXMLError, "SCHEMAP_COS_VALID_DEFAULT_1", INT2NUM(
1405
- XML_SCHEMAP_COS_VALID_DEFAULT_1));
1406
- rb_define_const(eXMLError, "SCHEMAP_COS_VALID_DEFAULT_2_1", INT2NUM(
1407
- XML_SCHEMAP_COS_VALID_DEFAULT_2_1));
1408
- rb_define_const(eXMLError, "SCHEMAP_COS_VALID_DEFAULT_2_2_1", INT2NUM(
1409
- XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1));
1410
- rb_define_const(eXMLError, "SCHEMAP_COS_VALID_DEFAULT_2_2_2", INT2NUM(
1411
- XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2));
1412
- rb_define_const(eXMLError, "SCHEMAP_CVC_SIMPLE_TYPE", INT2NUM(
1413
- XML_SCHEMAP_CVC_SIMPLE_TYPE));
1414
- rb_define_const(eXMLError, "SCHEMAP_COS_CT_EXTENDS_1_1", INT2NUM(
1415
- XML_SCHEMAP_COS_CT_EXTENDS_1_1));
1416
- rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_1_1", INT2NUM(
1417
- XML_SCHEMAP_SRC_IMPORT_1_1));
1418
- rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_1_2", INT2NUM(
1419
- XML_SCHEMAP_SRC_IMPORT_1_2));
1420
- rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_2", INT2NUM(
1421
- XML_SCHEMAP_SRC_IMPORT_2));
1422
- rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_2_1", INT2NUM(
1423
- XML_SCHEMAP_SRC_IMPORT_2_1));
1424
- rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_2_2", INT2NUM(
1425
- XML_SCHEMAP_SRC_IMPORT_2_2));
910
+ rb_define_const(eXMLError, "SCHEMAP_COS_VALID_DEFAULT_1", INT2NUM(XML_SCHEMAP_COS_VALID_DEFAULT_1));
911
+ rb_define_const(eXMLError, "SCHEMAP_COS_VALID_DEFAULT_2_1", INT2NUM(XML_SCHEMAP_COS_VALID_DEFAULT_2_1));
912
+ rb_define_const(eXMLError, "SCHEMAP_COS_VALID_DEFAULT_2_2_1", INT2NUM(XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1));
913
+ rb_define_const(eXMLError, "SCHEMAP_COS_VALID_DEFAULT_2_2_2", INT2NUM(XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2));
914
+ rb_define_const(eXMLError, "SCHEMAP_CVC_SIMPLE_TYPE", INT2NUM(XML_SCHEMAP_CVC_SIMPLE_TYPE));
915
+ rb_define_const(eXMLError, "SCHEMAP_COS_CT_EXTENDS_1_1", INT2NUM(XML_SCHEMAP_COS_CT_EXTENDS_1_1));
916
+ rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_1_1", INT2NUM(XML_SCHEMAP_SRC_IMPORT_1_1));
917
+ rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_1_2", INT2NUM(XML_SCHEMAP_SRC_IMPORT_1_2));
918
+ rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_2", INT2NUM(XML_SCHEMAP_SRC_IMPORT_2));
919
+ rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_2_1", INT2NUM(XML_SCHEMAP_SRC_IMPORT_2_1));
920
+ rb_define_const(eXMLError, "SCHEMAP_SRC_IMPORT_2_2", INT2NUM(XML_SCHEMAP_SRC_IMPORT_2_2));
1426
921
  rb_define_const(eXMLError, "SCHEMAP_INTERNAL", INT2NUM(XML_SCHEMAP_INTERNAL));
1427
- rb_define_const(eXMLError, "SCHEMAP_NOT_DETERMINISTIC", INT2NUM(
1428
- XML_SCHEMAP_NOT_DETERMINISTIC));
1429
- rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_GROUP_1", INT2NUM(
1430
- XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1));
1431
- rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_GROUP_2", INT2NUM(
1432
- XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2));
1433
- rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_GROUP_3", INT2NUM(
1434
- XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3));
1435
- rb_define_const(eXMLError, "SCHEMAP_MG_PROPS_CORRECT_1", INT2NUM(
1436
- XML_SCHEMAP_MG_PROPS_CORRECT_1));
1437
- rb_define_const(eXMLError, "SCHEMAP_MG_PROPS_CORRECT_2", INT2NUM(
1438
- XML_SCHEMAP_MG_PROPS_CORRECT_2));
922
+ rb_define_const(eXMLError, "SCHEMAP_NOT_DETERMINISTIC", INT2NUM(XML_SCHEMAP_NOT_DETERMINISTIC));
923
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_GROUP_1", INT2NUM(XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1));
924
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_GROUP_2", INT2NUM(XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2));
925
+ rb_define_const(eXMLError, "SCHEMAP_SRC_ATTRIBUTE_GROUP_3", INT2NUM(XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3));
926
+ rb_define_const(eXMLError, "SCHEMAP_MG_PROPS_CORRECT_1", INT2NUM(XML_SCHEMAP_MG_PROPS_CORRECT_1));
927
+ rb_define_const(eXMLError, "SCHEMAP_MG_PROPS_CORRECT_2", INT2NUM(XML_SCHEMAP_MG_PROPS_CORRECT_2));
1439
928
  rb_define_const(eXMLError, "SCHEMAP_SRC_CT_1", INT2NUM(XML_SCHEMAP_SRC_CT_1));
1440
- rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3",
1441
- INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3));
1442
- rb_define_const(eXMLError, "SCHEMAP_AU_PROPS_CORRECT_2", INT2NUM(
1443
- XML_SCHEMAP_AU_PROPS_CORRECT_2));
1444
- rb_define_const(eXMLError, "SCHEMAP_A_PROPS_CORRECT_2", INT2NUM(
1445
- XML_SCHEMAP_A_PROPS_CORRECT_2));
929
+ rb_define_const(eXMLError, "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3", INT2NUM(XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3));
930
+ rb_define_const(eXMLError, "SCHEMAP_AU_PROPS_CORRECT_2", INT2NUM(XML_SCHEMAP_AU_PROPS_CORRECT_2));
931
+ rb_define_const(eXMLError, "SCHEMAP_A_PROPS_CORRECT_2", INT2NUM(XML_SCHEMAP_A_PROPS_CORRECT_2));
1446
932
  #if LIBXML_VERSION >= 20620
1447
933
  rb_define_const(eXMLError, "SCHEMAP_C_PROPS_CORRECT", INT2NUM(XML_SCHEMAP_C_PROPS_CORRECT));
1448
934
  #endif
@@ -1469,30 +955,19 @@ void ruby_init_xml_error()
1469
955
  rb_define_const(eXMLError, "MODULE_OPEN", INT2NUM(XML_MODULE_OPEN));
1470
956
  rb_define_const(eXMLError, "MODULE_CLOSE", INT2NUM(XML_MODULE_CLOSE));
1471
957
  #endif
1472
- rb_define_const(eXMLError, "CHECK_FOUND_ELEMENT", INT2NUM(
1473
- XML_CHECK_FOUND_ELEMENT));
1474
- rb_define_const(eXMLError, "CHECK_FOUND_ATTRIBUTE", INT2NUM(
1475
- XML_CHECK_FOUND_ATTRIBUTE));
958
+ rb_define_const(eXMLError, "CHECK_FOUND_ELEMENT", INT2NUM(XML_CHECK_FOUND_ELEMENT));
959
+ rb_define_const(eXMLError, "CHECK_FOUND_ATTRIBUTE", INT2NUM(XML_CHECK_FOUND_ATTRIBUTE));
1476
960
  rb_define_const(eXMLError, "CHECK_FOUND_TEXT", INT2NUM(XML_CHECK_FOUND_TEXT));
1477
- rb_define_const(eXMLError, "CHECK_FOUND_CDATA",
1478
- INT2NUM(XML_CHECK_FOUND_CDATA));
1479
- rb_define_const(eXMLError, "CHECK_FOUND_ENTITYREF", INT2NUM(
1480
- XML_CHECK_FOUND_ENTITYREF));
1481
- rb_define_const(eXMLError, "CHECK_FOUND_ENTITY", INT2NUM(
1482
- XML_CHECK_FOUND_ENTITY));
961
+ rb_define_const(eXMLError, "CHECK_FOUND_CDATA",INT2NUM(XML_CHECK_FOUND_CDATA));
962
+ rb_define_const(eXMLError, "CHECK_FOUND_ENTITYREF", INT2NUM(XML_CHECK_FOUND_ENTITYREF));
963
+ rb_define_const(eXMLError, "CHECK_FOUND_ENTITY", INT2NUM(XML_CHECK_FOUND_ENTITY));
1483
964
  rb_define_const(eXMLError, "CHECK_FOUND_PI", INT2NUM(XML_CHECK_FOUND_PI));
1484
- rb_define_const(eXMLError, "CHECK_FOUND_COMMENT", INT2NUM(
1485
- XML_CHECK_FOUND_COMMENT));
1486
- rb_define_const(eXMLError, "CHECK_FOUND_DOCTYPE", INT2NUM(
1487
- XML_CHECK_FOUND_DOCTYPE));
1488
- rb_define_const(eXMLError, "CHECK_FOUND_FRAGMENT", INT2NUM(
1489
- XML_CHECK_FOUND_FRAGMENT));
1490
- rb_define_const(eXMLError, "CHECK_FOUND_NOTATION", INT2NUM(
1491
- XML_CHECK_FOUND_NOTATION));
1492
- rb_define_const(eXMLError, "CHECK_UNKNOWN_NODE", INT2NUM(
1493
- XML_CHECK_UNKNOWN_NODE));
1494
- rb_define_const(eXMLError, "CHECK_ENTITY_TYPE",
1495
- INT2NUM(XML_CHECK_ENTITY_TYPE));
965
+ rb_define_const(eXMLError, "CHECK_FOUND_COMMENT", INT2NUM(XML_CHECK_FOUND_COMMENT));
966
+ rb_define_const(eXMLError, "CHECK_FOUND_DOCTYPE", INT2NUM(XML_CHECK_FOUND_DOCTYPE));
967
+ rb_define_const(eXMLError, "CHECK_FOUND_FRAGMENT", INT2NUM(XML_CHECK_FOUND_FRAGMENT));
968
+ rb_define_const(eXMLError, "CHECK_FOUND_NOTATION", INT2NUM(XML_CHECK_FOUND_NOTATION));
969
+ rb_define_const(eXMLError, "CHECK_UNKNOWN_NODE", INT2NUM(XML_CHECK_UNKNOWN_NODE));
970
+ rb_define_const(eXMLError, "CHECK_ENTITY_TYPE", INT2NUM(XML_CHECK_ENTITY_TYPE));
1496
971
  rb_define_const(eXMLError, "CHECK_NO_PARENT", INT2NUM(XML_CHECK_NO_PARENT));
1497
972
  rb_define_const(eXMLError, "CHECK_NO_DOC", INT2NUM(XML_CHECK_NO_DOC));
1498
973
  rb_define_const(eXMLError, "CHECK_NO_NAME", INT2NUM(XML_CHECK_NO_NAME));
@@ -1504,25 +979,18 @@ void ruby_init_xml_error()
1504
979
  rb_define_const(eXMLError, "CHECK_WRONG_NEXT", INT2NUM(XML_CHECK_WRONG_NEXT));
1505
980
  rb_define_const(eXMLError, "CHECK_NOT_DTD", INT2NUM(XML_CHECK_NOT_DTD));
1506
981
  rb_define_const(eXMLError, "CHECK_NOT_ATTR", INT2NUM(XML_CHECK_NOT_ATTR));
1507
- rb_define_const(eXMLError, "CHECK_NOT_ATTR_DECL", INT2NUM(
1508
- XML_CHECK_NOT_ATTR_DECL));
1509
- rb_define_const(eXMLError, "CHECK_NOT_ELEM_DECL", INT2NUM(
1510
- XML_CHECK_NOT_ELEM_DECL));
1511
- rb_define_const(eXMLError, "CHECK_NOT_ENTITY_DECL", INT2NUM(
1512
- XML_CHECK_NOT_ENTITY_DECL));
1513
- rb_define_const(eXMLError, "CHECK_NOT_NS_DECL",
1514
- INT2NUM(XML_CHECK_NOT_NS_DECL));
982
+ rb_define_const(eXMLError, "CHECK_NOT_ATTR_DECL", INT2NUM(XML_CHECK_NOT_ATTR_DECL));
983
+ rb_define_const(eXMLError, "CHECK_NOT_ELEM_DECL", INT2NUM(XML_CHECK_NOT_ELEM_DECL));
984
+ rb_define_const(eXMLError, "CHECK_NOT_ENTITY_DECL", INT2NUM(XML_CHECK_NOT_ENTITY_DECL));
985
+ rb_define_const(eXMLError, "CHECK_NOT_NS_DECL", INT2NUM(XML_CHECK_NOT_NS_DECL));
1515
986
  rb_define_const(eXMLError, "CHECK_NO_HREF", INT2NUM(XML_CHECK_NO_HREF));
1516
- rb_define_const(eXMLError, "CHECK_WRONG_PARENT", INT2NUM(
1517
- XML_CHECK_WRONG_PARENT));
987
+ rb_define_const(eXMLError, "CHECK_WRONG_PARENT", INT2NUM(XML_CHECK_WRONG_PARENT));
1518
988
  rb_define_const(eXMLError, "CHECK_NS_SCOPE", INT2NUM(XML_CHECK_NS_SCOPE));
1519
- rb_define_const(eXMLError, "CHECK_NS_ANCESTOR",
1520
- INT2NUM(XML_CHECK_NS_ANCESTOR));
989
+ rb_define_const(eXMLError, "CHECK_NS_ANCESTOR", INT2NUM(XML_CHECK_NS_ANCESTOR));
1521
990
  rb_define_const(eXMLError, "CHECK_NOT_UTF8", INT2NUM(XML_CHECK_NOT_UTF8));
1522
991
  rb_define_const(eXMLError, "CHECK_NO_DICT", INT2NUM(XML_CHECK_NO_DICT));
1523
992
  rb_define_const(eXMLError, "CHECK_NOT_NCNAME", INT2NUM(XML_CHECK_NOT_NCNAME));
1524
- rb_define_const(eXMLError, "CHECK_OUTSIDE_DICT", INT2NUM(
1525
- XML_CHECK_OUTSIDE_DICT));
993
+ rb_define_const(eXMLError, "CHECK_OUTSIDE_DICT", INT2NUM(XML_CHECK_OUTSIDE_DICT));
1526
994
  rb_define_const(eXMLError, "CHECK_WRONG_NAME", INT2NUM(XML_CHECK_WRONG_NAME));
1527
995
  #if LIBXML_VERSION >= 20621
1528
996
  rb_define_const(eXMLError, "CHECK_NAME_NOT_NULL", INT2NUM(XML_CHECK_NAME_NOT_NULL));