Hi,
   How was discussed last week[1], I uploaded a Patch[2] where I split
the Scanner and Parser code of XPath.
   The scanner code was put at a new unit, XPath_Scanner.
   Regards,
         Daniel
[1] http://lists.freepascal.org/fpc-devel/2014-March/033584.html
[2] http://bugs.freepascal.org/view.php?id=25871