diff --git a/src/ValueObjects/Transporter/Xml.php b/src/ValueObjects/Transporter/Xml.php index 915dc9c..893756f 100644 --- a/src/ValueObjects/Transporter/Xml.php +++ b/src/ValueObjects/Transporter/Xml.php @@ -52,7 +52,7 @@ private function getCleanedContent(string $xml_path): string } // Regex pattern to match the xsi:schemaLocation attribute regardless of its content - $pattern = '/\sxsi:schemaLocation="[^"]*"/'; + $pattern = '/\sxsi:(schemaLocation|schemalocation)="[^"]*"/'; // Replace the matched pattern with an empty string return (string) preg_replace($pattern, '', $xml_content);