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.
Files changed (175) hide show
  1. data/CHANGES +18 -0
  2. data/RAKEFILE +15 -39
  3. data/README +48 -47
  4. data/ext/libxml/libxml.c +847 -22
  5. data/ext/libxml/ruby_libxml.h +71 -95
  6. data/ext/libxml/ruby_xml_attr.c +500 -500
  7. data/ext/libxml/ruby_xml_attributes.c +1 -1
  8. data/ext/libxml/ruby_xml_document.c +1144 -1135
  9. data/ext/libxml/ruby_xml_document.h +4 -11
  10. data/ext/libxml/ruby_xml_dtd.c +27 -0
  11. data/ext/libxml/ruby_xml_encoding.c +164 -0
  12. data/ext/libxml/ruby_xml_encoding.h +13 -0
  13. data/ext/libxml/ruby_xml_error.c +941 -0
  14. data/ext/libxml/ruby_xml_error.h +13 -0
  15. data/ext/libxml/ruby_xml_html_parser.c +71 -387
  16. data/ext/libxml/ruby_xml_html_parser.h +1 -17
  17. data/ext/libxml/ruby_xml_input.c +179 -0
  18. data/ext/libxml/ruby_xml_input.h +18 -0
  19. data/ext/libxml/ruby_xml_input_cbg.c +17 -3
  20. data/ext/libxml/ruby_xml_node.c +1566 -1582
  21. data/ext/libxml/ruby_xml_node.h +1 -4
  22. data/ext/libxml/ruby_xml_ns.c +14 -3
  23. data/ext/libxml/ruby_xml_parser.c +164 -1398
  24. data/ext/libxml/ruby_xml_parser.h +5 -17
  25. data/ext/libxml/ruby_xml_parser_context.c +131 -169
  26. data/ext/libxml/ruby_xml_parser_context.h +2 -9
  27. data/ext/libxml/ruby_xml_reader.c +910 -945
  28. data/ext/libxml/ruby_xml_relaxng.c +32 -3
  29. data/ext/libxml/ruby_xml_sax_parser.c +106 -364
  30. data/ext/libxml/ruby_xml_sax_parser.h +1 -37
  31. data/ext/libxml/ruby_xml_schema.c +174 -145
  32. data/ext/libxml/ruby_xml_xinclude.c +9 -5
  33. data/ext/libxml/ruby_xml_xpath.c +25 -6
  34. data/ext/libxml/ruby_xml_xpath.h +1 -2
  35. data/ext/libxml/ruby_xml_xpath_context.c +17 -19
  36. data/ext/libxml/ruby_xml_xpath_object.c +60 -56
  37. data/ext/libxml/ruby_xml_xpointer.c +11 -5
  38. data/ext/libxml/sax_parser_callbacks.inc +42 -37
  39. data/ext/libxml/version.h +3 -3
  40. data/ext/mingw/Rakefile +20 -27
  41. data/ext/mingw/build.rake +41 -0
  42. data/{lib → ext/mingw}/libiconv-2.dll +0 -0
  43. data/ext/mingw/libxml2-2.dll +0 -0
  44. data/ext/mingw/libxml_ruby.dll.a +0 -0
  45. data/ext/mingw/libxml_ruby.so +0 -0
  46. data/ext/vc/libxml_ruby.vcproj +23 -15
  47. data/lib/libxml.rb +8 -2
  48. data/lib/libxml/document.rb +16 -4
  49. data/lib/libxml/error.rb +84 -0
  50. data/lib/libxml/hpricot.rb +76 -0
  51. data/lib/libxml/html_parser.rb +61 -0
  52. data/lib/libxml/node.rb +36 -25
  53. data/lib/libxml/parser.rb +312 -33
  54. data/lib/libxml/parser_context.rb +17 -0
  55. data/lib/libxml/properties.rb +15 -2
  56. data/lib/libxml/reader.rb +15 -0
  57. data/lib/libxml/sax_callbacks.rb +179 -0
  58. data/lib/libxml/sax_parser.rb +42 -0
  59. data/lib/libxml/tree.rb +1 -2
  60. data/lib/libxml/xpath_object.rb +12 -0
  61. data/test/model/atom.xml +4 -0
  62. data/test/tc_attributes.rb +43 -19
  63. data/test/tc_document.rb +1 -1
  64. data/test/tc_document_write.rb +15 -8
  65. data/test/tc_dtd.rb +36 -20
  66. data/test/tc_encoding.rb +13 -0
  67. data/test/tc_error.rb +136 -0
  68. data/test/tc_node.rb +2 -3
  69. data/test/tc_node_copy.rb +1 -1
  70. data/test/tc_node_edit.rb +6 -0
  71. data/test/tc_ns.rb +18 -0
  72. data/test/tc_parser.rb +113 -228
  73. data/test/tc_parser_context.rb +1 -2
  74. data/test/tc_reader.rb +24 -14
  75. data/test/tc_relaxng.rb +18 -6
  76. data/test/tc_sax_parser.rb +48 -13
  77. data/test/tc_schema.rb +20 -8
  78. data/test/tc_well_formed.rb +2 -1
  79. data/test/tc_xml.rb +212 -0
  80. data/test/tc_xpath.rb +60 -46
  81. data/test/tc_xpointer.rb +7 -11
  82. data/test/test_suite.rb +4 -3
  83. metadata +32 -115
  84. data/doc/rdoc/classes/LibXML.html +0 -241
  85. data/doc/rdoc/classes/LibXML/XML.html +0 -185
  86. data/doc/rdoc/classes/LibXML/XML/Attr.html +0 -1010
  87. data/doc/rdoc/classes/LibXML/XML/Attributes.html +0 -526
  88. data/doc/rdoc/classes/LibXML/XML/Document.html +0 -1489
  89. data/doc/rdoc/classes/LibXML/XML/Dtd.html +0 -213
  90. data/doc/rdoc/classes/LibXML/XML/Error.html +0 -117
  91. data/doc/rdoc/classes/LibXML/XML/HTMLParser.html +0 -348
  92. data/doc/rdoc/classes/LibXML/XML/InputCallbacks.html +0 -160
  93. data/doc/rdoc/classes/LibXML/XML/NS.html +0 -381
  94. data/doc/rdoc/classes/LibXML/XML/Node.html +0 -3396
  95. data/doc/rdoc/classes/LibXML/XML/Node/FailedModify.html +0 -123
  96. data/doc/rdoc/classes/LibXML/XML/Node/Set.html +0 -440
  97. data/doc/rdoc/classes/LibXML/XML/Node/SetNamespace.html +0 -123
  98. data/doc/rdoc/classes/LibXML/XML/Node/UnknownType.html +0 -123
  99. data/doc/rdoc/classes/LibXML/XML/Parser.html +0 -2239
  100. data/doc/rdoc/classes/LibXML/XML/Parser/Context.html +0 -1255
  101. data/doc/rdoc/classes/LibXML/XML/Parser/ParseError.html +0 -123
  102. data/doc/rdoc/classes/LibXML/XML/Reader.html +0 -2264
  103. data/doc/rdoc/classes/LibXML/XML/RelaxNG.html +0 -237
  104. data/doc/rdoc/classes/LibXML/XML/SaxParser.html +0 -415
  105. data/doc/rdoc/classes/LibXML/XML/Schema.html +0 -308
  106. data/doc/rdoc/classes/LibXML/XML/State.html +0 -124
  107. data/doc/rdoc/classes/LibXML/XML/Tree.html +0 -111
  108. data/doc/rdoc/classes/LibXML/XML/XInclude.html +0 -123
  109. data/doc/rdoc/classes/LibXML/XML/XInclude/Error.html +0 -117
  110. data/doc/rdoc/classes/LibXML/XML/XMLParserOptions.html +0 -198
  111. data/doc/rdoc/classes/LibXML/XML/XPath.html +0 -184
  112. data/doc/rdoc/classes/LibXML/XML/XPath/Context.html +0 -404
  113. data/doc/rdoc/classes/LibXML/XML/XPath/InvalidPath.html +0 -172
  114. data/doc/rdoc/classes/LibXML/XML/XPath/Object.html +0 -627
  115. data/doc/rdoc/classes/LibXML/XML/XPointer.html +0 -170
  116. data/doc/rdoc/classes/LibXML/XML/XPointer/Context.html +0 -123
  117. data/doc/rdoc/classes/LibXML/XML/XPointer/Context/InvalidPath.html +0 -117
  118. data/doc/rdoc/classes/LibXML/XML/XPointer/InvalidExpression.html +0 -124
  119. data/doc/rdoc/classes/singleton.html +0 -114
  120. data/doc/rdoc/created.rid +0 -1
  121. data/doc/rdoc/files/CHANGES.html +0 -442
  122. data/doc/rdoc/files/LICENSE.html +0 -133
  123. data/doc/rdoc/files/README.html +0 -388
  124. data/doc/rdoc/files/VERSION.html +0 -107
  125. data/doc/rdoc/files/ext/libxml/cbg_c.html +0 -101
  126. data/doc/rdoc/files/ext/libxml/libxml_c.html +0 -101
  127. data/doc/rdoc/files/ext/libxml/ruby_xml_attr_c.html +0 -101
  128. data/doc/rdoc/files/ext/libxml/ruby_xml_attributes_c.html +0 -101
  129. data/doc/rdoc/files/ext/libxml/ruby_xml_document_c.html +0 -101
  130. data/doc/rdoc/files/ext/libxml/ruby_xml_dtd_c.html +0 -101
  131. data/doc/rdoc/files/ext/libxml/ruby_xml_html_parser_c.html +0 -101
  132. data/doc/rdoc/files/ext/libxml/ruby_xml_input_cbg_c.html +0 -101
  133. data/doc/rdoc/files/ext/libxml/ruby_xml_node_c.html +0 -101
  134. data/doc/rdoc/files/ext/libxml/ruby_xml_node_set_c.html +0 -101
  135. data/doc/rdoc/files/ext/libxml/ruby_xml_ns_c.html +0 -101
  136. data/doc/rdoc/files/ext/libxml/ruby_xml_parser_c.html +0 -101
  137. data/doc/rdoc/files/ext/libxml/ruby_xml_parser_context_c.html +0 -101
  138. data/doc/rdoc/files/ext/libxml/ruby_xml_reader_c.html +0 -101
  139. data/doc/rdoc/files/ext/libxml/ruby_xml_relaxng_c.html +0 -101
  140. data/doc/rdoc/files/ext/libxml/ruby_xml_sax_parser_c.html +0 -101
  141. data/doc/rdoc/files/ext/libxml/ruby_xml_schema_c.html +0 -101
  142. data/doc/rdoc/files/ext/libxml/ruby_xml_state_c.html +0 -101
  143. data/doc/rdoc/files/ext/libxml/ruby_xml_xinclude_c.html +0 -101
  144. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_c.html +0 -101
  145. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_context_c.html +0 -101
  146. data/doc/rdoc/files/ext/libxml/ruby_xml_xpath_object_c.html +0 -101
  147. data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_c.html +0 -101
  148. data/doc/rdoc/files/ext/libxml/ruby_xml_xpointer_context_c.html +0 -101
  149. data/doc/rdoc/files/lib/libxml/attr_rb.html +0 -108
  150. data/doc/rdoc/files/lib/libxml/attributes_rb.html +0 -108
  151. data/doc/rdoc/files/lib/libxml/document_rb.html +0 -108
  152. data/doc/rdoc/files/lib/libxml/node_rb.html +0 -108
  153. data/doc/rdoc/files/lib/libxml/node_set_rb.html +0 -108
  154. data/doc/rdoc/files/lib/libxml/parser_options_rb.html +0 -107
  155. data/doc/rdoc/files/lib/libxml/parser_rb.html +0 -101
  156. data/doc/rdoc/files/lib/libxml/properties_rb.html +0 -108
  157. data/doc/rdoc/files/lib/libxml/tree_rb.html +0 -107
  158. data/doc/rdoc/files/lib/libxml_rb.html +0 -124
  159. data/doc/rdoc/files/lib/xml/libxml_rb.html +0 -124
  160. data/doc/rdoc/files/lib/xml_rb.html +0 -134
  161. data/doc/rdoc/fr_class_index.html +0 -62
  162. data/doc/rdoc/fr_file_index.html +0 -66
  163. data/doc/rdoc/fr_method_index.html +0 -392
  164. data/doc/rdoc/index.html +0 -24
  165. data/doc/rdoc/rdoc-style.css +0 -208
  166. data/ext/libxml/ruby_xml_node_set.c +0 -172
  167. data/ext/libxml/ruby_xml_node_set.h +0 -20
  168. data/ext/libxml/ruby_xml_xpointer_context.c +0 -22
  169. data/ext/libxml/ruby_xml_xpointer_context.h +0 -18
  170. data/lib/libxml/node_set.rb +0 -27
  171. data/lib/libxml2-2.dll +0 -0
  172. data/lib/libxml_ruby.dll.a +0 -0
  173. data/lib/libxml_ruby.so +0 -0
  174. data/test/tc_node_set.rb +0 -24
  175. data/test/tc_node_set2.rb +0 -37
