Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 75361 invoked from network); 21 Feb 2000 19:37:09 -0000 Received: from phoenix.webslingerz.com (balld@206.66.49.24) by locus.apache.org with SMTP; 21 Feb 2000 19:37:09 -0000 Received: from localhost (balld@localhost) by phoenix.webslingerZ.com (8.8.7/8.8.7) with ESMTP id OAA03273 for ; Mon, 21 Feb 2000 14:36:12 -0500 Date: Mon, 21 Feb 2000 14:36:12 -0500 (EST) From: Donald Ball To: general@xml.apache.org Subject: Re: Xalan/Xerces question. In-Reply-To: <011f01bf7c96$f4a73280$2920a8c0@mongoosetech.clk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I can't speak to your exact error below, except that you might want to try using an absolute XPath ("/test/foo") rather than a relative ("test/foo"). One of the ozone guys forwarded me this code snippet: protected static final NodeList getNodesByXPath(Node node, String path) throws Exception { XPathSupportDefault xpath_support = new XPathSupportDefault(); XPath xpath = new XPath(xpath_support,null); XPathProcessorImpl parser = new XPathProcessorImpl(xpath_support); xpath.installFunction("document", new org.apache.xalan.xslt.FuncDocument()); parser.initXPath(xpath,path,null); XObject xobject = xpath.execute(xpath_support,node,null); return xobject.nodeset(); } and it works like a champ for me. - donald