BaseX is a native XML database. It features compact storage structures, efficient XPath and XQuery implementations and a visual frontend, facilitating interactive access to the data. BaseX is written in Java and freely available for download. It is developed by the Database and Information Systems Group at the University of Konstanz.
i didnt see this befor making this post !! (and scriped same xml-dir thing )
How to construct an XML representation of your filesystem.