From 4e6637feaff73fcf6ed44a85b96a3b0f74180de9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 5 Sep 2019 01:51:11 +0100 Subject: In 8c852cb the CPL root attribute "dsig" was removed (to prevent 'XML root element can contain only one namespace' errors) In a266fc2 [Sony digest validation fix] this was (for some unknown reason) re-added, which makes the root element bug recur. This commit removes that namespace again. It's a shame there was no unit test to pick this regression up. --- src/cpl.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/cpl.cc b/src/cpl.cc index 3eeb102c..166edc86 100644 --- a/src/cpl.cc +++ b/src/cpl.cc @@ -140,10 +140,6 @@ CPL::write_xml (boost::filesystem::path file, Standard standard, shared_ptrset_namespace_declaration ("http://www.w3.org/2000/09/xmldsig#", "dsig"); - } - root->add_child("Id")->add_child_text ("urn:uuid:" + _id); root->add_child("AnnotationText")->add_child_text (_metadata.annotation_text); root->add_child("IssueDate")->add_child_text (_metadata.issue_date); -- cgit v1.2.3