Measuring the structural similarity among XML documents and DTDs.