Skip to content

Commit 62fb6f7

Browse files
committed
Register xs+xml namespaces
1 parent 584c269 commit 62fb6f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Utils/XPath.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use DOMNode;
99
use DOMXPath;
1010
use SimpleSAML\Assert\Assert;
11+
use SimpleSAML\XML\Constants as C;
1112

1213
/**
1314
* XPath helper functions for the XML library.
@@ -37,6 +38,9 @@ public static function getXPath(DOMNode $node): DOMXPath
3738
$xpCache = new DOMXPath($doc);
3839
}
3940

41+
$xpCache->registerNamespace('xml', C::NS_XML);
42+
$xpCache->registerNamespace('xs', C::NS_XS);
43+
4044
return $xpCache;
4145
}
4246

0 commit comments

Comments
 (0)