libxml-ruby 0.8.1-x86-mswin32-60 → 0.8.2-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +21 -0
- data/RAKEFILE +213 -0
- data/README +32 -11
- data/doc/rdoc/classes/LibXML.html +4 -0
- data/doc/rdoc/classes/LibXML/XML.html +7 -0
- data/doc/rdoc/classes/LibXML/XML/Attr.html +187 -177
- data/doc/rdoc/classes/LibXML/XML/Attributes.html +62 -61
- data/doc/rdoc/classes/LibXML/XML/Document.html +318 -254
- data/doc/rdoc/classes/LibXML/XML/Dtd.html +62 -8
- data/doc/rdoc/classes/LibXML/XML/Error.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/HTMLParser.html +59 -41
- data/doc/rdoc/classes/LibXML/XML/InputCallbacks.html +12 -6
- data/doc/rdoc/classes/LibXML/XML/NS.html +65 -50
- data/doc/rdoc/classes/LibXML/XML/Node.html +671 -630
- data/doc/rdoc/classes/LibXML/XML/Node/FailedModify.html +12 -0
- data/doc/rdoc/classes/LibXML/XML/Node/Set.html +64 -60
- data/doc/rdoc/classes/LibXML/XML/Node/SetNamespace.html +12 -0
- data/doc/rdoc/classes/LibXML/XML/Node/UnknownType.html +12 -0
- data/doc/rdoc/classes/LibXML/XML/Parser.html +407 -383
- data/doc/rdoc/classes/LibXML/XML/Parser/Context.html +241 -219
- data/doc/rdoc/classes/LibXML/XML/Parser/ParseError.html +12 -0
- data/doc/rdoc/classes/LibXML/XML/Reader.html +421 -331
- data/doc/rdoc/classes/LibXML/XML/RelaxNG.html +237 -0
- data/doc/rdoc/classes/LibXML/XML/SaxParser.html +79 -60
- data/doc/rdoc/classes/LibXML/XML/Schema.html +109 -22
- data/doc/rdoc/classes/LibXML/XML/State.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/XInclude.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/XInclude/Error.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/XPath.html +4 -48
- data/doc/rdoc/classes/LibXML/XML/XPath/Context.html +6 -5
- data/doc/rdoc/classes/LibXML/XML/XPath/InvalidPath.html +61 -0
- data/doc/rdoc/classes/LibXML/XML/XPath/Object.html +12 -8
- data/doc/rdoc/classes/LibXML/XML/XPointer.html +14 -8
- data/doc/rdoc/classes/LibXML/XML/XPointer/Context.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/XPointer/Context/InvalidPath.html +6 -0
- data/doc/rdoc/classes/LibXML/XML/XPointer/InvalidExpression.html +13 -0
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/CHANGES.html +38 -10
- data/doc/rdoc/files/LICENSE.html +1 -1
- data/doc/rdoc/files/README.html +57 -23
- data/doc/rdoc/files/VERSION.html +1 -1
- data/doc/rdoc/files/ext/libxml/cbg_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/libxml_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_attr_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_attributes_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_document_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_dtd_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_html_parser_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_input_cbg_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_node_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_node_set_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_ns_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_parser_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_parser_context_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_reader_c.html +1 -1
- data/doc/rdoc/{classes/XML.html → files/ext/libxml/ruby_xml_relaxng_c.html} +16 -35
- data/doc/rdoc/files/ext/libxml/ruby_xml_sax_parser_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_schema_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_state_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xinclude_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_context_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_object_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_c.html +1 -1
- data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_context_c.html +1 -1
- data/doc/rdoc/files/lib/libxml/attr_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/attributes_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/document_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/node_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/node_set_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/parser_options_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/parser_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/properties_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml/tree_rb.html +1 -1
- data/doc/rdoc/files/lib/libxml_rb.html +2 -2
- data/doc/rdoc/files/lib/xml/libxml_rb.html +12 -2
- data/doc/rdoc/files/lib/xml_rb.html +134 -0
- data/doc/rdoc/fr_class_index.html +1 -1
- data/doc/rdoc/fr_file_index.html +2 -0
- data/doc/rdoc/fr_method_index.html +349 -344
- data/ext/libxml/libxml.c +2 -1
- data/ext/libxml/ruby_libxml.h +1 -0
- data/ext/libxml/ruby_xml_attr.c +8 -2
- data/ext/libxml/ruby_xml_attributes.c +5 -5
- data/ext/libxml/ruby_xml_document.c +41 -2
- data/ext/libxml/ruby_xml_dtd.c +169 -169
- data/ext/libxml/ruby_xml_html_parser.c +449 -449
- data/ext/libxml/ruby_xml_input_cbg.c +165 -165
- data/ext/libxml/ruby_xml_node.c +1 -1
- data/ext/libxml/ruby_xml_node_set.c +172 -172
- data/ext/libxml/ruby_xml_ns.c +145 -145
- data/ext/libxml/ruby_xml_parser.c +1398 -1398
- data/ext/libxml/ruby_xml_parser_context.c +697 -697
- data/ext/libxml/ruby_xml_reader.c +44 -0
- data/ext/libxml/ruby_xml_reader.h +14 -14
- data/ext/libxml/ruby_xml_relaxng.c +97 -0
- data/ext/libxml/ruby_xml_relaxng.h +15 -0
- data/ext/libxml/ruby_xml_sax_parser.c +486 -486
- data/ext/libxml/ruby_xml_schema.c +1 -1
- data/ext/libxml/ruby_xml_state.c +4 -4
- data/ext/libxml/ruby_xml_xinclude.c +21 -21
- data/ext/libxml/ruby_xml_xpath.c +89 -89
- data/ext/libxml/ruby_xml_xpath_context.c +283 -283
- data/ext/libxml/ruby_xml_xpath_object.c +5 -5
- data/ext/libxml/ruby_xml_xpointer.c +104 -104
- data/ext/libxml/ruby_xml_xpointer_context.c +22 -22
- data/ext/libxml/version.h +2 -2
- data/ext/libxml/version.h.rej +17 -0
- data/ext/mingw/Rakefile +41 -0
- data/{mingw → lib}/libiconv-2.dll +0 -0
- data/lib/libxml.rb +15 -4
- data/lib/libxml2-2.dll +0 -0
- data/lib/libxml_ruby.dll.a +0 -0
- data/lib/libxml_ruby.so +0 -0
- data/lib/xml.rb +14 -0
- data/lib/xml/libxml.rb +4 -1
- data/test/etc_doc_to_s.rb +1 -1
- data/test/ets_copy_bug.rb +1 -1
- data/test/ets_copy_bug3.rb +1 -1
- data/test/ets_doc_file.rb +1 -1
- data/test/ets_doc_to_s.rb +1 -1
- data/test/ets_node_gc.rb +1 -1
- data/test/ets_tsr.rb +1 -1
- data/test/model/shiporder.rnc +28 -0
- data/test/model/shiporder.rng +86 -0
- data/test/{tc_xml_attributes.rb → tc_attributes.rb} +1 -10
- data/test/{tc_xml_document.rb → tc_document.rb} +1 -1
- data/test/{tc_xml_document_write.rb → tc_document_write.rb} +1 -1
- data/test/{tc_xml_dtd.rb → tc_dtd.rb} +1 -1
- data/test/{tc_xml_html_parser.rb → tc_html_parser.rb} +1 -1
- data/test/{tc_xml_node.rb → tc_node.rb} +1 -1
- data/test/{tc_xml_node_attr.rb → tc_node_attr.rb} +1 -1
- data/test/{tc_xml_node_cdata.rb → tc_node_cdata.rb} +24 -5
- data/test/{tc_xml_node_comment.rb → tc_node_comment.rb} +1 -1
- data/test/{tc_xml_node_copy.rb → tc_node_copy.rb} +1 -1
- data/test/{tc_xml_node_edit.rb → tc_node_edit.rb} +1 -1
- data/test/{tc_xml_node_set.rb → tc_node_set.rb} +1 -1
- data/test/{tc_xml_node_set2.rb → tc_node_set2.rb} +1 -1
- data/test/{tc_xml_node_text.rb → tc_node_text.rb} +1 -1
- data/test/{tc_xml_node_xlink.rb → tc_node_xlink.rb} +2 -2
- data/test/{tc_xml_parser.rb → tc_parser.rb} +1 -1
- data/test/{tc_xml_parser_context.rb → tc_parser_context.rb} +1 -1
- data/test/{tc_xml_properties.rb → tc_properties.rb} +1 -7
- data/test/{tc_xml_reader.rb → tc_reader.rb} +1 -1
- data/test/tc_relaxng.rb +39 -0
- data/test/{tc_xml_sax_parser.rb → tc_sax_parser.rb} +1 -1
- data/test/{tc_xml_schema.rb → tc_schema.rb} +1 -1
- data/test/{tc_xml_traversal.rb → tc_traversal.rb} +1 -1
- data/test/{tc_xml_xinclude.rb → tc_xinclude.rb} +1 -1
- data/test/{tc_xml_xpath.rb → tc_xpath.rb} +1 -1
- data/test/{tc_xml_xpath_context.rb → tc_xpath_context.rb} +1 -1
- data/test/{tc_xml_xpointer.rb → tc_xpointer.rb} +1 -1
- data/test/test_suite.rb +26 -25
- metadata +103 -100
- data/benchmark/depixelate.rb +0 -632
- data/benchmark/hamlet.xml +0 -9055
- data/benchmark/sock_entries.xml +0 -507
- data/benchmark/throughput.rb +0 -39
- data/benchmark/xml_benchmarks.rb +0 -227
- data/mingw/libxml2-2.dll +0 -0
- data/mingw/libxml_ruby.so +0 -0
- data/test/gc.log +0 -0
- data/vc/libxml_ruby.sln +0 -20
- data/vc/libxml_ruby.vcproj +0 -389
@@ -78,6 +78,60 @@
|
|
78
78
|
|
79
79
|
<div id="contextContent">
|
80
80
|
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
SV * parse_string(CLASS, str, …)
|
84
|
+
</p>
|
85
|
+
<pre>
|
86
|
+
char * CLASS
|
87
|
+
char * str
|
88
|
+
PREINIT:
|
89
|
+
STRLEN n_a;
|
90
|
+
xmlDtdPtr res;
|
91
|
+
SV * encoding_sv;
|
92
|
+
xmlParserInputBufferPtr buffer;
|
93
|
+
xmlCharEncoding enc = XML_CHAR_ENCODING_NONE;
|
94
|
+
xmlChar * new_string;
|
95
|
+
STRLEN len;
|
96
|
+
CODE:
|
97
|
+
LibXML_init_error();
|
98
|
+
if (items > 2) {
|
99
|
+
encoding_sv = ST(2);
|
100
|
+
if (items > 3) {
|
101
|
+
croak("parse_string: too many parameters");
|
102
|
+
}
|
103
|
+
// warn("getting encoding...\n");
|
104
|
+
enc = xmlParseCharEncoding(SvPV(encoding_sv, n_a));
|
105
|
+
if (enc == XML_CHAR_ENCODING_ERROR) {
|
106
|
+
croak("Parse of encoding %s failed: %s", SvPV(encoding_sv, n_a), SvPV(LibXML_error, n_a));
|
107
|
+
}
|
108
|
+
}
|
109
|
+
buffer = xmlAllocParserInputBuffer(enc);
|
110
|
+
// buffer = xmlParserInputBufferCreateMem(str, xmlStrlen(str), enc);
|
111
|
+
if ( !buffer)
|
112
|
+
croak("cant create buffer!\n" );
|
113
|
+
|
114
|
+
new_string = xmlStrdup((const xmlChar*)str);
|
115
|
+
xmlParserInputBufferPush(buffer, xmlStrlen(new_string), (const char*)new_string);
|
116
|
+
|
117
|
+
res = xmlIOParseDTD(NULL, buffer, enc);
|
118
|
+
|
119
|
+
// NOTE: For some reason freeing this InputBuffer causes a segfault!
|
120
|
+
// xmlFreeParserInputBuffer(buffer);
|
121
|
+
xmlFree(new_string);
|
122
|
+
|
123
|
+
sv_2mortal( LibXML_error );
|
124
|
+
LibXML_croak_error();
|
125
|
+
|
126
|
+
if (res == NULL) {
|
127
|
+
croak("no DTD parsed!");
|
128
|
+
}
|
129
|
+
RETVAL = PmmNodeToSv((xmlNodePtr)res, NULL);
|
130
|
+
OUTPUT:
|
131
|
+
RETVAL
|
132
|
+
</pre>
|
133
|
+
|
134
|
+
</div>
|
81
135
|
|
82
136
|
|
83
137
|
</div>
|
@@ -86,7 +140,7 @@
|
|
86
140
|
<h3 class="section-bar">Methods</h3>
|
87
141
|
|
88
142
|
<div class="name-list">
|
89
|
-
<a href="#
|
143
|
+
<a href="#M000323">new</a>
|
90
144
|
</div>
|
91
145
|
</div>
|
92
146
|
|
@@ -108,11 +162,11 @@
|
|
108
162
|
<div id="methods">
|
109
163
|
<h3 class="section-bar">Public Class methods</h3>
|
110
164
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
165
|
+
<div id="method-M000323" class="method-detail">
|
166
|
+
<a name="M000323"></a>
|
113
167
|
|
114
168
|
<div class="method-heading">
|
115
|
-
<a href="#
|
169
|
+
<a href="#M000323" class="method-signature">
|
116
170
|
<span class="method-name">XML::Dtd.new("public system") → dtd<br />
|
117
171
|
XML::Dtd.new("public", "system") → dtd<br />
|
118
172
|
</span>
|
@@ -121,12 +175,12 @@ XML::Dtd.new("public", "system") → dtd<br />
|
|
121
175
|
|
122
176
|
<div class="method-description">
|
123
177
|
<p>
|
124
|
-
Create a new <a href="Dtd.html">Dtd</a> from
|
125
|
-
system identifiers.
|
178
|
+
Create a <a href="Dtd.html#M000323">new</a> <a href="Dtd.html">Dtd</a> from
|
179
|
+
the specified public and system identifiers.
|
126
180
|
</p>
|
127
181
|
<p><a class="source-toggle" href="#"
|
128
|
-
onclick="toggleCode('
|
129
|
-
<div class="method-source-code" id="
|
182
|
+
onclick="toggleCode('M000323-source');return false;">[Source]</a></p>
|
183
|
+
<div class="method-source-code" id="M000323-source">
|
130
184
|
<pre>
|
131
185
|
/*
|
132
186
|
* call-seq:
|
@@ -78,6 +78,19 @@
|
|
78
78
|
|
79
79
|
<div id="contextContent">
|
80
80
|
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
call-seq:
|
84
|
+
</p>
|
85
|
+
<pre>
|
86
|
+
parser.string = "string"
|
87
|
+
</pre>
|
88
|
+
<p>
|
89
|
+
Set the <a href="HTMLParser.html#M000362">string</a> this parser works
|
90
|
+
with.
|
91
|
+
</p>
|
92
|
+
|
93
|
+
</div>
|
81
94
|
|
82
95
|
|
83
96
|
</div>
|
@@ -86,12 +99,12 @@
|
|
86
99
|
<h3 class="section-bar">Methods</h3>
|
87
100
|
|
88
101
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
102
|
+
<a href="#M000364">context</a>
|
103
|
+
<a href="#M000361">new</a>
|
104
|
+
<a href="#M000363">parse</a>
|
105
|
+
<a href="#M000362">string</a>
|
106
|
+
<a href="#M000365">string</a>
|
107
|
+
<a href="#M000366">string=</a>
|
95
108
|
</div>
|
96
109
|
</div>
|
97
110
|
|
@@ -113,11 +126,11 @@
|
|
113
126
|
<div id="methods">
|
114
127
|
<h3 class="section-bar">Public Class methods</h3>
|
115
128
|
|
116
|
-
<div id="method-
|
117
|
-
<a name="
|
129
|
+
<div id="method-M000361" class="method-detail">
|
130
|
+
<a name="M000361"></a>
|
118
131
|
|
119
132
|
<div class="method-heading">
|
120
|
-
<a href="#
|
133
|
+
<a href="#M000361" class="method-signature">
|
121
134
|
<span class="method-name">XML::HTMLParser.new → parser<br />
|
122
135
|
</span>
|
123
136
|
</a>
|
@@ -125,11 +138,12 @@
|
|
125
138
|
|
126
139
|
<div class="method-description">
|
127
140
|
<p>
|
128
|
-
Create a new parser instance with no
|
141
|
+
Create a <a href="HTMLParser.html#M000361">new</a> parser instance with no
|
142
|
+
pre-determined source.
|
129
143
|
</p>
|
130
144
|
<p><a class="source-toggle" href="#"
|
131
|
-
onclick="toggleCode('
|
132
|
-
<div class="method-source-code" id="
|
145
|
+
onclick="toggleCode('M000361-source');return false;">[Source]</a></p>
|
146
|
+
<div class="method-source-code" id="M000361-source">
|
133
147
|
<pre>
|
134
148
|
/*
|
135
149
|
* call-seq:
|
@@ -145,11 +159,11 @@ ruby_xml_html_parser_new(VALUE class) {
|
|
145
159
|
</div>
|
146
160
|
</div>
|
147
161
|
|
148
|
-
<div id="method-
|
149
|
-
<a name="
|
162
|
+
<div id="method-M000362" class="method-detail">
|
163
|
+
<a name="M000362"></a>
|
150
164
|
|
151
165
|
<div class="method-heading">
|
152
|
-
<a href="#
|
166
|
+
<a href="#M000362" class="method-signature">
|
153
167
|
<span class="method-name">XML::HTMLParser.string → parser<br />
|
154
168
|
</span>
|
155
169
|
</a>
|
@@ -157,11 +171,13 @@ ruby_xml_html_parser_new(VALUE class) {
|
|
157
171
|
|
158
172
|
<div class="method-description">
|
159
173
|
<p>
|
160
|
-
Create a new parser instance that
|
174
|
+
Create a <a href="HTMLParser.html#M000361">new</a> parser instance that
|
175
|
+
will <a href="HTMLParser.html#M000363">parse</a> the given <a
|
176
|
+
href="HTMLParser.html#M000362">string</a>.
|
161
177
|
</p>
|
162
178
|
<p><a class="source-toggle" href="#"
|
163
|
-
onclick="toggleCode('
|
164
|
-
<div class="method-source-code" id="
|
179
|
+
onclick="toggleCode('M000362-source');return false;">[Source]</a></p>
|
180
|
+
<div class="method-source-code" id="M000362-source">
|
165
181
|
<pre>
|
166
182
|
/*
|
167
183
|
* call-seq:
|
@@ -180,11 +196,11 @@ ruby_xml_html_parser_new_string(VALUE class, VALUE str) {
|
|
180
196
|
|
181
197
|
<h3 class="section-bar">Public Instance methods</h3>
|
182
198
|
|
183
|
-
<div id="method-
|
184
|
-
<a name="
|
199
|
+
<div id="method-M000364" class="method-detail">
|
200
|
+
<a name="M000364"></a>
|
185
201
|
|
186
202
|
<div class="method-heading">
|
187
|
-
<a href="#
|
203
|
+
<a href="#M000364" class="method-signature">
|
188
204
|
<span class="method-name">parser.context → context<br />
|
189
205
|
</span>
|
190
206
|
</a>
|
@@ -196,8 +212,8 @@ Obtain the <a href="Parser/Context.html">XML::Parser::Context</a>
|
|
196
212
|
associated with this parser.
|
197
213
|
</p>
|
198
214
|
<p><a class="source-toggle" href="#"
|
199
|
-
onclick="toggleCode('
|
200
|
-
<div class="method-source-code" id="
|
215
|
+
onclick="toggleCode('M000364-source');return false;">[Source]</a></p>
|
216
|
+
<div class="method-source-code" id="M000364-source">
|
201
217
|
<pre>
|
202
218
|
/*
|
203
219
|
* call-seq:
|
@@ -214,11 +230,11 @@ ruby_xml_html_parser_context_get(VALUE self) {
|
|
214
230
|
</div>
|
215
231
|
</div>
|
216
232
|
|
217
|
-
<div id="method-
|
218
|
-
<a name="
|
233
|
+
<div id="method-M000363" class="method-detail">
|
234
|
+
<a name="M000363"></a>
|
219
235
|
|
220
236
|
<div class="method-heading">
|
221
|
-
<a href="#
|
237
|
+
<a href="#M000363" class="method-signature">
|
222
238
|
<span class="method-name">parser.parse → document<br />
|
223
239
|
</span>
|
224
240
|
</a>
|
@@ -227,13 +243,13 @@ ruby_xml_html_parser_context_get(VALUE self) {
|
|
227
243
|
<div class="method-description">
|
228
244
|
<p>
|
229
245
|
Parse the input <a href="../XML.html">XML</a> and create an <a
|
230
|
-
href="Document.html">XML::Document</a> with it&#
|
246
|
+
href="Document.html">XML::Document</a> with it‘s content. If an error
|
231
247
|
occurs, <a href="Parser/ParseError.html">XML::Parser::ParseError</a> is
|
232
248
|
thrown.
|
233
249
|
</p>
|
234
250
|
<p><a class="source-toggle" href="#"
|
235
|
-
onclick="toggleCode('
|
236
|
-
<div class="method-source-code" id="
|
251
|
+
onclick="toggleCode('M000363-source');return false;">[Source]</a></p>
|
252
|
+
<div class="method-source-code" id="M000363-source">
|
237
253
|
<pre>
|
238
254
|
/*
|
239
255
|
* call-seq:
|
@@ -251,11 +267,11 @@ ruby_xml_html_parser_parse(VALUE self) {
|
|
251
267
|
</div>
|
252
268
|
</div>
|
253
269
|
|
254
|
-
<div id="method-
|
255
|
-
<a name="
|
270
|
+
<div id="method-M000365" class="method-detail">
|
271
|
+
<a name="M000365"></a>
|
256
272
|
|
257
273
|
<div class="method-heading">
|
258
|
-
<a href="#
|
274
|
+
<a href="#M000365" class="method-signature">
|
259
275
|
<span class="method-name">parser.string → "string"<br />
|
260
276
|
</span>
|
261
277
|
</a>
|
@@ -263,11 +279,12 @@ ruby_xml_html_parser_parse(VALUE self) {
|
|
263
279
|
|
264
280
|
<div class="method-description">
|
265
281
|
<p>
|
266
|
-
Obtain the string this parser works
|
282
|
+
Obtain the <a href="HTMLParser.html#M000362">string</a> this parser works
|
283
|
+
with.
|
267
284
|
</p>
|
268
285
|
<p><a class="source-toggle" href="#"
|
269
|
-
onclick="toggleCode('
|
270
|
-
<div class="method-source-code" id="
|
286
|
+
onclick="toggleCode('M000365-source');return false;">[Source]</a></p>
|
287
|
+
<div class="method-source-code" id="M000365-source">
|
271
288
|
<pre>
|
272
289
|
/*
|
273
290
|
* call-seq:
|
@@ -283,11 +300,11 @@ ruby_xml_html_parser_str_get(VALUE self) {
|
|
283
300
|
</div>
|
284
301
|
</div>
|
285
302
|
|
286
|
-
<div id="method-
|
287
|
-
<a name="
|
303
|
+
<div id="method-M000366" class="method-detail">
|
304
|
+
<a name="M000366"></a>
|
288
305
|
|
289
306
|
<div class="method-heading">
|
290
|
-
<a href="#
|
307
|
+
<a href="#M000366" class="method-signature">
|
291
308
|
<span class="method-name">parser.string = "string"<br />
|
292
309
|
</span>
|
293
310
|
</a>
|
@@ -295,11 +312,12 @@ ruby_xml_html_parser_str_get(VALUE self) {
|
|
295
312
|
|
296
313
|
<div class="method-description">
|
297
314
|
<p>
|
298
|
-
Set the string this parser works
|
315
|
+
Set the <a href="HTMLParser.html#M000362">string</a> this parser works
|
316
|
+
with.
|
299
317
|
</p>
|
300
318
|
<p><a class="source-toggle" href="#"
|
301
|
-
onclick="toggleCode('
|
302
|
-
<div class="method-source-code" id="
|
319
|
+
onclick="toggleCode('M000366-source');return false;">[Source]</a></p>
|
320
|
+
<div class="method-source-code" id="M000366-source">
|
303
321
|
<pre>
|
304
322
|
/*
|
305
323
|
* call-seq:
|
@@ -78,6 +78,12 @@
|
|
78
78
|
|
79
79
|
<div id="contextContent">
|
80
80
|
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
check the first one
|
84
|
+
</p>
|
85
|
+
|
86
|
+
</div>
|
81
87
|
|
82
88
|
|
83
89
|
</div>
|
@@ -86,7 +92,7 @@
|
|
86
92
|
<h3 class="section-bar">Methods</h3>
|
87
93
|
|
88
94
|
<div class="name-list">
|
89
|
-
<a href="#
|
95
|
+
<a href="#M000219">register</a>
|
90
96
|
</div>
|
91
97
|
</div>
|
92
98
|
|
@@ -108,11 +114,11 @@
|
|
108
114
|
<div id="methods">
|
109
115
|
<h3 class="section-bar">Public Class methods</h3>
|
110
116
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
117
|
+
<div id="method-M000219" class="method-detail">
|
118
|
+
<a name="M000219"></a>
|
113
119
|
|
114
120
|
<div class="method-heading">
|
115
|
-
<a href="#
|
121
|
+
<a href="#M000219" class="method-signature">
|
116
122
|
<span class="method-name">register<br />
|
117
123
|
</span>
|
118
124
|
</a>
|
@@ -123,8 +129,8 @@
|
|
123
129
|
Register a new set of I/O callback for handling parser input.
|
124
130
|
</p>
|
125
131
|
<p><a class="source-toggle" href="#"
|
126
|
-
onclick="toggleCode('
|
127
|
-
<div class="method-source-code" id="
|
132
|
+
onclick="toggleCode('M000219-source');return false;">[Source]</a></p>
|
133
|
+
<div class="method-source-code" id="M000219-source">
|
128
134
|
<pre>
|
129
135
|
/*
|
130
136
|
* call-seq:
|
@@ -78,6 +78,19 @@
|
|
78
78
|
|
79
79
|
<div id="contextContent">
|
80
80
|
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
call-seq:
|
84
|
+
</p>
|
85
|
+
<pre>
|
86
|
+
ns.prefix? -> (true|false)
|
87
|
+
</pre>
|
88
|
+
<p>
|
89
|
+
Determine whether this namespace has a <a
|
90
|
+
href="NS.html#M000227">prefix</a>.
|
91
|
+
</p>
|
92
|
+
|
93
|
+
</div>
|
81
94
|
|
82
95
|
|
83
96
|
</div>
|
@@ -86,13 +99,13 @@
|
|
86
99
|
<h3 class="section-bar">Methods</h3>
|
87
100
|
|
88
101
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
102
|
+
<a href="#M000224">href</a>
|
103
|
+
<a href="#M000225">href?</a>
|
104
|
+
<a href="#M000223">new</a>
|
105
|
+
<a href="#M000226">next</a>
|
106
|
+
<a href="#M000227">prefix</a>
|
107
|
+
<a href="#M000228">prefix?</a>
|
108
|
+
<a href="#M000229">to_s</a>
|
96
109
|
</div>
|
97
110
|
</div>
|
98
111
|
|
@@ -114,11 +127,11 @@
|
|
114
127
|
<div id="methods">
|
115
128
|
<h3 class="section-bar">Public Class methods</h3>
|
116
129
|
|
117
|
-
<div id="method-
|
118
|
-
<a name="
|
130
|
+
<div id="method-M000223" class="method-detail">
|
131
|
+
<a name="M000223"></a>
|
119
132
|
|
120
133
|
<div class="method-heading">
|
121
|
-
<a href="#
|
134
|
+
<a href="#M000223" class="method-signature">
|
122
135
|
<span class="method-name">initialize(node, "href", "prefix")<br />
|
123
136
|
</span>
|
124
137
|
</a>
|
@@ -126,15 +139,16 @@
|
|
126
139
|
|
127
140
|
<div class="method-description">
|
128
141
|
<p>
|
129
|
-
Create a new namespace attached to the
|
130
|
-
|
142
|
+
Create a <a href="NS.html#M000223">new</a> namespace attached to the
|
143
|
+
specified node with the give <a href="NS.html#M000227">prefix</a> and
|
144
|
+
namespace.
|
131
145
|
</p>
|
132
146
|
<pre>
|
133
147
|
XML::NS.new(node, "xlink", "http://www.w3.org/1999/xlink")
|
134
148
|
</pre>
|
135
149
|
<p><a class="source-toggle" href="#"
|
136
|
-
onclick="toggleCode('
|
137
|
-
<div class="method-source-code" id="
|
150
|
+
onclick="toggleCode('M000223-source');return false;">[Source]</a></p>
|
151
|
+
<div class="method-source-code" id="M000223-source">
|
138
152
|
<pre>
|
139
153
|
/*
|
140
154
|
* call-seq:
|
@@ -155,11 +169,11 @@ ruby_xml_ns_initialize(VALUE self, VALUE node, VALUE href, VALUE prefix) {
|
|
155
169
|
|
156
170
|
<h3 class="section-bar">Public Instance methods</h3>
|
157
171
|
|
158
|
-
<div id="method-
|
159
|
-
<a name="
|
172
|
+
<div id="method-M000224" class="method-detail">
|
173
|
+
<a name="M000224"></a>
|
160
174
|
|
161
175
|
<div class="method-heading">
|
162
|
-
<a href="#
|
176
|
+
<a href="#M000224" class="method-signature">
|
163
177
|
<span class="method-name">ns.href → "href"<br />
|
164
178
|
</span>
|
165
179
|
</a>
|
@@ -167,11 +181,11 @@ ruby_xml_ns_initialize(VALUE self, VALUE node, VALUE href, VALUE prefix) {
|
|
167
181
|
|
168
182
|
<div class="method-description">
|
169
183
|
<p>
|
170
|
-
Obtain the namespace&#
|
184
|
+
Obtain the namespace‘s <a href="NS.html#M000224">href</a>.
|
171
185
|
</p>
|
172
186
|
<p><a class="source-toggle" href="#"
|
173
|
-
onclick="toggleCode('
|
174
|
-
<div class="method-source-code" id="
|
187
|
+
onclick="toggleCode('M000224-source');return false;">[Source]</a></p>
|
188
|
+
<div class="method-source-code" id="M000224-source">
|
175
189
|
<pre>
|
176
190
|
/*
|
177
191
|
* call-seq:
|
@@ -187,11 +201,11 @@ ruby_xml_ns_href_get(VALUE self) {
|
|
187
201
|
</div>
|
188
202
|
</div>
|
189
203
|
|
190
|
-
<div id="method-
|
191
|
-
<a name="
|
204
|
+
<div id="method-M000225" class="method-detail">
|
205
|
+
<a name="M000225"></a>
|
192
206
|
|
193
207
|
<div class="method-heading">
|
194
|
-
<a href="#
|
208
|
+
<a href="#M000225" class="method-signature">
|
195
209
|
<span class="method-name">ns.href? → (true|false)<br />
|
196
210
|
</span>
|
197
211
|
</a>
|
@@ -199,11 +213,11 @@ ruby_xml_ns_href_get(VALUE self) {
|
|
199
213
|
|
200
214
|
<div class="method-description">
|
201
215
|
<p>
|
202
|
-
Determine whether this namespace has an href.
|
216
|
+
Determine whether this namespace has an <a href="NS.html#M000224">href</a>.
|
203
217
|
</p>
|
204
218
|
<p><a class="source-toggle" href="#"
|
205
|
-
onclick="toggleCode('
|
206
|
-
<div class="method-source-code" id="
|
219
|
+
onclick="toggleCode('M000225-source');return false;">[Source]</a></p>
|
220
|
+
<div class="method-source-code" id="M000225-source">
|
207
221
|
<pre>
|
208
222
|
/*
|
209
223
|
* call-seq:
|
@@ -219,11 +233,11 @@ ruby_xml_ns_href_q(VALUE self) {
|
|
219
233
|
</div>
|
220
234
|
</div>
|
221
235
|
|
222
|
-
<div id="method-
|
223
|
-
<a name="
|
236
|
+
<div id="method-M000226" class="method-detail">
|
237
|
+
<a name="M000226"></a>
|
224
238
|
|
225
239
|
<div class="method-heading">
|
226
|
-
<a href="#
|
240
|
+
<a href="#M000226" class="method-signature">
|
227
241
|
<span class="method-name">ns.next → ns<br />
|
228
242
|
</span>
|
229
243
|
</a>
|
@@ -231,11 +245,11 @@ ruby_xml_ns_href_q(VALUE self) {
|
|
231
245
|
|
232
246
|
<div class="method-description">
|
233
247
|
<p>
|
234
|
-
Obtain the next namespace.
|
248
|
+
Obtain the <a href="NS.html#M000226">next</a> namespace.
|
235
249
|
</p>
|
236
250
|
<p><a class="source-toggle" href="#"
|
237
|
-
onclick="toggleCode('
|
238
|
-
<div class="method-source-code" id="
|
251
|
+
onclick="toggleCode('M000226-source');return false;">[Source]</a></p>
|
252
|
+
<div class="method-source-code" id="M000226-source">
|
239
253
|
<pre>
|
240
254
|
/*
|
241
255
|
* call-seq:
|
@@ -251,11 +265,11 @@ ruby_xml_ns_next(VALUE self) {
|
|
251
265
|
</div>
|
252
266
|
</div>
|
253
267
|
|
254
|
-
<div id="method-
|
255
|
-
<a name="
|
268
|
+
<div id="method-M000227" class="method-detail">
|
269
|
+
<a name="M000227"></a>
|
256
270
|
|
257
271
|
<div class="method-heading">
|
258
|
-
<a href="#
|
272
|
+
<a href="#M000227" class="method-signature">
|
259
273
|
<span class="method-name">ns.prefix → "prefix"<br />
|
260
274
|
ns.to_s → "prefix"<br />
|
261
275
|
</span>
|
@@ -264,11 +278,11 @@ ns.to_s → "prefix"<br />
|
|
264
278
|
|
265
279
|
<div class="method-description">
|
266
280
|
<p>
|
267
|
-
Obtain the namespace&#
|
281
|
+
Obtain the namespace‘s <a href="NS.html#M000227">prefix</a>.
|
268
282
|
</p>
|
269
283
|
<p><a class="source-toggle" href="#"
|
270
|
-
onclick="toggleCode('
|
271
|
-
<div class="method-source-code" id="
|
284
|
+
onclick="toggleCode('M000227-source');return false;">[Source]</a></p>
|
285
|
+
<div class="method-source-code" id="M000227-source">
|
272
286
|
<pre>
|
273
287
|
/*
|
274
288
|
* call-seq:
|
@@ -285,11 +299,11 @@ ruby_xml_ns_prefix_get(VALUE self) {
|
|
285
299
|
</div>
|
286
300
|
</div>
|
287
301
|
|
288
|
-
<div id="method-
|
289
|
-
<a name="
|
302
|
+
<div id="method-M000228" class="method-detail">
|
303
|
+
<a name="M000228"></a>
|
290
304
|
|
291
305
|
<div class="method-heading">
|
292
|
-
<a href="#
|
306
|
+
<a href="#M000228" class="method-signature">
|
293
307
|
<span class="method-name">ns.prefix? → (true|false)<br />
|
294
308
|
</span>
|
295
309
|
</a>
|
@@ -297,11 +311,12 @@ ruby_xml_ns_prefix_get(VALUE self) {
|
|
297
311
|
|
298
312
|
<div class="method-description">
|
299
313
|
<p>
|
300
|
-
Determine whether this namespace has a
|
314
|
+
Determine whether this namespace has a <a
|
315
|
+
href="NS.html#M000227">prefix</a>.
|
301
316
|
</p>
|
302
317
|
<p><a class="source-toggle" href="#"
|
303
|
-
onclick="toggleCode('
|
304
|
-
<div class="method-source-code" id="
|
318
|
+
onclick="toggleCode('M000228-source');return false;">[Source]</a></p>
|
319
|
+
<div class="method-source-code" id="M000228-source">
|
305
320
|
<pre>
|
306
321
|
/*
|
307
322
|
* call-seq:
|
@@ -317,11 +332,11 @@ ruby_xml_ns_prefix_q(VALUE self) {
|
|
317
332
|
</div>
|
318
333
|
</div>
|
319
334
|
|
320
|
-
<div id="method-
|
321
|
-
<a name="
|
335
|
+
<div id="method-M000229" class="method-detail">
|
336
|
+
<a name="M000229"></a>
|
322
337
|
|
323
338
|
<div class="method-heading">
|
324
|
-
<a href="#
|
339
|
+
<a href="#M000229" class="method-signature">
|
325
340
|
<span class="method-name">ns.prefix → "prefix"<br />
|
326
341
|
ns.to_s → "prefix"<br />
|
327
342
|
</span>
|
@@ -330,11 +345,11 @@ ns.to_s → "prefix"<br />
|
|
330
345
|
|
331
346
|
<div class="method-description">
|
332
347
|
<p>
|
333
|
-
Obtain the namespace&#
|
348
|
+
Obtain the namespace‘s <a href="NS.html#M000227">prefix</a>.
|
334
349
|
</p>
|
335
350
|
<p><a class="source-toggle" href="#"
|
336
|
-
onclick="toggleCode('
|
337
|
-
<div class="method-source-code" id="
|
351
|
+
onclick="toggleCode('M000229-source');return false;">[Source]</a></p>
|
352
|
+
<div class="method-source-code" id="M000229-source">
|
338
353
|
<pre>
|
339
354
|
/*
|
340
355
|
* call-seq:
|