SMS: XML-based implementation of a bibliographic database and recursive queries