[XML-SIG] 4suite 1.0a3/PyXML 1.0a3 on HP-UX with Python 2.3.2]\

Albert Chin xml-sig at thewrittenword.com
Mon Dec 29 18:04:20 EST 2003


I've installed PyXML 0.8.3 and 4Suite 1.0a3 on HP-UX 11.x and Solaris
2.x with GCC 3.3.2. The following program causes a failure on HP-UX
but works on Solaris:
  $ cat a.xml
<?xml version="1.0"?>
<A>
  <B/>
</A>
  $ cat a.py
#!/opt/TWWfsw/python232/bin/python

from xml.dom.ext.reader import PyExpat
from Ft.Xml.XPath import Evaluate

fd = open('a.xml', 'r')
reader = PyExpat.Reader()
dom = reader.fromStream(fd)

  $ python a.py
Traceback (most recent call last):
  File "./a.py", line 8, in ?
    dom = reader.fromStream(fd)
  File "/opt/TWWfsw/python232p/lib/python2.3/site-packages/_xmlplus/dom/ext/reader/PyExpat.py", line 65, in fromStream
    success = self.parser.ParseFile(stream)
  File "/opt/TWWfsw/python232p/lib/python2.3/site-packages/_xmlplus/dom/ext/reader/PyExpat.py", line 120, in startElement
    self._completeTextNode()
  File "/opt/TWWfsw/python232p/lib/python2.3/site-packages/_xmlplus/dom/ext/reader/PyExpat.py", line 104, in _completeTextNode
    if self._currText and len(self._nodeStack) and
self._nodeStack[-1].nodeType != Node.DOCUMENT_NODE:
AttributeError: 'NoneType' object has no attribute 'nodeType'

I posted to the 4Suite-dev mailing list but the problem appears to be
a PyXML one. Any ideas?

-- 
albert chin (china at thewrittenword.com)



More information about the XML-SIG mailing list