parse(String xmlDoc)  query(String query, String xmlDoc)

Appendix D: The Java-Based XQL Processor

parse(InputStream xml_document, boolean validate)

Description

Takes an InputStream and a boolean flag as arguments.The flag indicates that the parser should validate the document according to a specified DTD. Returns SybXmlStream. You can use this to query a document using XQL.

Syntax

parse(InputStream  xml_document, boolean validate)

Where:

Examples

Example 1

This example returns SybXmlStream

SybXmlStream is = Xql.parse(new FileInputStream("file.xml"), true").

Usage





Copyright © 2005. Sybase Inc. All rights reserved. query(String query, String xmlDoc)

View this book as PDF