Hi!

 

I have build Parser for a file, containing SQL commands. The problem is that a SQL command can contain ‘<’ and ‘>’, i.e.

 

SELECT ID, NAME FROM SOME_TABLE WHERE INT_COLUMN >= ? OR INT_COLUMN <= ?

 

When I parse the file I get an parser exception:

 

DOMError FATAL ERROR message: Expected an element name

 

Is there any way to get around this problem? I tried to put an escape character before ‘<’ and ‘>’, i.e.

 

SELECT ID, NAME FROM SOME_TABLE WHERE INT_COLUMN \>= ? OR INT_COLUMN \<= ?

 

But this did not help.

 

Many thanks in advance

Magnus Karlsson

 

Reply via email to