xml_reset(struct xml_context *ctx)
{
TRACE(ctx, "reset");
- struct mempool *pool = ctx->pool, *stack = ctx->stack;
+ struct mempool *pool = ctx->pool, *stack = ctx->stack, *ns_pool = ctx->ns_pool;
+ const char **ns_by_id = ctx->ns_by_id;
xml_dtd_cleanup(ctx);
xml_sources_cleanup(ctx);
mp_flush(pool);
*ctx = xml_defaults;
ctx->pool = pool;
ctx->stack = stack;
+ ctx->ns_pool = ns_pool;
+ ctx->ns_by_id = ns_by_id;
xml_ns_reset(ctx);
}