public
Description: Xml read/write with a nice ruby api
Clone URL: git://github.com/tobi/xml_node.git
find(:scope,) examples
Tobias Luetke (home) (author)
Sun Mar 30 08:25:47 -0700 2008
commit  8cce3d86f733e6e8d14d2db102943513c67ec6b6
tree    841054558e0f448a4025e80e4394350427b6c16e
parent  439362cd56393040a0cd9336ccde682d132db9dc
0
...
31
32
33
34
 
 
 
 
35
36
37
 
 
38
...
31
32
33
 
34
35
36
37
38
 
39
40
41
42
0
@@ -31,6 +31,10 @@ Example for parsing xml:
0
 
0
 
0
   xml = XmlNode.parse('<feed attr="1"><element>text</element><element>text</element></feed>')
0
- xml['attr'] #=> '1'
0
+ xml['attr'] #=> '1'
0
+ xml.find(:first, 'element')
0
+ xml.find(:all, 'element')
0
+
0
   xml.children['element'].text #=> 'text'
0
- xml.children.each { |e| e... }
0
\ No newline at end of file
0
+ xml.children.each { |e| e... }
0
+
0
\ No newline at end of file

Comments

    No one has commented yet.