#55: Support XML
---------------------------------+-----------------
  Reporter:  cito                |      Owner:
      Type:  enhancement         |     Status:  new
  Priority:  minor               |  Milestone:  5.0
 Component:  Classic and DB API  |    Version:  4.1
Resolution:                      |   Keywords:  xml
---------------------------------+-----------------

Comment (by cito):

 Unlike JSON, there is no obvious way to convert XML to native Python
 objects. There is also no distinguished XML representation in Python.
 `xml.etree.ElementTree` could be used, but it contrary to the Postgres XML
 type cannot store fragments. Also it's not clear whether the user really
 wants to load the XML with !ElementTree or prefers to parse it with SAX or
 not parse it at all.

 It's probably better to just return text and let the user decide what to
 do with it, so I am closing this ticket.

--
Ticket URL: <http://trac.pygresql.org:8000/pgtracker/ticket/55#comment:1>
PyGreSQL <http://www.pygresql.org/>
PyGreSQL Tracker
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to