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.
parse(InputStream xml_document, boolean validate)
Where:
InputStream is an input stream.
xml_document is the XML document where the input stream originates.
The following example
SybXmlStream is = Xql.parse(new FileInputStream("file.xml"), true);
Returns SybXmlStream.
A true value in the flag indicates that the parser should validate the document according to the specified DTD.
A false value in the flag indicates that the parser does not validate the document according to the specified DTD.
The parser does not:
Parse any external DTDs
Perform any external links (for example, XLinks)
Navigate through IDREFs