@@ -1,241 +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>Module: LibXML</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</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/ext/libxml/ruby_xml_attr_c.html">
63
- ext/libxml/ruby_xml_attr.c
64
- </a>
65
- <br />
66
- <a href="../files/ext/libxml/ruby_xml_attributes_c.html">
67
- ext/libxml/ruby_xml_attributes.c
68
- </a>
69
- <br />
70
- <a href="../files/ext/libxml/ruby_xml_document_c.html">
71
- ext/libxml/ruby_xml_document.c
72
- </a>
73
- <br />
74
- <a href="../files/ext/libxml/ruby_xml_dtd_c.html">
75
- ext/libxml/ruby_xml_dtd.c
76
- </a>
77
- <br />
78
- <a href="../files/ext/libxml/ruby_xml_html_parser_c.html">
79
- ext/libxml/ruby_xml_html_parser.c
80
- </a>
81
- <br />
82
- <a href="../files/ext/libxml/ruby_xml_input_cbg_c.html">
83
- ext/libxml/ruby_xml_input_cbg.c
84
- </a>
85
- <br />
86
- <a href="../files/ext/libxml/ruby_xml_node_c.html">
87
- ext/libxml/ruby_xml_node.c
88
- </a>
89
- <br />
90
- <a href="../files/ext/libxml/ruby_xml_node_set_c.html">
91
- ext/libxml/ruby_xml_node_set.c
92
- </a>
93
- <br />
94
- <a href="../files/ext/libxml/ruby_xml_ns_c.html">
95
- ext/libxml/ruby_xml_ns.c
96
- </a>
97
- <br />
98
- <a href="../files/ext/libxml/ruby_xml_parser_c.html">
99
- ext/libxml/ruby_xml_parser.c
100
- </a>
101
- <br />
102
- <a href="../files/ext/libxml/ruby_xml_parser_context_c.html">
103
- ext/libxml/ruby_xml_parser_context.c
104
- </a>
105
- <br />
106
- <a href="../files/ext/libxml/ruby_xml_reader_c.html">
107
- ext/libxml/ruby_xml_reader.c
108
- </a>
109
- <br />
110
- <a href="../files/ext/libxml/ruby_xml_relaxng_c.html">
111
- ext/libxml/ruby_xml_relaxng.c
112
- </a>
113
- <br />
114
- <a href="../files/ext/libxml/ruby_xml_sax_parser_c.html">
115
- ext/libxml/ruby_xml_sax_parser.c
116
- </a>
117
- <br />
118
- <a href="../files/ext/libxml/ruby_xml_schema_c.html">
119
- ext/libxml/ruby_xml_schema.c
120
- </a>
121
- <br />
122
- <a href="../files/ext/libxml/ruby_xml_state_c.html">
123
- ext/libxml/ruby_xml_state.c
124
- </a>
125
- <br />
126
- <a href="../files/ext/libxml/ruby_xml_xinclude_c.html">
127
- ext/libxml/ruby_xml_xinclude.c
128
- </a>
129
- <br />
130
- <a href="../files/ext/libxml/ruby_xml_xpath_c.html">
131
- ext/libxml/ruby_xml_xpath.c
132
- </a>
133
- <br />
134
- <a href="../files/ext/libxml/ruby_xml_xpath_context_c.html">
135
- ext/libxml/ruby_xml_xpath_context.c
136
- </a>
137
- <br />
138
- <a href="../files/ext/libxml/ruby_xml_xpath_object_c.html">
139
- ext/libxml/ruby_xml_xpath_object.c
140
- </a>
141
- <br />
142
- <a href="../files/ext/libxml/ruby_xml_xpointer_c.html">
143
- ext/libxml/ruby_xml_xpointer.c
144
- </a>
145
- <br />
146
- <a href="../files/ext/libxml/ruby_xml_xpointer_context_c.html">
147
- ext/libxml/ruby_xml_xpointer_context.c
148
- </a>
149
- <br />
150
- <a href="../files/lib/libxml/attr_rb.html">
151
- lib/libxml/attr.rb
152
- </a>
153
- <br />
154
- <a href="../files/lib/libxml/attributes_rb.html">
155
- lib/libxml/attributes.rb
156
- </a>
157
- <br />
158
- <a href="../files/lib/libxml/document_rb.html">
159
- lib/libxml/document.rb
160
- </a>
161
- <br />
162
- <a href="../files/lib/libxml/node_rb.html">
163
- lib/libxml/node.rb
164
- </a>
165
- <br />
166
- <a href="../files/lib/libxml/node_set_rb.html">
167
- lib/libxml/node_set.rb
168
- </a>
169
- <br />
170
- <a href="../files/lib/libxml/parser_rb.html">
171
- lib/libxml/parser.rb
172
- </a>
173
- <br />
174
- <a href="../files/lib/libxml/parser_options_rb.html">
175
- lib/libxml/parser_options.rb
176
- </a>
177
- <br />
178
- <a href="../files/lib/libxml/properties_rb.html">
179
- lib/libxml/properties.rb
180
- </a>
181
- <br />
182
- <a href="../files/lib/libxml/tree_rb.html">
183
- lib/libxml/tree.rb
184
- </a>
185
- <br />
186
- </td>
187
- </tr>
188
-
189
- </table>
190
- </div>
191
- <!-- banner header -->
192
-
193
- <div id="bodyContent">
194
-
195
-
196
-
197
- <div id="contextContent">
198
-
199
- <div id="description">
200
- <p>
201
- This is for backwards compatibility and is DEPRECATED
202
- </p>
203
-
204
- </div>
205
-
206
-
207
- </div>
208
-
209
-
210
- </div>
211
-
212
-
213
- <!-- if includes -->
214
-
215
- <div id="section">
216
-
217
- <div id="class-list">
218
- <h3 class="section-bar">Classes and Modules</h3>
219
-
220
- Module <a href="LibXML/XML.html" class="link">LibXML::XML</a><br />
221
-
222
- </div>
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
- <!-- if method_list -->
231
-
232
-
233
- </div>
234
-
235
-
236
- <div id="validator-badges">
237
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
238
- </div>
239
-
240
- </body>
241
- </html>
@@ -1,185 +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>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
- <div id="description">
112
- <p>
113
- Please see the LICENSE file for copyright and distribution information
114
- </p>
115
-
116
- </div>
117
-
118
-
119
- </div>
120
-
121
-
122
- </div>
123
-
124
-
125
- <!-- if includes -->
126
-
127
- <div id="section">
128
-
129
- <div id="class-list">
130
- <h3 class="section-bar">Classes and Modules</h3>
131
-
132
- Module <a href="XML/XMLParserOptions.html" class="link">LibXML::XML::XMLParserOptions</a><br />
133
- Module <a href="XML/XPath.html" class="link">LibXML::XML::XPath</a><br />
134
- Class <a href="XML/Attr.html" class="link">LibXML::XML::Attr</a><br />
135
- Class <a href="XML/Attributes.html" class="link">LibXML::XML::Attributes</a><br />
136
- Class <a href="XML/Document.html" class="link">LibXML::XML::Document</a><br />
137
- Class <a href="XML/Dtd.html" class="link">LibXML::XML::Dtd</a><br />
138
- Class <a href="XML/Error.html" class="link">LibXML::XML::Error</a><br />
139
- Class <a href="XML/HTMLParser.html" class="link">LibXML::XML::HTMLParser</a><br />
140
- Class <a href="XML/InputCallbacks.html" class="link">LibXML::XML::InputCallbacks</a><br />
141
- Class <a href="XML/NS.html" class="link">LibXML::XML::NS</a><br />
142
- Class <a href="XML/Node.html" class="link">LibXML::XML::Node</a><br />
143
- Class <a href="XML/Parser.html" class="link">LibXML::XML::Parser</a><br />
144
- Class <a href="XML/Reader.html" class="link">LibXML::XML::Reader</a><br />
145
- Class <a href="XML/RelaxNG.html" class="link">LibXML::XML::RelaxNG</a><br />
146
- Class <a href="XML/SaxParser.html" class="link">LibXML::XML::SaxParser</a><br />
147
- Class <a href="XML/Schema.html" class="link">LibXML::XML::Schema</a><br />
148
- Class <a href="XML/State.html" class="link">LibXML::XML::State</a><br />
149
- Class <a href="XML/Tree.html" class="link">LibXML::XML::Tree</a><br />
150
- Class <a href="XML/XInclude.html" class="link">LibXML::XML::XInclude</a><br />
151
- Class <a href="XML/XPointer.html" class="link">LibXML::XML::XPointer</a><br />
152
-
153
- </div>
154
-
155
- <div id="constants-list">
156
- <h3 class="section-bar">Constants</h3>
157
-
158
- <div class="name-list">
159
- <table summary="Constants">
160
- <tr class="top-aligned-row context-row">
161
- <td class="context-item-name">XML_NAMESPACE</td>
162
- <td>=</td>
163
- <td class="context-item-value">rb_str_new2((const char*)XML_XML_NAMESPACE)</td>
164
- </tr>
165
- </table>
166
- </div>
167
- </div>
168
-
169
-
170
-
171
-
172
-
173
-
174
- <!-- if method_list -->
175
-
176
-
177
- </div>
178
-
179
-
180
- <div id="validator-badges">
181
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
182
- </div>
183
-
184
- </body>
185
- </html>
@@ -1,1010 +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::Attr</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::Attr</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
- </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
- Provides access to an single element attribute. Accessed by calling <a
88
- href="Node.html#M000132">XML::Node#attributes</a> method.
89
- </p>
90
- <p>
91
- Basic Usage:
92
- </p>
93
- <pre>
94
- require 'xml'
95
-
96
- doc = XML::Document.new(&lt;some_file&gt;)
97
- attribute = doc.root.attributes.get_attribute_ns('http://www.w3.org/1999/xlink', 'href')
98
- attribute.name == 'href'
99
- attribute.value == 'http://www.mydocument.com'
100
- attribute.remove!
101
- </pre>
102
-
103
- </div>
104
-
105
-
106
- </div>
107
-
108
- <div id="method-list">
109
- <h3 class="section-bar">Methods</h3>
110
-
111
- <div class="name-list">
112
- <a href="#M000240">child</a>&nbsp;&nbsp;
113
- <a href="#M000241">child?</a>&nbsp;&nbsp;
114
- <a href="#M000242">doc</a>&nbsp;&nbsp;
115
- <a href="#M000243">doc?</a>&nbsp;&nbsp;
116
- <a href="#M000262">each</a>&nbsp;&nbsp;
117
- <a href="#M000261">each_attr</a>&nbsp;&nbsp;
118
- <a href="#M000260">each_sibling</a>&nbsp;&nbsp;
119
- <a href="#M000244">last</a>&nbsp;&nbsp;
120
- <a href="#M000245">last?</a>&nbsp;&nbsp;
121
- <a href="#M000246">name</a>&nbsp;&nbsp;
122
- <a href="#M000239">new</a>&nbsp;&nbsp;
123
- <a href="#M000247">next</a>&nbsp;&nbsp;
124
- <a href="#M000248">next?</a>&nbsp;&nbsp;
125
- <a href="#M000249">node_type_name</a>&nbsp;&nbsp;
126
- <a href="#M000250">ns</a>&nbsp;&nbsp;
127
- <a href="#M000251">ns?</a>&nbsp;&nbsp;
128
- <a href="#M000252">parent</a>&nbsp;&nbsp;
129
- <a href="#M000253">parent?</a>&nbsp;&nbsp;
130
- <a href="#M000254">prev</a>&nbsp;&nbsp;
131
- <a href="#M000255">prev?</a>&nbsp;&nbsp;
132
- <a href="#M000256">remove!</a>&nbsp;&nbsp;
133
- <a href="#M000259">siblings</a>&nbsp;&nbsp;
134
- <a href="#M000264">to_a</a>&nbsp;&nbsp;
135
- <a href="#M000263">to_h</a>&nbsp;&nbsp;
136
- <a href="#M000265">to_s</a>&nbsp;&nbsp;
137
- <a href="#M000257">value</a>&nbsp;&nbsp;
138
- <a href="#M000258">value=</a>&nbsp;&nbsp;
139
- </div>
140
- </div>
141
-
142
- </div>
143
-
144
-
145
- <!-- if includes -->
146
- <div id="includes">
147
- <h3 class="section-bar">Included Modules</h3>
148
-
149
- <div id="includes-list">
150
- <span class="include-name">Enumerable</span>
151
- </div>
152
- </div>
153
-
154
- <div id="section">
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
- <!-- if method_list -->
164
- <div id="methods">
165
- <h3 class="section-bar">Public Class methods</h3>
166
-
167
- <div id="method-M000239" class="method-detail">
168
- <a name="M000239"></a>
169
-
170
- <div class="method-heading">
171
- <a href="#M000239" class="method-signature">
172
- <span class="method-name">attr.initialize(node, "name", "value")<br />
173
- </span>
174
- </a>
175
- </div>
176
-
177
- <div class="method-description">
178
- <p>
179
- Creates a <a href="Attr.html#M000239">new</a> attribute for the node.
180
- </p>
181
- <p>
182
- node: The <a href="Node.html">XML::Node</a> that will contain the attribute
183
- <a href="Attr.html#M000246">name</a>: The <a
184
- href="Attr.html#M000246">name</a> of the attribute <a
185
- href="Attr.html#M000257">value</a>: The <a
186
- href="Attr.html#M000257">value</a> of the attribute
187
- </p>
188
- <pre>
189
- attr = XML::Attr.new(doc.root, 'name', 'libxml')
190
- </pre>
191
- <p><a class="source-toggle" href="#"
192
- onclick="toggleCode('M000239-source');return false;">[Source]</a></p>
193
- <div class="method-source-code" id="M000239-source">
194
- <pre>
195
- /*
196
- * call-seq:
197
- * attr.initialize(node, &quot;name&quot;, &quot;value&quot;)
198
- *
199
- * Creates a new attribute for the node.
200
- *
201
- * node: The XML::Node that will contain the attribute
202
- * name: The name of the attribute
203
- * value: The value of the attribute
204
- *
205
- * attr = XML::Attr.new(doc.root, 'name', 'libxml')
206
- */
207
- VALUE
208
- ruby_xml_attr_initialize(int argc, VALUE *argv, VALUE self) {
209
-
210
- </pre>
211
- </div>
212
- </div>
213
- </div>
214
-
215
- <h3 class="section-bar">Public Instance methods</h3>
216
-
217
- <div id="method-M000240" class="method-detail">
218
- <a name="M000240"></a>
219
-
220
- <div class="method-heading">
221
- <a href="#M000240" class="method-signature">
222
- <span class="method-name">attr.child &rarr; node<br />
223
- </span>
224
- </a>
225
- </div>
226
-
227
- <div class="method-description">
228
- <p>
229
- Obtain this attribute&#8216;s <a href="Attr.html#M000240">child</a>
230
- attribute(s).
231
- </p>
232
- <p><a class="source-toggle" href="#"
233
- onclick="toggleCode('M000240-source');return false;">[Source]</a></p>
234
- <div class="method-source-code" id="M000240-source">
235
- <pre>
236
- /*
237
- * call-seq:
238
- * attr.child -&gt; node
239
- *
240
- * Obtain this attribute's child attribute(s).
241
- */
242
- VALUE
243
- ruby_xml_attr_child_get(VALUE self) {
244
-
245
- </pre>
246
- </div>
247
- </div>
248
- </div>
249
-
250
- <div id="method-M000241" class="method-detail">
251
- <a name="M000241"></a>
252
-
253
- <div class="method-heading">
254
- <a href="#M000241" class="method-signature">
255
- <span class="method-name">attr.child? &rarr; (true|false)<br />
256
- </span>
257
- </a>
258
- </div>
259
-
260
- <div class="method-description">
261
- <p>
262
- Determine whether this attribute has <a href="Attr.html#M000240">child</a>
263
- attributes.
264
- </p>
265
- <p><a class="source-toggle" href="#"
266
- onclick="toggleCode('M000241-source');return false;">[Source]</a></p>
267
- <div class="method-source-code" id="M000241-source">
268
- <pre>
269
- /*
270
- * call-seq:
271
- * attr.child? -&gt; (true|false)
272
- *
273
- * Determine whether this attribute has child attributes.
274
- */
275
- VALUE
276
- ruby_xml_attr_child_q(VALUE self) {
277
-
278
- </pre>
279
- </div>
280
- </div>
281
- </div>
282
-
283
- <div id="method-M000242" class="method-detail">
284
- <a name="M000242"></a>
285
-
286
- <div class="method-heading">
287
- <a href="#M000242" class="method-signature">
288
- <span class="method-name">attr.doc &rarr; XML::Document<br />
289
- </span>
290
- </a>
291
- </div>
292
-
293
- <div class="method-description">
294
- <p>
295
- Returns this attribute&#8216;s document.
296
- </p>
297
- <pre>
298
- doc.root.attributes.get_attribute('name').doc == doc
299
- </pre>
300
- <p><a class="source-toggle" href="#"
301
- onclick="toggleCode('M000242-source');return false;">[Source]</a></p>
302
- <div class="method-source-code" id="M000242-source">
303
- <pre>
304
- /*
305
- * call-seq:
306
- * attr.doc -&gt; XML::Document
307
- *
308
- * Returns this attribute's document.
309
- *
310
- * doc.root.attributes.get_attribute('name').doc == doc
311
- */
312
- VALUE
313
- ruby_xml_attr_doc_get(VALUE self) {
314
-
315
- </pre>
316
- </div>
317
- </div>
318
- </div>
319
-
320
- <div id="method-M000243" class="method-detail">
321
- <a name="M000243"></a>
322
-
323
- <div class="method-heading">
324
- <a href="#M000243" class="method-signature">
325
- <span class="method-name">attr.doc? &rarr; (true|false)<br />
326
- </span>
327
- </a>
328
- </div>
329
-
330
- <div class="method-description">
331
- <p>
332
- Determine whether this attribute is associated with an <a
333
- href="Document.html">XML::Document</a>.
334
- </p>
335
- <p><a class="source-toggle" href="#"
336
- onclick="toggleCode('M000243-source');return false;">[Source]</a></p>
337
- <div class="method-source-code" id="M000243-source">
338
- <pre>
339
- /*
340
- * call-seq:
341
- * attr.doc? -&gt; (true|false)
342
- *
343
- * Determine whether this attribute is associated with an
344
- * XML::Document.
345
- */
346
- VALUE
347
- ruby_xml_attr_doc_q(VALUE self) {
348
-
349
- </pre>
350
- </div>
351
- </div>
352
- </div>
353
-
354
- <div id="method-M000262" class="method-detail">
355
- <a name="M000262"></a>
356
-
357
- <div class="method-heading">
358
- <span class="method-name">each</span><span class="method-args">(&amp;blk)</span>
359
- </div>
360
-
361
- <div class="method-description">
362
- <p>
363
- Alias for <a href="Attr.html#M000260">each_sibling</a>
364
- </p>
365
- </div>
366
- </div>
367
-
368
- <div id="method-M000261" class="method-detail">
369
- <a name="M000261"></a>
370
-
371
- <div class="method-heading">
372
- <span class="method-name">each_attr</span><span class="method-args">(&amp;blk)</span>
373
- </div>
374
-
375
- <div class="method-description">
376
- <p>
377
- Alias for <a href="Attr.html#M000260">each_sibling</a>
378
- </p>
379
- </div>
380
- </div>
381
-
382
- <div id="method-M000260" class="method-detail">
383
- <a name="M000260"></a>
384
-
385
- <div class="method-heading">
386
- <a href="#M000260" class="method-signature">
387
- <span class="method-name">each_sibling</span><span class="method-args">(&amp;blk)</span>
388
- </a>
389
- </div>
390
-
391
- <div class="method-description">
392
- <p><a class="source-toggle" href="#"
393
- onclick="toggleCode('M000260-source');return false;">[Source]</a></p>
394
- <div class="method-source-code" id="M000260-source">
395
- <pre>
396
- <span class="ruby-comment cmt"># File lib/libxml/attr.rb, line 19</span>
397
- 19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_sibling</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
398
- 20: <span class="ruby-identifier">siblings</span>(<span class="ruby-keyword kw">self</span>,<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
399
- 21: <span class="ruby-keyword kw">end</span>
400
- </pre>
401
- </div>
402
- </div>
403
- </div>
404
-
405
- <div id="method-M000244" class="method-detail">
406
- <a name="M000244"></a>
407
-
408
- <div class="method-heading">
409
- <a href="#M000244" class="method-signature">
410
- <span class="method-name">attr.last &rarr; node<br />
411
- </span>
412
- </a>
413
- </div>
414
-
415
- <div class="method-description">
416
- <p>
417
- Obtain the <a href="Attr.html#M000244">last</a> attribute.
418
- </p>
419
- <p><a class="source-toggle" href="#"
420
- onclick="toggleCode('M000244-source');return false;">[Source]</a></p>
421
- <div class="method-source-code" id="M000244-source">
422
- <pre>
423
- /*
424
- * call-seq:
425
- * attr.last -&gt; node
426
- *
427
- * Obtain the last attribute.
428
- */
429
- VALUE
430
- ruby_xml_attr_last_get(VALUE self) {
431
-
432
- </pre>
433
- </div>
434
- </div>
435
- </div>
436
-
437
- <div id="method-M000245" class="method-detail">
438
- <a name="M000245"></a>
439
-
440
- <div class="method-heading">
441
- <a href="#M000245" class="method-signature">
442
- <span class="method-name">attr.last? &rarr; (true|false)<br />
443
- </span>
444
- </a>
445
- </div>
446
-
447
- <div class="method-description">
448
- <p>
449
- Determine whether this is the <a href="Attr.html#M000244">last</a>
450
- attribute.
451
- </p>
452
- <p><a class="source-toggle" href="#"
453
- onclick="toggleCode('M000245-source');return false;">[Source]</a></p>
454
- <div class="method-source-code" id="M000245-source">
455
- <pre>
456
- /*
457
- * call-seq:
458
- * attr.last? -&gt; (true|false)
459
- *
460
- * Determine whether this is the last attribute.
461
- */
462
- VALUE
463
- ruby_xml_attr_last_q(VALUE self) {
464
-
465
- </pre>
466
- </div>
467
- </div>
468
- </div>
469
-
470
- <div id="method-M000246" class="method-detail">
471
- <a name="M000246"></a>
472
-
473
- <div class="method-heading">
474
- <a href="#M000246" class="method-signature">
475
- <span class="method-name">attr.name &rarr; "name"<br />
476
- </span>
477
- </a>
478
- </div>
479
-
480
- <div class="method-description">
481
- <p>
482
- Obtain this attribute&#8216;s <a href="Attr.html#M000246">name</a>.
483
- </p>
484
- <p><a class="source-toggle" href="#"
485
- onclick="toggleCode('M000246-source');return false;">[Source]</a></p>
486
- <div class="method-source-code" id="M000246-source">
487
- <pre>
488
- /*
489
- * call-seq:
490
- * attr.name -&gt; &quot;name&quot;
491
- *
492
- * Obtain this attribute's name.
493
- */
494
- VALUE
495
- ruby_xml_attr_name_get(VALUE self) {
496
-
497
- </pre>
498
- </div>
499
- </div>
500
- </div>
501
-
502
- <div id="method-M000247" class="method-detail">
503
- <a name="M000247"></a>
504
-
505
- <div class="method-heading">
506
- <a href="#M000247" class="method-signature">
507
- <span class="method-name">attr.next &rarr; node<br />
508
- </span>
509
- </a>
510
- </div>
511
-
512
- <div class="method-description">
513
- <p>
514
- Obtain the <a href="Attr.html#M000247">next</a> attribute.
515
- </p>
516
- <p><a class="source-toggle" href="#"
517
- onclick="toggleCode('M000247-source');return false;">[Source]</a></p>
518
- <div class="method-source-code" id="M000247-source">
519
- <pre>
520
- /*
521
- * call-seq:
522
- * attr.next -&gt; node
523
- *
524
- * Obtain the next attribute.
525
- */
526
- VALUE
527
- ruby_xml_attr_next_get(VALUE self) {
528
-
529
- </pre>
530
- </div>
531
- </div>
532
- </div>
533
-
534
- <div id="method-M000248" class="method-detail">
535
- <a name="M000248"></a>
536
-
537
- <div class="method-heading">
538
- <a href="#M000248" class="method-signature">
539
- <span class="method-name">attr.next? &rarr; (true|false)<br />
540
- </span>
541
- </a>
542
- </div>
543
-
544
- <div class="method-description">
545
- <p>
546
- Determine whether there is a <a href="Attr.html#M000247">next</a>
547
- attribute.
548
- </p>
549
- <p><a class="source-toggle" href="#"
550
- onclick="toggleCode('M000248-source');return false;">[Source]</a></p>
551
- <div class="method-source-code" id="M000248-source">
552
- <pre>
553
- /*
554
- * call-seq:
555
- * attr.next? -&gt; (true|false)
556
- *
557
- * Determine whether there is a next attribute.
558
- */
559
- VALUE
560
- ruby_xml_attr_next_q(VALUE self) {
561
-
562
- </pre>
563
- </div>
564
- </div>
565
- </div>
566
-
567
- <div id="method-M000249" class="method-detail">
568
- <a name="M000249"></a>
569
-
570
- <div class="method-heading">
571
- <a href="#M000249" class="method-signature">
572
- <span class="method-name">attr.type_name &rarr; "attribute"<br />
573
- </span>
574
- </a>
575
- </div>
576
-
577
- <div class="method-description">
578
- <p>
579
- Obtain this attribute node&#8216;s type <a
580
- href="Attr.html#M000246">name</a>.
581
- </p>
582
- <p><a class="source-toggle" href="#"
583
- onclick="toggleCode('M000249-source');return false;">[Source]</a></p>
584
- <div class="method-source-code" id="M000249-source">
585
- <pre>
586
- /*
587
- * call-seq:
588
- * attr.type_name -&gt; &quot;attribute&quot;
589
- *
590
- * Obtain this attribute node's type name.
591
- */
592
- VALUE
593
- ruby_xml_attr_node_type_name(VALUE self) {
594
-
595
- </pre>
596
- </div>
597
- </div>
598
- </div>
599
-
600
- <div id="method-M000250" class="method-detail">
601
- <a name="M000250"></a>
602
-
603
- <div class="method-heading">
604
- <a href="#M000250" class="method-signature">
605
- <span class="method-name">attr.ns &rarr; namespace<br />
606
- </span>
607
- </a>
608
- </div>
609
-
610
- <div class="method-description">
611
- <p>
612
- Obtain this attribute&#8216;s associated <a href="NS.html">XML::NS</a>, if
613
- any.
614
- </p>
615
- <p><a class="source-toggle" href="#"
616
- onclick="toggleCode('M000250-source');return false;">[Source]</a></p>
617
- <div class="method-source-code" id="M000250-source">
618
- <pre>
619
- /*
620
- * call-seq:
621
- * attr.ns -&gt; namespace
622
- *
623
- * Obtain this attribute's associated XML::NS, if any.
624
- */
625
- VALUE
626
- ruby_xml_attr_ns_get(VALUE self) {
627
-
628
- </pre>
629
- </div>
630
- </div>
631
- </div>
632
-
633
- <div id="method-M000251" class="method-detail">
634
- <a name="M000251"></a>
635
-
636
- <div class="method-heading">
637
- <a href="#M000251" class="method-signature">
638
- <span class="method-name">attr.ns? &rarr; (true|false)<br />
639
- </span>
640
- </a>
641
- </div>
642
-
643
- <div class="method-description">
644
- <p>
645
- Determine whether this attribute has an associated namespace.
646
- </p>
647
- <p><a class="source-toggle" href="#"
648
- onclick="toggleCode('M000251-source');return false;">[Source]</a></p>
649
- <div class="method-source-code" id="M000251-source">
650
- <pre>
651
- /*
652
- * call-seq:
653
- * attr.ns? -&gt; (true|false)
654
- *
655
- * Determine whether this attribute has an associated
656
- * namespace.
657
- */
658
- VALUE
659
- ruby_xml_attr_ns_q(VALUE self) {
660
-
661
- </pre>
662
- </div>
663
- </div>
664
- </div>
665
-
666
- <div id="method-M000252" class="method-detail">
667
- <a name="M000252"></a>
668
-
669
- <div class="method-heading">
670
- <a href="#M000252" class="method-signature">
671
- <span class="method-name">attr.parent &rarr; node<br />
672
- </span>
673
- </a>
674
- </div>
675
-
676
- <div class="method-description">
677
- <p>
678
- Obtain this attribute node&#8216;s <a href="Attr.html#M000252">parent</a>.
679
- </p>
680
- <p><a class="source-toggle" href="#"
681
- onclick="toggleCode('M000252-source');return false;">[Source]</a></p>
682
- <div class="method-source-code" id="M000252-source">
683
- <pre>
684
- /*
685
- * call-seq:
686
- * attr.parent -&gt; node
687
- *
688
- * Obtain this attribute node's parent.
689
- */
690
- VALUE
691
- ruby_xml_attr_parent_get(VALUE self) {
692
-
693
- </pre>
694
- </div>
695
- </div>
696
- </div>
697
-
698
- <div id="method-M000253" class="method-detail">
699
- <a name="M000253"></a>
700
-
701
- <div class="method-heading">
702
- <a href="#M000253" class="method-signature">
703
- <span class="method-name">attr.parent? &rarr; (true|false)<br />
704
- </span>
705
- </a>
706
- </div>
707
-
708
- <div class="method-description">
709
- <p>
710
- Determine whether this attribute has a <a
711
- href="Attr.html#M000252">parent</a>.
712
- </p>
713
- <p><a class="source-toggle" href="#"
714
- onclick="toggleCode('M000253-source');return false;">[Source]</a></p>
715
- <div class="method-source-code" id="M000253-source">
716
- <pre>
717
- /*
718
- * call-seq:
719
- * attr.parent? -&gt; (true|false)
720
- *
721
- * Determine whether this attribute has a parent.
722
- */
723
- VALUE
724
- ruby_xml_attr_parent_q(VALUE self) {
725
-
726
- </pre>
727
- </div>
728
- </div>
729
- </div>
730
-
731
- <div id="method-M000254" class="method-detail">
732
- <a name="M000254"></a>
733
-
734
- <div class="method-heading">
735
- <a href="#M000254" class="method-signature">
736
- <span class="method-name">attr.prev &rarr; node<br />
737
- </span>
738
- </a>
739
- </div>
740
-
741
- <div class="method-description">
742
- <p>
743
- Obtain the previous attribute.
744
- </p>
745
- <p><a class="source-toggle" href="#"
746
- onclick="toggleCode('M000254-source');return false;">[Source]</a></p>
747
- <div class="method-source-code" id="M000254-source">
748
- <pre>
749
- /*
750
- * call-seq:
751
- * attr.prev -&gt; node
752
- *
753
- * Obtain the previous attribute.
754
- */
755
- VALUE
756
- ruby_xml_attr_prev_get(VALUE self) {
757
-
758
- </pre>
759
- </div>
760
- </div>
761
- </div>
762
-
763
- <div id="method-M000255" class="method-detail">
764
- <a name="M000255"></a>
765
-
766
- <div class="method-heading">
767
- <a href="#M000255" class="method-signature">
768
- <span class="method-name">attr.prev? &rarr; (true|false)<br />
769
- </span>
770
- </a>
771
- </div>
772
-
773
- <div class="method-description">
774
- <p>
775
- Determine whether there is a previous attribute.
776
- </p>
777
- <p><a class="source-toggle" href="#"
778
- onclick="toggleCode('M000255-source');return false;">[Source]</a></p>
779
- <div class="method-source-code" id="M000255-source">
780
- <pre>
781
- /*
782
- * call-seq:
783
- * attr.prev? -&gt; (true|false)
784
- *
785
- * Determine whether there is a previous attribute.
786
- */
787
- VALUE
788
- ruby_xml_attr_prev_q(VALUE self) {
789
-
790
- </pre>
791
- </div>
792
- </div>
793
- </div>
794
-
795
- <div id="method-M000256" class="method-detail">
796
- <a name="M000256"></a>
797
-
798
- <div class="method-heading">
799
- <a href="#M000256" class="method-signature">
800
- <span class="method-name">node.remove! &rarr; nil<br />
801
- </span>
802
- </a>
803
- </div>
804
-
805
- <div class="method-description">
806
- <p>
807
- Removes this attribute from it&#8216;s <a
808
- href="Attr.html#M000252">parent</a>.
809
- </p>
810
- <p><a class="source-toggle" href="#"
811
- onclick="toggleCode('M000256-source');return false;">[Source]</a></p>
812
- <div class="method-source-code" id="M000256-source">
813
- <pre>
814
- /*
815
- * call-seq:
816
- * node.remove! -&gt; nil
817
- *
818
- * Removes this attribute from it's parent.
819
- */
820
- VALUE
821
- ruby_xml_attr_remove_ex(VALUE self) {
822
-
823
- </pre>
824
- </div>
825
- </div>
826
- </div>
827
-
828
- <div id="method-M000259" class="method-detail">
829
- <a name="M000259"></a>
830
-
831
- <div class="method-heading">
832
- <a href="#M000259" class="method-signature">
833
- <span class="method-name">siblings</span><span class="method-args">(node, &amp;blk)</span>
834
- </a>
835
- </div>
836
-
837
- <div class="method-description">
838
- <p>
839
- Iterates nodes and attributes
840
- </p>
841
- <p><a class="source-toggle" href="#"
842
- onclick="toggleCode('M000259-source');return false;">[Source]</a></p>
843
- <div class="method-source-code" id="M000259-source">
844
- <pre>
845
- <span class="ruby-comment cmt"># File lib/libxml/attr.rb, line 10</span>
846
- 10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">siblings</span>(<span class="ruby-identifier">node</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
847
- 11: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">n</span> = <span class="ruby-identifier">node</span>
848
- 12: <span class="ruby-identifier">loop</span> <span class="ruby-keyword kw">do</span>
849
- 13: <span class="ruby-identifier">blk</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">n</span>)
850
- 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>
851
- 15: <span class="ruby-keyword kw">end</span>
852
- 16: <span class="ruby-keyword kw">end</span>
853
- 17: <span class="ruby-keyword kw">end</span>
854
- </pre>
855
- </div>
856
- </div>
857
- </div>
858
-
859
- <div id="method-M000264" class="method-detail">
860
- <a name="M000264"></a>
861
-
862
- <div class="method-heading">
863
- <a href="#M000264" class="method-signature">
864
- <span class="method-name">to_a</span><span class="method-args">()</span>
865
- </a>
866
- </div>
867
-
868
- <div class="method-description">
869
- <p><a class="source-toggle" href="#"
870
- onclick="toggleCode('M000264-source');return false;">[Source]</a></p>
871
- <div class="method-source-code" id="M000264-source">
872
- <pre>
873
- <span class="ruby-comment cmt"># File lib/libxml/attr.rb, line 33</span>
874
- 33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
875
- 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>
876
- 35: <span class="ruby-identifier">ary</span> <span class="ruby-operator">&lt;&lt;</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>]
877
- 36: <span class="ruby-identifier">ary</span>
878
- 37: <span class="ruby-keyword kw">end</span>
879
- 38: <span class="ruby-keyword kw">end</span>
880
- </pre>
881
- </div>
882
- </div>
883
- </div>
884
-
885
- <div id="method-M000263" class="method-detail">
886
- <a name="M000263"></a>
887
-
888
- <div class="method-heading">
889
- <a href="#M000263" class="method-signature">
890
- <span class="method-name">to_h</span><span class="method-args">()</span>
891
- </a>
892
- </div>
893
-
894
- <div class="method-description">
895
- <p><a class="source-toggle" href="#"
896
- onclick="toggleCode('M000263-source');return false;">[Source]</a></p>
897
- <div class="method-source-code" id="M000263-source">
898
- <pre>
899
- <span class="ruby-comment cmt"># File lib/libxml/attr.rb, line 26</span>
900
- 26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>
901
- 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>
902
- 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>
903
- 29: <span class="ruby-identifier">h</span>
904
- 30: <span class="ruby-keyword kw">end</span>
905
- 31: <span class="ruby-keyword kw">end</span>
906
- </pre>
907
- </div>
908
- </div>
909
- </div>
910
-
911
- <div id="method-M000265" class="method-detail">
912
- <a name="M000265"></a>
913
-
914
- <div class="method-heading">
915
- <a href="#M000265" class="method-signature">
916
- <span class="method-name">to_s</span><span class="method-args">()</span>
917
- </a>
918
- </div>
919
-
920
- <div class="method-description">
921
- <p><a class="source-toggle" href="#"
922
- onclick="toggleCode('M000265-source');return false;">[Source]</a></p>
923
- <div class="method-source-code" id="M000265-source">
924
- <pre>
925
- <span class="ruby-comment cmt"># File lib/libxml/attr.rb, line 40</span>
926
- 40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
927
- 41: <span class="ruby-node">&quot;#{name} = #{value}&quot;</span>
928
- 42: <span class="ruby-keyword kw">end</span>
929
- </pre>
930
- </div>
931
- </div>
932
- </div>
933
-
934
- <div id="method-M000257" class="method-detail">
935
- <a name="M000257"></a>
936
-
937
- <div class="method-heading">
938
- <a href="#M000257" class="method-signature">
939
- <span class="method-name">attr.value &rarr; "value"<br />
940
- </span>
941
- </a>
942
- </div>
943
-
944
- <div class="method-description">
945
- <p>
946
- Obtain the <a href="Attr.html#M000257">value</a> of this attribute.
947
- </p>
948
- <p><a class="source-toggle" href="#"
949
- onclick="toggleCode('M000257-source');return false;">[Source]</a></p>
950
- <div class="method-source-code" id="M000257-source">
951
- <pre>
952
- /*
953
- * call-seq:
954
- * attr.value -&gt; &quot;value&quot;
955
- *
956
- * Obtain the value of this attribute.
957
- */
958
- VALUE
959
- ruby_xml_attr_value_get(VALUE self) {
960
-
961
- </pre>
962
- </div>
963
- </div>
964
- </div>
965
-
966
- <div id="method-M000258" class="method-detail">
967
- <a name="M000258"></a>
968
-
969
- <div class="method-heading">
970
- <a href="#M000258" class="method-signature">
971
- <span class="method-name">attr.value = "value"<br />
972
- </span>
973
- </a>
974
- </div>
975
-
976
- <div class="method-description">
977
- <p>
978
- Sets the <a href="Attr.html#M000257">value</a> of this attribute.
979
- </p>
980
- <p><a class="source-toggle" href="#"
981
- onclick="toggleCode('M000258-source');return false;">[Source]</a></p>
982
- <div class="method-source-code" id="M000258-source">
983
- <pre>
984
- /*
985
- * call-seq:
986
- * attr.value = &quot;value&quot;
987
- *
988
- * Sets the value of this attribute.
989
- */
990
- VALUE
991
- ruby_xml_attr_value_set(VALUE self, VALUE val) {
992
-
993
- </pre>
994
- </div>
995
- </div>
996
- </div>
997
-
998
-
999
- </div>
1000
-
1001
-
1002
- </div>
1003
-
1004
-
1005
- <div id="validator-badges">
1006
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
1007
- </div>
1008
-
1009
- </body>
1010
- </html>