Subject:Saxon XQuery error Author:ambika sony Date:01 Sep 2006 04:32 AM
hi guys
I'm using Saxon8 for doing xquery in my java application.
everything is working fine except for one case where i'm getting a very strange error which is :
XPST0003: XQuery syntax error in #...rsion='1.0' encoding='UTF-8'?>#:
A processing instruction must not be named 'xml' in any combination of upper and lower case
My XML is perfectly fine.
In my program i'm using XML as string to do the XQuery. so the query is very simple and in java it looks like
where fileString is string that contains the XML
It gives the above error but if instead of fileString if i store this XML in file it works fine with the same xml
I run query separtely in somewhere else like in ALTOVA XML spy then there is no problem but if i'm using it in java application Saxon is giving me this error.
If anyone have some clue about this then please tell me. I'm struck at this point
It will be a great help