def get_doctype(self, index, name):
if index not in self.indices:<EOL><INDENT>self.get_all_indices()<EOL><DEDENT>return self.indices.get(index, {}).get(name, None)<EOL>
Returns a doctype given an index and a name