Data analysis, KDDM, XML and automata