From e41ab6de6ea5f314995614836e69584b9971cfda Mon Sep 17 00:00:00 2001 From: Mike Cantelon Date: Thu, 16 May 2024 23:31:12 -0700 Subject: [PATCH] work --- hack/sampledata/xsd/empty_premis.xml | 4 ++-- internal/activities/combine_premis.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hack/sampledata/xsd/empty_premis.xml b/hack/sampledata/xsd/empty_premis.xml index a562f308..373b780f 100644 --- a/hack/sampledata/xsd/empty_premis.xml +++ b/hack/sampledata/xsd/empty_premis.xml @@ -1,5 +1,5 @@ - - + diff --git a/internal/activities/combine_premis.go b/internal/activities/combine_premis.go index e63fcca2..830793a9 100644 --- a/internal/activities/combine_premis.go +++ b/internal/activities/combine_premis.go @@ -143,6 +143,10 @@ func CombinePREMISCopy(source_filepath string, destination_filepath string) erro func CombinePREMISAddChildElements(parent_element *etree.Element, new_child_elements []*etree.Element) { for _, child_element := range new_child_elements { + child_element.Space = "premis" + for _, element := range child_element.FindElements("//*") { + element.Space = "premis" + } parent_element.AddChild(child_element) } }