Hi there,

I am trying to save the generated queries in database, to have a Search History.

Some of my queries have "where" conditions with < (less than) and <= (less than equal to operators.

This is the insert query -

for $x in doc('SHIST')/Searches return
insert node <SH><Id>0</Id><Date>20130515 14:05:44</Date><Query>
for $x in doc('Docs')/Docs/Doc where$x/Title[Desc/@name='IT' and Year >= '2010' and Year <= '2013']
</Query></SH> as last into $x

I am getting error "Expecting tag name, '<=' found

Any workaround for the same...??

--
Have a nice day
JBest