roxml 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/MIT-LICENSE.txt +9 -0
  2. data/doc/classes/ROXML.html +352 -0
  3. data/doc/classes/ROXML.src/M000003.html +19 -0
  4. data/doc/classes/ROXML.src/M000004.html +25 -0
  5. data/doc/classes/ROXML.src/M000005.html +22 -0
  6. data/doc/classes/ROXML/ROXML_Class.html +422 -0
  7. data/doc/classes/ROXML/ROXML_Class.src/M000006.html +27 -0
  8. data/doc/classes/ROXML/ROXML_Class.src/M000007.html +18 -0
  9. data/doc/classes/ROXML/ROXML_Class.src/M000008.html +19 -0
  10. data/doc/classes/ROXML/ROXML_Class.src/M000009.html +24 -0
  11. data/doc/classes/ROXML/ROXML_Class.src/M000010.html +24 -0
  12. data/doc/classes/ROXML/ROXML_Class.src/M000011.html +18 -0
  13. data/doc/classes/ROXML/ROXML_Class.src/M000012.html +18 -0
  14. data/doc/classes/ROXML/XMLAttributeRef.html +175 -0
  15. data/doc/classes/ROXML/XMLAttributeRef.src/M000015.html +19 -0
  16. data/doc/classes/ROXML/XMLAttributeRef.src/M000016.html +19 -0
  17. data/doc/classes/ROXML/XMLObjectRef.html +175 -0
  18. data/doc/classes/ROXML/XMLObjectRef.src/M000013.html +26 -0
  19. data/doc/classes/ROXML/XMLObjectRef.src/M000014.html +32 -0
  20. data/doc/classes/ROXML/XMLRef.html +212 -0
  21. data/doc/classes/ROXML/XMLRef.src/M000017.html +21 -0
  22. data/doc/classes/ROXML/XMLRef.src/M000018.html +18 -0
  23. data/doc/classes/ROXML/XMLRef.src/M000019.html +18 -0
  24. data/doc/classes/ROXML/XMLTextRef.html +193 -0
  25. data/doc/classes/ROXML/XMLTextRef.src/M000020.html +26 -0
  26. data/doc/classes/ROXML/XMLTextRef.src/M000021.html +33 -0
  27. data/doc/classes/String.html +165 -0
  28. data/doc/classes/String.src/M000001.html +23 -0
  29. data/doc/classes/String.src/M000002.html +23 -0
  30. data/doc/created.rid +1 -0
  31. data/doc/files/lib/roxml_rb.html +234 -0
  32. data/doc/fr_class_index.html +33 -0
  33. data/doc/fr_file_index.html +27 -0
  34. data/doc/fr_method_index.html +47 -0
  35. data/doc/index.html +24 -0
  36. data/doc/rdoc-style.css +208 -0
  37. data/lib/roxml.rb +507 -0
  38. data/test/fixture_helper.rb +5 -0
  39. data/test/fixtures/book_malformed.xml +5 -0
  40. data/test/fixtures/book_pair.xml +8 -0
  41. data/test/fixtures/book_valid.xml +5 -0
  42. data/test/fixtures/book_with_contributions.xml +9 -0
  43. data/test/fixtures/book_with_contributors.xml +7 -0
  44. data/test/fixtures/book_with_publisher.xml +7 -0
  45. data/test/fixtures/library.xml +30 -0
  46. data/test/mocks/mocks.rb +59 -0
  47. data/test/test_roxml.rb +90 -0
  48. metadata +104 -0
