libxml-ruby 0.9.4-x86-mswin32-60 → 0.9.5-x86-mswin32-60

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