Skip to content

Commit

Permalink
Fix for xs:any = other
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 31, 2023
1 parent b9e7f75 commit 99f5e1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/SAML2/XML/md/AbstractEndpointType.php
Expand Up @@ -6,8 +6,8 @@

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\SAML2\Constants as C;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\Constants as C;
use SimpleSAML\XML\Exception\InvalidDOMElementException;
use SimpleSAML\XML\Exception\SchemaViolationException;
use SimpleSAML\XML\ExtendableAttributesTrait;
Expand Down Expand Up @@ -129,7 +129,9 @@ public static function fromXML(DOMElement $xml): static

$children = [];
foreach ($xml->childNodes as $child) {
if (!($child instanceof DOMElement)) {
if ($child->namespaceURI === C::NS_MD) {
continue;
} elseif (!($child instanceof DOMElement)) {
continue;
}

Expand Down

0 comments on commit 99f5e1e

Please sign in to comment.