1. A method for creating dynamic indices while inserting XML data into a database, the method comprising identifying at least one column in a database table for storing the XML data, the at least one column being identified by a user; and defining a path information for the XML data identified to be stored in the at least one column in the database, wherein the path information is an expression for identifying an element on which the index is created wherein the dynamic indices are recorded in a dynamic indexing table.