3 ms·
Wow, xpath in a query call. As a cheap and sloppy compromise (NOT for production, obviously), I'll sometimes just throw raw HTML into a database text field, and
by danso 15y ago
Wow, xpath in a query call. As a cheap and sloppy compromise (NOT for production, obviously), I'll sometimes just throw raw HTML into a database text field, and eat the cost of retrieving it, putting it in memory, and then running a parser on it. I don't know if parsing it in a database call would save much time, but it sure would simply the ORM.
That is, if Postgres integrity checks would even allow HTML, which I'm guessing it probably wouldn't....
- colanderman 15y agoYou can disable DTD checking and then use XHTML (unless of course you're going for strict SGML compliance as opposed to something that can be parsed by a browser).