From 908c848c0805dd67fa9350be1d88e2fefbbec78f Mon Sep 17 00:00:00 2001 From: qadan Date: Thu, 1 Oct 2015 12:09:02 -0300 Subject: [PATCH] don't need to check for properly-formed XML when just getting the diff --- includes/solution_packs.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/solution_packs.inc b/includes/solution_packs.inc index 47a8f23c..31cb2501 100644 --- a/includes/solution_packs.inc +++ b/includes/solution_packs.inc @@ -582,11 +582,11 @@ function islandora_check_object_status(AbstractObject $object_definition) { $xslt->importStyleSheet($xsl); $object_definition_dom = new DOMDocument(); $object_definition_dom->preserveWhiteSpace = FALSE; - $object_definition_dom->loadXML(str_replace('info:', 'http://', $ds->content)); + $object_definition_dom->loadXML(str_replace('info:', 'http://', $ds->content), LIBXML_NOWARNING); $object_definition_dom = $xslt->transformToDoc($object_definition_dom); $object_actual_dom = new DOMDocument(); $object_actual_dom->preserveWhiteSpace = FALSE; - $object_actual_dom->loadXML(str_replace('info:', 'http://', $existing_object[$ds->id]->content)); + $object_actual_dom->loadXML(str_replace('info:', 'http://', $existing_object[$ds->id]->content), LIBXML_NOWARNING); $object_actual_dom = $xslt->transformToDoc($object_actual_dom); // Fedora changes the xml structure so we need to cannonize it.