Read namespaces and annotations from document header