query(String query, JXml jxml)

Description

Queries an XML document stored in a JXML format.

Syntax

query(String query, JXml jxml)

Where:

Examples

Example 1

This example queries for authors in bookstore.Xql

JXml xDoc = new JXml("<xml>...</xml>");;
String result = Xql.query("/bookstore/book/author", xDoc);

Usage

Allows you to execute a query on an JXML document using XQL.