A double layer indexing structure for flexible querying of XML documents