[XML-SIG] [ pyxml-Bugs-784653 ] xml.xpath.Evaluate(".//a", xml_node) fails after 0.8 -> 0.8.x

SourceForge.net noreply at sourceforge.net
Thu Aug 7 03:40:52 EDT 2003


Bugs item #784653, was opened at 2003-08-07 11:40
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=784653&group_id=6473

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mateusz Korniak (matkor)
Assigned to: Nobody/Anonymous (nobody)
Summary: xml.xpath.Evaluate(".//a",xml_node) fails after 0.8 -> 0.8.x

Initial Comment:
Evaluating path raises exception after upgrade from 
0.8 to 0.8.2 / 0.8.3. in really simple xpath which 
should work IMHO. 
 
Testcase included in attachment. 
 
 
 
 
Invocation with PyXML 0.8.3 / 0.8.2 : 
 
[matkor at appserver ~/dev/abbon/tests]$ 
./xpath-bugreport.py 
xml_node: <DOM Element: table at 0x81b7674> 
Traceback (most recent call last): 
  File "./xpath-bugreport.py", line 1436, in ? 
    test(xml_txt,xpath) 
  File "./xpath-bugreport.py", line 10, in test 
    nodes = xml.xpath.Evaluate(xpath,xml_node) 
  File 
"/usr/lib/python2.2/site-packages/_xmlplus/xpath/__init__.py", 
line 70, in Evaluate 
  File 
"/usr/lib/python2.2/site-packages/_xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.py", 
line 52, in evaluate 
  File 
"/usr/lib/python2.2/site-packages/_xmlplus/xpath/Set.py", 
line 25, in Union 
TypeError: can only concatenate list (not 
"EmptyNodeList") to list 
 
 
 
Invocation with PyXML 0.8  
 
[matkor at appserver ~/dev/abbon/tests]$ 
./xpath-bugreport.py 
xml_node: <DOM Element: table at 136523812> 
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=784653&group_id=6473



More information about the XML-SIG mailing list