You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by René Jensen <lu...@tbkol.dk> on 2001/04/20 14:56:48 UTC

OT: Xalan-question

First of all sorry about the (kind of) off topic question, but I couldn't find 
a Xalan mailinglist.

I'm trying to apply an Xpath to a document that I got from parsing an xml-file 
using xerces 1.3.1 in the following way:

parser = new DOMParser();
parser.setFeature( "http://xml.org/sax/features/validation", fsetValidation );
parser.setFeature( "http://xml.org/sax/features/namespaces", fsetNameSpaces );
parser.setFeature( "http://apache.org/xml/features/validation/schema", 
fsetSchemaSupport );
parser.setErrorHandler (paeh);

Document theDoc = parser.parse("SomeXMLFile.xml");

Now if I use theDoc as the contextNode for the XPathAPI.selectNodeList method 
it returns an empty NodeList.

if I use the same xml-file, and XPathstring with the ApplyXPath sample I get 
the result I want...

I could really need some help here plz..

       _\|/_
       (@ @)
---oOOo-(_)-oOOo---
    René Jensen
 lundeman@tbkol.dk

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org