axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/message MessageElement.java
Date Thu, 10 Jan 2002 14:24:15 GMT
dims        02/01/10 06:24:15

  Modified:    java/src/org/apache/axis/message MessageElement.java
  Log:
  - Added Method getAsDocument
  
  Revision  Changes    Path
  1.70      +6 -2      xml-axis/java/src/org/apache/axis/message/MessageElement.java
  
  Index: MessageElement.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/MessageElement.java,v
  retrieving revision 1.69
  retrieving revision 1.70
  diff -u -r1.69 -r1.70
  --- MessageElement.java	9 Jan 2002 20:43:05 -0000	1.69
  +++ MessageElement.java	10 Jan 2002 14:24:15 -0000	1.70
  @@ -386,7 +386,7 @@
           return (MessageElement)obj;
       }
   
  -    public Element getAsDOM() throws Exception
  +    public Document getAsDocument() throws Exception
       {
           SerializationContext serializeContext = null;
           StringWriter writer = new StringWriter();
  @@ -405,8 +405,12 @@
           if (doc == null)
               throw new Exception(
                       JavaUtils.getMessage("noDoc00", writer.getBuffer().toString()));
  +        return doc;
  +    }
   
  -        return doc.getDocumentElement();
  +    public Element getAsDOM() throws Exception
  +    {
  +        return getAsDocument().getDocumentElement();
       }
   
       public void publishToHandler(ContentHandler handler) throws SAXException
  
  
  

Mime
View raw message