Skip to content

Commit

Permalink
Merge pull request #134 from danielmarschall/patch-7
Browse files Browse the repository at this point in the history
Update ZugferdProfileResolver.php
  • Loading branch information
horstoeko authored Oct 4, 2024
2 parents 2381ea9 + ef1bb65 commit 9fbb454
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ZugferdProfileResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static function resolve(string $xmlContent): array
$prevUseInternalErrors = \libxml_use_internal_errors(true);

try {
libxml_clear_errors();
$xmldocument = new SimpleXMLElement($xmlContent);
$typeelement = $xmldocument->xpath('/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID');
if (libxml_get_last_error()) {
Expand Down

0 comments on commit 9fbb454

Please sign in to comment.