I have a PostgreSQL database containing a table with a column of type bytea named "data". "data" contains large XML-data.
I would like to be able to search for specific rows, where there is a XML-element in "data" called <fw:MyID></fw:MyID> that contains "ID57841". So it'll look like <fw:MyID>ID57841</fw:MyID>.
Also, I would like to output certain XML-elements from that column, say <fw:MyPassword></fw:MyPassword>.
I cannot write in the database, only read. I've Googled after answers a lot, but cannot fint anything that helps me. Can someone please help me?