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

The following example

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

Returns SybXmlStream.

Usage