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,123 +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::Node::FailedModify</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::Node::FailedModify</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../../files/ext/libxml/ruby_xml_node_c.html">
|
59
|
-
ext/libxml/ruby_xml_node.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
|
-
eXMLError
|
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::Node.new_text(content = nil) -> XML::Node
|
87
|
-
</pre>
|
88
|
-
<p>
|
89
|
-
Create a new text node, optionally setting the node‘s content.
|
90
|
-
</p>
|
91
|
-
|
92
|
-
</div>
|
93
|
-
|
94
|
-
|
95
|
-
</div>
|
96
|
-
|
97
|
-
|
98
|
-
</div>
|
99
|
-
|
100
|
-
|
101
|
-
<!-- if includes -->
|
102
|
-
|
103
|
-
<div id="section">
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<!-- if method_list -->
|
113
|
-
|
114
|
-
|
115
|
-
</div>
|
116
|
-
|
117
|
-
|
118
|
-
<div id="validator-badges">
|
119
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
120
|
-
</div>
|
121
|
-
|
122
|
-
</body>
|
123
|
-
</html>
|
@@ -1,440 +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::Node::Set</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::Node::Set</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../../files/ext/libxml/ruby_xml_node_c.html">
|
59
|
-
ext/libxml/ruby_xml_node.c
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
<a href="../../../../files/lib/libxml/node_set_rb.html">
|
63
|
-
lib/libxml/node_set.rb
|
64
|
-
</a>
|
65
|
-
<br />
|
66
|
-
</td>
|
67
|
-
</tr>
|
68
|
-
|
69
|
-
<tr class="top-aligned-row">
|
70
|
-
<td><strong>Parent:</strong></td>
|
71
|
-
<td>
|
72
|
-
Object
|
73
|
-
</td>
|
74
|
-
</tr>
|
75
|
-
</table>
|
76
|
-
</div>
|
77
|
-
<!-- banner header -->
|
78
|
-
|
79
|
-
<div id="bodyContent">
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
<div id="contextContent">
|
84
|
-
|
85
|
-
<div id="description">
|
86
|
-
<p>
|
87
|
-
Includes Enumerable.
|
88
|
-
</p>
|
89
|
-
|
90
|
-
</div>
|
91
|
-
|
92
|
-
|
93
|
-
</div>
|
94
|
-
|
95
|
-
<div id="method-list">
|
96
|
-
<h3 class="section-bar">Methods</h3>
|
97
|
-
|
98
|
-
<div class="name-list">
|
99
|
-
<a href="#M000218">[]</a>
|
100
|
-
<a href="#M000210">each</a>
|
101
|
-
<a href="#M000211">empty?</a>
|
102
|
-
<a href="#M000212">first</a>
|
103
|
-
<a href="#M000213">length</a>
|
104
|
-
<a href="#M000214">size</a>
|
105
|
-
<a href="#M000215">to_a</a>
|
106
|
-
<a href="#M000216">xpath</a>
|
107
|
-
<a href="#M000217">xpath_ctxt</a>
|
108
|
-
</div>
|
109
|
-
</div>
|
110
|
-
|
111
|
-
</div>
|
112
|
-
|
113
|
-
|
114
|
-
<!-- if includes -->
|
115
|
-
<div id="includes">
|
116
|
-
<h3 class="section-bar">Included Modules</h3>
|
117
|
-
|
118
|
-
<div id="includes-list">
|
119
|
-
<span class="include-name">Enumerable</span>
|
120
|
-
<span class="include-name">Enumerable</span>
|
121
|
-
</div>
|
122
|
-
</div>
|
123
|
-
|
124
|
-
<div id="section">
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
<!-- if method_list -->
|
134
|
-
<div id="methods">
|
135
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
136
|
-
|
137
|
-
<div id="method-M000218" class="method-detail">
|
138
|
-
<a name="M000218"></a>
|
139
|
-
|
140
|
-
<div class="method-heading">
|
141
|
-
<a href="#M000218" class="method-signature">
|
142
|
-
<span class="method-name">[]</span><span class="method-args">(i, count = nil)</span>
|
143
|
-
</a>
|
144
|
-
</div>
|
145
|
-
|
146
|
-
<div class="method-description">
|
147
|
-
<p>
|
148
|
-
inefficient, but maybe can find a way to cache the ary and dump on change?
|
149
|
-
</p>
|
150
|
-
<p><a class="source-toggle" href="#"
|
151
|
-
onclick="toggleCode('M000218-source');return false;">[Source]</a></p>
|
152
|
-
<div class="method-source-code" id="M000218-source">
|
153
|
-
<pre>
|
154
|
-
<span class="ruby-comment cmt"># File lib/libxml/node_set.rb, line 13</span>
|
155
|
-
13: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">i</span>, <span class="ruby-identifier">count</span> = <span class="ruby-keyword kw">nil</span>)
|
156
|
-
14: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">count</span>
|
157
|
-
15: <span class="ruby-identifier">to_a</span>[<span class="ruby-identifier">i</span>,<span class="ruby-identifier">count</span>]
|
158
|
-
16: <span class="ruby-keyword kw">else</span>
|
159
|
-
17: <span class="ruby-identifier">to_a</span>[<span class="ruby-identifier">i</span>]
|
160
|
-
18: <span class="ruby-keyword kw">end</span>
|
161
|
-
19: <span class="ruby-keyword kw">end</span>
|
162
|
-
</pre>
|
163
|
-
</div>
|
164
|
-
</div>
|
165
|
-
</div>
|
166
|
-
|
167
|
-
<div id="method-M000210" class="method-detail">
|
168
|
-
<a name="M000210"></a>
|
169
|
-
|
170
|
-
<div class="method-heading">
|
171
|
-
<a href="#M000210" class="method-signature">
|
172
|
-
<span class="method-name">nodeset.each { |node| ... } → self<br />
|
173
|
-
</span>
|
174
|
-
</a>
|
175
|
-
</div>
|
176
|
-
|
177
|
-
<div class="method-description">
|
178
|
-
<p>
|
179
|
-
Call the supplied block for <a href="Set.html#M000210">each</a> node in
|
180
|
-
this set.
|
181
|
-
</p>
|
182
|
-
<p><a class="source-toggle" href="#"
|
183
|
-
onclick="toggleCode('M000210-source');return false;">[Source]</a></p>
|
184
|
-
<div class="method-source-code" id="M000210-source">
|
185
|
-
<pre>
|
186
|
-
/*
|
187
|
-
* call-seq:
|
188
|
-
* nodeset.each { |node| ... } -> self
|
189
|
-
*
|
190
|
-
* Call the supplied block for each node in this set.
|
191
|
-
*/
|
192
|
-
VALUE
|
193
|
-
ruby_xml_node_set_each(VALUE self) {
|
194
|
-
|
195
|
-
</pre>
|
196
|
-
</div>
|
197
|
-
</div>
|
198
|
-
</div>
|
199
|
-
|
200
|
-
<div id="method-M000211" class="method-detail">
|
201
|
-
<a name="M000211"></a>
|
202
|
-
|
203
|
-
<div class="method-heading">
|
204
|
-
<a href="#M000211" class="method-signature">
|
205
|
-
<span class="method-name">nodeset.empty? → (true|false)<br />
|
206
|
-
</span>
|
207
|
-
</a>
|
208
|
-
</div>
|
209
|
-
|
210
|
-
<div class="method-description">
|
211
|
-
<p>
|
212
|
-
Determine whether this nodeset is empty (contains no nodes).
|
213
|
-
</p>
|
214
|
-
<p><a class="source-toggle" href="#"
|
215
|
-
onclick="toggleCode('M000211-source');return false;">[Source]</a></p>
|
216
|
-
<div class="method-source-code" id="M000211-source">
|
217
|
-
<pre>
|
218
|
-
/*
|
219
|
-
* call-seq:
|
220
|
-
* nodeset.empty? -> (true|false)
|
221
|
-
*
|
222
|
-
* Determine whether this nodeset is empty (contains no nodes).
|
223
|
-
*/
|
224
|
-
VALUE
|
225
|
-
ruby_xml_node_set_empty_q(VALUE self) {
|
226
|
-
|
227
|
-
</pre>
|
228
|
-
</div>
|
229
|
-
</div>
|
230
|
-
</div>
|
231
|
-
|
232
|
-
<div id="method-M000212" class="method-detail">
|
233
|
-
<a name="M000212"></a>
|
234
|
-
|
235
|
-
<div class="method-heading">
|
236
|
-
<a href="#M000212" class="method-signature">
|
237
|
-
<span class="method-name">nodeset.first → node<br />
|
238
|
-
</span>
|
239
|
-
</a>
|
240
|
-
</div>
|
241
|
-
|
242
|
-
<div class="method-description">
|
243
|
-
<p>
|
244
|
-
Returns the <a href="Set.html#M000212">first</a> node in this node set, or
|
245
|
-
nil if none exist.
|
246
|
-
</p>
|
247
|
-
<p><a class="source-toggle" href="#"
|
248
|
-
onclick="toggleCode('M000212-source');return false;">[Source]</a></p>
|
249
|
-
<div class="method-source-code" id="M000212-source">
|
250
|
-
<pre>
|
251
|
-
/*
|
252
|
-
* call-seq:
|
253
|
-
* nodeset.first -> node
|
254
|
-
*
|
255
|
-
* Returns the first node in this node set, or nil if none exist.
|
256
|
-
*/
|
257
|
-
VALUE
|
258
|
-
ruby_xml_node_set_first(VALUE self) {
|
259
|
-
|
260
|
-
</pre>
|
261
|
-
</div>
|
262
|
-
</div>
|
263
|
-
</div>
|
264
|
-
|
265
|
-
<div id="method-M000213" class="method-detail">
|
266
|
-
<a name="M000213"></a>
|
267
|
-
|
268
|
-
<div class="method-heading">
|
269
|
-
<a href="#M000213" class="method-signature">
|
270
|
-
<span class="method-name">nodeset.length → num<br />
|
271
|
-
</span>
|
272
|
-
</a>
|
273
|
-
</div>
|
274
|
-
|
275
|
-
<div class="method-description">
|
276
|
-
<p>
|
277
|
-
Obtain the <a href="Set.html#M000213">length</a> of this nodeset.
|
278
|
-
</p>
|
279
|
-
<p><a class="source-toggle" href="#"
|
280
|
-
onclick="toggleCode('M000213-source');return false;">[Source]</a></p>
|
281
|
-
<div class="method-source-code" id="M000213-source">
|
282
|
-
<pre>
|
283
|
-
/*
|
284
|
-
* call-seq:
|
285
|
-
* nodeset.length -> num
|
286
|
-
*
|
287
|
-
* Obtain the length of this nodeset.
|
288
|
-
*/
|
289
|
-
VALUE
|
290
|
-
ruby_xml_node_set_length(VALUE self) {
|
291
|
-
|
292
|
-
</pre>
|
293
|
-
</div>
|
294
|
-
</div>
|
295
|
-
</div>
|
296
|
-
|
297
|
-
<div id="method-M000214" class="method-detail">
|
298
|
-
<a name="M000214"></a>
|
299
|
-
|
300
|
-
<div class="method-heading">
|
301
|
-
<a href="#M000214" class="method-signature">
|
302
|
-
<span class="method-name">nodeset.length → num<br />
|
303
|
-
</span>
|
304
|
-
</a>
|
305
|
-
</div>
|
306
|
-
|
307
|
-
<div class="method-description">
|
308
|
-
<p>
|
309
|
-
Obtain the <a href="Set.html#M000213">length</a> of this nodeset.
|
310
|
-
</p>
|
311
|
-
<p><a class="source-toggle" href="#"
|
312
|
-
onclick="toggleCode('M000214-source');return false;">[Source]</a></p>
|
313
|
-
<div class="method-source-code" id="M000214-source">
|
314
|
-
<pre>
|
315
|
-
/*
|
316
|
-
* call-seq:
|
317
|
-
* nodeset.length -> num
|
318
|
-
*
|
319
|
-
* Obtain the length of this nodeset.
|
320
|
-
*/
|
321
|
-
VALUE
|
322
|
-
ruby_xml_node_set_length(VALUE self) {
|
323
|
-
|
324
|
-
</pre>
|
325
|
-
</div>
|
326
|
-
</div>
|
327
|
-
</div>
|
328
|
-
|
329
|
-
<div id="method-M000215" class="method-detail">
|
330
|
-
<a name="M000215"></a>
|
331
|
-
|
332
|
-
<div class="method-heading">
|
333
|
-
<a href="#M000215" class="method-signature">
|
334
|
-
<span class="method-name">nodeset.to_a → [node, ..., node]<br />
|
335
|
-
</span>
|
336
|
-
</a>
|
337
|
-
</div>
|
338
|
-
|
339
|
-
<div class="method-description">
|
340
|
-
<p>
|
341
|
-
Obtain an array of the nodes in this set.
|
342
|
-
</p>
|
343
|
-
<p><a class="source-toggle" href="#"
|
344
|
-
onclick="toggleCode('M000215-source');return false;">[Source]</a></p>
|
345
|
-
<div class="method-source-code" id="M000215-source">
|
346
|
-
<pre>
|
347
|
-
/*
|
348
|
-
* call-seq:
|
349
|
-
* nodeset.to_a -> [node, ..., node]
|
350
|
-
*
|
351
|
-
* Obtain an array of the nodes in this set.
|
352
|
-
*/
|
353
|
-
VALUE
|
354
|
-
ruby_xml_node_set_to_a(VALUE self) {
|
355
|
-
|
356
|
-
</pre>
|
357
|
-
</div>
|
358
|
-
</div>
|
359
|
-
</div>
|
360
|
-
|
361
|
-
<div id="method-M000216" class="method-detail">
|
362
|
-
<a name="M000216"></a>
|
363
|
-
|
364
|
-
<div class="method-heading">
|
365
|
-
<a href="#M000216" class="method-signature">
|
366
|
-
<span class="method-name">nodeset.xpath → xpath<br />
|
367
|
-
</span>
|
368
|
-
</a>
|
369
|
-
</div>
|
370
|
-
|
371
|
-
<div class="method-description">
|
372
|
-
<p>
|
373
|
-
Obtain the <a href="Set.html#M000216">xpath</a> corresponding to this
|
374
|
-
nodeset, if any.
|
375
|
-
</p>
|
376
|
-
<p><a class="source-toggle" href="#"
|
377
|
-
onclick="toggleCode('M000216-source');return false;">[Source]</a></p>
|
378
|
-
<div class="method-source-code" id="M000216-source">
|
379
|
-
<pre>
|
380
|
-
/*
|
381
|
-
* call-seq:
|
382
|
-
* nodeset.xpath -> xpath
|
383
|
-
*
|
384
|
-
* Obtain the xpath corresponding to this nodeset, if any.
|
385
|
-
*/
|
386
|
-
VALUE
|
387
|
-
ruby_xml_node_set_xpath_get(VALUE self) {
|
388
|
-
|
389
|
-
</pre>
|
390
|
-
</div>
|
391
|
-
</div>
|
392
|
-
</div>
|
393
|
-
|
394
|
-
<div id="method-M000217" class="method-detail">
|
395
|
-
<a name="M000217"></a>
|
396
|
-
|
397
|
-
<div class="method-heading">
|
398
|
-
<a href="#M000217" class="method-signature">
|
399
|
-
<span class="method-name">nodeset.xpath_ctxt → context<br />
|
400
|
-
</span>
|
401
|
-
</a>
|
402
|
-
</div>
|
403
|
-
|
404
|
-
<div class="method-description">
|
405
|
-
<p>
|
406
|
-
Return the <a href="Set.html#M000216">xpath</a> context corresponding to
|
407
|
-
this nodeset, if any.
|
408
|
-
</p>
|
409
|
-
<p><a class="source-toggle" href="#"
|
410
|
-
onclick="toggleCode('M000217-source');return false;">[Source]</a></p>
|
411
|
-
<div class="method-source-code" id="M000217-source">
|
412
|
-
<pre>
|
413
|
-
/*
|
414
|
-
* call-seq:
|
415
|
-
* nodeset.xpath_ctxt -> context
|
416
|
-
*
|
417
|
-
* Return the xpath context corresponding to this nodeset,
|
418
|
-
* if any.
|
419
|
-
*/
|
420
|
-
VALUE
|
421
|
-
ruby_xml_node_set_xpath_data_get(VALUE self) {
|
422
|
-
|
423
|
-
</pre>
|
424
|
-
</div>
|
425
|
-
</div>
|
426
|
-
</div>
|
427
|
-
|
428
|
-
|
429
|
-
</div>
|
430
|
-
|
431
|
-
|
432
|
-
</div>
|
433
|
-
|
434
|
-
|
435
|
-
<div id="validator-badges">
|
436
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
437
|
-
</div>
|
438
|
-
|
439
|
-
</body>
|
440
|
-
</html>
|