@@ -0,0 +1,26 @@
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>
7
+ <head>
8
+ <title>update_xml (ROXML::XMLObjectRef)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/roxml.rb, line 201</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_xml</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">value</span>)
15
+ <span class="ruby-identifier">parent</span> = (<span class="ruby-identifier">wrapper</span> <span class="ruby-value">? </span><span class="ruby-identifier">xml</span>.<span class="ruby-identifier">add_element</span>(<span class="ruby-identifier">wrapper</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">xml</span>)
16
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">array</span>
17
+ <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">add_element</span>(<span class="ruby-identifier">value</span>.<span class="ruby-identifier">to_xml</span>)
18
+ <span class="ruby-keyword kw">else</span>
19
+ <span class="ruby-identifier">value</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
20
+ <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">add_element</span>(<span class="ruby-identifier">v</span>.<span class="ruby-identifier">to_xml</span>)
21
+ <span class="ruby-keyword kw">end</span>
22
+ <span class="ruby-keyword kw">end</span>
23
+ <span class="ruby-identifier">xml</span>
24
+ <span class="ruby-keyword kw">end</span></pre>
25
+ </body>
26
+ </html>
@@ -0,0 +1,32 @@
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>
7
+ <head>
8
+ <title>populate (ROXML::XMLObjectRef)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/roxml.rb, line 215</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">populate</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">instance</span>)
15
+ <span class="ruby-identifier">data</span> = <span class="ruby-keyword kw">nil</span>
16
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">array</span>
17
+ <span class="ruby-identifier">child</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value">1</span>, <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">tag_name</span>]
18
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">child</span>
19
+ <span class="ruby-identifier">data</span> = <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">child</span>)
20
+ <span class="ruby-keyword kw">end</span>
21
+ <span class="ruby-keyword kw">else</span>
22
+ <span class="ruby-identifier">xpath</span> = (<span class="ruby-identifier">wrapper</span> <span class="ruby-value">? </span><span class="ruby-node">&quot;#{wrapper}/#{klass.tag_name}&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-node">&quot;#{klass.tag_name}&quot;</span>)
23
+ <span class="ruby-identifier">data</span> = []
24
+ <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">each_element</span>(<span class="ruby-identifier">xpath</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span>
25
+ <span class="ruby-identifier">data</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">e</span>)
26
+ <span class="ruby-keyword kw">end</span>
27
+ <span class="ruby-keyword kw">end</span>
28
+ <span class="ruby-identifier">instance</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">&quot;@#{accessor}&quot;</span>, <span class="ruby-identifier">data</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">data</span>
29
+ <span class="ruby-identifier">instance</span>
30
+ <span class="ruby-keyword kw">end</span></pre>
31
+ </body>
32
+ </html>
@@ -0,0 +1,212 @@
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: ROXML::XMLRef</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">ROXML::XMLRef</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/roxml_rb.html">
59
+ lib/roxml.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ Internal base class that represents an XML - Class binding.
84
+ </p>
85
+
86
+ </div>
87
+
88
+
89
+ </div>
90
+
91
+ <div id="method-list">
92
+ <h3 class="section-bar">Methods</h3>
93
+
94
+ <div class="name-list">
95
+ <a href="#M000017">new</a>&nbsp;&nbsp;
96
+ <a href="#M000019">populate</a>&nbsp;&nbsp;
97
+ <a href="#M000018">update_xml</a>&nbsp;&nbsp;
98
+ </div>
99
+ </div>
100
+
101
+ </div>
102
+
103
+
104
+ <!-- if includes -->
105
+
106
+ <div id="section">
107
+
108
+
109
+
110
+
111
+
112
+ <div id="attribute-list">
113
+ <h3 class="section-bar">Attributes</h3>
114
+
115
+ <div class="name-list">
116
+ <table>
117
+ <tr class="top-aligned-row context-row">
118
+ <td class="context-item-name">accessor</td>
119
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
120
+ <td class="context-item-desc"></td>
121
+ </tr>
122
+ <tr class="top-aligned-row context-row">
123
+ <td class="context-item-name">array</td>
124
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
125
+ <td class="context-item-desc"></td>
126
+ </tr>
127
+ <tr class="top-aligned-row context-row">
128
+ <td class="context-item-name">name</td>
129
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
130
+ <td class="context-item-desc"></td>
131
+ </tr>
132
+ </table>
133
+ </div>
134
+ </div>
135
+
136
+
137
+
138
+ <!-- if method_list -->
139
+ <div id="methods">
140
+ <h3 class="section-bar">Public Class methods</h3>
141
+
142
+ <div id="method-M000017" class="method-detail">
143
+ <a name="M000017"></a>
144
+
145
+ <div class="method-heading">
146
+ <a href="XMLRef.src/M000017.html" target="Code" class="method-signature"
147
+ onclick="popupCode('XMLRef.src/M000017.html');return false;">
148
+ <span class="method-name">new</span><span class="method-args">(accessor, name = nil) {|self if block_given?| ...}</span>
149
+ </a>
150
+ </div>
151
+
152
+ <div class="method-description">
153
+ </div>
154
+ </div>
155
+
156
+ <h3 class="section-bar">Public Instance methods</h3>
157
+
158
+ <div id="method-M000019" class="method-detail">
159
+ <a name="M000019"></a>
160
+
161
+ <div class="method-heading">
162
+ <a href="XMLRef.src/M000019.html" target="Code" class="method-signature"
163
+ onclick="popupCode('XMLRef.src/M000019.html');return false;">
164
+ <span class="method-name">populate</span><span class="method-args">(xml, instance)</span>
165
+ </a>
166
+ </div>
167
+
168
+ <div class="method-description">
169
+ <p>
170
+ Reads data from the XML element and populates the object instance
171
+ accordingly.
172
+ </p>
173
+ <p>
174
+ <b>Returns</b>: The updated instance.
175
+ </p>
176
+ </div>
177
+ </div>
178
+
179
+ <div id="method-M000018" class="method-detail">
180
+ <a name="M000018"></a>
181
+
182
+ <div class="method-heading">
183
+ <a href="XMLRef.src/M000018.html" target="Code" class="method-signature"
184
+ onclick="popupCode('XMLRef.src/M000018.html');return false;">
185
+ <span class="method-name">update_xml</span><span class="method-args">(xml, value)</span>
186
+ </a>
187
+ </div>
188
+
189
+ <div class="method-description">
190
+ <p>
191
+ Converts this XML reference to XML and updates the passed in element (XML)
192
+ with data.
193
+ </p>
194
+ <p>
195
+ <b>Returns</b>: The updated XML node.
196
+ </p>
197
+ </div>
198
+ </div>
199
+
200
+
201
+ </div>
202
+
203
+
204
+ </div>
205
+
206
+
207
+ <div id="validator-badges">
208
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
209
+ </div>
210
+
211
+ </body>
212
+ </html>
@@ -0,0 +1,21 @@
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>
7
+ <head>
8
+ <title>new (ROXML::XMLRef)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/roxml.rb, line 105</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">accessor</span>, <span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>)
15
+ <span class="ruby-ivar">@accessor</span> = <span class="ruby-identifier">accessor</span>
16
+ <span class="ruby-ivar">@name</span> = (<span class="ruby-identifier">name</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">accessor</span>.<span class="ruby-identifier">id2name</span>)
17
+ <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">self</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
18
+ <span class="ruby-ivar">@array</span> = <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@array</span>
19
+ <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>update_xml (ROXML::XMLRef)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/roxml.rb, line 116</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_xml</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">value</span>)
15
+ <span class="ruby-identifier">xml</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>populate (ROXML::XMLRef)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/roxml.rb, line 124</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">populate</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">instance</span>)
15
+ <span class="ruby-identifier">instance</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,193 @@
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: ROXML::XMLTextRef</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">ROXML::XMLTextRef</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/roxml_rb.html">
59
+ lib/roxml.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="XMLAttributeRef.html">
69
+ XMLAttributeRef
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+ <div id="description">
84
+ <p>
85
+ Interal class representing XML content text binding
86
+ </p>
87
+ <p>
88
+ In context:
89
+ </p>
90
+ <pre>
91
+ &lt;element attribute=&quot;XMLAttributeRef&quot;&gt;
92
+ XMLTextRef
93
+ &lt;/element&gt;
94
+ </pre>
95
+
96
+ </div>
97
+
98
+
99
+ </div>
100
+
101
+ <div id="method-list">
102
+ <h3 class="section-bar">Methods</h3>
103
+
104
+ <div class="name-list">
105
+ <a href="#M000021">populate</a>&nbsp;&nbsp;
106
+ <a href="#M000020">update_xml</a>&nbsp;&nbsp;
107
+ </div>
108
+ </div>
109
+
110
+ </div>
111
+
112
+
113
+ <!-- if includes -->
114
+
115
+ <div id="section">
116
+
117
+
118
+
119
+
120
+
121
+ <div id="attribute-list">
122
+ <h3 class="section-bar">Attributes</h3>
123
+
124
+ <div class="name-list">
125
+ <table>
126
+ <tr class="top-aligned-row context-row">
127
+ <td class="context-item-name">cdata</td>
128
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
129
+ <td class="context-item-desc"></td>
130
+ </tr>
131
+ <tr class="top-aligned-row context-row">
132
+ <td class="context-item-name">wrapper</td>
133
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
134
+ <td class="context-item-desc"></td>
135
+ </tr>
136
+ </table>
137
+ </div>
138
+ </div>
139
+
140
+
141
+
142
+ <!-- if method_list -->
143
+ <div id="methods">
144
+ <h3 class="section-bar">Public Instance methods</h3>
145
+
146
+ <div id="method-M000021" class="method-detail">
147
+ <a name="M000021"></a>
148
+
149
+ <div class="method-heading">
150
+ <a href="XMLTextRef.src/M000021.html" target="Code" class="method-signature"
151
+ onclick="popupCode('XMLTextRef.src/M000021.html');return false;">
152
+ <span class="method-name">populate</span><span class="method-args">(xml, instance)</span>
153
+ </a>
154
+ </div>
155
+
156
+ <div class="method-description">
157
+ <p>
158
+ Reads data from the XML element and populates the text accordingly.
159
+ </p>
160
+ </div>
161
+ </div>
162
+
163
+ <div id="method-M000020" class="method-detail">
164
+ <a name="M000020"></a>
165
+
166
+ <div class="method-heading">
167
+ <a href="XMLTextRef.src/M000020.html" target="Code" class="method-signature"
168
+ onclick="popupCode('XMLTextRef.src/M000020.html');return false;">
169
+ <span class="method-name">update_xml</span><span class="method-args">(xml, value)</span>
170
+ </a>
171
+ </div>
172
+
173
+ <div class="method-description">
174
+ <p>
175
+ Updates the text in the given <em>xml</em> block to the <em>value</em>
176
+ provided.
177
+ </p>
178
+ </div>
179
+ </div>
180
+
181
+
182
+ </div>
183
+
184
+
185
+ </div>
186
+
187
+
188
+ <div id="validator-badges">
189
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
190
+ </div>
191
+
192
+ </body>
193
+ </html>