libxml-ruby 0.7.0-x86-mswin32-60 → 0.8.0-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +24 -1
- data/README +48 -3
- data/benchmark/depixelate.rb +632 -0
- data/benchmark/hamlet.xml +9055 -0
- data/benchmark/sock_entries.xml +507 -0
- data/benchmark/throughput.rb +39 -0
- data/benchmark/xml_benchmarks.rb +222 -0
- data/doc/classes/LibXML.html +237 -0
- data/doc/classes/LibXML/XML.html +178 -0
- data/doc/classes/{XML → LibXML/XML}/Attr.html +213 -182
- data/doc/classes/{XML → LibXML/XML}/Attributes.html +126 -54
- data/doc/classes/{XML → LibXML/XML}/Document.html +299 -297
- data/doc/classes/{XML → LibXML/XML}/Dtd.html +10 -10
- data/doc/classes/{XML/XInclude → LibXML/XML}/Error.html +4 -4
- data/doc/classes/{XML → LibXML/XML}/HTMLParser.html +40 -40
- data/doc/classes/{XML → LibXML/XML}/InputCallbacks.html +10 -10
- data/doc/classes/{XML → LibXML/XML}/NS.html +46 -46
- data/doc/classes/{XML → LibXML/XML}/Node.html +935 -788
- data/doc/classes/LibXML/XML/Node/FailedModify.html +111 -0
- data/doc/classes/{XML → LibXML/XML}/Node/Set.html +69 -68
- data/doc/classes/{XML → LibXML/XML}/Node/SetNamespace.html +4 -4
- data/doc/classes/{XML/Node/FailedModify.html → LibXML/XML/Node/UnknownType.html} +4 -4
- data/doc/classes/{XML → LibXML/XML}/Parser.html +426 -389
- data/doc/classes/{XML → LibXML/XML}/Parser/Context.html +208 -208
- data/doc/classes/{XML → LibXML/XML}/Parser/ParseError.html +4 -4
- data/doc/classes/{XML → LibXML/XML}/Reader.html +288 -287
- data/doc/classes/{XML → LibXML/XML}/SaxParser.html +52 -52
- data/doc/classes/{XML/XPath/Context.html → LibXML/XML/Schema.html} +60 -32
- data/doc/classes/{XML → LibXML/XML}/State.html +4 -4
- data/doc/classes/{XML/Node/UnknownType.html → LibXML/XML/Tree.html} +5 -5
- data/doc/classes/{XML → LibXML/XML}/XInclude.html +5 -5
- data/doc/classes/{XML → LibXML/XML/XInclude}/Error.html +5 -5
- data/doc/classes/{XML → LibXML/XML}/XMLParserOptions.html +5 -5
- data/doc/classes/{XML → LibXML/XML}/XPath.html +23 -64
- data/doc/classes/LibXML/XML/XPath/Context.html +403 -0
- data/doc/classes/{XML/XPointer/Context → LibXML/XML/XPath}/InvalidPath.html +4 -4
- data/doc/classes/LibXML/XML/XPath/Object.html +623 -0
- data/doc/classes/{XML → LibXML/XML}/XPointer.html +12 -12
- data/doc/classes/{XML → LibXML/XML}/XPointer/Context.html +5 -5
- data/doc/classes/{XML/XPath → LibXML/XML/XPointer/Context}/InvalidPath.html +5 -5
- data/doc/classes/{XML → LibXML/XML}/XPointer/InvalidExpression.html +4 -4
- data/doc/classes/XML.html +17 -123
- data/doc/created.rid +1 -1
- data/doc/files/CHANGES.html +49 -25
- data/doc/files/LICENSE.html +1 -1
- data/doc/files/README.html +79 -4
- data/doc/files/VERSION.html +2 -2
- data/doc/files/ext/libxml/cbg_c.html +1 -1
- data/doc/files/ext/libxml/libxml_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_attr_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_attributes_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_document_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_dtd_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_html_parser_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_input_cbg_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_node_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_node_set_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_ns_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_parser_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_parser_context_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_reader_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_sax_parser_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_schema_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_state_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xinclude_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xpath_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xpath_context_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xpath_object_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xpointer_c.html +1 -1
- data/doc/files/ext/libxml/ruby_xml_xpointer_context_c.html +1 -1
- data/doc/files/lib/libxml/attr_rb.html +108 -0
- data/doc/files/lib/libxml/attributes_rb.html +108 -0
- data/doc/files/lib/libxml/document_rb.html +108 -0
- data/doc/files/lib/libxml/node_rb.html +108 -0
- data/doc/files/lib/libxml/node_set_rb.html +108 -0
- data/doc/files/lib/libxml/parser_options_rb.html +107 -0
- data/doc/files/{ext/libxml/ruby_xml_tree_c.html → lib/libxml/parser_rb.html} +4 -4
- data/doc/files/lib/libxml/properties_rb.html +108 -0
- data/doc/files/lib/libxml/tree_rb.html +107 -0
- data/doc/files/lib/libxml_rb.html +12 -3
- data/doc/fr_class_index.html +34 -32
- data/doc/fr_file_index.html +9 -1
- data/doc/fr_method_index.html +362 -347
- data/ext/libxml/cbg.c +76 -76
- data/ext/libxml/libxml.c +4 -3
- data/ext/libxml/ruby_libxml.h +1 -1
- data/ext/libxml/ruby_xml_attr.c +4 -3
- data/ext/libxml/ruby_xml_attr.h +16 -16
- data/ext/libxml/ruby_xml_attributes.c +267 -266
- data/ext/libxml/ruby_xml_attributes.h +17 -17
- data/ext/libxml/ruby_xml_document.c +30 -59
- data/ext/libxml/ruby_xml_document.h +27 -27
- data/ext/libxml/ruby_xml_dtd.c +2 -1
- data/ext/libxml/ruby_xml_dtd.h +17 -17
- data/ext/libxml/ruby_xml_html_parser.c +3 -2
- data/ext/libxml/ruby_xml_html_parser.h +29 -29
- data/ext/libxml/ruby_xml_input_cbg.c +2 -1
- data/ext/libxml/ruby_xml_input_cbg.h +20 -20
- data/ext/libxml/ruby_xml_node.c +127 -470
- data/ext/libxml/ruby_xml_node.h +17 -17
- data/ext/libxml/ruby_xml_node_set.c +5 -4
- data/ext/libxml/ruby_xml_node_set.h +20 -20
- data/ext/libxml/ruby_xml_ns.c +3 -2
- data/ext/libxml/ruby_xml_ns.h +12 -12
- data/ext/libxml/ruby_xml_parser.c +20 -48
- data/ext/libxml/ruby_xml_parser.h +31 -31
- data/ext/libxml/ruby_xml_parser_context.c +3 -2
- data/ext/libxml/ruby_xml_parser_context.h +20 -20
- data/ext/libxml/ruby_xml_reader.c +2 -1
- data/ext/libxml/ruby_xml_sax_parser.c +3 -2
- data/ext/libxml/ruby_xml_sax_parser.h +56 -56
- data/ext/libxml/ruby_xml_schema.c +6 -0
- data/ext/libxml/ruby_xml_schema.h +16 -16
- data/ext/libxml/ruby_xml_state.c +13 -12
- data/ext/libxml/ruby_xml_state.h +1 -1
- data/ext/libxml/ruby_xml_xinclude.c +3 -2
- data/ext/libxml/ruby_xml_xinclude.h +13 -13
- data/ext/libxml/ruby_xml_xpath.c +35 -228
- data/ext/libxml/ruby_xml_xpath.h +22 -23
- data/ext/libxml/ruby_xml_xpath_context.c +223 -62
- data/ext/libxml/ruby_xml_xpath_context.h +15 -20
- data/ext/libxml/ruby_xml_xpath_object.c +63 -19
- data/ext/libxml/ruby_xml_xpointer.c +19 -15
- data/ext/libxml/ruby_xml_xpointer.h +27 -27
- data/ext/libxml/ruby_xml_xpointer_context.c +3 -2
- data/ext/libxml/ruby_xml_xpointer_context.h +18 -18
- data/ext/libxml/version.h +9 -9
- data/lib/libxml.rb +16 -128
- data/lib/libxml/attr.rb +45 -0
- data/lib/libxml/attributes.rb +15 -0
- data/lib/libxml/document.rb +54 -0
- data/lib/libxml/node.rb +132 -0
- data/lib/libxml/node_set.rb +27 -0
- data/lib/libxml/parser.rb +42 -0
- data/lib/libxml/parser_options.rb +25 -0
- data/lib/libxml/properties.rb +19 -0
- data/lib/libxml/tree.rb +29 -0
- data/lib/libxml_ruby.so +0 -0
- data/mingw/libxml_ruby.so +0 -0
- data/{work/task/setup → setup.rb} +1585 -1616
- data/test/gc.log +0 -0
- data/test/model/books.xml +147 -0
- data/{work/test/runner.rb → test/model/default_validation_bug.rb} +0 -0
- data/test/model/merge_bug_data.xml +58 -0
- data/test/model/rubynet.xml +78 -0
- data/test/model/rubynet_project +1 -0
- data/test/model/saxtest.xml +5 -0
- data/test/model/shiporder.xml +23 -0
- data/test/model/shiporder.xsd +31 -0
- data/test/model/simple.xml +7 -0
- data/test/model/soap.xml +27 -0
- data/test/model/xinclude.xml +5 -0
- data/test/tc_deprecated_require.rb +13 -0
- data/test/tc_xml_document.rb +57 -16
- data/test/tc_xml_document_write.rb +125 -10
- data/test/tc_xml_dtd.rb +22 -1
- data/test/tc_xml_node.rb +13 -0
- data/test/tc_xml_node_edit.rb +1 -1
- data/test/tc_xml_node_xlink.rb +1 -1
- data/test/tc_xml_parser.rb +64 -7
- data/test/tc_xml_properties.rb +42 -0
- data/test/tc_xml_reader.rb +4 -4
- data/test/tc_xml_sax_parser.rb +50 -50
- data/test/tc_xml_schema.rb +2 -2
- data/test/tc_xml_traversal.rb +220 -0
- data/test/tc_xml_xinclude.rb +12 -15
- data/test/tc_xml_xpath.rb +74 -6
- data/test/tc_xml_xpath_context.rb +72 -0
- data/test/test_suite.rb +6 -4
- data/vc/libxml_ruby.vcproj +1 -9
- metadata +92 -65
- data/doc/classes/XML/SiblingEnum.html +0 -142
- data/doc/classes/XML/Tree.html +0 -224
- data/doc/classes/XML/XPath/Object.html +0 -439
- data/ext/libxml/ruby_xml_tree.c +0 -43
- data/ext/libxml/ruby_xml_tree.h +0 -12
- data/test/ets_copy_bug2.rb +0 -21
- data/test/tc_xml_document_write2.rb +0 -54
- data/test/tc_xml_document_write3.rb +0 -96
- data/test/tc_xml_sax_parser2.rb +0 -51
- data/work/Rakefile +0 -247
- data/work/task/make +0 -26
- data/work/task/memory +0 -37
- data/work/task/rdoc +0 -39
- data/work/task/test +0 -29
- data/work/test/ets_runner.rb +0 -33
- data/work/test/libxml_test.rb +0 -3
- data/work/test/runner_ets.rb +0 -33
@@ -0,0 +1,178 @@
|
|
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>Module: LibXML::XML</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>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">LibXML::XML</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
|
+
<a href="../../files/lib/libxml/attr_rb.html">
|
63
|
+
lib/libxml/attr.rb
|
64
|
+
</a>
|
65
|
+
<br />
|
66
|
+
<a href="../../files/lib/libxml/attributes_rb.html">
|
67
|
+
lib/libxml/attributes.rb
|
68
|
+
</a>
|
69
|
+
<br />
|
70
|
+
<a href="../../files/lib/libxml/document_rb.html">
|
71
|
+
lib/libxml/document.rb
|
72
|
+
</a>
|
73
|
+
<br />
|
74
|
+
<a href="../../files/lib/libxml/node_rb.html">
|
75
|
+
lib/libxml/node.rb
|
76
|
+
</a>
|
77
|
+
<br />
|
78
|
+
<a href="../../files/lib/libxml/node_set_rb.html">
|
79
|
+
lib/libxml/node_set.rb
|
80
|
+
</a>
|
81
|
+
<br />
|
82
|
+
<a href="../../files/lib/libxml/parser_rb.html">
|
83
|
+
lib/libxml/parser.rb
|
84
|
+
</a>
|
85
|
+
<br />
|
86
|
+
<a href="../../files/lib/libxml/parser_options_rb.html">
|
87
|
+
lib/libxml/parser_options.rb
|
88
|
+
</a>
|
89
|
+
<br />
|
90
|
+
<a href="../../files/lib/libxml/properties_rb.html">
|
91
|
+
lib/libxml/properties.rb
|
92
|
+
</a>
|
93
|
+
<br />
|
94
|
+
<a href="../../files/lib/libxml/tree_rb.html">
|
95
|
+
lib/libxml/tree.rb
|
96
|
+
</a>
|
97
|
+
<br />
|
98
|
+
</td>
|
99
|
+
</tr>
|
100
|
+
|
101
|
+
</table>
|
102
|
+
</div>
|
103
|
+
<!-- banner header -->
|
104
|
+
|
105
|
+
<div id="bodyContent">
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<div id="contextContent">
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
</div>
|
117
|
+
|
118
|
+
|
119
|
+
<!-- if includes -->
|
120
|
+
|
121
|
+
<div id="section">
|
122
|
+
|
123
|
+
<div id="class-list">
|
124
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
125
|
+
|
126
|
+
Module <a href="XML/XMLParserOptions.html" class="link">LibXML::XML::XMLParserOptions</a><br />
|
127
|
+
Module <a href="XML/XPath.html" class="link">LibXML::XML::XPath</a><br />
|
128
|
+
Class <a href="XML/Attr.html" class="link">LibXML::XML::Attr</a><br />
|
129
|
+
Class <a href="XML/Attributes.html" class="link">LibXML::XML::Attributes</a><br />
|
130
|
+
Class <a href="XML/Document.html" class="link">LibXML::XML::Document</a><br />
|
131
|
+
Class <a href="XML/Dtd.html" class="link">LibXML::XML::Dtd</a><br />
|
132
|
+
Class <a href="XML/Error.html" class="link">LibXML::XML::Error</a><br />
|
133
|
+
Class <a href="XML/HTMLParser.html" class="link">LibXML::XML::HTMLParser</a><br />
|
134
|
+
Class <a href="XML/InputCallbacks.html" class="link">LibXML::XML::InputCallbacks</a><br />
|
135
|
+
Class <a href="XML/NS.html" class="link">LibXML::XML::NS</a><br />
|
136
|
+
Class <a href="XML/Node.html" class="link">LibXML::XML::Node</a><br />
|
137
|
+
Class <a href="XML/Parser.html" class="link">LibXML::XML::Parser</a><br />
|
138
|
+
Class <a href="XML/Reader.html" class="link">LibXML::XML::Reader</a><br />
|
139
|
+
Class <a href="XML/SaxParser.html" class="link">LibXML::XML::SaxParser</a><br />
|
140
|
+
Class <a href="XML/Schema.html" class="link">LibXML::XML::Schema</a><br />
|
141
|
+
Class <a href="XML/State.html" class="link">LibXML::XML::State</a><br />
|
142
|
+
Class <a href="XML/Tree.html" class="link">LibXML::XML::Tree</a><br />
|
143
|
+
Class <a href="XML/XInclude.html" class="link">LibXML::XML::XInclude</a><br />
|
144
|
+
Class <a href="XML/XPointer.html" class="link">LibXML::XML::XPointer</a><br />
|
145
|
+
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div id="constants-list">
|
149
|
+
<h3 class="section-bar">Constants</h3>
|
150
|
+
|
151
|
+
<div class="name-list">
|
152
|
+
<table summary="Constants">
|
153
|
+
<tr class="top-aligned-row context-row">
|
154
|
+
<td class="context-item-name">XML_NAMESPACE</td>
|
155
|
+
<td>=</td>
|
156
|
+
<td class="context-item-value">rb_str_new2((const char*)XML_XML_NAMESPACE)</td>
|
157
|
+
</tr>
|
158
|
+
</table>
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<!-- if method_list -->
|
168
|
+
|
169
|
+
|
170
|
+
</div>
|
171
|
+
|
172
|
+
|
173
|
+
<div id="validator-badges">
|
174
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
175
|
+
</div>
|
176
|
+
|
177
|
+
</body>
|
178
|
+
</html>
|
@@ -5,10 +5,10 @@
|
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
<title>Class: XML::Attr</title>
|
8
|
+
<title>Class: LibXML::XML::Attr</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
12
|
<script type="text/javascript">
|
13
13
|
// <![CDATA[
|
14
14
|
|
@@ -50,17 +50,17 @@
|
|
50
50
|
<table class="header-table">
|
51
51
|
<tr class="top-aligned-row">
|
52
52
|
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">XML::Attr</td>
|
53
|
+
<td class="class-name-in-header">LibXML::XML::Attr</td>
|
54
54
|
</tr>
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="
|
58
|
+
<a href="../../../files/ext/libxml/libxml_c.html">
|
59
59
|
ext/libxml/libxml.c
|
60
60
|
</a>
|
61
61
|
<br />
|
62
|
-
<a href="
|
63
|
-
lib/libxml.rb
|
62
|
+
<a href="../../../files/lib/libxml/attr_rb.html">
|
63
|
+
lib/libxml/attr.rb
|
64
64
|
</a>
|
65
65
|
<br />
|
66
66
|
</td>
|
@@ -85,7 +85,7 @@
|
|
85
85
|
<div id="description">
|
86
86
|
<p>
|
87
87
|
Provides access to an single element attribute. Accessed by calling <a
|
88
|
-
href="Node.html#
|
88
|
+
href="Node.html#M000131">XML::Node#attributes</a> method.
|
89
89
|
</p>
|
90
90
|
<p>
|
91
91
|
Basic Usage:
|
@@ -109,32 +109,33 @@ Basic Usage:
|
|
109
109
|
<h3 class="section-bar">Methods</h3>
|
110
110
|
|
111
111
|
<div class="name-list">
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
117
|
-
<a href="#
|
118
|
-
<a href="#
|
119
|
-
<a href="#
|
120
|
-
<a href="#
|
121
|
-
<a href="#
|
122
|
-
<a href="#
|
123
|
-
<a href="#
|
124
|
-
<a href="#
|
125
|
-
<a href="#
|
126
|
-
<a href="#
|
127
|
-
<a href="#
|
128
|
-
<a href="#
|
129
|
-
<a href="#
|
130
|
-
<a href="#
|
131
|
-
<a href="#
|
132
|
-
<a href="#
|
133
|
-
<a href="#
|
134
|
-
<a href="#
|
135
|
-
<a href="#
|
136
|
-
<a href="#
|
137
|
-
<a href="#
|
112
|
+
<a href="#M000238">child</a>
|
113
|
+
<a href="#M000239">child?</a>
|
114
|
+
<a href="#M000240">doc</a>
|
115
|
+
<a href="#M000241">doc?</a>
|
116
|
+
<a href="#M000260">each</a>
|
117
|
+
<a href="#M000259">each_attr</a>
|
118
|
+
<a href="#M000258">each_sibling</a>
|
119
|
+
<a href="#M000242">last</a>
|
120
|
+
<a href="#M000243">last?</a>
|
121
|
+
<a href="#M000244">name</a>
|
122
|
+
<a href="#M000237">new</a>
|
123
|
+
<a href="#M000245">next</a>
|
124
|
+
<a href="#M000246">next?</a>
|
125
|
+
<a href="#M000247">node_type_name</a>
|
126
|
+
<a href="#M000248">ns</a>
|
127
|
+
<a href="#M000249">ns?</a>
|
128
|
+
<a href="#M000250">parent</a>
|
129
|
+
<a href="#M000251">parent?</a>
|
130
|
+
<a href="#M000252">prev</a>
|
131
|
+
<a href="#M000253">prev?</a>
|
132
|
+
<a href="#M000254">remove!</a>
|
133
|
+
<a href="#M000257">siblings</a>
|
134
|
+
<a href="#M000262">to_a</a>
|
135
|
+
<a href="#M000261">to_h</a>
|
136
|
+
<a href="#M000263">to_s</a>
|
137
|
+
<a href="#M000255">value</a>
|
138
|
+
<a href="#M000256">value=</a>
|
138
139
|
</div>
|
139
140
|
</div>
|
140
141
|
|
@@ -146,7 +147,6 @@ Basic Usage:
|
|
146
147
|
<h3 class="section-bar">Included Modules</h3>
|
147
148
|
|
148
149
|
<div id="includes-list">
|
149
|
-
<span class="include-name"><a href="SiblingEnum.html">XML::SiblingEnum</a></span>
|
150
150
|
<span class="include-name">Enumerable</span>
|
151
151
|
</div>
|
152
152
|
</div>
|
@@ -164,11 +164,11 @@ Basic Usage:
|
|
164
164
|
<div id="methods">
|
165
165
|
<h3 class="section-bar">Public Class methods</h3>
|
166
166
|
|
167
|
-
<div id="method-
|
168
|
-
<a name="
|
167
|
+
<div id="method-M000237" class="method-detail">
|
168
|
+
<a name="M000237"></a>
|
169
169
|
|
170
170
|
<div class="method-heading">
|
171
|
-
<a href="#
|
171
|
+
<a href="#M000237" class="method-signature">
|
172
172
|
<span class="method-name">attr.initialize(node, "name", "value")<br />
|
173
173
|
</span>
|
174
174
|
</a>
|
@@ -186,8 +186,8 @@ name: The name of the attribute value: The value of the attribute
|
|
186
186
|
attr = XML::Attr.new(doc.root, 'name', 'libxml')
|
187
187
|
</pre>
|
188
188
|
<p><a class="source-toggle" href="#"
|
189
|
-
onclick="toggleCode('
|
190
|
-
<div class="method-source-code" id="
|
189
|
+
onclick="toggleCode('M000237-source');return false;">[Source]</a></p>
|
190
|
+
<div class="method-source-code" id="M000237-source">
|
191
191
|
<pre>
|
192
192
|
/*
|
193
193
|
* call-seq:
|
@@ -211,11 +211,11 @@ ruby_xml_attr_initialize(int argc, VALUE *argv, VALUE self) {
|
|
211
211
|
|
212
212
|
<h3 class="section-bar">Public Instance methods</h3>
|
213
213
|
|
214
|
-
<div id="method-
|
215
|
-
<a name="
|
214
|
+
<div id="method-M000238" class="method-detail">
|
215
|
+
<a name="M000238"></a>
|
216
216
|
|
217
217
|
<div class="method-heading">
|
218
|
-
<a href="#
|
218
|
+
<a href="#M000238" class="method-signature">
|
219
219
|
<span class="method-name">attr.child → node<br />
|
220
220
|
</span>
|
221
221
|
</a>
|
@@ -226,8 +226,8 @@ ruby_xml_attr_initialize(int argc, VALUE *argv, VALUE self) {
|
|
226
226
|
Obtain this attribute’s child attribute(s).
|
227
227
|
</p>
|
228
228
|
<p><a class="source-toggle" href="#"
|
229
|
-
onclick="toggleCode('
|
230
|
-
<div class="method-source-code" id="
|
229
|
+
onclick="toggleCode('M000238-source');return false;">[Source]</a></p>
|
230
|
+
<div class="method-source-code" id="M000238-source">
|
231
231
|
<pre>
|
232
232
|
/*
|
233
233
|
* call-seq:
|
@@ -243,11 +243,11 @@ ruby_xml_attr_child_get(VALUE self) {
|
|
243
243
|
</div>
|
244
244
|
</div>
|
245
245
|
|
246
|
-
<div id="method-
|
247
|
-
<a name="
|
246
|
+
<div id="method-M000239" class="method-detail">
|
247
|
+
<a name="M000239"></a>
|
248
248
|
|
249
249
|
<div class="method-heading">
|
250
|
-
<a href="#
|
250
|
+
<a href="#M000239" class="method-signature">
|
251
251
|
<span class="method-name">attr.child? → (true|false)<br />
|
252
252
|
</span>
|
253
253
|
</a>
|
@@ -258,8 +258,8 @@ ruby_xml_attr_child_get(VALUE self) {
|
|
258
258
|
Determine whether this attribute has child attributes.
|
259
259
|
</p>
|
260
260
|
<p><a class="source-toggle" href="#"
|
261
|
-
onclick="toggleCode('
|
262
|
-
<div class="method-source-code" id="
|
261
|
+
onclick="toggleCode('M000239-source');return false;">[Source]</a></p>
|
262
|
+
<div class="method-source-code" id="M000239-source">
|
263
263
|
<pre>
|
264
264
|
/*
|
265
265
|
* call-seq:
|
@@ -275,11 +275,11 @@ ruby_xml_attr_child_q(VALUE self) {
|
|
275
275
|
</div>
|
276
276
|
</div>
|
277
277
|
|
278
|
-
<div id="method-
|
279
|
-
<a name="
|
278
|
+
<div id="method-M000240" class="method-detail">
|
279
|
+
<a name="M000240"></a>
|
280
280
|
|
281
281
|
<div class="method-heading">
|
282
|
-
<a href="#
|
282
|
+
<a href="#M000240" class="method-signature">
|
283
283
|
<span class="method-name">attr.doc → XML::Document<br />
|
284
284
|
</span>
|
285
285
|
</a>
|
@@ -293,8 +293,8 @@ Returns this attribute’s document.
|
|
293
293
|
doc.root.attributes.get_attribute('name').doc == doc
|
294
294
|
</pre>
|
295
295
|
<p><a class="source-toggle" href="#"
|
296
|
-
onclick="toggleCode('
|
297
|
-
<div class="method-source-code" id="
|
296
|
+
onclick="toggleCode('M000240-source');return false;">[Source]</a></p>
|
297
|
+
<div class="method-source-code" id="M000240-source">
|
298
298
|
<pre>
|
299
299
|
/*
|
300
300
|
* call-seq:
|
@@ -312,11 +312,11 @@ ruby_xml_attr_doc_get(VALUE self) {
|
|
312
312
|
</div>
|
313
313
|
</div>
|
314
314
|
|
315
|
-
<div id="method-
|
316
|
-
<a name="
|
315
|
+
<div id="method-M000241" class="method-detail">
|
316
|
+
<a name="M000241"></a>
|
317
317
|
|
318
318
|
<div class="method-heading">
|
319
|
-
<a href="#
|
319
|
+
<a href="#M000241" class="method-signature">
|
320
320
|
<span class="method-name">attr.doc? → (true|false)<br />
|
321
321
|
</span>
|
322
322
|
</a>
|
@@ -328,8 +328,8 @@ Determine whether this attribute is associated with an <a
|
|
328
328
|
href="Document.html">XML::Document</a>.
|
329
329
|
</p>
|
330
330
|
<p><a class="source-toggle" href="#"
|
331
|
-
onclick="toggleCode('
|
332
|
-
<div class="method-source-code" id="
|
331
|
+
onclick="toggleCode('M000241-source');return false;">[Source]</a></p>
|
332
|
+
<div class="method-source-code" id="M000241-source">
|
333
333
|
<pre>
|
334
334
|
/*
|
335
335
|
* call-seq:
|
@@ -346,8 +346,8 @@ ruby_xml_attr_doc_q(VALUE self) {
|
|
346
346
|
</div>
|
347
347
|
</div>
|
348
348
|
|
349
|
-
<div id="method-
|
350
|
-
<a name="
|
349
|
+
<div id="method-M000260" class="method-detail">
|
350
|
+
<a name="M000260"></a>
|
351
351
|
|
352
352
|
<div class="method-heading">
|
353
353
|
<span class="method-name">each</span><span class="method-args">(&blk)</span>
|
@@ -355,13 +355,13 @@ ruby_xml_attr_doc_q(VALUE self) {
|
|
355
355
|
|
356
356
|
<div class="method-description">
|
357
357
|
<p>
|
358
|
-
Alias for <a href="Attr.html#
|
358
|
+
Alias for <a href="Attr.html#M000258">each_sibling</a>
|
359
359
|
</p>
|
360
360
|
</div>
|
361
361
|
</div>
|
362
362
|
|
363
|
-
<div id="method-
|
364
|
-
<a name="
|
363
|
+
<div id="method-M000259" class="method-detail">
|
364
|
+
<a name="M000259"></a>
|
365
365
|
|
366
366
|
<div class="method-heading">
|
367
367
|
<span class="method-name">each_attr</span><span class="method-args">(&blk)</span>
|
@@ -369,39 +369,39 @@ Alias for <a href="Attr.html#M000232">each_sibling</a>
|
|
369
369
|
|
370
370
|
<div class="method-description">
|
371
371
|
<p>
|
372
|
-
Alias for <a href="Attr.html#
|
372
|
+
Alias for <a href="Attr.html#M000258">each_sibling</a>
|
373
373
|
</p>
|
374
374
|
</div>
|
375
375
|
</div>
|
376
376
|
|
377
|
-
<div id="method-
|
378
|
-
<a name="
|
377
|
+
<div id="method-M000258" class="method-detail">
|
378
|
+
<a name="M000258"></a>
|
379
379
|
|
380
380
|
<div class="method-heading">
|
381
|
-
<a href="#
|
381
|
+
<a href="#M000258" class="method-signature">
|
382
382
|
<span class="method-name">each_sibling</span><span class="method-args">(&blk)</span>
|
383
383
|
</a>
|
384
384
|
</div>
|
385
385
|
|
386
386
|
<div class="method-description">
|
387
387
|
<p><a class="source-toggle" href="#"
|
388
|
-
onclick="toggleCode('
|
389
|
-
<div class="method-source-code" id="
|
388
|
+
onclick="toggleCode('M000258-source');return false;">[Source]</a></p>
|
389
|
+
<div class="method-source-code" id="M000258-source">
|
390
390
|
<pre>
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
391
|
+
<span class="ruby-comment cmt"># File lib/libxml/attr.rb, line 19</span>
|
392
|
+
19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_sibling</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
393
|
+
20: <span class="ruby-identifier">siblings</span>(<span class="ruby-keyword kw">self</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
394
|
+
21: <span class="ruby-keyword kw">end</span>
|
395
395
|
</pre>
|
396
396
|
</div>
|
397
397
|
</div>
|
398
398
|
</div>
|
399
399
|
|
400
|
-
<div id="method-
|
401
|
-
<a name="
|
400
|
+
<div id="method-M000242" class="method-detail">
|
401
|
+
<a name="M000242"></a>
|
402
402
|
|
403
403
|
<div class="method-heading">
|
404
|
-
<a href="#
|
404
|
+
<a href="#M000242" class="method-signature">
|
405
405
|
<span class="method-name">attr.last → node<br />
|
406
406
|
</span>
|
407
407
|
</a>
|
@@ -412,8 +412,8 @@ Alias for <a href="Attr.html#M000232">each_sibling</a>
|
|
412
412
|
Obtain the last attribute.
|
413
413
|
</p>
|
414
414
|
<p><a class="source-toggle" href="#"
|
415
|
-
onclick="toggleCode('
|
416
|
-
<div class="method-source-code" id="
|
415
|
+
onclick="toggleCode('M000242-source');return false;">[Source]</a></p>
|
416
|
+
<div class="method-source-code" id="M000242-source">
|
417
417
|
<pre>
|
418
418
|
/*
|
419
419
|
* call-seq:
|
@@ -429,11 +429,11 @@ ruby_xml_attr_last_get(VALUE self) {
|
|
429
429
|
</div>
|
430
430
|
</div>
|
431
431
|
|
432
|
-
<div id="method-
|
433
|
-
<a name="
|
432
|
+
<div id="method-M000243" class="method-detail">
|
433
|
+
<a name="M000243"></a>
|
434
434
|
|
435
435
|
<div class="method-heading">
|
436
|
-
<a href="#
|
436
|
+
<a href="#M000243" class="method-signature">
|
437
437
|
<span class="method-name">attr.last? → (true|false)<br />
|
438
438
|
</span>
|
439
439
|
</a>
|
@@ -444,8 +444,8 @@ ruby_xml_attr_last_get(VALUE self) {
|
|
444
444
|
Determine whether this is the last attribute.
|
445
445
|
</p>
|
446
446
|
<p><a class="source-toggle" href="#"
|
447
|
-
onclick="toggleCode('
|
448
|
-
<div class="method-source-code" id="
|
447
|
+
onclick="toggleCode('M000243-source');return false;">[Source]</a></p>
|
448
|
+
<div class="method-source-code" id="M000243-source">
|
449
449
|
<pre>
|
450
450
|
/*
|
451
451
|
* call-seq:
|
@@ -461,11 +461,11 @@ ruby_xml_attr_last_q(VALUE self) {
|
|
461
461
|
</div>
|
462
462
|
</div>
|
463
463
|
|
464
|
-
<div id="method-
|
465
|
-
<a name="
|
464
|
+
<div id="method-M000244" class="method-detail">
|
465
|
+
<a name="M000244"></a>
|
466
466
|
|
467
467
|
<div class="method-heading">
|
468
|
-
<a href="#
|
468
|
+
<a href="#M000244" class="method-signature">
|
469
469
|
<span class="method-name">attr.name → "name"<br />
|
470
470
|
</span>
|
471
471
|
</a>
|
@@ -476,8 +476,8 @@ ruby_xml_attr_last_q(VALUE self) {
|
|
476
476
|
Obtain this attribute’s name.
|
477
477
|
</p>
|
478
478
|
<p><a class="source-toggle" href="#"
|
479
|
-
onclick="toggleCode('
|
480
|
-
<div class="method-source-code" id="
|
479
|
+
onclick="toggleCode('M000244-source');return false;">[Source]</a></p>
|
480
|
+
<div class="method-source-code" id="M000244-source">
|
481
481
|
<pre>
|
482
482
|
/*
|
483
483
|
* call-seq:
|
@@ -493,11 +493,11 @@ ruby_xml_attr_name_get(VALUE self) {
|
|
493
493
|
</div>
|
494
494
|
</div>
|
495
495
|
|
496
|
-
<div id="method-
|
497
|
-
<a name="
|
496
|
+
<div id="method-M000245" class="method-detail">
|
497
|
+
<a name="M000245"></a>
|
498
498
|
|
499
499
|
<div class="method-heading">
|
500
|
-
<a href="#
|
500
|
+
<a href="#M000245" class="method-signature">
|
501
501
|
<span class="method-name">attr.next → node<br />
|
502
502
|
</span>
|
503
503
|
</a>
|
@@ -508,8 +508,8 @@ ruby_xml_attr_name_get(VALUE self) {
|
|
508
508
|
Obtain the next attribute.
|
509
509
|
</p>
|
510
510
|
<p><a class="source-toggle" href="#"
|
511
|
-
onclick="toggleCode('
|
512
|
-
<div class="method-source-code" id="
|
511
|
+
onclick="toggleCode('M000245-source');return false;">[Source]</a></p>
|
512
|
+
<div class="method-source-code" id="M000245-source">
|
513
513
|
<pre>
|
514
514
|
/*
|
515
515
|
* call-seq:
|
@@ -525,11 +525,11 @@ ruby_xml_attr_next_get(VALUE self) {
|
|
525
525
|
</div>
|
526
526
|
</div>
|
527
527
|
|
528
|
-
<div id="method-
|
529
|
-
<a name="
|
528
|
+
<div id="method-M000246" class="method-detail">
|
529
|
+
<a name="M000246"></a>
|
530
530
|
|
531
531
|
<div class="method-heading">
|
532
|
-
<a href="#
|
532
|
+
<a href="#M000246" class="method-signature">
|
533
533
|
<span class="method-name">attr.next? → (true|false)<br />
|
534
534
|
</span>
|
535
535
|
</a>
|
@@ -540,8 +540,8 @@ ruby_xml_attr_next_get(VALUE self) {
|
|
540
540
|
Determine whether there is a next attribute.
|
541
541
|
</p>
|
542
542
|
<p><a class="source-toggle" href="#"
|
543
|
-
onclick="toggleCode('
|
544
|
-
<div class="method-source-code" id="
|
543
|
+
onclick="toggleCode('M000246-source');return false;">[Source]</a></p>
|
544
|
+
<div class="method-source-code" id="M000246-source">
|
545
545
|
<pre>
|
546
546
|
/*
|
547
547
|
* call-seq:
|
@@ -557,11 +557,11 @@ ruby_xml_attr_next_q(VALUE self) {
|
|
557
557
|
</div>
|
558
558
|
</div>
|
559
559
|
|
560
|
-
<div id="method-
|
561
|
-
<a name="
|
560
|
+
<div id="method-M000247" class="method-detail">
|
561
|
+
<a name="M000247"></a>
|
562
562
|
|
563
563
|
<div class="method-heading">
|
564
|
-
<a href="#
|
564
|
+
<a href="#M000247" class="method-signature">
|
565
565
|
<span class="method-name">attr.type_name → "attribute"<br />
|
566
566
|
</span>
|
567
567
|
</a>
|
@@ -572,8 +572,8 @@ ruby_xml_attr_next_q(VALUE self) {
|
|
572
572
|
Obtain this attribute node’s type name.
|
573
573
|
</p>
|
574
574
|
<p><a class="source-toggle" href="#"
|
575
|
-
onclick="toggleCode('
|
576
|
-
<div class="method-source-code" id="
|
575
|
+
onclick="toggleCode('M000247-source');return false;">[Source]</a></p>
|
576
|
+
<div class="method-source-code" id="M000247-source">
|
577
577
|
<pre>
|
578
578
|
/*
|
579
579
|
* call-seq:
|
@@ -589,11 +589,11 @@ ruby_xml_attr_node_type_name(VALUE self) {
|
|
589
589
|
</div>
|
590
590
|
</div>
|
591
591
|
|
592
|
-
<div id="method-
|
593
|
-
<a name="
|
592
|
+
<div id="method-M000248" class="method-detail">
|
593
|
+
<a name="M000248"></a>
|
594
594
|
|
595
595
|
<div class="method-heading">
|
596
|
-
<a href="#
|
596
|
+
<a href="#M000248" class="method-signature">
|
597
597
|
<span class="method-name">attr.ns → namespace<br />
|
598
598
|
</span>
|
599
599
|
</a>
|
@@ -605,8 +605,8 @@ Obtain this attribute’s associated <a href="NS.html">XML::NS</a>, if
|
|
605
605
|
any.
|
606
606
|
</p>
|
607
607
|
<p><a class="source-toggle" href="#"
|
608
|
-
onclick="toggleCode('
|
609
|
-
<div class="method-source-code" id="
|
608
|
+
onclick="toggleCode('M000248-source');return false;">[Source]</a></p>
|
609
|
+
<div class="method-source-code" id="M000248-source">
|
610
610
|
<pre>
|
611
611
|
/*
|
612
612
|
* call-seq:
|
@@ -622,11 +622,11 @@ ruby_xml_attr_ns_get(VALUE self) {
|
|
622
622
|
</div>
|
623
623
|
</div>
|
624
624
|
|
625
|
-
<div id="method-
|
626
|
-
<a name="
|
625
|
+
<div id="method-M000249" class="method-detail">
|
626
|
+
<a name="M000249"></a>
|
627
627
|
|
628
628
|
<div class="method-heading">
|
629
|
-
<a href="#
|
629
|
+
<a href="#M000249" class="method-signature">
|
630
630
|
<span class="method-name">attr.ns? → (true|false)<br />
|
631
631
|
</span>
|
632
632
|
</a>
|
@@ -637,8 +637,8 @@ ruby_xml_attr_ns_get(VALUE self) {
|
|
637
637
|
Determine whether this attribute has an associated namespace.
|
638
638
|
</p>
|
639
639
|
<p><a class="source-toggle" href="#"
|
640
|
-
onclick="toggleCode('
|
641
|
-
<div class="method-source-code" id="
|
640
|
+
onclick="toggleCode('M000249-source');return false;">[Source]</a></p>
|
641
|
+
<div class="method-source-code" id="M000249-source">
|
642
642
|
<pre>
|
643
643
|
/*
|
644
644
|
* call-seq:
|
@@ -655,11 +655,11 @@ ruby_xml_attr_ns_q(VALUE self) {
|
|
655
655
|
</div>
|
656
656
|
</div>
|
657
657
|
|
658
|
-
<div id="method-
|
659
|
-
<a name="
|
658
|
+
<div id="method-M000250" class="method-detail">
|
659
|
+
<a name="M000250"></a>
|
660
660
|
|
661
661
|
<div class="method-heading">
|
662
|
-
<a href="#
|
662
|
+
<a href="#M000250" class="method-signature">
|
663
663
|
<span class="method-name">attr.parent → node<br />
|
664
664
|
</span>
|
665
665
|
</a>
|
@@ -670,8 +670,8 @@ ruby_xml_attr_ns_q(VALUE self) {
|
|
670
670
|
Obtain this attribute node’s parent.
|
671
671
|
</p>
|
672
672
|
<p><a class="source-toggle" href="#"
|
673
|
-
onclick="toggleCode('
|
674
|
-
<div class="method-source-code" id="
|
673
|
+
onclick="toggleCode('M000250-source');return false;">[Source]</a></p>
|
674
|
+
<div class="method-source-code" id="M000250-source">
|
675
675
|
<pre>
|
676
676
|
/*
|
677
677
|
* call-seq:
|
@@ -687,11 +687,11 @@ ruby_xml_attr_parent_get(VALUE self) {
|
|
687
687
|
</div>
|
688
688
|
</div>
|
689
689
|
|
690
|
-
<div id="method-
|
691
|
-
<a name="
|
690
|
+
<div id="method-M000251" class="method-detail">
|
691
|
+
<a name="M000251"></a>
|
692
692
|
|
693
693
|
<div class="method-heading">
|
694
|
-
<a href="#
|
694
|
+
<a href="#M000251" class="method-signature">
|
695
695
|
<span class="method-name">attr.parent? → (true|false)<br />
|
696
696
|
</span>
|
697
697
|
</a>
|
@@ -702,8 +702,8 @@ ruby_xml_attr_parent_get(VALUE self) {
|
|
702
702
|
Determine whether this attribute has a parent.
|
703
703
|
</p>
|
704
704
|
<p><a class="source-toggle" href="#"
|
705
|
-
onclick="toggleCode('
|
706
|
-
<div class="method-source-code" id="
|
705
|
+
onclick="toggleCode('M000251-source');return false;">[Source]</a></p>
|
706
|
+
<div class="method-source-code" id="M000251-source">
|
707
707
|
<pre>
|
708
708
|
/*
|
709
709
|
* call-seq:
|
@@ -719,11 +719,11 @@ ruby_xml_attr_parent_q(VALUE self) {
|
|
719
719
|
</div>
|
720
720
|
</div>
|
721
721
|
|
722
|
-
<div id="method-
|
723
|
-
<a name="
|
722
|
+
<div id="method-M000252" class="method-detail">
|
723
|
+
<a name="M000252"></a>
|
724
724
|
|
725
725
|
<div class="method-heading">
|
726
|
-
<a href="#
|
726
|
+
<a href="#M000252" class="method-signature">
|
727
727
|
<span class="method-name">attr.prev → node<br />
|
728
728
|
</span>
|
729
729
|
</a>
|
@@ -734,8 +734,8 @@ ruby_xml_attr_parent_q(VALUE self) {
|
|
734
734
|
Obtain the previous attribute.
|
735
735
|
</p>
|
736
736
|
<p><a class="source-toggle" href="#"
|
737
|
-
onclick="toggleCode('
|
738
|
-
<div class="method-source-code" id="
|
737
|
+
onclick="toggleCode('M000252-source');return false;">[Source]</a></p>
|
738
|
+
<div class="method-source-code" id="M000252-source">
|
739
739
|
<pre>
|
740
740
|
/*
|
741
741
|
* call-seq:
|
@@ -751,11 +751,11 @@ ruby_xml_attr_prev_get(VALUE self) {
|
|
751
751
|
</div>
|
752
752
|
</div>
|
753
753
|
|
754
|
-
<div id="method-
|
755
|
-
<a name="
|
754
|
+
<div id="method-M000253" class="method-detail">
|
755
|
+
<a name="M000253"></a>
|
756
756
|
|
757
757
|
<div class="method-heading">
|
758
|
-
<a href="#
|
758
|
+
<a href="#M000253" class="method-signature">
|
759
759
|
<span class="method-name">attr.prev? → (true|false)<br />
|
760
760
|
</span>
|
761
761
|
</a>
|
@@ -766,8 +766,8 @@ ruby_xml_attr_prev_get(VALUE self) {
|
|
766
766
|
Determine whether there is a previous attribute.
|
767
767
|
</p>
|
768
768
|
<p><a class="source-toggle" href="#"
|
769
|
-
onclick="toggleCode('
|
770
|
-
<div class="method-source-code" id="
|
769
|
+
onclick="toggleCode('M000253-source');return false;">[Source]</a></p>
|
770
|
+
<div class="method-source-code" id="M000253-source">
|
771
771
|
<pre>
|
772
772
|
/*
|
773
773
|
* call-seq:
|
@@ -783,11 +783,11 @@ ruby_xml_attr_prev_q(VALUE self) {
|
|
783
783
|
</div>
|
784
784
|
</div>
|
785
785
|
|
786
|
-
<div id="method-
|
787
|
-
<a name="
|
786
|
+
<div id="method-M000254" class="method-detail">
|
787
|
+
<a name="M000254"></a>
|
788
788
|
|
789
789
|
<div class="method-heading">
|
790
|
-
<a href="#
|
790
|
+
<a href="#M000254" class="method-signature">
|
791
791
|
<span class="method-name">node.remove! → nil<br />
|
792
792
|
</span>
|
793
793
|
</a>
|
@@ -798,8 +798,8 @@ ruby_xml_attr_prev_q(VALUE self) {
|
|
798
798
|
Removes this attribute from it’s parent.
|
799
799
|
</p>
|
800
800
|
<p><a class="source-toggle" href="#"
|
801
|
-
onclick="toggleCode('
|
802
|
-
<div class="method-source-code" id="
|
801
|
+
onclick="toggleCode('M000254-source');return false;">[Source]</a></p>
|
802
|
+
<div class="method-source-code" id="M000254-source">
|
803
803
|
<pre>
|
804
804
|
/*
|
805
805
|
* call-seq:
|
@@ -815,86 +815,117 @@ ruby_xml_attr_remove_ex(VALUE self) {
|
|
815
815
|
</div>
|
816
816
|
</div>
|
817
817
|
|
818
|
-
<div id="method-
|
819
|
-
<a name="
|
818
|
+
<div id="method-M000257" class="method-detail">
|
819
|
+
<a name="M000257"></a>
|
820
820
|
|
821
821
|
<div class="method-heading">
|
822
|
-
<a href="#
|
822
|
+
<a href="#M000257" class="method-signature">
|
823
|
+
<span class="method-name">siblings</span><span class="method-args">(node, &blk)</span>
|
824
|
+
</a>
|
825
|
+
</div>
|
826
|
+
|
827
|
+
<div class="method-description">
|
828
|
+
<p>
|
829
|
+
Iterates nodes and attributes
|
830
|
+
</p>
|
831
|
+
<p><a class="source-toggle" href="#"
|
832
|
+
onclick="toggleCode('M000257-source');return false;">[Source]</a></p>
|
833
|
+
<div class="method-source-code" id="M000257-source">
|
834
|
+
<pre>
|
835
|
+
<span class="ruby-comment cmt"># File lib/libxml/attr.rb, line 10</span>
|
836
|
+
10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">siblings</span>(<span class="ruby-identifier">node</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
837
|
+
11: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> = <span class="ruby-identifier">node</span>
|
838
|
+
12: <span class="ruby-identifier">loop</span> <span class="ruby-keyword kw">do</span>
|
839
|
+
13: <span class="ruby-identifier">blk</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">n</span>)
|
840
|
+
14: <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">next</span>
|
841
|
+
15: <span class="ruby-keyword kw">end</span>
|
842
|
+
16: <span class="ruby-keyword kw">end</span>
|
843
|
+
17: <span class="ruby-keyword kw">end</span>
|
844
|
+
</pre>
|
845
|
+
</div>
|
846
|
+
</div>
|
847
|
+
</div>
|
848
|
+
|
849
|
+
<div id="method-M000262" class="method-detail">
|
850
|
+
<a name="M000262"></a>
|
851
|
+
|
852
|
+
<div class="method-heading">
|
853
|
+
<a href="#M000262" class="method-signature">
|
823
854
|
<span class="method-name">to_a</span><span class="method-args">()</span>
|
824
855
|
</a>
|
825
856
|
</div>
|
826
857
|
|
827
858
|
<div class="method-description">
|
828
859
|
<p><a class="source-toggle" href="#"
|
829
|
-
onclick="toggleCode('
|
830
|
-
<div class="method-source-code" id="
|
860
|
+
onclick="toggleCode('M000262-source');return false;">[Source]</a></p>
|
861
|
+
<div class="method-source-code" id="M000262-source">
|
831
862
|
<pre>
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
863
|
+
<span class="ruby-comment cmt"># File lib/libxml/attr.rb, line 33</span>
|
864
|
+
33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
|
865
|
+
34: <span class="ruby-identifier">inject</span>([]) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ary</span>,<span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
|
866
|
+
35: <span class="ruby-identifier">ary</span> <span class="ruby-operator"><<</span> [<span class="ruby-identifier">a</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">a</span>.<span class="ruby-identifier">value</span>]
|
867
|
+
36: <span class="ruby-identifier">ary</span>
|
868
|
+
37: <span class="ruby-keyword kw">end</span>
|
869
|
+
38: <span class="ruby-keyword kw">end</span>
|
839
870
|
</pre>
|
840
871
|
</div>
|
841
872
|
</div>
|
842
873
|
</div>
|
843
874
|
|
844
|
-
<div id="method-
|
845
|
-
<a name="
|
875
|
+
<div id="method-M000261" class="method-detail">
|
876
|
+
<a name="M000261"></a>
|
846
877
|
|
847
878
|
<div class="method-heading">
|
848
|
-
<a href="#
|
879
|
+
<a href="#M000261" class="method-signature">
|
849
880
|
<span class="method-name">to_h</span><span class="method-args">()</span>
|
850
881
|
</a>
|
851
882
|
</div>
|
852
883
|
|
853
884
|
<div class="method-description">
|
854
885
|
<p><a class="source-toggle" href="#"
|
855
|
-
onclick="toggleCode('
|
856
|
-
<div class="method-source-code" id="
|
886
|
+
onclick="toggleCode('M000261-source');return false;">[Source]</a></p>
|
887
|
+
<div class="method-source-code" id="M000261-source">
|
857
888
|
<pre>
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
889
|
+
<span class="ruby-comment cmt"># File lib/libxml/attr.rb, line 26</span>
|
890
|
+
26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>
|
891
|
+
27: <span class="ruby-identifier">inject</span>({}) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">h</span>,<span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
|
892
|
+
28: <span class="ruby-identifier">h</span>[<span class="ruby-identifier">a</span>.<span class="ruby-identifier">name</span>] = <span class="ruby-identifier">a</span>.<span class="ruby-identifier">value</span>
|
893
|
+
29: <span class="ruby-identifier">h</span>
|
894
|
+
30: <span class="ruby-keyword kw">end</span>
|
895
|
+
31: <span class="ruby-keyword kw">end</span>
|
865
896
|
</pre>
|
866
897
|
</div>
|
867
898
|
</div>
|
868
899
|
</div>
|
869
900
|
|
870
|
-
<div id="method-
|
871
|
-
<a name="
|
901
|
+
<div id="method-M000263" class="method-detail">
|
902
|
+
<a name="M000263"></a>
|
872
903
|
|
873
904
|
<div class="method-heading">
|
874
|
-
<a href="#
|
905
|
+
<a href="#M000263" class="method-signature">
|
875
906
|
<span class="method-name">to_s</span><span class="method-args">()</span>
|
876
907
|
</a>
|
877
908
|
</div>
|
878
909
|
|
879
910
|
<div class="method-description">
|
880
911
|
<p><a class="source-toggle" href="#"
|
881
|
-
onclick="toggleCode('
|
882
|
-
<div class="method-source-code" id="
|
912
|
+
onclick="toggleCode('M000263-source');return false;">[Source]</a></p>
|
913
|
+
<div class="method-source-code" id="M000263-source">
|
883
914
|
<pre>
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
915
|
+
<span class="ruby-comment cmt"># File lib/libxml/attr.rb, line 40</span>
|
916
|
+
40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
917
|
+
41: <span class="ruby-node">"#{name} = #{value}"</span>
|
918
|
+
42: <span class="ruby-keyword kw">end</span>
|
888
919
|
</pre>
|
889
920
|
</div>
|
890
921
|
</div>
|
891
922
|
</div>
|
892
923
|
|
893
|
-
<div id="method-
|
894
|
-
<a name="
|
924
|
+
<div id="method-M000255" class="method-detail">
|
925
|
+
<a name="M000255"></a>
|
895
926
|
|
896
927
|
<div class="method-heading">
|
897
|
-
<a href="#
|
928
|
+
<a href="#M000255" class="method-signature">
|
898
929
|
<span class="method-name">attr.value → "value"<br />
|
899
930
|
</span>
|
900
931
|
</a>
|
@@ -905,8 +936,8 @@ ruby_xml_attr_remove_ex(VALUE self) {
|
|
905
936
|
Obtain the value of this attribute.
|
906
937
|
</p>
|
907
938
|
<p><a class="source-toggle" href="#"
|
908
|
-
onclick="toggleCode('
|
909
|
-
<div class="method-source-code" id="
|
939
|
+
onclick="toggleCode('M000255-source');return false;">[Source]</a></p>
|
940
|
+
<div class="method-source-code" id="M000255-source">
|
910
941
|
<pre>
|
911
942
|
/*
|
912
943
|
* call-seq:
|
@@ -922,11 +953,11 @@ ruby_xml_attr_value_get(VALUE self) {
|
|
922
953
|
</div>
|
923
954
|
</div>
|
924
955
|
|
925
|
-
<div id="method-
|
926
|
-
<a name="
|
956
|
+
<div id="method-M000256" class="method-detail">
|
957
|
+
<a name="M000256"></a>
|
927
958
|
|
928
959
|
<div class="method-heading">
|
929
|
-
<a href="#
|
960
|
+
<a href="#M000256" class="method-signature">
|
930
961
|
<span class="method-name">attr.value = "value"<br />
|
931
962
|
</span>
|
932
963
|
</a>
|
@@ -937,8 +968,8 @@ ruby_xml_attr_value_get(VALUE self) {
|
|
937
968
|
Sets the value of this attribute.
|
938
969
|
</p>
|
939
970
|
<p><a class="source-toggle" href="#"
|
940
|
-
onclick="toggleCode('
|
941
|
-
<div class="method-source-code" id="
|
971
|
+
onclick="toggleCode('M000256-source');return false;">[Source]</a></p>
|
972
|
+
<div class="method-source-code" id="M000256-source">
|
942
973
|
<pre>
|
943
974
|
/*
|
944
975
|
* call-seq:
|