I’m not able to insert data to a field of type xml.
looks like I Need to call XMLPARSE(DOCUMENT…) instead of just passing the string through.
e.g.
XMLPARSE (DOCUMENT ‘Manual…’)
Anybody know how to get this working in Rails?
Here’s the error message I get when i attempt the insert.
PGError: ERROR: invalid XML content
LINE 1: …2010, NULL, NULL, NULL, NULL, NULL, 2, ‘new’, xml ‘
You don’t necessarily need to use
XMLPARSE. From the error message, it rather looks like you might have quoting problem in the surrounding code, because that looks like theINSERTstatement itself being passed in as XML value.