private void WriteCachedNamespaces() {
string prefix, ns;
while (this.cntNmsp != 0) {
// Output each prefix->ns mapping pair
Debug.Assert(this.nsmgr != null);
this.cntNmsp--;
this.nsmgr.GetNamespaceDeclaration(this.cntNmsp, out prefix, out ns);
Writer.WriteNamespaceDeclaration(prefix, ns);
}
}