There are various way to publish XML documents. This figure (gif), (pdf) figure gives a (simplified) schematic representation of the various possibilities.