Added a wrapper to work better with non-HTML namespaced XML environments.