The Visual SQL-X system is presented to generate arbitrarily complex XML documents from a graphical query on a relational database. The query describes the structure of the resulting document through a tree-like representation of its structure. The system generates the XML document through the synthesis of a SQL query and a "summarization" algorithm on the resulting table. Keywords Visual SQL-X, XML, Visual Query Languages.