Approximate XML Structure Validation Based on Document\textendashGrammar Tree Similarity - Archive ouverte HAL Access content directly
Journal Articles Information Sciences Year : 2015

Approximate XML Structure Validation Based on Document\textendashGrammar Tree Similarity

(1) , (2) , (3) , (3) , (4)
1
2
3
4

Abstract

Comparing XML documents with XML grammars, also known as XML document and gram- mar validation, is useful in various applications such as: XML document classification, document transformation, grammar evolution, XML retrieval, and the selective dissemination of information. While exact (Boolean) XML validation has been extensively investigated in the literature, the more general problem of approximate (similarity-based) XML validation, i.e., document\textendashgrammar similarity evaluation, has not yet received strong attention. In this paper, we propose an original method for measuring the structural similarity between an XML document and an XML grammar (DTD or XSD), considering their most common operators that designate constraints on the existence, repeatability and alternativeness of XML elements/attributes (e.g., ?, \fracslash, MinOccurs, MaxOccurs, etc.). Our approach exploits the concept of tree edit distance, introducing a novel edit distance recurrence and dedicated algorithms to effectively compare XML documents and grammar structures, modeled as ordered labeled trees. Our method also inherently performs exact validation by imposing a maximum similarity threshold (minimum edit distance) on the returned results. We implemented a prototype and conducted several experiments on large sets of real and synthetic XML documents and grammars. Results underline our approach's effectiveness in classifying similar documents with respect to predefined grammars, accurately detecting document and/or grammar modifications, and performing document and grammar relevance ranking. Time and space analysis were also conducted.
Not file

Dates and versions

hal-01906828 , version 1 (27-10-2018)

Identifiers

Cite

Joe Tekli, Richard Chbeir, Agma J. M. Traina, Caetano Traina Jr., Renato Fileto. Approximate XML Structure Validation Based on Document\textendashGrammar Tree Similarity. Information Sciences, 2015, 295, pp.258-302. ⟨10.1016/J.INS.2014.09.044⟩. ⟨hal-01906828⟩

Collections

UNIV-PAU LIUPPA
16 View
0 Download

Altmetric

Share

Gmail Facebook Twitter LinkedIn More