The need for interoperation and data exchange through the Internet has made Extensible Markup Language (XML) a dominant standard
language. Much work has already been done on translating relational data into XML documents and vice versa. However, there
is not an integrated method to combine them together as a unifying technology for database interoperability on the Internet.
Users may not be familiar with various query language syntax. We propose database gateways built on the top of a Relational
Database (RDB) and an XML Database (XMLDB). Users can access both databases at the same time through the query language SQL
or XQL (an XML query language) to access data stored in either RDB or XMLDB. The translation process adopts query graph translation
between a RDB and an XMLDB. Thus, a stepwise procedure of query translation is devised and amenable to implementation. The
procedure also provides an XML interface to a RDB as well as a relational interface to XMLDB. A location counter sequence
number is used to position tuples in a RDB for subsequent transforming the tuples into the corresponding positioning element
instances in the XML documents. As a result, both XMLDB and RDB can co-exist, and be accessible by the users.