class XMLQuery {

	public XMLQuery find(String query) {
		try {
			XPath xpath = getXPath();
			XPathExpression expr = xpath.compile(query);
			XMLQuery ret = new XMLQuery();
			for (Node node : this.nodes) {
				NodeList result = (NodeList) expr.evaluate(node, XPathConstants.NODESET);
				convertNodeList(result, ret.nodes);
			}
			return ret;
		} catch (XPathExpressionException e) {
			throw new RuntimeException(e);
		}
	}

	public  XMLQuery();
	public  XMLQuery(List<Node> nodes);
	public  XMLQuery(String xml);

}