Allows you to query a file in which you have stored a parsed XML document.
com.sybase.xml.xql.store.SybFileXmlStream {file_name}
Where file_name is the name of the file in which you stored the parsed XML document.
In the following, a member of the RandomAccessFile reads a file and positions the data stream:
SybXmlStream xis = Xql.parse("<xml>..</xml>"); FileOutputStream ofs = new FileOutputStream("xml.data"); ((SybMemXmlStream)xis).writeToFile(ofs); SybXmlStream is = new SybFileXmlStream("xml.data"); String result = Xql.query("/bookstore/book/author", is);