I created NewPyxie.py by adding some new methods to Pyxie.py. I bumped the __version__ to 1.1 to reflect the changes. This doc attempts to list the new methods. Most of them are very simple, so very little explaination is needed. If the explainations here are not sufficient, consult the code. :-) Note that I may have made a couple of other changes to the code (it's been a while since I did all this . . . .). Also, I based my work on the version of Pyxie which came on the CD ROM in Sean McGrath's book; the newest version of Pyxie has also changed. The best thing to do is do a diff between my code and the current version of Pyxie. According to my code comments, the following methods were added to Pyxie: In xTree: def LookForElement(self,elementName): """ This walks the tree looking for elementName. When it finds it, it returns CurPos. If it comes to the end of the tree before finding it, it returns None. Note that the method is not recursive. This is by design -- I find it easier to conceptualize searching using loops instead of recursion. SDB -- 12.25.00 """ def MakeElementDown(self, etn=None): """ Creates an Element node below the current node. SDB -- 12.24.00 """ def MakeDataDown(self, dtn=None): """ Creates a Data node below the current node. SDB -- 12.24.00 """ def MakeElementRight(self, etn=None): """ Creates an Element node to the right of the current node. SDB -- 12.24.00 """ def MakeDataRight(self, dtn=None): """ Creates a Data node to the right of the current node. SDB -- 12.24.00 """ def PrintXMLxTree(self): """ This walks the xTree and prints it out as an XML document. Note that this is easier than writing a recursive XML printer 'cause I can control the indentation of the output. 1.7.2001 -- SDB """ The following function lives at base level: def NormalizeDataNodes(t): """ This removes data nodes which are only lines of whitespace. It also places a single \n at the end of a non-whitespace data line which is lacking a \n. 1.14.2001 -- SDB """ ----------------------------------------------------------------------------- Please direct all comments/suggestions/flames to me: Stuart Brorson sdb@cloud9.net