root/README

Revision 4c4a11e66dacdbc8c795a50b906915457c94d973, 0.8 kB (checked in by Mark Guzman <segfault@…>, 6 months ago)

refactored away the Include modules, so that we get documentation of the
ruby-side code alongside the c code
updated the readme to mention licensing and copyright along with a usage
example

  • Property mode set to 100644
Line 
1= FastXml
2a simple fast xml library using libxml and libxslt with an hpricot-like api
3
4== Overview
5
6FastXml:
7
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
26Copyright Mark Guzman 2007-2008
27
28Please see the LICENSE file for more details. The short version is it's under the same terms as Ruby.
Note: See TracBrowser for help on using the browser.