Answer the question
In order to leave comments, you need to log in
How to extract XML data from PostgreSQL for further processing in python?
Good day everyone!
Help with solving the problem)
I extract from the xml database, which is stored in the body field of the table table with the following function
cursor.execute('select convert_from(body, %(form)s) from table limit 1' )
a=cursor.fetchone()
('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><head xmlns="http://ссылка "><MessageID>1<.MessageID></head>')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question