You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by ga...@apache.org on 2001/07/15 10:15:21 UTC
cvs commit: xml-xalan/java/samples/ApplyXPath ApplyXPath.java
garyp 01/07/15 01:15:21
Modified: java/samples/ApplyXPath ApplyXPath.java
Log:
Correct bug 2589 <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2589> to cause ApplyXPath to build namespace-aware DOM documents.
Revision Changes Path
1.16 +1 -0 xml-xalan/java/samples/ApplyXPath/ApplyXPath.java
Index: ApplyXPath.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/samples/ApplyXPath/ApplyXPath.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ApplyXPath.java 2000/12/15 20:01:38 1.15
+++ ApplyXPath.java 2001/07/15 08:15:21 1.16
@@ -116,6 +116,7 @@
// Set up a DOM tree to query.
InputSource in = new InputSource(new FileInputStream(filename));
DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
+ dfactory.setNamespaceAware(true);
Document doc = dfactory.newDocumentBuilder().parse(in);
// Set up an identity transformer to use as serializer.
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org