Based on a development of commercial XML applications, a need to store XML data in a database is increasing. The goal of the paper is to explain directions in XML databases and show their fundamentals on examples.