libxml-ruby 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +22 -0
- data/README +3 -1
- data/ext/libxml/cbg.c +86 -76
- data/ext/libxml/extconf.rb +2 -1
- data/ext/libxml/libxml.c +899 -885
- data/ext/libxml/ruby_libxml.h +65 -70
- data/ext/libxml/ruby_xml_attr.c +485 -500
- data/ext/libxml/ruby_xml_attributes.c +107 -106
- data/ext/libxml/ruby_xml_document.c +355 -356
- data/ext/libxml/ruby_xml_dtd.c +119 -117
- data/ext/libxml/ruby_xml_error.c +1112 -581
- data/ext/libxml/ruby_xml_html_parser.c +35 -34
- data/ext/libxml/ruby_xml_input.c +182 -187
- data/ext/libxml/ruby_xml_input_cbg.c +197 -179
- data/ext/libxml/ruby_xml_node.c +1529 -1566
- data/ext/libxml/ruby_xml_node.h +2 -2
- data/ext/libxml/ruby_xml_ns.c +150 -156
- data/ext/libxml/ruby_xml_parser.c +37 -36
- data/ext/libxml/ruby_xml_parser_context.c +657 -659
- data/ext/libxml/ruby_xml_reader.c +203 -209
- data/ext/libxml/ruby_xml_relaxng.c +29 -25
- data/ext/libxml/ruby_xml_sax_parser.c +33 -32
- data/ext/libxml/ruby_xml_schema.c +165 -161
- data/ext/libxml/ruby_xml_state.c +19 -21
- data/ext/libxml/ruby_xml_xinclude.c +24 -25
- data/ext/libxml/ruby_xml_xpath.c +108 -108
- data/ext/libxml/ruby_xml_xpath_context.c +305 -293
- data/ext/libxml/ruby_xml_xpath_expression.c +24 -24
- data/ext/libxml/ruby_xml_xpath_object.c +89 -96
- data/ext/libxml/ruby_xml_xpointer.c +107 -109
- data/ext/libxml/ruby_xml_xpointer.h +13 -13
- data/ext/libxml/version.h +2 -2
- data/ext/mingw/Rakefile +1 -1
- data/ext/vc/libxml_ruby.vcproj +1 -1
- data/lib/libxml/error.rb +4 -4
- data/test/tc_node_edit.rb +14 -2
- data/test/tc_node_text.rb +9 -9
- metadata +2 -2
data/ext/libxml/ruby_xml_dtd.c
CHANGED
@@ -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
|
-
|
35
|
-
xmlFreeDtd(xdtd);
|
36
|
-
}
|
37
|
-
|
38
|
-
static VALUE
|
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
|
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
|
-
|
64
|
-
|
65
|
-
|
66
|
-
Check_Type(
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
buffer
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
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
|
+
|
data/ext/libxml/ruby_xml_error.c
CHANGED
@@ -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
|
-
|
58
|
-
|
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
|
-
|
77
|
+
rxml_set_handler(self, Qnil);
|
72
78
|
return self;
|
73
79
|
}
|
74
80
|
|
75
|
-
|
76
|
-
|
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
|
-
|
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
|
-
|
131
|
-
|
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
|
-
|
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,
|
151
|
-
|
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
|
-
|
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",
|
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",
|
176
|
-
rb_define_const(eXMLError, "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(
|
221
|
-
|
222
|
-
rb_define_const(eXMLError, "
|
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(
|
226
|
-
|
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(
|
229
|
-
|
230
|
-
rb_define_const(eXMLError, "
|
231
|
-
|
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",
|
234
|
-
|
235
|
-
rb_define_const(eXMLError, "
|
236
|
-
|
237
|
-
rb_define_const(eXMLError, "
|
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(
|
240
|
-
|
241
|
-
rb_define_const(eXMLError, "
|
242
|
-
|
243
|
-
rb_define_const(eXMLError, "
|
244
|
-
|
245
|
-
rb_define_const(eXMLError, "
|
246
|
-
|
247
|
-
rb_define_const(eXMLError, "
|
248
|
-
|
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(
|
251
|
-
|
252
|
-
rb_define_const(eXMLError, "
|
253
|
-
|
254
|
-
rb_define_const(eXMLError, "
|
255
|
-
|
256
|
-
rb_define_const(eXMLError, "
|
257
|
-
|
258
|
-
rb_define_const(eXMLError, "
|
259
|
-
|
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",
|
262
|
-
|
263
|
-
rb_define_const(eXMLError, "
|
264
|
-
|
265
|
-
rb_define_const(eXMLError, "
|
266
|
-
|
267
|
-
rb_define_const(eXMLError, "
|
268
|
-
|
269
|
-
rb_define_const(eXMLError, "
|
270
|
-
|
271
|
-
rb_define_const(eXMLError, "
|
272
|
-
|
273
|
-
rb_define_const(eXMLError, "
|
274
|
-
|
275
|
-
rb_define_const(eXMLError, "
|
276
|
-
|
277
|
-
rb_define_const(eXMLError, "
|
278
|
-
|
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(
|
281
|
-
|
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",
|
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(
|
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(
|
291
|
-
|
292
|
-
rb_define_const(eXMLError, "
|
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(
|
295
|
-
|
296
|
-
rb_define_const(eXMLError, "
|
297
|
-
|
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(
|
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(
|
302
|
-
|
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",
|
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(
|
310
|
-
|
311
|
-
rb_define_const(eXMLError, "
|
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(
|
315
|
-
|
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(
|
325
|
-
|
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(
|
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(
|
335
|
-
|
336
|
-
rb_define_const(eXMLError, "
|
337
|
-
|
338
|
-
rb_define_const(eXMLError, "
|
339
|
-
|
340
|
-
rb_define_const(eXMLError, "
|
341
|
-
|
342
|
-
rb_define_const(eXMLError, "
|
343
|
-
|
344
|
-
rb_define_const(eXMLError, "
|
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",
|
350
|
-
|
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(
|
353
|
-
|
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(
|
361
|
-
|
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(
|
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(
|
367
|
-
|
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(
|
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(
|
372
|
-
|
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(
|
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(
|
378
|
-
|
379
|
-
rb_define_const(eXMLError, "
|
380
|
-
|
381
|
-
rb_define_const(eXMLError, "
|
382
|
-
|
383
|
-
rb_define_const(eXMLError, "
|
384
|
-
|
385
|
-
rb_define_const(eXMLError, "
|
386
|
-
|
387
|
-
rb_define_const(eXMLError, "
|
388
|
-
|
389
|
-
rb_define_const(eXMLError, "
|
390
|
-
|
391
|
-
rb_define_const(eXMLError, "
|
392
|
-
|
393
|
-
rb_define_const(eXMLError, "
|
394
|
-
|
395
|
-
rb_define_const(eXMLError, "
|
396
|
-
|
397
|
-
rb_define_const(eXMLError, "
|
398
|
-
|
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(
|
401
|
-
|
402
|
-
rb_define_const(eXMLError, "
|
403
|
-
|
404
|
-
rb_define_const(eXMLError, "
|
405
|
-
|
406
|
-
rb_define_const(eXMLError, "
|
407
|
-
|
408
|
-
rb_define_const(eXMLError, "
|
409
|
-
|
410
|
-
rb_define_const(eXMLError, "
|
411
|
-
|
412
|
-
rb_define_const(eXMLError, "
|
413
|
-
|
414
|
-
rb_define_const(eXMLError, "
|
415
|
-
|
416
|
-
rb_define_const(eXMLError, "
|
417
|
-
|
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(
|
420
|
-
|
421
|
-
rb_define_const(eXMLError, "
|
422
|
-
|
423
|
-
rb_define_const(eXMLError, "
|
424
|
-
|
425
|
-
rb_define_const(eXMLError, "
|
426
|
-
|
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(
|
429
|
-
|
430
|
-
rb_define_const(eXMLError, "
|
431
|
-
|
432
|
-
rb_define_const(eXMLError, "
|
433
|
-
|
434
|
-
rb_define_const(eXMLError, "
|
435
|
-
|
436
|
-
rb_define_const(eXMLError, "
|
437
|
-
|
438
|
-
rb_define_const(eXMLError, "
|
439
|
-
|
440
|
-
rb_define_const(eXMLError, "
|
441
|
-
|
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(
|
444
|
-
|
445
|
-
rb_define_const(eXMLError, "
|
446
|
-
|
447
|
-
rb_define_const(eXMLError, "
|
448
|
-
|
449
|
-
rb_define_const(eXMLError, "
|
450
|
-
|
451
|
-
rb_define_const(eXMLError, "
|
452
|
-
|
453
|
-
rb_define_const(eXMLError, "
|
454
|
-
|
455
|
-
rb_define_const(eXMLError, "
|
456
|
-
|
457
|
-
rb_define_const(eXMLError, "
|
458
|
-
|
459
|
-
rb_define_const(eXMLError, "
|
460
|
-
|
461
|
-
rb_define_const(eXMLError, "
|
462
|
-
|
463
|
-
rb_define_const(eXMLError, "
|
464
|
-
|
465
|
-
rb_define_const(eXMLError, "
|
466
|
-
|
467
|
-
rb_define_const(eXMLError, "
|
468
|
-
|
469
|
-
rb_define_const(eXMLError, "
|
470
|
-
|
471
|
-
rb_define_const(eXMLError, "
|
472
|
-
|
473
|
-
rb_define_const(eXMLError, "
|
474
|
-
|
475
|
-
rb_define_const(eXMLError, "
|
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(
|
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(
|
481
|
-
|
482
|
-
rb_define_const(eXMLError, "
|
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(
|
485
|
-
|
486
|
-
rb_define_const(eXMLError, "
|
487
|
-
|
488
|
-
rb_define_const(eXMLError, "
|
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(
|
491
|
-
|
492
|
-
rb_define_const(eXMLError, "
|
493
|
-
|
494
|
-
rb_define_const(eXMLError, "
|
495
|
-
|
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(
|
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(
|
501
|
-
|
502
|
-
rb_define_const(eXMLError, "
|
503
|
-
|
504
|
-
rb_define_const(eXMLError, "
|
505
|
-
|
506
|
-
rb_define_const(eXMLError, "
|
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(
|
509
|
-
|
510
|
-
rb_define_const(eXMLError, "
|
511
|
-
|
512
|
-
rb_define_const(eXMLError, "
|
513
|
-
|
514
|
-
rb_define_const(eXMLError, "
|
515
|
-
|
516
|
-
rb_define_const(eXMLError, "
|
517
|
-
|
518
|
-
rb_define_const(eXMLError, "
|
519
|
-
|
520
|
-
rb_define_const(eXMLError, "
|
521
|
-
|
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(
|
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",
|
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(
|
532
|
-
|
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(
|
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(
|
591
|
-
|
592
|
-
rb_define_const(eXMLError, "
|
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(
|
595
|
-
|
596
|
-
rb_define_const(eXMLError, "
|
597
|
-
|
598
|
-
rb_define_const(eXMLError, "
|
599
|
-
|
600
|
-
rb_define_const(eXMLError, "
|
601
|
-
|
602
|
-
rb_define_const(eXMLError, "
|
603
|
-
|
604
|
-
rb_define_const(eXMLError, "
|
605
|
-
|
606
|
-
rb_define_const(eXMLError, "
|
607
|
-
|
608
|
-
rb_define_const(eXMLError, "
|
609
|
-
|
610
|
-
rb_define_const(eXMLError, "
|
611
|
-
|
612
|
-
rb_define_const(eXMLError, "
|
613
|
-
|
614
|
-
rb_define_const(eXMLError, "
|
615
|
-
|
616
|
-
rb_define_const(eXMLError, "
|
617
|
-
|
618
|
-
rb_define_const(eXMLError, "
|
619
|
-
|
620
|
-
rb_define_const(eXMLError, "
|
621
|
-
|
622
|
-
rb_define_const(eXMLError, "
|
623
|
-
|
624
|
-
rb_define_const(eXMLError, "
|
625
|
-
|
626
|
-
rb_define_const(eXMLError, "
|
627
|
-
|
628
|
-
rb_define_const(eXMLError, "
|
629
|
-
|
630
|
-
rb_define_const(eXMLError, "
|
631
|
-
|
632
|
-
rb_define_const(eXMLError, "
|
633
|
-
|
634
|
-
rb_define_const(eXMLError, "
|
635
|
-
|
636
|
-
rb_define_const(eXMLError, "
|
637
|
-
|
638
|
-
rb_define_const(eXMLError, "
|
639
|
-
|
640
|
-
rb_define_const(eXMLError, "
|
641
|
-
|
642
|
-
rb_define_const(eXMLError, "
|
643
|
-
|
644
|
-
rb_define_const(eXMLError, "
|
645
|
-
|
646
|
-
rb_define_const(eXMLError, "
|
647
|
-
|
648
|
-
rb_define_const(eXMLError, "
|
649
|
-
|
650
|
-
rb_define_const(eXMLError, "
|
651
|
-
|
652
|
-
rb_define_const(eXMLError, "
|
653
|
-
|
654
|
-
rb_define_const(eXMLError, "
|
655
|
-
|
656
|
-
rb_define_const(eXMLError, "
|
657
|
-
|
658
|
-
rb_define_const(eXMLError, "
|
659
|
-
|
660
|
-
rb_define_const(eXMLError, "
|
661
|
-
|
662
|
-
rb_define_const(eXMLError, "
|
663
|
-
|
664
|
-
rb_define_const(eXMLError, "
|
665
|
-
|
666
|
-
rb_define_const(eXMLError, "
|
667
|
-
|
668
|
-
rb_define_const(eXMLError, "
|
669
|
-
|
670
|
-
rb_define_const(eXMLError, "
|
671
|
-
|
672
|
-
rb_define_const(eXMLError, "
|
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(
|
675
|
-
|
676
|
-
rb_define_const(eXMLError, "
|
677
|
-
|
678
|
-
rb_define_const(eXMLError, "
|
679
|
-
|
680
|
-
rb_define_const(eXMLError, "
|
681
|
-
|
682
|
-
rb_define_const(eXMLError, "
|
683
|
-
|
684
|
-
rb_define_const(eXMLError, "
|
685
|
-
|
686
|
-
rb_define_const(eXMLError, "
|
687
|
-
|
688
|
-
rb_define_const(eXMLError, "
|
689
|
-
|
690
|
-
rb_define_const(eXMLError, "
|
691
|
-
|
692
|
-
rb_define_const(eXMLError, "
|
693
|
-
|
694
|
-
rb_define_const(eXMLError, "
|
695
|
-
|
696
|
-
rb_define_const(eXMLError, "
|
697
|
-
|
698
|
-
rb_define_const(eXMLError, "
|
699
|
-
|
700
|
-
rb_define_const(eXMLError, "
|
701
|
-
|
702
|
-
rb_define_const(eXMLError, "
|
703
|
-
|
704
|
-
rb_define_const(eXMLError, "
|
705
|
-
|
706
|
-
rb_define_const(eXMLError, "
|
707
|
-
|
708
|
-
rb_define_const(eXMLError, "
|
709
|
-
|
710
|
-
rb_define_const(eXMLError, "
|
711
|
-
|
712
|
-
rb_define_const(eXMLError, "
|
713
|
-
|
714
|
-
rb_define_const(eXMLError, "
|
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(
|
717
|
-
|
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",
|
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(
|
722
|
-
|
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(
|
726
|
-
|
727
|
-
rb_define_const(eXMLError, "
|
728
|
-
|
729
|
-
rb_define_const(eXMLError, "
|
730
|
-
|
731
|
-
rb_define_const(eXMLError, "
|
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",
|
734
|
-
|
735
|
-
rb_define_const(eXMLError, "
|
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(
|
739
|
-
|
740
|
-
rb_define_const(eXMLError, "
|
741
|
-
|
742
|
-
rb_define_const(eXMLError, "
|
743
|
-
|
744
|
-
rb_define_const(eXMLError, "
|
745
|
-
|
746
|
-
rb_define_const(eXMLError, "
|
747
|
-
|
748
|
-
rb_define_const(eXMLError, "
|
749
|
-
|
750
|
-
rb_define_const(eXMLError, "
|
751
|
-
|
752
|
-
rb_define_const(eXMLError, "
|
753
|
-
|
754
|
-
rb_define_const(eXMLError, "
|
755
|
-
|
756
|
-
rb_define_const(eXMLError, "
|
757
|
-
|
758
|
-
rb_define_const(eXMLError, "
|
759
|
-
|
760
|
-
rb_define_const(eXMLError, "
|
761
|
-
|
762
|
-
rb_define_const(eXMLError, "
|
763
|
-
|
764
|
-
rb_define_const(eXMLError, "
|
765
|
-
|
766
|
-
rb_define_const(eXMLError, "
|
767
|
-
|
768
|
-
rb_define_const(eXMLError, "
|
769
|
-
|
770
|
-
rb_define_const(eXMLError, "
|
771
|
-
|
772
|
-
rb_define_const(eXMLError, "
|
773
|
-
|
774
|
-
rb_define_const(eXMLError, "
|
775
|
-
|
776
|
-
rb_define_const(eXMLError, "
|
777
|
-
|
778
|
-
rb_define_const(eXMLError, "
|
779
|
-
|
780
|
-
rb_define_const(eXMLError, "
|
781
|
-
|
782
|
-
rb_define_const(eXMLError, "
|
783
|
-
|
784
|
-
rb_define_const(eXMLError, "
|
785
|
-
|
786
|
-
rb_define_const(eXMLError, "
|
787
|
-
|
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(
|
790
|
-
|
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(
|
799
|
-
|
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(
|
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(
|
804
|
-
|
805
|
-
rb_define_const(eXMLError, "
|
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",
|
819
|
-
|
820
|
-
rb_define_const(eXMLError, "
|
821
|
-
|
822
|
-
rb_define_const(eXMLError, "
|
823
|
-
|
824
|
-
rb_define_const(eXMLError, "
|
825
|
-
|
826
|
-
rb_define_const(eXMLError, "
|
827
|
-
|
828
|
-
rb_define_const(eXMLError, "
|
829
|
-
|
830
|
-
rb_define_const(eXMLError, "
|
831
|
-
|
832
|
-
rb_define_const(eXMLError, "
|
833
|
-
|
834
|
-
rb_define_const(eXMLError, "
|
835
|
-
|
836
|
-
rb_define_const(eXMLError, "
|
837
|
-
|
838
|
-
rb_define_const(eXMLError, "
|
839
|
-
|
840
|
-
rb_define_const(eXMLError, "
|
841
|
-
|
842
|
-
rb_define_const(eXMLError, "
|
843
|
-
|
844
|
-
rb_define_const(eXMLError, "
|
845
|
-
|
846
|
-
rb_define_const(eXMLError, "
|
847
|
-
|
848
|
-
rb_define_const(eXMLError, "
|
849
|
-
|
850
|
-
rb_define_const(eXMLError, "
|
851
|
-
|
852
|
-
rb_define_const(eXMLError, "
|
853
|
-
|
854
|
-
rb_define_const(eXMLError, "
|
855
|
-
|
856
|
-
rb_define_const(eXMLError, "
|
857
|
-
|
858
|
-
rb_define_const(eXMLError, "
|
859
|
-
|
860
|
-
rb_define_const(eXMLError, "
|
861
|
-
|
862
|
-
rb_define_const(eXMLError, "
|
863
|
-
|
864
|
-
rb_define_const(eXMLError, "
|
865
|
-
|
866
|
-
rb_define_const(eXMLError, "
|
867
|
-
|
868
|
-
rb_define_const(eXMLError, "
|
869
|
-
|
870
|
-
rb_define_const(eXMLError, "
|
871
|
-
|
872
|
-
rb_define_const(eXMLError, "
|
873
|
-
|
874
|
-
rb_define_const(eXMLError, "
|
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(
|
878
|
-
|
879
|
-
rb_define_const(eXMLError, "
|
880
|
-
|
881
|
-
rb_define_const(eXMLError, "
|
882
|
-
|
883
|
-
rb_define_const(eXMLError, "
|
884
|
-
|
885
|
-
rb_define_const(eXMLError, "
|
886
|
-
|
887
|
-
rb_define_const(eXMLError, "
|
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(
|
890
|
-
|
891
|
-
rb_define_const(eXMLError, "
|
892
|
-
|
893
|
-
rb_define_const(eXMLError, "
|
894
|
-
|
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",
|
897
|
-
|
898
|
-
rb_define_const(eXMLError, "
|
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(
|
926
|
-
|
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",
|
929
|
-
|
930
|
-
rb_define_const(eXMLError, "
|
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(
|
933
|
-
|
934
|
-
rb_define_const(eXMLError, "
|
935
|
-
|
936
|
-
rb_define_const(eXMLError, "
|
937
|
-
|
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(
|
950
|
-
|
951
|
-
rb_define_const(eXMLError, "
|
952
|
-
|
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(
|
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",
|
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(
|
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));
|