axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/utils XMLUtils.java
Date Wed, 10 Oct 2001 15:33:39 GMT
bloritsch    01/10/10 08:33:39

  Modified:    java/src/org/apache/axis/utils XMLUtils.java
  Log:
  Make it easier to implement XInclude processing before we handle the document.
  
  Revision  Changes    Path
  1.20      +8 -19     xml-axis/java/src/org/apache/axis/utils/XMLUtils.java
  
  Index: XMLUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/XMLUtils.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- XMLUtils.java	2001/10/03 15:53:47	1.19
  +++ XMLUtils.java	2001/10/10 15:33:39	1.20
  @@ -194,33 +194,22 @@
       }
   
       public static Document newDocument(InputSource inp) {
  -        try {
  -            return( dbf.newDocumentBuilder().parse( inp ) );
  +        try {
  +            Document doc = dbf.newDocumentBuilder().parse( inp );
  +            return( doc );
           }
           catch( Exception e ) {
               e.printStackTrace();
  -            return( null );
           }
  +        return( null );
       }
   
  -    public static Document newDocument(InputStream inp) {
  -        try {
  -            return( dbf.newDocumentBuilder().parse( inp ) );
  -        }
  -        catch( Exception e ) {
  -            e.printStackTrace();
  -            return( null );
  -        }
  +    public static Document newDocument(InputStream inp) {
  +        return XMLUtils.newDocument(new InputSource(inp));
       }
   
  -    public static Document newDocument(String uri) {
  -        try {
  -            return( dbf.newDocumentBuilder().parse( uri ) );
  -        }
  -        catch( Exception e ) {
  -            e.printStackTrace();
  -            return( null );
  -        }
  +    public static Document newDocument(String uri) {
  +        return XMLUtils.newDocument(new InputSource(uri));
       }
   
       private static String privateElementToString(Element element,
  
  
  

Mime
View raw message