| 7 | | # not standalone, it *requires libxml* and *libxslt* |
| 8 | | # it attempts to provide the speediest xml parsing library available for ruby |
| 9 | | # it provides an hpricot-like syntax for xml parsing and xslt processing |
| | 8 | 1) is not standalone, it *requires libxml* and *libxslt* |
| | 9 | 2) attempts to provide the speediest xml parsing library available for ruby |
| | 10 | 3) provides an hpricot-like syntax for xml parsing and xslt processing |
| | 11 | |
| | 12 | == Example |
| | 13 | doc = FastXml( open( 'test.xml ) ) |
| | 14 | puts doc.root.name |
| | 15 | puts doc.root.content |
| | 16 | |
| | 17 | doc.root.children.each do |node| |
| | 18 | puts "%s => %s" % [ node.name, node.content ] |
| | 19 | end |
| | 20 | |
| | 21 | (doc/"/node").each { |node| puts node.inspect } #xpath search |
| | 22 | doc.search( "//node" ).each { |node| puts node.inspect } |
| | 23 | |
| | 24 | |
| | 25 | == Copyright & Licensing |
| | 26 | Copyright Mark Guzman 2007-2008 |
| | 27 | |
| | 28 | Please see the LICENSE file for more details. The short version is it's under the same terms as Ruby. |