XQueryXPath

所属分类:Windows编程
开发工具:Java
文件大小:21KB
下载次数:3
上传日期:2009-03-10 19:02:43
上 传 者testxue
说明:  apache组织用于XPath查询的类,里面有源码和例子,好像还有文档。
(XQueryXPath)

文件列表:
XQueryXPath\build.xml (3931, 2007-05-22)
XQueryXPath\schemas\employeeschema.xsd (1953, 2007-05-22)
XQueryXPath\schemas (0, 2009-02-16)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\employees\AddressType.java (10471, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\employees\EmployeesDocument.java (11963, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\employees\EmployeeType.java (11115, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\employees\impl\AddressTypeImpl.java (11741, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\employees\impl\EmployeesDocumentImpl.java (7853, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\employees\impl\EmployeeTypeImpl.java (10729, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\employees\impl\PhoneTypeImpl.java (3088, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\employees\impl (0, 2009-02-16)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\employees\PhoneType.java (8837, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\employees (0, 2009-02-16)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\ExecQuery.java (6570, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\SelectPath.java (7289, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\XQueryXPath.java (4445, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery\XQueryXPathTest.java (1098, 2007-05-22)
XQueryXPath\src\org\apache\xmlbeans\samples\xquery (0, 2009-02-16)
XQueryXPath\src\org\apache\xmlbeans\samples (0, 2009-02-16)
XQueryXPath\src\org\apache\xmlbeans (0, 2009-02-16)
XQueryXPath\src\org\apache (0, 2009-02-16)
XQueryXPath\src\org (0, 2009-02-16)
XQueryXPath\src (0, 2009-02-16)
XQueryXPath\xml\employees.xml (2237, 2007-05-22)
XQueryXPath\xml (0, 2009-02-16)
XQueryXPath (0, 2009-02-16)

Sample: XQueryXPath Author: Steven Traut (straut@bea.com) Last Updated: June 8, 2005 Versions: xmlbeans-v1 1.0.3 xmlbeans-v2 ----------------------------------------------------------------------------- This sample illustrates how you can use the XMLBeans API to execute XPath and XQuery expressions. The sample illustrates these features: - Using the XmlObject.selectPath and XmlCursor.selectPath methods to execute XPath expressions. The selectPath method's results (if any) are always chunks of the instance queried against. In other words, changes to query results change the original instance. However, you work with results differently depending on whether selectPath was called from an XmlObject or XmlCursor instance. See the SelectPath class for more information. - Using the XmlObject.execQuery and XmlCursor.execQuery methods to execute XQuery expressions. Results of these queries are copied into new XML, meaning that changes to results do not change the original instance. Here again, you work with results differently depending how which method you used to query. See the ExecQuery class for more information. A note about dependencies. Very simple XPath expressions -- e.g., expressions without predicates or function calls -- require only the xbean.jar on your class path. More complex expressions require xbean_xpath.jar. XQuery expressions require the Saxon 8.1.1 JAR. Both xbean_xpath.jar and saxon8.jar are created for you when you build XMLBeans from Apache source code. These files are required on the class path for code in this sample to run. To try out this sample: 1. Set XMLBEANS_HOME in your environment 2. Ant must be on your PATH 3. xbean_xpath.jar and saxon8.jar must be on your class path. These files are created in the build/lib directory when you build XMLBeans from source. 4. To compile the schemas and sample source, run "ant build" 5. To execute the sample, run "ant run"

近期下载者

相关文件


收藏者