XML Object Package for TCL
Current Versions:
- version 2.2 - old API, but still returns a Tree
- version 3.4 - scaled down API since Tree library does
all of the hard work
Author: Evan Rempel erempel@UVic.CA
This package uses the TCL XML package to parse XML documents,
and uses the Tree
package to produce a hierachical representation of the XML document.
::XMLObject::setTrimChars string
- When data is parsed from the XML document, these characters
are trimmed off the ends of the data. By default, the
trimmed character set is "\n\t\r "
::XMLObject::parse XMLData
- Return a tree (See package Tree) that is a representation
of the XML data. The name of children are the names
of the XML tags, and the data is placed into the user attribute
called value. Any tag attributes are also added to the
tree attributes.
::XMLObject::format treeToken
- Return an XML like string representing the XML data. This output
is identical to the output of hte ::Tree::format routine.
Revision History
Version 3.4 - Jan 29, 2002
- The TCLXML 2.0 library fails on use of
reset and free. Modified to accomodate this.
Version 3.3 - June 19, 2001
- Updated to use version 2 of the tree library.
Version 3.2 - May 21, 2001
- Must have been an internal release, since I can't find it.
Version 3.1 - ?
- Updated to use version 1 of the tree library.
Version 2.2 - June 19, 2001
- Updated to use version 2 of the Tree library. This
will hopefully be the laster update to version 2.
Version 2.1 - ?
- Must have been an internal release, since I can't find it.
Version 2.0 - Dec 20, 2000
- Changed the internal structure of the XML object to
address some performance concerns.
- The library is completely token based now, rather than
array based.
Version 1.1 - Oct 9, 2000
- Added the routine XMLObject::element
- Added the routine XMLObject::value
- Added the routine XMLObject::setTrimChars
- Added the code to trim the XML valued according to
the XMLObject::setTrimChars specified.
Version 1.0