Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xquery file not found

Status
Not open for further replies.

lalzad

IS-IT--Management
Nov 29, 2006
15
CA
While using saxon7.8 and xQuery, I created a xml source doc by the name of SimpleBooks.xml and then to run the query(from the command line) I created a file SimpleBooks.xquery which contains the following one line code
doc("SimpleBooks.xml")/Books/Book
The saxon processor gives an error message "file is not found", but when I change the same file Simplebooks.xquery to Simple.xml the saxon processor works fine.
The file SimpleBooks.xquery is being shown as a text file.
What could be the problem
 
Sorry guys, I got to know my mistake.I was saving the files as xquery but they were being saved as xquery.txt, but when I chose AllFiles instead of .txt, the files were saved as xquery and everything is working fine now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top