The world-wide-web (WWW) has become a very important way for representing information, because it provides a convenient and easy way for accessing data in a wide-area network-based environment. To facilitate the interchange of electronic data between multiple data sources on the Web, the Extensible Markup Language, abbreviated XML, has been proposed by W3C recently and attracted a lot of attention. We expect that many organizations will export data in XML in the near future. This paper describes the design of a library management system based on XML standard, to discuss the related issues for implementing such system. In addition to the architecture and the function description, the focus of this paper is to discuss how to represent data in XML. A special B+-Tree index structure, is also designed to assist efficient query processing for XML documents.