improved getData() and xml namespaces