Skip to content

Commit daed573

Browse files
committed
Add XPath constants
1 parent 28e447e commit daed573

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Constants.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,24 @@ class Constants
3030
* The maximum amount of child nodes this library is willing to handle.
3131
*/
3232
public const UNBOUNDED_LIMIT = 10000;
33+
34+
/**
35+
* The namespace for the XML Path Language 1.0
36+
*/
37+
public const XPATH10_URI = 'http://www.w3.org/TR/1999/REC-xpath-19991116';
38+
39+
/**
40+
* The namespace for the XML Path Language 2.0
41+
*/
42+
public const XPATH20_URI = 'http://www.w3.org/TR/2010/REC-xpath20-20101214/';
43+
44+
/**
45+
* The namespace for the XML Path Language 3.0
46+
*/
47+
public const XPATH30_URI = 'https://www.w3.org/TR/2014/REC-xpath-30-20140408/';
48+
49+
/**
50+
* The namespace for the XML Path Language 3.1
51+
*/
52+
public const XPATH31_URI = 'https://www.w3.org/TR/2017/REC-xpath-31-20170321/';
3353
}

0 commit comments

Comments
 (0)