def get_knownns(self, prefix): """ Odfpy maintains a list of known namespaces. In some cases a prefix is used, and we need to know which namespace it resolves to. """ global nsdict for ns,p in nsdict.items(): if p == prefix: return ns return None
def add_all_ns(self): global nsdict for ns, p in nsdict.items(): self.namespaces[ns] = p