Bindings for xmlDoc creation and destruction.