[XML-SIG] xpath error

Ajay abra9823 at mail.usyd.edu.au
Tue Aug 31 03:19:14 CEST 2004


hi!

i parsed an XML document using minidom and then executed the following
statement:
dataNodes = xpath.Evaluate(".//*[local-name()='DATA']",
document.documentElement)

this gives an error

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\PYTHON23\Lib\site-packages\_xmlplus\xpath\__init__.py", line 70,
in E
valuate
    retval = parser.new().parse(expr).evaluate(con)
  File
"C:\PYTHON23\Lib\site-packages\_xmlplus\xpath\ParsedAbbreviatedRelativeLo
cationPath.py", line 52, in evaluate
    res = Set.Union(res,subRt)
  File "C:\PYTHON23\Lib\site-packages\_xmlplus\xpath\Set.py", line 25, in
Union
    return compare + filter(lambda x,compare = compare:x not in
compare,loop)
TypeError: can only concatenate list (not "tuple") to list

any idea why?

thanks

cheers





----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


More information about the XML-SIG mailing list