query(String query, InputStream xmlDoc)  sybase.aseutils.SybXmlStream

Appendix D: The Java-Based XQL Processor

query(String query, SybXmlStream xmlDoc)

Description

Queries the XML document using a parsed XML document as the second argument.

Syntax

query(String query, SybXmlStream )

Where:

Examples

Example 1

This example queries the bookstore for authors listed in bookstore.Xml.

SybXmlStream xmlStream = Xql.parse("<xml>..</xml>");
String result = Xql.query("/bookstore/book/author",xmlStream);




Copyright © 2005. Sybase Inc. All rights reserved. sybase.aseutils.SybXmlStream

View this book as PDF