Skip to content

Can't parse xml file in python2.7 #5

@GoogleCodeExporter

Description

@GoogleCodeExporter
python2.7

import xpath
from xml.dom import minidom

xml = 
minidom.parseString("<Rerservations><Rerservation><endDate>2011-03-15T11:00:00+0
8:00</endDate></Rerservation></Rerservations>")
xpath.find(xml,"/Reservations/endDate")


Traceback (most recent call last):
  File "<pyshell#8>", line 1, in <module>
    xpath.find(xml,"/Reservations/Reservation/endDate")
  File "C:\Python27\lib\site-packages\xpath\__init__.py", line 23, in api_function
    raise e
XPathParseError: Syntax error:
<xml.dom.minidom.Document instance at 0x014A53C8>
^




Original issue reported on code.google.com by muden...@gmail.com on 14 Mar 2011 at 6:45

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions