sboag       00/10/04 19:55:54

  Modified:    java/samples/ApplyXPath ApplyXPath.java
  Log:
  Call selectNodeIterator instead of selectNodeList function.
  
  Revision  Changes    Path
  1.4       +2 -2      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ApplyXPath.java   2000/10/03 19:40:15     1.3
  +++ ApplyXPath.java   2000/10/05 02:55:54     1.4
  @@ -144,11 +144,11 @@
         try
         {
           // Use the simple XPath API to select a nodeIterator.
  -        nl = XPathAPI.selectNodeList(doc, xpath);
  +        nl = XPathAPI.selectNodeIterator(doc, xpath);
          }
         catch (Exception e2)
         {
  -        System.err.println("selectNodeList threw: " + e2.toString() + " 
perhaps your xpath didn't select any nodes");
  +        System.err.println("selectNodeIterator threw: " + e2.toString() + " 
perhaps your xpath didn't select any nodes");
           e2.printStackTrace();
           return;
         }               
  
  
  

Reply via email to