<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,9 +1,28 @@
-= FastXml, a simple fast xml library using libxml and libxslt
+= FastXml
+a simple fast xml library using libxml and libxslt with an hpricot-like api
 
 == Overview
 
-FastXml is: 
+FastXml: 
 
-# not standalone, it *requires libxml* and *libxslt*
-# it attempts to provide the speediest xml parsing library available for ruby
-# it provides an hpricot-like syntax for xml parsing and xslt processing
+ 1) is not standalone, it *requires libxml* and *libxslt*
+ 2) attempts to provide the speediest xml parsing library available for ruby
+ 3) provides an hpricot-like syntax for xml parsing and xslt processing
+
+== Example
+ doc = FastXml( open( 'test.xml ) )
+ puts doc.root.name
+ puts doc.root.content
+ 
+ doc.root.children.each do |node|
+   puts &quot;%s =&gt; %s&quot; % [ node.name, node.content ]
+ end
+
+ (doc/&quot;/node&quot;).each { |node| puts node.inspect } #xpath search
+ doc.search( &quot;//node&quot; ).each { |node| puts node.inspect } 
+
+
+== Copyright &amp; Licensing
+Copyright Mark Guzman 2007-2008
+
+Please see the LICENSE file for more details. The short version is it's under the same terms as Ruby.</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -25,9 +25,7 @@ ID s_readlines;
 ID s_to_s;
 
 void Init_fastxml()
-{
-	VALUE rb_mFastXmlIncludeDoc, rb_mFastXmlIncludeNode, rb_mFastXmlIncludeNodeList;
-	
+{	
     if (xmlHasFeature(XML_WITH_TREE) == 0)
         rb_raise( rb_eRuntimeError, &quot;libxml not built with tree support&quot; );
 
@@ -40,12 +38,7 @@ void Init_fastxml()
     xmlInitParser();
     xmlXPathInit();
     rb_mFastXml = rb_define_module( &quot;FastXml&quot; );
-    VALUE rb_mFastXmlInclude = rb_define_module_under( rb_mFastXml, &quot;Include&quot; );
     rb_define_const( rb_mFastXml, &quot;LIBXML_VERSION&quot;, rb_str_new2( LIBXML_DOTTED_VERSION ) );
-	
-	rb_mFastXmlIncludeDoc = rb_define_module_under( rb_mFastXmlInclude, &quot;Doc&quot; );
-	rb_mFastXmlIncludeNode = rb_define_module_under( rb_mFastXmlInclude, &quot;Node&quot; );
-	rb_mFastXmlIncludeNodeList = rb_define_module_under( rb_mFastXmlInclude, &quot;NodeList&quot; );
 
     /* setting symbols */
     rb_sValidateDtd = ID2SYM( rb_intern(&quot;validate&quot;) );
@@ -65,13 +58,8 @@ void Init_fastxml()
 	Init_fastxml_attrlist();
 	
 	/* pull in the ruby side of things */
-	rb_require( &quot;lib/fastxml_lib&quot; );
-	rb_require( &quot;lib/fastxml_helpers&quot; );
-	
-	/* now let's merge those include modules into the main classes */
-    rb_include_module( rb_cFastXmlDoc, rb_mFastXmlIncludeDoc );	
-    rb_include_module( rb_cFastXmlNode, rb_mFastXmlIncludeNode );	
-    rb_include_module( rb_cFastXmlNodeList, rb_mFastXmlIncludeNodeList );
+	rb_require( &quot;lib/fastxml_lib&quot; );      // ruby-side methods for the FastXml classes
+	rb_require( &quot;lib/fastxml_helpers&quot; );  // FastXml and FastHtml methods
 }
 
 </diff>
      <filename>ext/fastxml.c</filename>
    </modified>
    <modified>
      <diff>@@ -30,7 +30,7 @@ module FastXml::Common #:nodoc: all
   alias :to_s :display
 end
 
-module FastXml::Include::Doc #:nodoc:
+class FastXml::Doc
   include FastXml::Common
   
   def doc?
@@ -54,14 +54,14 @@ module FastXml::Include::Doc #:nodoc:
   end
 end
 
-module FastXml::Include::Node #:nodoc:
+class FastXml::Node
   include FastXml::Common
   def doc?
     false
   end
 end
 
-module FastXml::Include::NodeList #:nodoc:
+class FastXml::NodeList 
   def [](idx)
     self.entry(idx)
   end</diff>
      <filename>lib/fastxml_lib.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a07cd646109e84174fa21b208e7ff9425d77a22b</id>
    </parent>
  </parents>
  <author>
    <name>Mark Guzman</name>
    <email>segfault@hasno.info</email>
  </author>
  <url>http://github.com/segfault/fastxml/commit/4c4a11e66dacdbc8c795a50b906915457c94d973</url>
  <id>4c4a11e66dacdbc8c795a50b906915457c94d973</id>
  <committed-date>2008-06-15T21:39:34-07:00</committed-date>
  <authored-date>2008-06-15T21:39:34-07:00</authored-date>
  <message>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</message>
  <tree>40fabdee15b7de452112af533976baf2b8a99a07</tree>
  <committer>
    <name>Mark Guzman</name>
    <email>segfault@hasno.info</email>
  </committer>
</commit>
