xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@hyperreal.org
Subject cvs commit: xml-0.0/src/java/stylebook/src/org/apache/stylebook/parsers XercesParser.java
Date Wed, 17 Nov 1999 23:12:41 GMT
pier        99/11/17 15:12:36

  Modified:    src/java/stylebook/src/org/apache/stylebook/parsers
                        XercesParser.java
  Log:
  Chenged feature still pointing to IBM.COM.
  
  Revision  Changes    Path
  1.3       +7 -7      xml-0.0/src/java/stylebook/src/org/apache/stylebook/parsers/XercesParser.java
  
  Index: XercesParser.java
  ===================================================================
  RCS file: /home/cvs/xml-0.0/src/java/stylebook/src/org/apache/stylebook/parsers/XercesParser.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XercesParser.java	1999/11/17 21:18:03	1.2
  +++ XercesParser.java	1999/11/17 23:12:30	1.3
  @@ -23,7 +23,7 @@
    * @author <a href="mailto:pier@apache.org">Pierpaolo Fumagalli</a>
    * @author Copyright 1999 &copy; <a href="http://www.apache.org">The Apache
    *         Software Foundation</a>. All rights reserved.
  - * @version CVS $Revision: 1.2 $ $Date: 1999/11/17 21:18:03 $
  + * @version CVS $Revision: 1.3 $ $Date: 1999/11/17 23:12:30 $
    */
   public class XercesParser extends AbstractComponent implements Parser {
       /**
  @@ -39,12 +39,12 @@
       throws IOException, CreationException {
           this.debug("Parsing \""+in.getSystemId()+"\"");
           try {
  -            DOMParser parser=new DOMParser();
  -            parser.setFeature("http://xml.org/sax/features/validation",true);
  -            parser.setFeature("http://ibm.com/xml/features/validation/dynamic",
  -                              true);
  -            parser.parse(in);
  -            Document document=parser.getDocument();
  +            DOMParser p=new DOMParser();
  +            p.setFeature("http://xml.org/sax/features/validation",true);
  +            p.setFeature("http://apache.org/xml/features/validation/dynamic",
  +                         true);
  +            p.parse(in);
  +            Document document=p.getDocument();
               if (document==null) {
                   throw new CreationException("Cannot retrieve parsed document");
               } else return(document);
  
  
  

Mime
View raw message