Uh ... How to export postgresql database schema to XML format?
Use one of the functions table_to_xml , schema_to_xml , etc. See the documentation .
table_to_xml
schema_to_xml
I am using dbunit for this purpose.
I think DbVisualizer can too.