I am facing problem with xmlbeans 2.2.0

this is my classpath:

.;C:\j2sdk1.4.2_12\lib;C:\j2sdk1.4.2_12\jre\lib;C:\xmlbeans\xmlbeans-2.2.0\lib\xbean_xpath.jar;C:\xmlbeans\xmlbeans-2.2.0\lib\resolver.jar;C:\xmlbeans\xmlbeans-2.2.0\lib\jsr173_1.0_api.jar;C:\xmlbeans\xmlbeans-2.2.0\lib\xbean.jar;C:\xmlbeans\xmlbeans-2.2.0\lib\xmlpublic.jar;C:\Saxonb8\saxon8-xpath.jar;C:\Saxonb8_2\saxon8-dom.jar;C:\Saxonb8_2\saxon8-sql.jar;C:\Saxonb8_2\saxon8-jdom.jar;C:\Saxonb8_2\saxon8-xom.jar;C:\Saxonb8_2\saxon8.jar

 

I am getting following error-

java.lang.RuntimeException: No query engine found.

Probbaly following code snnippet rais this error-

 

String queryExpression =

"for $e in $this/xq:employees/xq:employee " +

"let $s := $e/xq:address/xq:state " +

"where $s = 'WA' " +

"return $e//xq:[EMAIL PROTECTED]'work']";

XmlCursor resultCursor =

empCursor.execQuery(m_namespaceDeclaration + queryExpression);

 

Can anybody help me out, why such error occurs.

 

Thanks in adv.

 

Lalit Kumar



Lalit Kumar

Phone: 9881209069
-------------------------------------------------------------
, ,
/ \ .-. * SOFTWARE
((__-^^-,-^^-__)) (. .) * FREEDOM
`-_---' `---_-' / V \ * SHARING
`--|o` 'o|--' // \\
\ ` / /( )\ KNOWLEDGE IS POWER
): :( '.^^_^^.' SHARE IT EQUITABLY
:o_o: \_/ \_/
"-"





________________________________________________________________________
________________________________________________________________________



-- -
Free Email at http://www.MailPuppy.com
- Fraud Warning: Never accept foreign checks/money orders

Reply via email to