libxml-ruby 0.6.0-x86-mswin32-60 → 0.7.0-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +42 -0
- data/README +123 -117
- data/doc/classes/XML.html +226 -0
- data/doc/classes/XML/Attr.html +969 -0
- data/doc/classes/XML/Attributes.html +487 -0
- data/doc/classes/XML/Document.html +1423 -0
- data/doc/classes/XML/Dtd.html +159 -0
- data/doc/classes/XML/Error.html +111 -0
- data/doc/classes/XML/HTMLParser.html +330 -0
- data/doc/classes/XML/InputCallbacks.html +154 -0
- data/doc/classes/XML/NS.html +366 -0
- data/doc/classes/XML/Node.html +3292 -0
- data/doc/classes/XML/Node/FailedModify.html +111 -0
- data/doc/classes/XML/Node/Set.html +435 -0
- data/doc/classes/XML/Node/SetNamespace.html +111 -0
- data/doc/classes/XML/Node/UnknownType.html +111 -0
- data/doc/classes/XML/Parser.html +2178 -0
- data/doc/classes/XML/Parser/Context.html +1233 -0
- data/doc/classes/XML/Parser/ParseError.html +111 -0
- data/doc/classes/XML/Reader.html +2173 -0
- data/doc/classes/XML/SaxParser.html +396 -0
- data/doc/classes/XML/SiblingEnum.html +142 -0
- data/doc/classes/XML/State.html +118 -0
- data/doc/classes/XML/Tree.html +224 -0
- data/doc/classes/XML/XInclude.html +117 -0
- data/doc/classes/XML/XInclude/Error.html +111 -0
- data/doc/classes/XML/XMLParserOptions.html +198 -0
- data/doc/classes/XML/XPath.html +269 -0
- data/doc/classes/XML/XPath/Context.html +193 -0
- data/doc/classes/XML/XPath/InvalidPath.html +111 -0
- data/doc/classes/XML/XPath/Object.html +439 -0
- data/doc/classes/XML/XPointer.html +164 -0
- data/doc/classes/XML/XPointer/Context.html +117 -0
- data/doc/classes/XML/XPointer/Context/InvalidPath.html +111 -0
- data/doc/classes/XML/XPointer/InvalidExpression.html +111 -0
- data/doc/classes/singleton.html +114 -0
- data/doc/created.rid +1 -0
- data/doc/files/CHANGES.html +375 -0
- data/doc/files/LICENSE.html +133 -0
- data/doc/files/README.html +279 -0
- data/doc/files/VERSION.html +107 -0
- data/doc/files/ext/libxml/cbg_c.html +101 -0
- data/doc/files/ext/libxml/libxml_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_attr_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_attributes_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_document_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_dtd_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_html_parser_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_input_cbg_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_node_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_node_set_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_ns_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_parser_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_parser_context_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_reader_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_sax_parser_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_schema_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_state_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_tree_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xinclude_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpath_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpath_context_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpath_object_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpointer_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpointer_context_c.html +101 -0
- data/doc/files/lib/libxml_rb.html +115 -0
- data/doc/files/lib/xml/libxml_rb.html +114 -0
- data/doc/fr_class_index.html +60 -0
- data/doc/fr_file_index.html +56 -0
- data/doc/fr_method_index.html +373 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/ext/libxml/cbg.c +76 -76
- data/ext/libxml/extconf.rb +308 -308
- data/ext/libxml/libxml.c +58 -62
- data/ext/libxml/ruby_libxml.h +1 -0
- data/ext/libxml/ruby_xml_attr.c +201 -113
- data/ext/libxml/ruby_xml_attr.h +6 -9
- data/ext/libxml/ruby_xml_attributes.c +268 -0
- data/ext/libxml/ruby_xml_attributes.h +17 -0
- data/ext/libxml/ruby_xml_document.c +80 -66
- data/ext/libxml/ruby_xml_dtd.c +2 -2
- data/ext/libxml/ruby_xml_dtd.h +17 -17
- data/ext/libxml/ruby_xml_html_parser.c +18 -19
- data/ext/libxml/ruby_xml_html_parser.h +29 -29
- data/ext/libxml/ruby_xml_input_cbg.c +6 -0
- data/ext/libxml/ruby_xml_input_cbg.h +20 -20
- data/ext/libxml/ruby_xml_node.c +438 -536
- data/ext/libxml/ruby_xml_node.h +17 -27
- data/ext/libxml/ruby_xml_node_set.c +10 -9
- data/ext/libxml/ruby_xml_node_set.h +20 -20
- data/ext/libxml/ruby_xml_ns.c +60 -69
- data/ext/libxml/ruby_xml_ns.h +12 -21
- data/ext/libxml/ruby_xml_parser.c +54 -53
- data/ext/libxml/ruby_xml_parser.h +31 -31
- data/ext/libxml/ruby_xml_parser_context.c +37 -91
- data/ext/libxml/ruby_xml_parser_context.h +20 -22
- data/ext/libxml/ruby_xml_reader.h +14 -14
- data/ext/libxml/ruby_xml_sax_parser.c +55 -55
- data/ext/libxml/ruby_xml_sax_parser.h +56 -56
- data/ext/libxml/ruby_xml_schema.c +44 -51
- data/ext/libxml/ruby_xml_schema.h +16 -16
- data/ext/libxml/ruby_xml_state.c +35 -96
- data/ext/libxml/ruby_xml_state.h +2 -3
- data/ext/libxml/ruby_xml_tree.h +12 -12
- data/ext/libxml/ruby_xml_xinclude.h +13 -13
- data/ext/libxml/ruby_xml_xpath.c +57 -18
- data/ext/libxml/ruby_xml_xpath.h +23 -23
- data/ext/libxml/ruby_xml_xpath_context.c +11 -7
- data/ext/libxml/ruby_xml_xpath_context.h +20 -20
- data/ext/libxml/ruby_xml_xpath_object.c +9 -16
- data/ext/libxml/ruby_xml_xpath_object.h +4 -10
- data/ext/libxml/ruby_xml_xpointer.c +11 -11
- data/ext/libxml/ruby_xml_xpointer.h +27 -27
- data/ext/libxml/ruby_xml_xpointer_context.h +18 -18
- data/ext/libxml/version.h +2 -2
- data/lib/libxml.rb +134 -125
- data/lib/libxml_ruby.so +0 -0
- data/mingw/libiconv-2.dll +0 -0
- data/mingw/libxml2-2.dll +0 -0
- data/mingw/libxml_ruby.so +0 -0
- data/test/ets_copy_bug.rb +1 -1
- data/test/ets_copy_bug2.rb +16 -27
- data/test/ets_doc_to_s.rb +1 -1
- data/test/ets_gpx.rb +1 -1
- data/test/ets_node_gc.rb +1 -1
- data/test/ets_tsr.rb +1 -1
- data/test/tc_well_formed.rb +1 -1
- data/test/tc_xml_attributes.rb +106 -0
- data/test/tc_xml_document.rb +10 -10
- data/test/tc_xml_document_write3.rb +1 -1
- data/test/tc_xml_dtd.rb +49 -0
- data/test/tc_xml_html_parser.rb +3 -3
- data/test/tc_xml_node.rb +69 -33
- data/test/tc_xml_node_attr.rb +170 -0
- data/test/{tc_xml_node8.rb → tc_xml_node_cdata.rb} +2 -2
- data/test/{tc_xml_node9.rb → tc_xml_node_comment.rb} +3 -3
- data/test/tc_xml_node_edit.rb +91 -0
- data/test/tc_xml_parser.rb +97 -50
- data/test/tc_xml_parser_context.rb +61 -23
- data/test/tc_xml_schema.rb +39 -0
- data/test/tc_xml_xinclude.rb +5 -6
- data/test/tc_xml_xpath.rb +51 -27
- data/test/test_suite.rb +27 -0
- data/vc/{libxml.sln → libxml_ruby.sln} +5 -5
- data/vc/{libxml.vcproj → libxml_ruby.vcproj} +9 -1
- metadata +106 -54
- data/mingw/mingw.rake +0 -36
- data/test/dtd-test.rb +0 -24
- data/test/merge_bug.rb +0 -55
- data/test/schema-test.rb +0 -74
- data/test/tc_xml_node2.rb +0 -25
- data/test/tc_xml_node3.rb +0 -27
- data/test/tc_xml_node4.rb +0 -86
- data/test/tc_xml_node5.rb +0 -52
- data/test/tc_xml_node6.rb +0 -27
- data/test/tc_xml_node7.rb +0 -35
- data/test/tc_xml_parser2.rb +0 -16
- data/test/tc_xml_parser3.rb +0 -23
- data/test/tc_xml_parser4.rb +0 -33
- data/test/tc_xml_parser5.rb +0 -27
- data/test/tc_xml_parser6.rb +0 -23
- data/test/tc_xml_parser7.rb +0 -28
- data/test/tc_xml_parser8.rb +0 -32
- data/test/tc_xml_parser9.rb +0 -11
- data/test/tc_xml_xpath2.rb +0 -14
- data/work/vc/debug/libxml.exp +0 -0
- data/work/vc/debug/libxml.ilk +0 -0
- data/work/vc/debug/libxml.lib +0 -0
- data/work/vc/debug/libxml.pdb +0 -0
- data/work/vc/debug/libxml.so +0 -0
@@ -1,31 +1,31 @@
|
|
1
|
-
/* $Id: ruby_xml_parser.h 39 2006-02-21 20:40:16Z roscopeco $ */
|
2
|
-
|
3
|
-
/* Please see the LICENSE file for copyright and distribution information */
|
4
|
-
|
5
|
-
#ifndef __RUBY_XML_PARSER__
|
6
|
-
#define __RUBY_XML_PARSER__
|
7
|
-
|
8
|
-
#define MAX_LIBXML_FEATURES_LEN 50
|
9
|
-
|
10
|
-
extern int ruby_xml_parser_count;
|
11
|
-
extern VALUE cXMLParser;
|
12
|
-
extern VALUE eXMLParserParseError;
|
13
|
-
|
14
|
-
typedef struct ruby_xml_parser {
|
15
|
-
VALUE ctxt;
|
16
|
-
int parsed;
|
17
|
-
void *data;
|
18
|
-
int data_type;
|
19
|
-
} ruby_xml_parser;
|
20
|
-
|
21
|
-
VALUE ruby_xml_parser_default_load_external_dtd_set(VALUE class, VALUE bool);
|
22
|
-
VALUE ruby_xml_parser_default_substitute_entities_set(VALUE class, VALUE bool);
|
23
|
-
VALUE ruby_xml_parser_features(VALUE self);
|
24
|
-
VALUE ruby_xml_parser_filename_get(VALUE self);
|
25
|
-
VALUE ruby_xml_parser_filename_set(VALUE self, VALUE filename);
|
26
|
-
VALUE ruby_xml_parser_new(VALUE class);
|
27
|
-
VALUE ruby_xml_parser_parse(VALUE self);
|
28
|
-
VALUE ruby_xml_parser_str_get(VALUE self);
|
29
|
-
VALUE ruby_xml_parser_str_set(VALUE self, VALUE str);
|
30
|
-
|
31
|
-
#endif
|
1
|
+
/* $Id: ruby_xml_parser.h 39 2006-02-21 20:40:16Z roscopeco $ */
|
2
|
+
|
3
|
+
/* Please see the LICENSE file for copyright and distribution information */
|
4
|
+
|
5
|
+
#ifndef __RUBY_XML_PARSER__
|
6
|
+
#define __RUBY_XML_PARSER__
|
7
|
+
|
8
|
+
#define MAX_LIBXML_FEATURES_LEN 50
|
9
|
+
|
10
|
+
extern int ruby_xml_parser_count;
|
11
|
+
extern VALUE cXMLParser;
|
12
|
+
extern VALUE eXMLParserParseError;
|
13
|
+
|
14
|
+
typedef struct ruby_xml_parser {
|
15
|
+
VALUE ctxt;
|
16
|
+
int parsed;
|
17
|
+
void *data;
|
18
|
+
int data_type;
|
19
|
+
} ruby_xml_parser;
|
20
|
+
|
21
|
+
VALUE ruby_xml_parser_default_load_external_dtd_set(VALUE class, VALUE bool);
|
22
|
+
VALUE ruby_xml_parser_default_substitute_entities_set(VALUE class, VALUE bool);
|
23
|
+
VALUE ruby_xml_parser_features(VALUE self);
|
24
|
+
VALUE ruby_xml_parser_filename_get(VALUE self);
|
25
|
+
VALUE ruby_xml_parser_filename_set(VALUE self, VALUE filename);
|
26
|
+
VALUE ruby_xml_parser_new(VALUE class);
|
27
|
+
VALUE ruby_xml_parser_parse(VALUE self);
|
28
|
+
VALUE ruby_xml_parser_str_get(VALUE self);
|
29
|
+
VALUE ruby_xml_parser_str_set(VALUE self, VALUE str);
|
30
|
+
|
31
|
+
#endif
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/* $Id: ruby_xml_parser_context.c
|
1
|
+
/* $Id: ruby_xml_parser_context.c 344 2008-07-09 16:15:31Z cfis $ */
|
2
2
|
|
3
3
|
/* Please see the LICENSE file for copyright and distribution information */
|
4
4
|
|
@@ -18,7 +18,7 @@ VALUE cXMLParserContext;
|
|
18
18
|
|
19
19
|
/*
|
20
20
|
* call-seq:
|
21
|
-
* context.data_directory
|
21
|
+
* context.data_directory -> "dir"
|
22
22
|
*
|
23
23
|
* Obtain the data directory associated with this context.
|
24
24
|
*/
|
@@ -36,7 +36,7 @@ ruby_xml_parser_context_data_directory_get(VALUE self) {
|
|
36
36
|
|
37
37
|
/*
|
38
38
|
* call-seq:
|
39
|
-
* context.depth
|
39
|
+
* context.depth -> num
|
40
40
|
*
|
41
41
|
* Obtain the depth of this context.
|
42
42
|
*/
|
@@ -51,7 +51,7 @@ ruby_xml_parser_context_depth_get(VALUE self) {
|
|
51
51
|
|
52
52
|
/*
|
53
53
|
* call-seq:
|
54
|
-
* context.disable_sax?
|
54
|
+
* context.disable_sax? -> (true|false)
|
55
55
|
*
|
56
56
|
* Determine whether SAX-based processing is disabled
|
57
57
|
* in this context.
|
@@ -68,27 +68,10 @@ ruby_xml_parser_context_disable_sax_q(VALUE self) {
|
|
68
68
|
}
|
69
69
|
|
70
70
|
|
71
|
-
/*
|
72
|
-
* call-seq:
|
73
|
-
* context.doc => document
|
74
|
-
*
|
75
|
-
* Obtain the +XML::Document+ associated with this context.
|
76
|
-
*/
|
77
|
-
VALUE
|
78
|
-
ruby_xml_parser_context_doc_get(VALUE self) {
|
79
|
-
ruby_xml_parser_context *rxpc;
|
80
|
-
Data_Get_Struct(self, ruby_xml_parser_context, rxpc);
|
81
|
-
|
82
|
-
if (rxpc->ctxt->myDoc == NULL)
|
83
|
-
return(Qnil);
|
84
|
-
|
85
|
-
return(ruby_xml_document_wrap(rxpc->ctxt->myDoc));
|
86
|
-
}
|
87
|
-
|
88
71
|
|
89
72
|
/*
|
90
73
|
* call-seq:
|
91
|
-
* context.docbook?
|
74
|
+
* context.docbook? -> (true|false)
|
92
75
|
*
|
93
76
|
* Determine whether this is a docbook context.
|
94
77
|
*/
|
@@ -106,7 +89,7 @@ ruby_xml_parser_context_docbook_q(VALUE self) {
|
|
106
89
|
|
107
90
|
/*
|
108
91
|
* call-seq:
|
109
|
-
* context.encoding
|
92
|
+
* context.encoding -> "encoding"
|
110
93
|
*
|
111
94
|
* Obtain the character encoding identifier used in
|
112
95
|
* this context.
|
@@ -125,7 +108,7 @@ ruby_xml_parser_context_encoding_get(VALUE self) {
|
|
125
108
|
|
126
109
|
/*
|
127
110
|
* call-seq:
|
128
|
-
* context.errno
|
111
|
+
* context.errno -> num
|
129
112
|
*
|
130
113
|
* Obtain the last-error number in this context.
|
131
114
|
*/
|
@@ -148,15 +131,10 @@ ruby_xml_parser_context_free(ruby_xml_parser_context *rxpc) {
|
|
148
131
|
ruby_xfree(rxpc);
|
149
132
|
}
|
150
133
|
|
151
|
-
void
|
152
|
-
ruby_xml_parser_context_mark(void *v) {
|
153
|
-
if ( v == NULL ) return;
|
154
|
-
ruby_xml_state_marker();
|
155
|
-
}
|
156
134
|
|
157
135
|
/*
|
158
136
|
* call-seq:
|
159
|
-
* context.html?
|
137
|
+
* context.html? -> (true|false)
|
160
138
|
*
|
161
139
|
* Determine whether this is an html context.
|
162
140
|
*/
|
@@ -174,7 +152,7 @@ ruby_xml_parser_context_html_q(VALUE self) {
|
|
174
152
|
|
175
153
|
/*
|
176
154
|
* call-seq:
|
177
|
-
* context.max_num_streams
|
155
|
+
* context.max_num_streams -> num
|
178
156
|
*
|
179
157
|
* Obtain the limit on the number of IO streams opened in
|
180
158
|
* this context.
|
@@ -191,7 +169,7 @@ ruby_xml_parser_context_io_max_num_streams_get(VALUE self) {
|
|
191
169
|
|
192
170
|
/*
|
193
171
|
* call-seq:
|
194
|
-
* context.num_streams
|
172
|
+
* context.num_streams -> "dir"
|
195
173
|
*
|
196
174
|
* Obtain the actual number of IO streams in this
|
197
175
|
* context.
|
@@ -207,7 +185,7 @@ ruby_xml_parser_context_io_num_streams_get(VALUE self) {
|
|
207
185
|
|
208
186
|
/*
|
209
187
|
* call-seq:
|
210
|
-
* context.keep_blanks?
|
188
|
+
* context.keep_blanks? -> (true|false)
|
211
189
|
*
|
212
190
|
* Determine whether parsers in this context retain
|
213
191
|
* whitespace.
|
@@ -226,7 +204,7 @@ ruby_xml_parser_context_keep_blanks_q(VALUE self) {
|
|
226
204
|
|
227
205
|
/*
|
228
206
|
* call-seq:
|
229
|
-
* context.name_depth
|
207
|
+
* context.name_depth -> num
|
230
208
|
*
|
231
209
|
* Obtain the name depth for this context.
|
232
210
|
*/
|
@@ -241,7 +219,7 @@ ruby_xml_parser_context_name_depth_get(VALUE self) {
|
|
241
219
|
|
242
220
|
/*
|
243
221
|
* call-seq:
|
244
|
-
* context.name_depth_max
|
222
|
+
* context.name_depth_max -> num
|
245
223
|
*
|
246
224
|
* Obtain the maximum name depth for this context.
|
247
225
|
*/
|
@@ -256,7 +234,7 @@ ruby_xml_parser_context_name_depth_max_get(VALUE self) {
|
|
256
234
|
|
257
235
|
/*
|
258
236
|
* call-seq:
|
259
|
-
* context.name_node
|
237
|
+
* context.name_node -> "name"
|
260
238
|
*
|
261
239
|
* Obtain the name node for this context.
|
262
240
|
*/
|
@@ -274,7 +252,7 @@ ruby_xml_parser_context_name_node_get(VALUE self) {
|
|
274
252
|
|
275
253
|
/*
|
276
254
|
* call-seq:
|
277
|
-
* context.name_tab
|
255
|
+
* context.name_tab -> ["name", ..., "name"]
|
278
256
|
*
|
279
257
|
* Obtain the name table for this context.
|
280
258
|
*/
|
@@ -304,7 +282,7 @@ ruby_xml_parser_context_name_tab_get(VALUE self) {
|
|
304
282
|
|
305
283
|
/*
|
306
284
|
* call-seq:
|
307
|
-
* context.node_depth
|
285
|
+
* context.node_depth -> num
|
308
286
|
*
|
309
287
|
* Obtain the node depth for this context.
|
310
288
|
*/
|
@@ -319,7 +297,7 @@ ruby_xml_parser_context_node_depth_get(VALUE self) {
|
|
319
297
|
|
320
298
|
/*
|
321
299
|
* call-seq:
|
322
|
-
* context.node
|
300
|
+
* context.node -> node
|
323
301
|
*
|
324
302
|
* Obtain the root node of this context.
|
325
303
|
*/
|
@@ -338,7 +316,7 @@ ruby_xml_parser_context_node_get(VALUE self) {
|
|
338
316
|
|
339
317
|
/*
|
340
318
|
* call-seq:
|
341
|
-
* context.node_depth_max
|
319
|
+
* context.node_depth_max -> num
|
342
320
|
*
|
343
321
|
* Obtain the maximum node depth for this context.
|
344
322
|
*/
|
@@ -353,7 +331,7 @@ ruby_xml_parser_context_node_depth_max_get(VALUE self) {
|
|
353
331
|
|
354
332
|
/*
|
355
333
|
* call-seq:
|
356
|
-
* context.num_chars
|
334
|
+
* context.num_chars -> num
|
357
335
|
*
|
358
336
|
* Obtain the number of characters in this context.
|
359
337
|
*/
|
@@ -367,31 +345,15 @@ ruby_xml_parser_context_num_chars_get(VALUE self) {
|
|
367
345
|
|
368
346
|
|
369
347
|
VALUE
|
370
|
-
ruby_xml_parser_context_new(
|
371
|
-
ruby_xml_parser_context *rxpc;
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
rxpc->ctxt = ctxt;
|
376
|
-
return Data_Wrap_Struct(class,
|
377
|
-
ruby_xml_parser_context_mark,
|
348
|
+
ruby_xml_parser_context_new() {
|
349
|
+
ruby_xml_parser_context *rxpc = ALLOC(ruby_xml_parser_context);
|
350
|
+
return Data_Wrap_Struct(cXMLParserContext,
|
351
|
+
NULL,
|
378
352
|
ruby_xml_parser_context_free,
|
379
353
|
rxpc);
|
380
354
|
}
|
381
355
|
|
382
356
|
|
383
|
-
VALUE
|
384
|
-
ruby_xml_parser_context_new2(VALUE class) {
|
385
|
-
return(ruby_xml_parser_context_new(class, NULL));
|
386
|
-
}
|
387
|
-
|
388
|
-
|
389
|
-
VALUE
|
390
|
-
ruby_xml_parser_context_new3() {
|
391
|
-
return(ruby_xml_parser_context_new2(cXMLParserContext));
|
392
|
-
}
|
393
|
-
|
394
|
-
|
395
357
|
VALUE
|
396
358
|
ruby_xml_parser_context_options_set(VALUE self, VALUE options) {
|
397
359
|
ruby_xml_parser_context *rxpc;
|
@@ -412,7 +374,7 @@ ruby_xml_parser_context_options_get(VALUE self) {
|
|
412
374
|
|
413
375
|
/*
|
414
376
|
* call-seq:
|
415
|
-
* context.replace_entities?
|
377
|
+
* context.replace_entities? -> (true|false)
|
416
378
|
*
|
417
379
|
* Determine whether external entity replacement is enabled in this
|
418
380
|
* context.
|
@@ -450,23 +412,9 @@ ruby_xml_parser_context_replace_entities_set(VALUE self, VALUE bool) {
|
|
450
412
|
}
|
451
413
|
}
|
452
414
|
|
453
|
-
|
454
|
-
/*
|
455
|
-
* call-seq:
|
456
|
-
* context.reset
|
457
|
-
*
|
458
|
-
* Resets the parser context.
|
459
|
-
*/
|
460
|
-
VALUE
|
461
|
-
ruby_xml_parser_context_reset(VALUE self) {
|
462
|
-
ruby_xml_parser_context *rxpc;
|
463
|
-
Data_Get_Struct(self, ruby_xml_parser_context, rxpc);
|
464
|
-
xmlCtxtReset(rxpc->ctxt);
|
465
|
-
}
|
466
|
-
|
467
415
|
/*
|
468
416
|
* call-seq:
|
469
|
-
* context.space_depth
|
417
|
+
* context.space_depth -> num
|
470
418
|
*
|
471
419
|
* Obtain the space depth for this context.
|
472
420
|
*/
|
@@ -481,7 +429,7 @@ ruby_xml_parser_context_space_depth_get(VALUE self) {
|
|
481
429
|
|
482
430
|
/*
|
483
431
|
* call-seq:
|
484
|
-
* context.space_depth
|
432
|
+
* context.space_depth -> num
|
485
433
|
*
|
486
434
|
* Obtain the maximum space depth for this context.
|
487
435
|
*/
|
@@ -496,7 +444,7 @@ ruby_xml_parser_context_space_depth_max_get(VALUE self) {
|
|
496
444
|
|
497
445
|
/*
|
498
446
|
* call-seq:
|
499
|
-
* context.subset_external?
|
447
|
+
* context.subset_external? -> (true|false)
|
500
448
|
*
|
501
449
|
* Determine whether this context is a subset of an
|
502
450
|
* external context.
|
@@ -515,7 +463,7 @@ ruby_xml_parser_context_subset_external_q(VALUE self) {
|
|
515
463
|
|
516
464
|
/*
|
517
465
|
* call-seq:
|
518
|
-
* context.subset_internal?
|
466
|
+
* context.subset_internal? -> (true|false)
|
519
467
|
*
|
520
468
|
* Determine whether this context is a subset of an
|
521
469
|
* internal context.
|
@@ -534,7 +482,7 @@ ruby_xml_parser_context_subset_internal_q(VALUE self) {
|
|
534
482
|
|
535
483
|
/*
|
536
484
|
* call-seq:
|
537
|
-
* context.subset_name
|
485
|
+
* context.subset_name -> "name"
|
538
486
|
*
|
539
487
|
* Obtain this context's subset name (valid only if
|
540
488
|
* either of subset_external? or subset_internal?
|
@@ -554,7 +502,7 @@ ruby_xml_parser_context_subset_name_get(VALUE self) {
|
|
554
502
|
|
555
503
|
/*
|
556
504
|
* call-seq:
|
557
|
-
* context.subset_external_uri
|
505
|
+
* context.subset_external_uri -> "uri"
|
558
506
|
*
|
559
507
|
* Obtain this context's external subset URI. (valid only if
|
560
508
|
* either of subset_external? or subset_internal?
|
@@ -574,7 +522,7 @@ ruby_xml_parser_context_subset_external_uri_get(VALUE self) {
|
|
574
522
|
|
575
523
|
/*
|
576
524
|
* call-seq:
|
577
|
-
* context.subset_external_system_id
|
525
|
+
* context.subset_external_system_id -> "system_id"
|
578
526
|
*
|
579
527
|
* Obtain this context's external subset system identifier.
|
580
528
|
* (valid only if either of subset_external? or subset_internal?
|
@@ -594,7 +542,7 @@ ruby_xml_parser_context_subset_external_system_id_get(VALUE self) {
|
|
594
542
|
|
595
543
|
/*
|
596
544
|
* call-seq:
|
597
|
-
* context.standalone?
|
545
|
+
* context.standalone? -> (true|false)
|
598
546
|
*
|
599
547
|
* Determine whether this is a standalone context.
|
600
548
|
*/
|
@@ -612,7 +560,7 @@ ruby_xml_parser_context_standalone_q(VALUE self) {
|
|
612
560
|
|
613
561
|
/*
|
614
562
|
* call-seq:
|
615
|
-
* context.stats?
|
563
|
+
* context.stats? -> (true|false)
|
616
564
|
*
|
617
565
|
* Determine whether this context maintains statistics.
|
618
566
|
*/
|
@@ -630,7 +578,7 @@ ruby_xml_parser_context_stats_q(VALUE self) {
|
|
630
578
|
|
631
579
|
/*
|
632
580
|
* call-seq:
|
633
|
-
* context.valid?
|
581
|
+
* context.valid? -> (true|false)
|
634
582
|
*
|
635
583
|
* Determine whether this context is valid.
|
636
584
|
*/
|
@@ -648,7 +596,7 @@ ruby_xml_parser_context_valid_q(VALUE self) {
|
|
648
596
|
|
649
597
|
/*
|
650
598
|
* call-seq:
|
651
|
-
* context.validate?
|
599
|
+
* context.validate? -> (true|false)
|
652
600
|
*
|
653
601
|
* Determine whether validation is enabled in this context.
|
654
602
|
*/
|
@@ -666,7 +614,7 @@ ruby_xml_parser_context_validate_q(VALUE self) {
|
|
666
614
|
|
667
615
|
/*
|
668
616
|
* call-seq:
|
669
|
-
* context.version
|
617
|
+
* context.version -> "version"
|
670
618
|
*
|
671
619
|
* Obtain this context's version identifier.
|
672
620
|
*/
|
@@ -684,7 +632,7 @@ ruby_xml_parser_context_version_get(VALUE self) {
|
|
684
632
|
|
685
633
|
/*
|
686
634
|
* call-seq:
|
687
|
-
* context.well_formed?
|
635
|
+
* context.well_formed? -> (true|false)
|
688
636
|
*
|
689
637
|
* Determine whether this context contains well-formed XML.
|
690
638
|
*/
|
@@ -713,7 +661,6 @@ ruby_init_xml_parser_context(void) {
|
|
713
661
|
rb_define_method(cXMLParserContext, "data_directory", ruby_xml_parser_context_data_directory_get, 0);
|
714
662
|
rb_define_method(cXMLParserContext, "depth", ruby_xml_parser_context_depth_get, 0);
|
715
663
|
rb_define_method(cXMLParserContext, "disable_sax?", ruby_xml_parser_context_disable_sax_q, 0);
|
716
|
-
rb_define_method(cXMLParserContext, "doc", ruby_xml_parser_context_doc_get, 0);
|
717
664
|
rb_define_method(cXMLParserContext, "docbook?", ruby_xml_parser_context_docbook_q, 0);
|
718
665
|
rb_define_method(cXMLParserContext, "encoding", ruby_xml_parser_context_encoding_get, 0);
|
719
666
|
rb_define_method(cXMLParserContext, "errno", ruby_xml_parser_context_errno_get, 0);
|
@@ -733,7 +680,6 @@ ruby_init_xml_parser_context(void) {
|
|
733
680
|
rb_define_method(cXMLParserContext, "options=", ruby_xml_parser_context_options_set, 1);
|
734
681
|
rb_define_method(cXMLParserContext, "replace_entities?", ruby_xml_parser_context_replace_entities_q, 0);
|
735
682
|
rb_define_method(cXMLParserContext, "replace_entities=", ruby_xml_parser_context_replace_entities_set, 1);
|
736
|
-
rb_define_method(cXMLParserContext, "reset", ruby_xml_parser_context_reset, 0);
|
737
683
|
rb_define_method(cXMLParserContext, "space_depth", ruby_xml_parser_context_space_depth_get, 0);
|
738
684
|
rb_define_method(cXMLParserContext, "space_depth_max", ruby_xml_parser_context_space_depth_max_get, 0);
|
739
685
|
rb_define_method(cXMLParserContext, "subset_external?", ruby_xml_parser_context_subset_external_q, 0);
|
@@ -1,22 +1,20 @@
|
|
1
|
-
/* $Id: ruby_xml_parser_context.h
|
2
|
-
|
3
|
-
/* Please see the LICENSE file for copyright and distribution information */
|
4
|
-
|
5
|
-
#ifndef __RUBY_XML_PARSER_CONTEXT__
|
6
|
-
#define __RUBY_XML_PARSER_CONTEXT__
|
7
|
-
|
8
|
-
extern VALUE cXMLParserContext;
|
9
|
-
|
10
|
-
typedef struct ruby_xml_parser_context {
|
11
|
-
xmlParserCtxtPtr ctxt;
|
12
|
-
int is_ptr;
|
13
|
-
} ruby_xml_parser_context;
|
14
|
-
|
15
|
-
void ruby_xml_parser_context_free(ruby_xml_parser_context *ctxt);
|
16
|
-
void ruby_init_xml_parser_context(void);
|
17
|
-
VALUE ruby_xml_parser_context_new(
|
18
|
-
VALUE
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
#endif
|
1
|
+
/* $Id: ruby_xml_parser_context.h 319 2008-07-08 07:40:27Z cfis $ */
|
2
|
+
|
3
|
+
/* Please see the LICENSE file for copyright and distribution information */
|
4
|
+
|
5
|
+
#ifndef __RUBY_XML_PARSER_CONTEXT__
|
6
|
+
#define __RUBY_XML_PARSER_CONTEXT__
|
7
|
+
|
8
|
+
extern VALUE cXMLParserContext;
|
9
|
+
|
10
|
+
typedef struct ruby_xml_parser_context {
|
11
|
+
xmlParserCtxtPtr ctxt;
|
12
|
+
int is_ptr;
|
13
|
+
} ruby_xml_parser_context;
|
14
|
+
|
15
|
+
void ruby_xml_parser_context_free(ruby_xml_parser_context *ctxt);
|
16
|
+
void ruby_init_xml_parser_context(void);
|
17
|
+
VALUE ruby_xml_parser_context_new();
|
18
|
+
VALUE ruby_xml_parser_context_each(VALUE self);
|
19
|
+
|
20
|
+
#endif
|