libxml-ruby 0.8.3-x86-mswin32-60 → 0.9.0-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +18 -0
- data/RAKEFILE +15 -39
- data/README +48 -47
- data/ext/libxml/libxml.c +847 -22
- data/ext/libxml/ruby_libxml.h +71 -95
- data/ext/libxml/ruby_xml_attr.c +500 -500
- data/ext/libxml/ruby_xml_attributes.c +1 -1
- data/ext/libxml/ruby_xml_document.c +1144 -1135
- data/ext/libxml/ruby_xml_document.h +4 -11
- data/ext/libxml/ruby_xml_dtd.c +27 -0
- data/ext/libxml/ruby_xml_encoding.c +164 -0
- data/ext/libxml/ruby_xml_encoding.h +13 -0
- data/ext/libxml/ruby_xml_error.c +941 -0
- data/ext/libxml/ruby_xml_error.h +13 -0
- data/ext/libxml/ruby_xml_html_parser.c +71 -387
- data/ext/libxml/ruby_xml_html_parser.h +1 -17
- data/ext/libxml/ruby_xml_input.c +179 -0
- data/ext/libxml/ruby_xml_input.h +18 -0
- data/ext/libxml/ruby_xml_input_cbg.c +17 -3
- data/ext/libxml/ruby_xml_node.c +1566 -1582
- data/ext/libxml/ruby_xml_node.h +1 -4
- data/ext/libxml/ruby_xml_ns.c +14 -3
- data/ext/libxml/ruby_xml_parser.c +164 -1398
- data/ext/libxml/ruby_xml_parser.h +5 -17
- data/ext/libxml/ruby_xml_parser_context.c +131 -169
- data/ext/libxml/ruby_xml_parser_context.h +2 -9
- data/ext/libxml/ruby_xml_reader.c +910 -945
- data/ext/libxml/ruby_xml_relaxng.c +32 -3
- data/ext/libxml/ruby_xml_sax_parser.c +106 -364
- data/ext/libxml/ruby_xml_sax_parser.h +1 -37
- data/ext/libxml/ruby_xml_schema.c +174 -145
- data/ext/libxml/ruby_xml_xinclude.c +9 -5
- data/ext/libxml/ruby_xml_xpath.c +25 -6
- data/ext/libxml/ruby_xml_xpath.h +1 -2
- data/ext/libxml/ruby_xml_xpath_context.c +17 -19
- data/ext/libxml/ruby_xml_xpath_object.c +60 -56
- data/ext/libxml/ruby_xml_xpointer.c +11 -5
- data/ext/libxml/sax_parser_callbacks.inc +42 -37
- data/ext/libxml/version.h +3 -3
- data/ext/mingw/Rakefile +20 -27
- data/ext/mingw/build.rake +41 -0
- data/{lib → ext/mingw}/libiconv-2.dll +0 -0
- data/ext/mingw/libxml2-2.dll +0 -0
- data/ext/mingw/libxml_ruby.dll.a +0 -0
- data/ext/mingw/libxml_ruby.so +0 -0
- data/ext/vc/libxml_ruby.vcproj +23 -15
- data/lib/libxml.rb +8 -2
- data/lib/libxml/document.rb +16 -4
- data/lib/libxml/error.rb +84 -0
- data/lib/libxml/hpricot.rb +76 -0
- data/lib/libxml/html_parser.rb +61 -0
- data/lib/libxml/node.rb +36 -25
- data/lib/libxml/parser.rb +312 -33
- data/lib/libxml/parser_context.rb +17 -0
- data/lib/libxml/properties.rb +15 -2
- data/lib/libxml/reader.rb +15 -0
- data/lib/libxml/sax_callbacks.rb +179 -0
- data/lib/libxml/sax_parser.rb +42 -0
- data/lib/libxml/tree.rb +1 -2
- data/lib/libxml/xpath_object.rb +12 -0
- data/test/model/atom.xml +4 -0
- data/test/tc_attributes.rb +43 -19
- data/test/tc_document.rb +1 -1
- data/test/tc_document_write.rb +15 -8
- data/test/tc_dtd.rb +36 -20
- data/test/tc_encoding.rb +13 -0
- data/test/tc_error.rb +136 -0
- data/test/tc_node.rb +2 -3
- data/test/tc_node_copy.rb +1 -1
- data/test/tc_node_edit.rb +6 -0
- data/test/tc_ns.rb +18 -0
- data/test/tc_parser.rb +113 -228
- data/test/tc_parser_context.rb +1 -2
- data/test/tc_reader.rb +24 -14
- data/test/tc_relaxng.rb +18 -6
- data/test/tc_sax_parser.rb +48 -13
- data/test/tc_schema.rb +20 -8
- data/test/tc_well_formed.rb +2 -1
- data/test/tc_xml.rb +212 -0
- data/test/tc_xpath.rb +60 -46
- data/test/tc_xpointer.rb +7 -11
- data/test/test_suite.rb +4 -3
- metadata +32 -115
- data/doc/rdoc/classes/LibXML.html +0 -241
- data/doc/rdoc/classes/LibXML/XML.html +0 -185
- data/doc/rdoc/classes/LibXML/XML/Attr.html +0 -1010
- data/doc/rdoc/classes/LibXML/XML/Attributes.html +0 -526
- data/doc/rdoc/classes/LibXML/XML/Document.html +0 -1489
- data/doc/rdoc/classes/LibXML/XML/Dtd.html +0 -213
- data/doc/rdoc/classes/LibXML/XML/Error.html +0 -117
- data/doc/rdoc/classes/LibXML/XML/HTMLParser.html +0 -348
- data/doc/rdoc/classes/LibXML/XML/InputCallbacks.html +0 -160
- data/doc/rdoc/classes/LibXML/XML/NS.html +0 -381
- data/doc/rdoc/classes/LibXML/XML/Node.html +0 -3396
- data/doc/rdoc/classes/LibXML/XML/Node/FailedModify.html +0 -123
- data/doc/rdoc/classes/LibXML/XML/Node/Set.html +0 -440
- data/doc/rdoc/classes/LibXML/XML/Node/SetNamespace.html +0 -123
- data/doc/rdoc/classes/LibXML/XML/Node/UnknownType.html +0 -123
- data/doc/rdoc/classes/LibXML/XML/Parser.html +0 -2239
- data/doc/rdoc/classes/LibXML/XML/Parser/Context.html +0 -1255
- data/doc/rdoc/classes/LibXML/XML/Parser/ParseError.html +0 -123
- data/doc/rdoc/classes/LibXML/XML/Reader.html +0 -2264
- data/doc/rdoc/classes/LibXML/XML/RelaxNG.html +0 -237
- data/doc/rdoc/classes/LibXML/XML/SaxParser.html +0 -415
- data/doc/rdoc/classes/LibXML/XML/Schema.html +0 -308
- data/doc/rdoc/classes/LibXML/XML/State.html +0 -124
- data/doc/rdoc/classes/LibXML/XML/Tree.html +0 -111
- data/doc/rdoc/classes/LibXML/XML/XInclude.html +0 -123
- data/doc/rdoc/classes/LibXML/XML/XInclude/Error.html +0 -117
- data/doc/rdoc/classes/LibXML/XML/XMLParserOptions.html +0 -198
- data/doc/rdoc/classes/LibXML/XML/XPath.html +0 -184
- data/doc/rdoc/classes/LibXML/XML/XPath/Context.html +0 -404
- data/doc/rdoc/classes/LibXML/XML/XPath/InvalidPath.html +0 -172
- data/doc/rdoc/classes/LibXML/XML/XPath/Object.html +0 -627
- data/doc/rdoc/classes/LibXML/XML/XPointer.html +0 -170
- data/doc/rdoc/classes/LibXML/XML/XPointer/Context.html +0 -123
- data/doc/rdoc/classes/LibXML/XML/XPointer/Context/InvalidPath.html +0 -117
- data/doc/rdoc/classes/LibXML/XML/XPointer/InvalidExpression.html +0 -124
- data/doc/rdoc/classes/singleton.html +0 -114
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/CHANGES.html +0 -442
- data/doc/rdoc/files/LICENSE.html +0 -133
- data/doc/rdoc/files/README.html +0 -388
- data/doc/rdoc/files/VERSION.html +0 -107
- data/doc/rdoc/files/ext/libxml/cbg_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/libxml_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_attr_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_attributes_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_document_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_dtd_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_html_parser_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_input_cbg_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_node_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_node_set_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_ns_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_parser_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_parser_context_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_reader_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_relaxng_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_sax_parser_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_schema_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_state_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_xinclude_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_context_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_object_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_c.html +0 -101
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_context_c.html +0 -101
- data/doc/rdoc/files/lib/libxml/attr_rb.html +0 -108
- data/doc/rdoc/files/lib/libxml/attributes_rb.html +0 -108
- data/doc/rdoc/files/lib/libxml/document_rb.html +0 -108
- data/doc/rdoc/files/lib/libxml/node_rb.html +0 -108
- data/doc/rdoc/files/lib/libxml/node_set_rb.html +0 -108
- data/doc/rdoc/files/lib/libxml/parser_options_rb.html +0 -107
- data/doc/rdoc/files/lib/libxml/parser_rb.html +0 -101
- data/doc/rdoc/files/lib/libxml/properties_rb.html +0 -108
- data/doc/rdoc/files/lib/libxml/tree_rb.html +0 -107
- data/doc/rdoc/files/lib/libxml_rb.html +0 -124
- data/doc/rdoc/files/lib/xml/libxml_rb.html +0 -124
- data/doc/rdoc/files/lib/xml_rb.html +0 -134
- data/doc/rdoc/fr_class_index.html +0 -62
- data/doc/rdoc/fr_file_index.html +0 -66
- data/doc/rdoc/fr_method_index.html +0 -392
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -208
- data/ext/libxml/ruby_xml_node_set.c +0 -172
- data/ext/libxml/ruby_xml_node_set.h +0 -20
- data/ext/libxml/ruby_xml_xpointer_context.c +0 -22
- data/ext/libxml/ruby_xml_xpointer_context.h +0 -18
- data/lib/libxml/node_set.rb +0 -27
- data/lib/libxml2-2.dll +0 -0
- data/lib/libxml_ruby.dll.a +0 -0
- data/lib/libxml_ruby.so +0 -0
- data/test/tc_node_set.rb +0 -24
- data/test/tc_node_set2.rb +0 -37
@@ -1,237 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: LibXML::XML::RelaxNG</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">LibXML::XML::RelaxNG</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/ext/libxml/libxml_c.html">
|
59
|
-
ext/libxml/libxml.c
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
call-seq:
|
84
|
-
</p>
|
85
|
-
<pre>
|
86
|
-
XML::RelaxNG.string("relaxng_data") -> "value"
|
87
|
-
</pre>
|
88
|
-
<p>
|
89
|
-
Create a <a href="RelaxNG.html#M000018">new</a> relaxng using the specified
|
90
|
-
string.
|
91
|
-
</p>
|
92
|
-
|
93
|
-
</div>
|
94
|
-
|
95
|
-
|
96
|
-
</div>
|
97
|
-
|
98
|
-
<div id="method-list">
|
99
|
-
<h3 class="section-bar">Methods</h3>
|
100
|
-
|
101
|
-
<div class="name-list">
|
102
|
-
<a href="#M000020">document</a>
|
103
|
-
<a href="#M000019">from_string</a>
|
104
|
-
<a href="#M000018">new</a>
|
105
|
-
</div>
|
106
|
-
</div>
|
107
|
-
|
108
|
-
</div>
|
109
|
-
|
110
|
-
|
111
|
-
<!-- if includes -->
|
112
|
-
|
113
|
-
<div id="section">
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
<!-- if method_list -->
|
123
|
-
<div id="methods">
|
124
|
-
<h3 class="section-bar">Public Class methods</h3>
|
125
|
-
|
126
|
-
<div id="method-M000020" class="method-detail">
|
127
|
-
<a name="M000020"></a>
|
128
|
-
|
129
|
-
<div class="method-heading">
|
130
|
-
<a href="#M000020" class="method-signature">
|
131
|
-
<span class="method-name">XML::RelaxNG.document(document) → relaxng<br />
|
132
|
-
</span>
|
133
|
-
</a>
|
134
|
-
</div>
|
135
|
-
|
136
|
-
<div class="method-description">
|
137
|
-
<p>
|
138
|
-
Create a <a href="RelaxNG.html#M000018">new</a> relaxng from the specified
|
139
|
-
<a href="RelaxNG.html#M000020">document</a>.
|
140
|
-
</p>
|
141
|
-
<p><a class="source-toggle" href="#"
|
142
|
-
onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
|
143
|
-
<div class="method-source-code" id="M000020-source">
|
144
|
-
<pre>
|
145
|
-
/*
|
146
|
-
* call-seq:
|
147
|
-
* XML::RelaxNG.document(document) -> relaxng
|
148
|
-
*
|
149
|
-
* Create a new relaxng from the specified document.
|
150
|
-
*/
|
151
|
-
VALUE
|
152
|
-
ruby_xml_relaxng_init_from_document(VALUE class, VALUE document) {
|
153
|
-
|
154
|
-
</pre>
|
155
|
-
</div>
|
156
|
-
</div>
|
157
|
-
</div>
|
158
|
-
|
159
|
-
<div id="method-M000019" class="method-detail">
|
160
|
-
<a name="M000019"></a>
|
161
|
-
|
162
|
-
<div class="method-heading">
|
163
|
-
<a href="#M000019" class="method-signature">
|
164
|
-
<span class="method-name">XML::RelaxNG.string("relaxng_data") → "value"<br />
|
165
|
-
</span>
|
166
|
-
</a>
|
167
|
-
</div>
|
168
|
-
|
169
|
-
<div class="method-description">
|
170
|
-
<p>
|
171
|
-
Create a <a href="RelaxNG.html#M000018">new</a> relaxng using the specified
|
172
|
-
string.
|
173
|
-
</p>
|
174
|
-
<p><a class="source-toggle" href="#"
|
175
|
-
onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
|
176
|
-
<div class="method-source-code" id="M000019-source">
|
177
|
-
<pre>
|
178
|
-
/*
|
179
|
-
* call-seq:
|
180
|
-
* XML::RelaxNG.string("relaxng_data") -> "value"
|
181
|
-
*
|
182
|
-
* Create a new relaxng using the specified string.
|
183
|
-
*/
|
184
|
-
VALUE
|
185
|
-
ruby_xml_relaxng_init_from_string(VALUE self, VALUE relaxng_str) {
|
186
|
-
|
187
|
-
</pre>
|
188
|
-
</div>
|
189
|
-
</div>
|
190
|
-
</div>
|
191
|
-
|
192
|
-
<div id="method-M000018" class="method-detail">
|
193
|
-
<a name="M000018"></a>
|
194
|
-
|
195
|
-
<div class="method-heading">
|
196
|
-
<a href="#M000018" class="method-signature">
|
197
|
-
<span class="method-name">XML::Relaxng.new(relaxng_uri) → relaxng<br />
|
198
|
-
</span>
|
199
|
-
</a>
|
200
|
-
</div>
|
201
|
-
|
202
|
-
<div class="method-description">
|
203
|
-
<p>
|
204
|
-
Create a <a href="RelaxNG.html#M000018">new</a> relaxng from the specified
|
205
|
-
URI.
|
206
|
-
</p>
|
207
|
-
<p><a class="source-toggle" href="#"
|
208
|
-
onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
|
209
|
-
<div class="method-source-code" id="M000018-source">
|
210
|
-
<pre>
|
211
|
-
/*
|
212
|
-
* call-seq:
|
213
|
-
* XML::Relaxng.new(relaxng_uri) -> relaxng
|
214
|
-
*
|
215
|
-
* Create a new relaxng from the specified URI.
|
216
|
-
*/
|
217
|
-
VALUE
|
218
|
-
ruby_xml_relaxng_init_from_uri(VALUE class, VALUE uri) {
|
219
|
-
|
220
|
-
</pre>
|
221
|
-
</div>
|
222
|
-
</div>
|
223
|
-
</div>
|
224
|
-
|
225
|
-
|
226
|
-
</div>
|
227
|
-
|
228
|
-
|
229
|
-
</div>
|
230
|
-
|
231
|
-
|
232
|
-
<div id="validator-badges">
|
233
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
234
|
-
</div>
|
235
|
-
|
236
|
-
</body>
|
237
|
-
</html>
|
@@ -1,415 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: LibXML::XML::SaxParser</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">LibXML::XML::SaxParser</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/ext/libxml/libxml_c.html">
|
59
|
-
ext/libxml/libxml.c
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
call-seq:
|
84
|
-
</p>
|
85
|
-
<pre>
|
86
|
-
callbacks.on_external_subset(name, external_id, system_id)
|
87
|
-
</pre>
|
88
|
-
<p>
|
89
|
-
Called for an external subset event.
|
90
|
-
</p>
|
91
|
-
|
92
|
-
</div>
|
93
|
-
|
94
|
-
|
95
|
-
</div>
|
96
|
-
|
97
|
-
<div id="method-list">
|
98
|
-
<h3 class="section-bar">Methods</h3>
|
99
|
-
|
100
|
-
<div class="name-list">
|
101
|
-
<a href="#M000318">callbacks</a>
|
102
|
-
<a href="#M000319">callbacks=</a>
|
103
|
-
<a href="#M000316">filename</a>
|
104
|
-
<a href="#M000317">filename=</a>
|
105
|
-
<a href="#M000315">new</a>
|
106
|
-
<a href="#M000320">parse</a>
|
107
|
-
<a href="#M000321">string</a>
|
108
|
-
<a href="#M000322">string=</a>
|
109
|
-
</div>
|
110
|
-
</div>
|
111
|
-
|
112
|
-
</div>
|
113
|
-
|
114
|
-
|
115
|
-
<!-- if includes -->
|
116
|
-
|
117
|
-
<div id="section">
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
<!-- if method_list -->
|
127
|
-
<div id="methods">
|
128
|
-
<h3 class="section-bar">Public Class methods</h3>
|
129
|
-
|
130
|
-
<div id="method-M000315" class="method-detail">
|
131
|
-
<a name="M000315"></a>
|
132
|
-
|
133
|
-
<div class="method-heading">
|
134
|
-
<a href="#M000315" class="method-signature">
|
135
|
-
<span class="method-name">XML::SaxParser.new → sax_parser<br />
|
136
|
-
</span>
|
137
|
-
</a>
|
138
|
-
</div>
|
139
|
-
|
140
|
-
<div class="method-description">
|
141
|
-
<p>
|
142
|
-
Create a <a href="SaxParser.html#M000315">new</a> <a
|
143
|
-
href="SaxParser.html">XML::SaxParser</a> instance.
|
144
|
-
</p>
|
145
|
-
<p><a class="source-toggle" href="#"
|
146
|
-
onclick="toggleCode('M000315-source');return false;">[Source]</a></p>
|
147
|
-
<div class="method-source-code" id="M000315-source">
|
148
|
-
<pre>
|
149
|
-
/*
|
150
|
-
* call-seq:
|
151
|
-
* XML::SaxParser.new -> sax_parser
|
152
|
-
*
|
153
|
-
* Create a new XML::SaxParser instance.
|
154
|
-
*/
|
155
|
-
VALUE
|
156
|
-
ruby_xml_sax_parser_new(VALUE class) {
|
157
|
-
|
158
|
-
</pre>
|
159
|
-
</div>
|
160
|
-
</div>
|
161
|
-
</div>
|
162
|
-
|
163
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
164
|
-
|
165
|
-
<div id="method-M000318" class="method-detail">
|
166
|
-
<a name="M000318"></a>
|
167
|
-
|
168
|
-
<div class="method-heading">
|
169
|
-
<a href="#M000318" class="method-signature">
|
170
|
-
<span class="method-name">sax_parser.callbacks → #<XML::SaxParser::Callbacks subclass><br />
|
171
|
-
</span>
|
172
|
-
</a>
|
173
|
-
</div>
|
174
|
-
|
175
|
-
<div class="method-description">
|
176
|
-
<p>
|
177
|
-
Obtain the <a href="SaxParser.html#M000318">callbacks</a> used by this
|
178
|
-
parser.
|
179
|
-
</p>
|
180
|
-
<p><a class="source-toggle" href="#"
|
181
|
-
onclick="toggleCode('M000318-source');return false;">[Source]</a></p>
|
182
|
-
<div class="method-source-code" id="M000318-source">
|
183
|
-
<pre>
|
184
|
-
/*
|
185
|
-
* call-seq:
|
186
|
-
* sax_parser.callbacks -> #<XML::SaxParser::Callbacks subclass>
|
187
|
-
*
|
188
|
-
* Obtain the callbacks used by this parser.
|
189
|
-
*/
|
190
|
-
VALUE
|
191
|
-
ruby_xml_sax_parser_callbacks_get(VALUE self) {
|
192
|
-
|
193
|
-
</pre>
|
194
|
-
</div>
|
195
|
-
</div>
|
196
|
-
</div>
|
197
|
-
|
198
|
-
<div id="method-M000319" class="method-detail">
|
199
|
-
<a name="M000319"></a>
|
200
|
-
|
201
|
-
<div class="method-heading">
|
202
|
-
<a href="#M000319" class="method-signature">
|
203
|
-
<span class="method-name">sax_parser.callbacks = #<XML::SaxParser::Callbacks subclass><br />
|
204
|
-
</span>
|
205
|
-
</a>
|
206
|
-
</div>
|
207
|
-
|
208
|
-
<div class="method-description">
|
209
|
-
<p>
|
210
|
-
Set the <a href="SaxParser.html#M000318">callbacks</a> used by this parser.
|
211
|
-
The value assigned to this attributesibute will usually be an object that
|
212
|
-
extends the the XML::SaxParser::Callbacks module, overriding the <a
|
213
|
-
href="SaxParser.html#M000318">callbacks</a> it wishes to process.
|
214
|
-
</p>
|
215
|
-
<p><a class="source-toggle" href="#"
|
216
|
-
onclick="toggleCode('M000319-source');return false;">[Source]</a></p>
|
217
|
-
<div class="method-source-code" id="M000319-source">
|
218
|
-
<pre>
|
219
|
-
/*
|
220
|
-
* call-seq:
|
221
|
-
* sax_parser.callbacks = #<XML::SaxParser::Callbacks subclass>
|
222
|
-
*
|
223
|
-
* Set the callbacks used by this parser. The value assigned to
|
224
|
-
* this attributesibute will usually be an object that extends the the
|
225
|
-
* XML::SaxParser::Callbacks module, overriding the callbacks it
|
226
|
-
* wishes to process.
|
227
|
-
*/
|
228
|
-
VALUE
|
229
|
-
ruby_xml_sax_parser_callbacks_set(VALUE self, VALUE callbacks) {
|
230
|
-
|
231
|
-
</pre>
|
232
|
-
</div>
|
233
|
-
</div>
|
234
|
-
</div>
|
235
|
-
|
236
|
-
<div id="method-M000316" class="method-detail">
|
237
|
-
<a name="M000316"></a>
|
238
|
-
|
239
|
-
<div class="method-heading">
|
240
|
-
<a href="#M000316" class="method-signature">
|
241
|
-
<span class="method-name">sax_parser.filename → "filename"<br />
|
242
|
-
</span>
|
243
|
-
</a>
|
244
|
-
</div>
|
245
|
-
|
246
|
-
<div class="method-description">
|
247
|
-
<p>
|
248
|
-
Obtain the <a href="SaxParser.html#M000316">filename</a> this parser reads
|
249
|
-
from.
|
250
|
-
</p>
|
251
|
-
<p><a class="source-toggle" href="#"
|
252
|
-
onclick="toggleCode('M000316-source');return false;">[Source]</a></p>
|
253
|
-
<div class="method-source-code" id="M000316-source">
|
254
|
-
<pre>
|
255
|
-
/*
|
256
|
-
* call-seq:
|
257
|
-
* sax_parser.filename -> "filename"
|
258
|
-
*
|
259
|
-
* Obtain the filename this parser reads from.
|
260
|
-
*/
|
261
|
-
VALUE
|
262
|
-
ruby_xml_sax_parser_filename_get(VALUE self) {
|
263
|
-
|
264
|
-
</pre>
|
265
|
-
</div>
|
266
|
-
</div>
|
267
|
-
</div>
|
268
|
-
|
269
|
-
<div id="method-M000317" class="method-detail">
|
270
|
-
<a name="M000317"></a>
|
271
|
-
|
272
|
-
<div class="method-heading">
|
273
|
-
<a href="#M000317" class="method-signature">
|
274
|
-
<span class="method-name">sax_parser.filename = "filename"<br />
|
275
|
-
</span>
|
276
|
-
</a>
|
277
|
-
</div>
|
278
|
-
|
279
|
-
<div class="method-description">
|
280
|
-
<p>
|
281
|
-
Set the <a href="SaxParser.html#M000316">filename</a> this parser reads
|
282
|
-
from.
|
283
|
-
</p>
|
284
|
-
<p><a class="source-toggle" href="#"
|
285
|
-
onclick="toggleCode('M000317-source');return false;">[Source]</a></p>
|
286
|
-
<div class="method-source-code" id="M000317-source">
|
287
|
-
<pre>
|
288
|
-
/*
|
289
|
-
* call-seq:
|
290
|
-
* sax_parser.filename = "filename"
|
291
|
-
*
|
292
|
-
* Set the filename this parser reads from.
|
293
|
-
*/
|
294
|
-
VALUE
|
295
|
-
ruby_xml_sax_parser_filename_set(VALUE self, VALUE filename) {
|
296
|
-
|
297
|
-
</pre>
|
298
|
-
</div>
|
299
|
-
</div>
|
300
|
-
</div>
|
301
|
-
|
302
|
-
<div id="method-M000320" class="method-detail">
|
303
|
-
<a name="M000320"></a>
|
304
|
-
|
305
|
-
<div class="method-heading">
|
306
|
-
<a href="#M000320" class="method-signature">
|
307
|
-
<span class="method-name">parser.parse → (true|false)<br />
|
308
|
-
</span>
|
309
|
-
</a>
|
310
|
-
</div>
|
311
|
-
|
312
|
-
<div class="method-description">
|
313
|
-
<p>
|
314
|
-
Parse the input <a href="../XML.html">XML</a>, generating <a
|
315
|
-
href="SaxParser.html#M000318">callbacks</a> to the object registered via
|
316
|
-
the <tt><a href="SaxParser.html#M000318">callbacks</a></tt>
|
317
|
-
attributesibute.
|
318
|
-
</p>
|
319
|
-
<p><a class="source-toggle" href="#"
|
320
|
-
onclick="toggleCode('M000320-source');return false;">[Source]</a></p>
|
321
|
-
<div class="method-source-code" id="M000320-source">
|
322
|
-
<pre>
|
323
|
-
/*
|
324
|
-
* call-seq:
|
325
|
-
* parser.parse -> (true|false)
|
326
|
-
*
|
327
|
-
* Parse the input XML, generating callbacks to the object
|
328
|
-
* registered via the +callbacks+ attributesibute.
|
329
|
-
*/
|
330
|
-
VALUE
|
331
|
-
ruby_xml_sax_parser_parse(VALUE self) {
|
332
|
-
|
333
|
-
</pre>
|
334
|
-
</div>
|
335
|
-
</div>
|
336
|
-
</div>
|
337
|
-
|
338
|
-
<div id="method-M000321" class="method-detail">
|
339
|
-
<a name="M000321"></a>
|
340
|
-
|
341
|
-
<div class="method-heading">
|
342
|
-
<a href="#M000321" class="method-signature">
|
343
|
-
<span class="method-name">parser.string → "xml"<br />
|
344
|
-
</span>
|
345
|
-
</a>
|
346
|
-
</div>
|
347
|
-
|
348
|
-
<div class="method-description">
|
349
|
-
<p>
|
350
|
-
Obtain the parser‘s input <a
|
351
|
-
href="SaxParser.html#M000321">string</a>.
|
352
|
-
</p>
|
353
|
-
<p><a class="source-toggle" href="#"
|
354
|
-
onclick="toggleCode('M000321-source');return false;">[Source]</a></p>
|
355
|
-
<div class="method-source-code" id="M000321-source">
|
356
|
-
<pre>
|
357
|
-
/*
|
358
|
-
* call-seq:
|
359
|
-
* parser.string -> "xml"
|
360
|
-
*
|
361
|
-
* Obtain the parser's input string.
|
362
|
-
*/
|
363
|
-
VALUE
|
364
|
-
ruby_xml_sax_parser_str_get(VALUE self) {
|
365
|
-
|
366
|
-
</pre>
|
367
|
-
</div>
|
368
|
-
</div>
|
369
|
-
</div>
|
370
|
-
|
371
|
-
<div id="method-M000322" class="method-detail">
|
372
|
-
<a name="M000322"></a>
|
373
|
-
|
374
|
-
<div class="method-heading">
|
375
|
-
<a href="#M000322" class="method-signature">
|
376
|
-
<span class="method-name">parser.string = "xml"<br />
|
377
|
-
</span>
|
378
|
-
</a>
|
379
|
-
</div>
|
380
|
-
|
381
|
-
<div class="method-description">
|
382
|
-
<p>
|
383
|
-
Set the parser‘s input <a href="SaxParser.html#M000321">string</a>.
|
384
|
-
</p>
|
385
|
-
<p><a class="source-toggle" href="#"
|
386
|
-
onclick="toggleCode('M000322-source');return false;">[Source]</a></p>
|
387
|
-
<div class="method-source-code" id="M000322-source">
|
388
|
-
<pre>
|
389
|
-
/*
|
390
|
-
* call-seq:
|
391
|
-
* parser.string = "xml"
|
392
|
-
*
|
393
|
-
* Set the parser's input string.
|
394
|
-
*/
|
395
|
-
VALUE
|
396
|
-
ruby_xml_sax_parser_str_set(VALUE self, VALUE str) {
|
397
|
-
|
398
|
-
</pre>
|
399
|
-
</div>
|
400
|
-
</div>
|
401
|
-
</div>
|
402
|
-
|
403
|
-
|
404
|
-
</div>
|
405
|
-
|
406
|
-
|
407
|
-
</div>
|
408
|
-
|
409
|
-
|
410
|
-
<div id="validator-badges">
|
411
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
412
|
-
</div>
|
413
|
-
|
414
|
-
</body>
|
415
|
-
</html>
|