Ok, here is the alpha version for Postgres : WP- Glossary code . Much appreciation for suggestions and feedback !
Sandhya, you may find glossary-xml-import.tcl glossary-xml-export.tcl in glossary package helpfull - it uses nsxml to parse xml document. wp-slim is similar.