Skip to content

Commit

Permalink
Add XPath constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Nov 6, 2024
1 parent 28e447e commit daed573
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,24 @@ class Constants
* The maximum amount of child nodes this library is willing to handle.
*/
public const UNBOUNDED_LIMIT = 10000;

/**
* The namespace for the XML Path Language 1.0
*/
public const XPATH10_URI = 'http://www.w3.org/TR/1999/REC-xpath-19991116';

/**
* The namespace for the XML Path Language 2.0
*/
public const XPATH20_URI = 'http://www.w3.org/TR/2010/REC-xpath20-20101214/';

/**
* The namespace for the XML Path Language 3.0
*/
public const XPATH30_URI = 'https://www.w3.org/TR/2014/REC-xpath-30-20140408/';

/**
* The namespace for the XML Path Language 3.1
*/
public const XPATH31_URI = 'https://www.w3.org/TR/2017/REC-xpath-31-20170321/';
}

0 comments on commit daed573

Please sign in to comment.