Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 12, 2015 · 3 comments
Open

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

GoogleCodeExporter opened this issue Mar 12, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 14 Mar 2011 at 6:45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant