Thread: Invalid Token
View Single Post
  #1 (permalink)  
Old December 24th, 2007, 05:19 AM
sani723 sani723 is offline
Authorized User
Join Date: Mar 2007
Location: Dubai, dubai, United Arab Emirates.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Invalid Token

I have a xml file having following data

<?xml version="1.0" encoding="utf-8" ?>
    <emp sDate="01-11-2007" eDate="30-11-2007">
    <emp sDate="01-12-2007" eDate="31-12-2007">


and then i use this XPath to get the value

$CheckInDate = 20071225;

company/emp[concat(substring-after(substring-after(@sDate,'-'),'-'),substring(substring-after(@sDate,'-'),1,2),substring-before(@sDate,'-')) &lt; $CheckInDate and concat(substring-after(substring-after(@eDate,'-'),'-'),substring(substring-after(@eDate,'-'),1,2),substring-before(@eDate,'-')) &gt;= $CheckInDate]/Child

but it gives error that expression [u]has an invalid token.</u>

any sort of help will be appreciated.

I Love XML and family
I Love XML and family
Reply With Quote