Package com.ribs.datasource
Class RMXMLReader
java.lang.Object
com.ribs.datasource.RMXMLReader
This class tries to load an XML file as a plist. A plist is made up of simple types (String, Number, Date) and
 just two complex types (List/Map). This makes the loaded data much less ambigous than standard XML datastructures.
 
 This code hopes to find a 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetError()Returns any error encountered while reading xml.getName()Returns the name of the root element.Returns a heirarchy of RMEntity objects describing the XML.Returns a map loaded from the given XML source, with option to only return the schema.readObject(Object aSource) Returns a map loaded from the given XML source.readObject(Object aSource, RMSchema aSchema) Returns a map loaded from the given XML source with the given XML schema.
- 
Constructor Details- 
RMXMLReaderpublic RMXMLReader()Creates an unitialized reader.
 
- 
- 
Method Details- 
getNameReturns the name of the root element.
- 
getSchemaReturns a heirarchy of RMEntity objects describing the XML.
- 
getSchemaReturns a map loaded from the given XML source, with option to only return the schema.
- 
readObjectReturns a map loaded from the given XML source.
- 
readObjectReturns a map loaded from the given XML source with the given XML schema.
- 
getErrorReturns any error encountered while reading xml.
 
-