using system;using system.io;using system.xml;using system.xml.query;using system.data.sqlxml;namespace xquery{public class xquerysample{ public static void main(string[] args) { system.xml.xmldatasourceresolver ds = new system.xml.xmldatasourceresolver (); ds.add("bookstore","books.xml"); streamwriter writer=new streamwriter("output.xml"); string query=@"<bookstore> { for $b in document(´bookstore´)/bookstore/book where $b/@genre=´philosophy´ and $b/@publicationdate=´1991´ return $b/title } </bookstore>"; xqueryprocessor&nbs... 下一页