README.rdoc in Empact-roxml-2.1 vs README.rdoc in Empact-roxml-2.2
- old
+ new
@@ -1,11 +1,11 @@
ROXML Ruby Object to XML mapping library. For more information
visit http://roxml.rubyforge.org
=Quick Start Guide
-This is a short usage example. See ROXML::ROXML_Class and packaged test cases for more information.
+This is a short usage example. See ROXML::ClassMethods::Declarations and packaged test cases for more information.
==Basic Mapping
Consider an XML document representing a Library containing a number of Books. You
can map this structure to Ruby classes that provide addition useful behavior. With
@@ -45,11 +45,11 @@
lib.to_xml.write(f, 0)
end
To later populate the library object from the XML file:
- lib = Library.parse(File.read("library.xml"))
+ lib = Library.from_xml(File.read("library.xml"))
Similarly, to do a one-to-one mapping between XML objects, such as book and publisher,
you would add a reference to another ROXML class. For example:
<book isbn="0974514055">
@@ -117,6 +117,6 @@
module ROXML
XML_PARSER = 'libxml' # or 'rexml'
end
require 'roxml'
-For more information on available annotations, see ROXML::ROXML_Class
+For more information on available annotations, see ROXML::ClassMethods::Declarations