Notes:
Many very cool new changes. The new API looks like this:
QuiXML Module Methods
create_node ( name ) -> aNewNode
parse ( string <, flags > ) { | name, value | block } -> aNewQuiXMLTree
parse_node ( string <, flags > ) { | name, value | block } -> aNewNode
with_node ( node ) { | tree | block } -> aNewQuiXMLTree
QuiXML::Tree Class Methods
new ( < rootnode > ) -> aNewQuiXMLTree
QuiXML::Tree Instance Methods
attributes_of ( < case < , case < , ... > > > ) -> theAttributes
children_of ( < case < , case < , ... > > > ) -> theChildren
find_all ( < case < , case < , ... > > > ) { | node | block } -> anArray
find_first ( < case < , case < , ... > > > ) -> aNode
parse ( string <, flags > ) { | name, value | block } -> theRootNode
root -> theRootNode
root= -> theRootNode
text_of ( < case < , case < , ... > > > ) -> theText
to_xml { | name, value | block } -> aString
Changes:
===> 0.2.1:
--- 08/31/2003
Found a major typo in the docs regarding parsing flags. Can't have that.
===> 0.2.0:
--- 08/31/2003
Added quixml::create_node which creates a node as a hash which contains all of
the expected properties (name, attributes, children, text). Strictly for
convenience.
Added example code to every method in the docs.
Change the "programming with" section in the docs to be more exemplary and less
lecturing.
--- 08/30/2003
quixml::parse, quixml::tree.parse and quixml::tree.to_xml all now take an
optional parameter which is a flag of bitwise values which control how XML is
parsed and output.
Output didn't quite adhere to its own rules; fixed that.
--- 08/29/2003 sdodell
More distribution fine-tuning. Better version reporting on the home page,
generally more automated.
Added find_content method.
Changed named of find_content to content_of
find_all now calls a block if given.
Renamed internal functions to better differentiate between class and instance
methods.
Added class method parse to create a tree directly from xml. It calls a block
same as parse.
Added class method with_node which uses a node as the root for a new
quixml::tree and passes the tree as the parameter to a block.
Added attributes_of and children_of and changed content_of to text_of.
The term "content" is replaced completely with the term "text" everywhere.
When element addressing is performed, the value "." automatically always
matches the root node now.
More internal cleanups; renaming of things here and there.
Added constants for better control over parsing and printing regarding extra
whitespace, data mixed with elements and tag appearance.
|