We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 584c269 commit 62fb6f7Copy full SHA for 62fb6f7
1 file changed
src/Utils/XPath.php
@@ -8,6 +8,7 @@
8
use DOMNode;
9
use DOMXPath;
10
use SimpleSAML\Assert\Assert;
11
+use SimpleSAML\XML\Constants as C;
12
13
/**
14
* XPath helper functions for the XML library.
@@ -37,6 +38,9 @@ public static function getXPath(DOMNode $node): DOMXPath
37
38
$xpCache = new DOMXPath($doc);
39
}
40
41
+ $xpCache->registerNamespace('xml', C::NS_XML);
42
+ $xpCache->registerNamespace('xs', C::NS_XS);
43
+
44
return $xpCache;
45
46
0 commit comments