[ 
http://issues.apache.org/jira/browse/AXIS2-118?page=comments#action_12317595 ] 

Ruchith Udayanga Fernando commented on AXIS2-118:
-------------------------------------------------

This is what I planed to do to add XML version and chaset encoding to the 
OMDocument

 - Create an interface org.apache.axis2.om.OMDocument
   Methods:
        public OMElement getDocumentElement()
        public void setDocumentElement(OMElement rootElement)
        public String getXMLVersion()
        public void setXMLVersion(String version)
        public String getCharsetEncoding()
        public void setCharsetEncoding(String charsetEncoding)
        public void serialize(OMOutputImpl omOutput, boolean cache) throws 
XMLStreamException
        public void serialize(OMOutputImpl omOutput, boolean cache, boolean 
includeXMLDeclaration) throws XMLStreamException

 - Rename org.apache.axis2.om.impl.llom.OMDocument to 
org.apache.axis2.om.impl.llom.OMDocumentImpl

 - Rename get/setRootElement to get/setDocumentElement

 - Introduce createOMDocument() to OMFactory and provide the impl in 
OMLinkedListImplFactory

What do u guys think?

> OMDocument must have XML Version and Char encoding
> --------------------------------------------------
>
>          Key: AXIS2-118
>          URL: http://issues.apache.org/jira/browse/AXIS2-118
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement
>   Components: om
>     Reporter: Eran Chinthaka
>     Assignee: Ruchith Udayanga Fernando
>     Priority: Minor

>
> OMDocument must contain information regarding the XML Version and Character 
> encoding. And those should be present when serialized. 
> There should be a flag to set this on and off when serializing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to