From: Bellave J. <bel...@co...> - 2004-10-18 07:50:19
|
Hello, I would like to use the XML handling capabilities within either xmlobjectify or xmltramp but I could not succeed. Here is a traceback when I try XML_Objectify: >>> xml_obj = XML_Objectify(filename, parser=DOM) Traceback (most recent call last): File "<input>", line 1, in ? File "C:\Program Files\VisAdJython\.\Lib\gnosis\xml\objectify\_objectify.py", line 136, in __init__ self._dom = minidom.parseString(self._fh.read()) File "C:\Program Files\VisAdJython\.\Lib\xml\dom\minidom.py", line 913, in parseString return _doparse(pulldom.parseString, args, kwargs) File "C:\Program Files\VisAdJython\.\Lib\xml\dom\minidom.py", line 900, in _doparse toktype, rootNode = events.getEvent() AttributeError: feed Next, I tried xmltramp and even that did not work. It comes back with: >>> d = Element('foo', attrs={'foo':'bar'}, children=['hit with a', Element('bar'), Element('bar')]) Traceback (most recent call last): File "<input>", line 1, in ? NameError: dict Can anyone please help in getting this to work? If it cannot be made to work, what alternatives do I have? Todd Moyer sent me some code he has written to manipulate XML as java objects and I am yet to try that but I would love to get xmltramp to work in jython. Thanks, Jayaram |