You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2007/01/12 07:11:44 UTC

svn commit: r495494 [1/8] - in /webservices/axis2/trunk/c/axiom: include/ src/om/

Author: samisa
Date: Thu Jan 11 22:11:41 2007
New Revision: 495494

URL: http://svn.apache.org/viewvc?view=rev&rev=495494
Log:
Dropped ops completely, also fixed some formatting as well

Modified:
    webservices/axis2/trunk/c/axiom/include/axiom.h
    webservices/axis2/trunk/c/axiom/include/axiom_attribute.h
    webservices/axis2/trunk/c/axiom/include/axiom_child_element_iterator.h
    webservices/axis2/trunk/c/axiom/include/axiom_children_iterator.h
    webservices/axis2/trunk/c/axiom/include/axiom_children_qname_iterator.h
    webservices/axis2/trunk/c/axiom/include/axiom_children_with_specific_attribute_iterator.h
    webservices/axis2/trunk/c/axiom/include/axiom_comment.h
    webservices/axis2/trunk/c/axiom/include/axiom_data_handler.h
    webservices/axis2/trunk/c/axiom/include/axiom_data_source.h
    webservices/axis2/trunk/c/axiom/include/axiom_doctype.h
    webservices/axis2/trunk/c/axiom/include/axiom_document.h
    webservices/axis2/trunk/c/axiom/include/axiom_element.h
    webservices/axis2/trunk/c/axiom/include/axiom_mime_const.h
    webservices/axis2/trunk/c/axiom/include/axiom_mime_parser.h
    webservices/axis2/trunk/c/axiom/include/axiom_namespace.h
    webservices/axis2/trunk/c/axiom/include/axiom_navigator.h
    webservices/axis2/trunk/c/axiom/include/axiom_node.h
    webservices/axis2/trunk/c/axiom/include/axiom_output.h
    webservices/axis2/trunk/c/axiom/include/axiom_processing_instruction.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_body.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_builder.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_const.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_envelope.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_fault.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_code.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_detail.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_node.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_reason.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_role.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_sub_code.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_text.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_fault_value.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_header.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_header_block.h
    webservices/axis2/trunk/c/axiom/include/axiom_soap_message.h
    webservices/axis2/trunk/c/axiom/include/axiom_stax_builder.h
    webservices/axis2/trunk/c/axiom/include/axiom_text.h
    webservices/axis2/trunk/c/axiom/include/axiom_util.h
    webservices/axis2/trunk/c/axiom/include/axiom_xml_reader.h
    webservices/axis2/trunk/c/axiom/include/axiom_xml_writer.h
    webservices/axis2/trunk/c/axiom/src/om/om_attribute.c
    webservices/axis2/trunk/c/axiom/src/om/om_children_iterator.c
    webservices/axis2/trunk/c/axiom/src/om/om_children_qname_iterator.c
    webservices/axis2/trunk/c/axiom/src/om/om_comment.c
    webservices/axis2/trunk/c/axiom/src/om/om_data_source.c
    webservices/axis2/trunk/c/axiom/src/om/om_doctype.c
    webservices/axis2/trunk/c/axiom/src/om/om_document.c
    webservices/axis2/trunk/c/axiom/src/om/om_element.c
    webservices/axis2/trunk/c/axiom/src/om/om_namespace.c
    webservices/axis2/trunk/c/axiom/src/om/om_navigator.c
    webservices/axis2/trunk/c/axiom/src/om/om_node.c
    webservices/axis2/trunk/c/axiom/src/om/om_output.c
    webservices/axis2/trunk/c/axiom/src/om/om_processing_instruction.c
    webservices/axis2/trunk/c/axiom/src/om/om_stax_builder.c
    webservices/axis2/trunk/c/axiom/src/om/om_text.c

Modified: webservices/axis2/trunk/c/axiom/include/axiom.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom.h?view=diff&rev=495494&r1=495493&r2=495494
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom.h Thu Jan 11 22:11:41 2007
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
+
 #ifndef AXIOM_H
 #define AXIOM_H
 #include <axiom_node.h>
@@ -46,7 +46,7 @@
 {
 #endif
 
-/** @} */
+    /** @} */
 
 #ifdef __cplusplus
 }

Modified: webservices/axis2/trunk/c/axiom/include/axiom_attribute.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_attribute.h?view=diff&rev=495494&r1=495493&r2=495494
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_attribute.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_attribute.h Thu Jan 11 22:11:41 2007
@@ -32,158 +32,137 @@
 {
 #endif
 
-    struct axiom_attribute;
-    struct axiom_attribute_ops;
+    /**
+     * @defgroup axiom_attribute attribute
+     * @ingroup axiom_om
+     * @{
+     */
+
+
+    typedef struct axiom_attribute axiom_attribute_t;
 
-/**
- * @defgroup axiom_attribute attribute
- * @ingroup axiom_om
- * @{
- */
-
-/**
- *   \brief attribute ops struct
- *   ops Encapsulator struct for axiom_attribute
- */
-    typedef struct axiom_attribute_ops
-    {
-        int dummy; /* if this is missing, windows compiler goes crazy */
-    } axiom_attribute_ops_t;
-
-  /**
-    * \brief attribute struct
-    * Handles the XML attribute in AXIOM
-    */
-    typedef struct axiom_attribute
-    {
-        /** ops of attribute struct */
-	  const axiom_attribute_ops_t *ops;
-	  int ref;
-       
-    } axiom_attribute_t;
-
-  /**
-    * creates an om_attribute struct 
-    * @param env Environment. MUST NOT be NULL
-    * @param localname localname of the attribute, should not be a null value.
-    * @param value normalized attribute value. cannot be NULL
-    * @param ns namespace, if any, of the attribute. Optional, can be NULL
-    * @return a pointer to newly created attribute struct, returns NULL on error with 
-    *           error code set in environment's error. 
-    */
+    /**
+      * creates an om_attribute struct 
+      * @param env Environment. MUST NOT be NULL
+      * @param localname localname of the attribute, should not be a null value.
+      * @param value normalized attribute value. cannot be NULL
+      * @param ns namespace, if any, of the attribute. Optional, can be NULL
+      * @return a pointer to newly created attribute struct, returns NULL on error with 
+      *           error code set in environment's error. 
+      */
     AXIS2_EXTERN axiom_attribute_t * AXIS2_CALL
-    axiom_attribute_create (const axis2_env_t *env,
-                               const axis2_char_t *localname,
-                               const axis2_char_t *value,
-                               axiom_namespace_t *ns);
+    axiom_attribute_create(const axis2_env_t *env,
+            const axis2_char_t *localname,
+            const axis2_char_t *value,
+            axiom_namespace_t *ns);
     /**
      * Free om attribute passed as void pointer. This will be
      * cast into appropriate type and then pass the cast object
      * into the om_attribute structure's free method
      */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
-    axiom_attribute_free_void_arg (
-            void *om_attribute,
-            const axis2_env_t *env);
-     
-  /**
-    * Free an axiom_attribute struct
-    * @param  om_attribute pointer to attribute struct to be freed
-    * @param  env Environment. MUST NOT be NULL
-    * @return satus of the op. AXIS2_SUCCESS on success 
-    *         else AXIS2_FAILURE
-    */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axiom_attribute_free_void_arg(
+        void *om_attribute,
+        const axis2_env_t *env);
+
+    /**
+      * Free an axiom_attribute struct
+      * @param  om_attribute pointer to attribute struct to be freed
+      * @param  env Environment. MUST NOT be NULL
+      * @return satus of the op. AXIS2_SUCCESS on success 
+      *         else AXIS2_FAILURE
+      */
 
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_attribute_free(struct axiom_attribute *om_attribute,
-          const axis2_env_t *env);
+            const axis2_env_t *env);
 
-  /** 
-    * Creates and returns a qname struct for this attribute
-    * @param om_attribute pointer to attribute struct 
-    *        for which the qname is to be returned
-    * @param env Environment. MUST NOT be NULL
-    * @return returns qname for given attribute.NULL on error 
-    */
+    /**
+      * Creates and returns a qname struct for this attribute
+      * @param om_attribute pointer to attribute struct 
+      *        for which the qname is to be returned
+      * @param env Environment. MUST NOT be NULL
+      * @return returns qname for given attribute.NULL on error 
+      */
 
-    AXIS2_EXTERN axis2_qname_t * AXIS2_CALL 
+    AXIS2_EXTERN axis2_qname_t * AXIS2_CALL
     axiom_attribute_get_qname(struct axiom_attribute *om_attribute,
-               const axis2_env_t *env);
+            const axis2_env_t *env);
 
-  /**
-    * Serialize op
-    * @param om_attribute pointer to attribute struct to be serialized
-    * @param env Environment. MUST NOT be NULL,
-    * @param om_output AXIOM output handler to be used in serializing
-    * @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE.
-    */
+    /**
+      * Serialize op
+      * @param om_attribute pointer to attribute struct to be serialized
+      * @param env Environment. MUST NOT be NULL,
+      * @param om_output AXIOM output handler to be used in serializing
+      * @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE.
+      */
 
-    AXIS2_EXTERN int AXIS2_CALL 
+    AXIS2_EXTERN int AXIS2_CALL
     axiom_attribute_serialize(struct axiom_attribute *om_attribute,
-               const axis2_env_t *env,
-               axiom_output_t *om_output);
-   
-   /**  returns the localname of this attribute
-    *@param om_attribute pointer to attribute struct 
-    *@param env environment. MUST NOT not be NULL.
-    *@return localname returns NULL on error.
-    */
-    AXIS2_EXTERN axis2_char_t* AXIS2_CALL 
+            const axis2_env_t *env,
+            axiom_output_t *om_output);
+
+    /**  returns the localname of this attribute
+     *@param om_attribute pointer to attribute struct 
+     *@param env environment. MUST NOT not be NULL.
+     *@return localname returns NULL on error.
+     */
+    AXIS2_EXTERN axis2_char_t* AXIS2_CALL
     axiom_attribute_get_localname(struct axiom_attribute *om_attribute,
-                   const axis2_env_t *env);
-   /**
-    * returns value of this attribute 
-    *@param om_attribute pointer to om_attribute struct 
-    *@param env environment N not be null
-    *@return value , null on error
-    */
-    AXIS2_EXTERN axis2_char_t* AXIS2_CALL 
+            const axis2_env_t *env);
+    /**
+     * returns value of this attribute 
+     *@param om_attribute pointer to om_attribute struct 
+     *@param env environment N not be null
+     *@return value , null on error
+     */
+    AXIS2_EXTERN axis2_char_t* AXIS2_CALL
     axiom_attribute_get_value(struct axiom_attribute *om_attribute,
-               const axis2_env_t *env);
-   /**
-    * returns namespace of this attribute 
-    *@param om_attribute
-    *@param env environment MUST NOT be NULL
-    *@return a pointer to om_namespace struct , returns NULL on error.
-    */
-    AXIS2_EXTERN axiom_namespace_t* AXIS2_CALL 
+            const axis2_env_t *env);
+    /**
+     * returns namespace of this attribute 
+     *@param om_attribute
+     *@param env environment MUST NOT be NULL
+     *@return a pointer to om_namespace struct , returns NULL on error.
+     */
+    AXIS2_EXTERN axiom_namespace_t* AXIS2_CALL
     axiom_attribute_get_namespace(struct axiom_attribute *om_attribute,
-                   const axis2_env_t *env);
-   
-   /** sets the localname of the attribute
-    *@param om_attribute pointer to om attribute struct. 
-    *@param env environment, MUST NOT be null.
-    *@param localname localname that should be set for this attribute 
-    *@return status code AXIS2_SUCCESS on success and AXIS2_FAILURE on error.
-    */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+            const axis2_env_t *env);
+
+    /** sets the localname of the attribute
+     *@param om_attribute pointer to om attribute struct. 
+     *@param env environment, MUST NOT be null.
+     *@param localname localname that should be set for this attribute 
+     *@return status code AXIS2_SUCCESS on success and AXIS2_FAILURE on error.
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_attribute_set_localname(struct axiom_attribute *om_attribute,
-                   const axis2_env_t *env,
-                   const axis2_char_t *localname);
-   
-   /** set the attribute value
-    *@param om_attribute a pointer to om_attribute struct.
-    *@param env environment, MUST NOT be NULL.
-    *@param value value that should be set for this attribute 
-    *@return status code, AXIS2_SUCCESS on success and AXIS2_FAILURE on error.
-    */
-    
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+            const axis2_env_t *env,
+            const axis2_char_t *localname);
+
+    /** set the attribute value
+     *@param om_attribute a pointer to om_attribute struct.
+     *@param env environment, MUST NOT be NULL.
+     *@param value value that should be set for this attribute 
+     *@return status code, AXIS2_SUCCESS on success and AXIS2_FAILURE on error.
+     */
+
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_attribute_set_value(struct axiom_attribute *om_attribute,
-               const axis2_env_t *env,
-               const axis2_char_t *value);
-   
-   /** set namespace of the attribute
-    *@param om_attribute a pointer to om_attribute struct  
-    *@param env environment, MUST NOT be NULL.
-    *@param om_namespace a pointer to om_namespace struct that should be set 
-    *                    for this attribute 
-    *@return status code, AXIS2_SUCCESS on success and AXIS2_FAILURE on error.
-    */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+            const axis2_env_t *env,
+            const axis2_char_t *value);
+
+    /** set namespace of the attribute
+     *@param om_attribute a pointer to om_attribute struct  
+     *@param env environment, MUST NOT be NULL.
+     *@param om_namespace a pointer to om_namespace struct that should be set 
+     *                    for this attribute 
+     *@return status code, AXIS2_SUCCESS on success and AXIS2_FAILURE on error.
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_attribute_set_namespace(struct axiom_attribute *om_attribute,
-                   const axis2_env_t *env,
-                   axiom_namespace_t *om_namespace);
+            const axis2_env_t *env,
+            axiom_namespace_t *om_namespace);
 
     /**
      * clones an om attribute
@@ -191,49 +170,48 @@
      * @param env environment
      * @returns pointer to cloned om attribute struct on success
      * NULL otherwise
-     */            
-    AXIS2_EXTERN struct axiom_attribute* AXIS2_CALL 
-    axiom_attribute_clone(struct axiom_attribute *om_attribute,
-           const axis2_env_t *env);
+     */
+    AXIS2_EXTERN struct axiom_attribute* AXIS2_CALL
+                axiom_attribute_clone(struct axiom_attribute *om_attribute,
+                        const axis2_env_t *env);
 
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axiom_attribute_increment_ref(struct axiom_attribute *om_attribute,
+            const axis2_env_t *env);
 
-     
-/******************** Macros **************************************************/
-    
-    
-/** free given attribute */
+    /** free given attribute */
 #define AXIOM_ATTRIBUTE_FREE(om_attribute, env) \
         axiom_attribute_free(om_attribute, env)
-        
-/** get qname of given attribute */
+
+    /** get qname of given attribute */
 #define AXIOM_ATTRIBUTE_GET_QNAME(om_attribute,env) \
         axiom_attribute_get_qname(om_attribute, env)
-        
-/** serialize given attribute */
+
+    /** serialize given attribute */
 #define AXIOM_ATTRIBUTE_SERIALIZE(om_attribute, env, om_ouput) \
         axiom_attribute_serialize(om_attribute, env, om_output)
-/** get namespace of an the attribute */        
+    /** get namespace of an the attribute */
 #define AXIOM_ATTRIBUTE_GET_NAMESPACE(om_attribute, env) \
         axiom_attribute_get_namespace(om_attribute, env)
-/** get attribute localname */
+    /** get attribute localname */
 #define AXIOM_ATTRIBUTE_GET_LOCALNAME(om_attribute, env) \
         axiom_attribute_get_localname(om_attribute, env)
-/** grt value of attribute */        
+    /** grt value of attribute */
 #define AXIOM_ATTRIBUTE_GET_VALUE(om_attribute, env) \
         axiom_attribute_get_value(om_attribute, env)
-/** set namespace for this attribute */               
+    /** set namespace for this attribute */
 #define AXIOM_ATTRIBUTE_SET_NAMESPACE(om_attribute, env,ns) \
         axiom_attribute_set_namespace(om_attribute, env,ns)
-/** set localname for this attribute */        
+    /** set localname for this attribute */
 #define AXIOM_ATTRIBUTE_SET_LOCALNAME(om_attribute, env,localname) \
         axiom_attribute_set_localname(om_attribute, env,localname)
-/** set attribue value */
+    /** set attribue value */
 #define AXIOM_ATTRIBUTE_SET_VALUE(om_attribute, env,value) \
         axiom_attribute_set_value(om_attribute, env,value)
 
 #define AXIOM_ATTRIBUTE_CLONE(om_attribute, env) \
         axiom_attribute_clone(om_attribute, env)
-/** @} */
+    /** @} */
 
 #ifdef __cplusplus
 }

Modified: webservices/axis2/trunk/c/axiom/include/axiom_child_element_iterator.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_child_element_iterator.h?view=diff&rev=495494&r1=495493&r2=495494
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_child_element_iterator.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_child_element_iterator.h Thu Jan 11 22:11:41 2007
@@ -14,103 +14,103 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
- #ifndef AXIOM_CHILD_ELEMENT_ITERATOR_H
- #define AXIOM_CHILD_ELEMENT_ITERATOR_H
- 
- /**
- *@file axiom_child_element_iterator.h   
- *@brief this is the iterator for om elemnts 
- */
-  
+
+#ifndef AXIOM_CHILD_ELEMENT_ITERATOR_H
+#define AXIOM_CHILD_ELEMENT_ITERATOR_H
+
+/**
+*@file axiom_child_element_iterator.h 
+*@brief this is the iterator for om elemnts 
+*/
+
 #include <axiom_node.h>
 #include <axiom_text.h>
-  
+
 
 #ifdef __cplusplus
 extern "C"
 {
 #endif
 
-typedef struct axiom_child_element_iterator_ops axiom_child_element_iterator_ops_t;
-typedef struct axiom_child_element_iterator axiom_child_element_iterator_t;
+    typedef struct axiom_child_element_iterator_ops axiom_child_element_iterator_ops_t;
+    typedef struct axiom_child_element_iterator axiom_child_element_iterator_t;
 
-/**
- * @defgroup axiom_child_element_iterator child element iterator 
- * @ingroup axiom_om
- * @{
- */
- 
-   /**
-    * \brief axiom_child_element_iterator ops
-    * Encapsulator struct for ops of axiom_iterator
-    */
-     struct axiom_child_element_iterator_ops
+    /**
+     * @defgroup axiom_child_element_iterator child element iterator
+     * @ingroup axiom_om
+     * @{
+     */
+
+    /**
+     * \brief axiom_child_element_iterator ops
+     * Encapsulator struct for ops of axiom_iterator
+     */
+    struct axiom_child_element_iterator_ops
     {
-        axis2_status_t (AXIS2_CALL *free_fn)
-                            (void *iterator,
-                             const axis2_env_t *env);
-                             
+        axis2_status_t(AXIS2_CALL *free_fn)
+        (void *iterator,
+                const axis2_env_t *env);
+
         /**
         * Removes from the underlying collection the last element returned by the
         * iterator (optional op).  This method can be called only once per
         * call to <tt>next</tt>.  The behavior of an iterator is unspecified if
         * the underlying collection is modified while the iteration is in
         * progress in any way other than by calling this method.
-        */                                              
-        axis2_status_t (AXIS2_CALL *
-      remove)(axiom_child_element_iterator_t *iterator,
-                const axis2_env_t *env);
-                             
-       /**
-        * returns true if the iteration has more elements 
-        * in otherwords it returns true if the next() would return an element
-        * rather than null with an error code set to environments error
-        */                             
-        axis2_bool_t (AXIS2_CALL *
-      has_next)(axiom_child_element_iterator_t *iterator,
-                  const axis2_env_t *env);
-    
-       /**
-        * Returns the next element in the iteration. Returns null if there 
-      * is no more elements 
         */
-        axiom_node_t* (AXIS2_CALL *
-      next)(axiom_child_element_iterator_t *iterator,
-              const axis2_env_t *env);
+        axis2_status_t(AXIS2_CALL *
+                remove)(axiom_child_element_iterator_t *iterator,
+                            const axis2_env_t *env);
+
+        /**
+         * returns true if the iteration has more elements 
+         * in otherwords it returns true if the next() would return an element
+         * rather than null with an error code set to environments error
+         */
+        axis2_bool_t(AXIS2_CALL *
+                has_next)(axiom_child_element_iterator_t *iterator,
+                        const axis2_env_t *env);
+
+        /**
+         * Returns the next element in the iteration. Returns null if there 
+        * is no more elements 
+         */
+        axiom_node_t*(AXIS2_CALL *
+                next)(axiom_child_element_iterator_t *iterator,
+                        const axis2_env_t *env);
     };
-    
-    
-struct axiom_child_element_iterator
-{
-    axiom_child_element_iterator_ops_t *ops;
-};    
 
-/** 
- * @param current child
- * @param env environment 
- * return axiom_child_element_iterator_t 
- */
-
-AXIS2_EXTERN  axiom_child_element_iterator_t * AXIS2_CALL
-axiom_child_element_iterator_create(const axis2_env_t *env, 
-                                       axiom_node_t *current_child);
-                                  
-/************ Macros *********************************************/
+
+    struct axiom_child_element_iterator
+    {
+        axiom_child_element_iterator_ops_t *ops;
+    };
+
+    /**
+     * @param current child
+     * @param env environment
+     * return axiom_child_element_iterator_t
+     */
+
+    AXIS2_EXTERN  axiom_child_element_iterator_t * AXIS2_CALL
+    axiom_child_element_iterator_create(const axis2_env_t *env,
+            axiom_node_t *current_child);
+
+    /************ Macros *********************************************/
 
 #define AXIOM_CHILD_ELEMENT_ITERATOR_FREE(iterator, env) \
         (((axiom_child_element_iterator_t *) iterator)->ops->free_fn(iterator, env))
 
 #define AXIOM_CHILD_ELEMENT_ITERATOR_REMOVE(iterator, env) \
         ((iterator)->ops->remove(iterator, env))
-        
+
 #define AXIOM_CHILD_ELEMENT_ITERATOR_HAS_NEXT(iterator, env) \
         ((iterator)->ops->has_next(iterator, env))
-        
+
 #define AXIOM_CHILD_ELEMENT_ITERATOR_NEXT(iterator, env) \
-        ((iterator)->ops->next(iterator, env))        
-        
-/** @} */
+        ((iterator)->ops->next(iterator, env))
+
+    /** @} */
 
 #ifdef __cplusplus
 }

Modified: webservices/axis2/trunk/c/axiom/include/axiom_children_iterator.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_children_iterator.h?view=diff&rev=495494&r1=495493&r2=495494
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_children_iterator.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_children_iterator.h Thu Jan 11 22:11:41 2007
@@ -14,93 +14,77 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
- #ifndef AXIOM_CHILDREN_ITERATOR_H
- #define AXIOM_CHILDREN_ITERATOR_H
- 
- /**
- *@file axiom_children_iterator.h   
- *@brief this is the iterator for om nodes 
- */
-  
+
+#ifndef AXIOM_CHILDREN_ITERATOR_H
+#define AXIOM_CHILDREN_ITERATOR_H
+
+/**
+*@file axiom_children_iterator.h 
+*@brief this is the iterator for om nodes 
+*/
+
 #include <axiom_node.h>
 #include <axiom_text.h>
-  
+
 
 #ifdef __cplusplus
 extern "C"
 {
 #endif
 
-typedef struct axiom_children_iterator_ops axiom_children_iterator_ops_t;
-typedef struct axiom_children_iterator axiom_children_iterator_t;
+    typedef struct axiom_children_iterator axiom_children_iterator_t;
 
-/**
- * @defgroup axiom_children_iterator children iterator
- * @ingroup axiom_om
- * @{
- */
- 
-   /**
-    * \brief axiom_children_iterator ops
-    * Encapsulator struct for ops of axiom_iterator
-    */
-     struct axiom_children_iterator_ops
-    {
-        int dummy; /* if this is missing, windows compiler goes crazy */
-    };
-    
-    
-    struct axiom_children_iterator
-    {
-        const axiom_children_iterator_ops_t *ops;
-    };    
+    /**
+     * @defgroup axiom_children_iterator children iterator
+     * @ingroup axiom_om
+     * @{
+     */
 
-    /** 
+    /**
      * @param current child
      * @param env environment 
      * return axiom_children_iterator_t 
      */
 
     AXIS2_EXTERN  axiom_children_iterator_t * AXIS2_CALL
-    axiom_children_iterator_create(const axis2_env_t *env, 
-                                  axiom_node_t *current_child);
+    axiom_children_iterator_create(const axis2_env_t *env,
+            axiom_node_t *current_child);
 
-   /**
-   * Free the om_children_iterator struct
-   */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+    /**
+    * Free the om_children_iterator struct
+    */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_children_iterator_free(axiom_children_iterator_t *iterator,
-             const axis2_env_t *env);
-                         
+            const axis2_env_t *env);
+
     /**
     * Removes from the underlying collection the last element returned by the
     * iterator (optional op).  This method can be called only once per
     * call to <tt>next</tt>.  The behavior of an iterator is unspecified if
     * the underlying collection is modified while the iteration is in
     * progress in any way other than by calling this method.
-    */                                              
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+    */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_children_iterator_remove(axiom_children_iterator_t *iterator,
             const axis2_env_t *env);
-                         
-   /**
-    * @returns true if the iteration has more elements. In other
-    * words, returns true if next() would return an om_node_t struct 
-    * rather than null with error code set in environment
-    */                             
-    
-    AXIS2_EXTERN axis2_bool_t AXIS2_CALL 
+
+    /**
+     * @returns true if the iteration has more elements. In other
+     * words, returns true if next() would return an om_node_t struct 
+     * rather than null with error code set in environment
+     */
+
+    AXIS2_EXTERN axis2_bool_t AXIS2_CALL
     axiom_children_iterator_has_next(axiom_children_iterator_t *iterator,
-              const axis2_env_t *env);
+            const axis2_env_t *env);
 
-   /**
-    * Returns the next element in the iteration. Returns null if there are
-  * no more elements in the iteration
-    */
-    AXIS2_EXTERN axiom_node_t* AXIS2_CALL 
+    /**
+     * Returns the next element in the iteration. Returns null if there are
+    * no more elements in the iteration
+     */
+    AXIS2_EXTERN axiom_node_t* AXIS2_CALL
     axiom_children_iterator_next(axiom_children_iterator_t *iterator,
-          const axis2_env_t *env);
+            const axis2_env_t *env);
 
     /**
      * Resets the Iterator. This moves the cursor back to the initial.
@@ -108,28 +92,28 @@
      * @param env Environment. MUST NOT be NULL.
      * @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE.
      */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_children_iterator_reset(axiom_children_iterator_t *iterator,
-                      const axis2_env_t *env);
-                             
-                                  
-/************ Macros *********************************************/
+            const axis2_env_t *env);
+
+
+    /************ Macros *********************************************/
 
 #define AXIOM_CHILDREN_ITERATOR_FREE(iterator, env) \
         axiom_children_iterator_free(iterator, env)
 
 #define AXIOM_CHILDREN_ITERATOR_REMOVE(iterator, env) \
         axiom_children_iterator_remove(iterator, env)
-        
+
 #define AXIOM_CHILDREN_ITERATOR_HAS_NEXT(iterator, env) \
         axiom_children_iterator_has_next(iterator, env)
-        
+
 #define AXIOM_CHILDREN_ITERATOR_NEXT(iterator, env) \
         axiom_children_iterator_next(iterator, env)
-              
+
 #define AXIOM_CHILDREN_ITERATOR_RESET(iterator, env) \
         axiom_children_iterator_reset(iterator, env)
- /** @} */
+    /** @} */
 
 #ifdef __cplusplus
 }

Modified: webservices/axis2/trunk/c/axiom/include/axiom_children_qname_iterator.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_children_qname_iterator.h?view=diff&rev=495494&r1=495493&r2=495494
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_children_qname_iterator.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_children_qname_iterator.h Thu Jan 11 22:11:41 2007
@@ -14,89 +14,73 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
- #ifndef AXIOM_CHILDREN_QNAME_ITERATOR_H
- #define AXIOM_CHILDREN_QNAME_ITERATOR_H
- 
+
+#ifndef AXIOM_CHILDREN_QNAME_ITERATOR_H
+#define AXIOM_CHILDREN_QNAME_ITERATOR_H
+
 /**
- *@file axiom_children_qname_iterator.h   
+ *@file axiom_children_qname_iterator.h
  *@brief this is the iterator for om nodes using qname
  */
- 
- #include <axiom_node.h>
- #include <axiom_namespace.h>
- #include <axis2_qname.h>
- 
- 
- #ifdef __cplusplus
+
+#include <axiom_node.h>
+#include <axiom_namespace.h>
+#include <axis2_qname.h>
+
+
+#ifdef __cplusplus
 extern "C"
 {
 #endif
 
-typedef struct axiom_children_qname_iterator_ops axiom_children_qname_iterator_ops_t;
-typedef struct axiom_children_qname_iterator axiom_children_qname_iterator_t;
-
-/**
- * @defgroup axiom_children_qname_iterator children qname iterator
- * @ingroup axiom_om
- * @{
- */
+    typedef struct axiom_children_qname_iterator axiom_children_qname_iterator_t;
 
-   /**
-    * \brief axiom_children_iterator operations
-    * Encapsulator struct for operations of axiom_iterator
-    */
-
-     struct axiom_children_qname_iterator_ops
-    {
-        int dummy; /* if this is missing, windows compiler goes crazy */
-    };
-
-    struct axiom_children_qname_iterator
-    {
-        const axiom_children_qname_iterator_ops_t *ops;
-    };
+    /**
+     * @defgroup axiom_children_qname_iterator children qname iterator
+     * @ingroup axiom_om
+     * @{
+     */
 
     AXIS2_EXTERN axiom_children_qname_iterator_t * AXIS2_CALL
     axiom_children_qname_iterator_create(const axis2_env_t *env,
-                                            axiom_node_t *current_child,
-                                            axis2_qname_t *given_qname);
+            axiom_node_t *current_child,
+            axis2_qname_t *given_qname);
 
-   /**
-    * free om_children_qname_iterator struct 
-    */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+    /**
+     * free om_children_qname_iterator struct 
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_children_qname_iterator_free(axiom_children_qname_iterator_t *iterator,
-             const axis2_env_t *env);
-                         
-   /**
-    * Removes from the underlying collection the last element returned by the
-    * iterator (optional operation).  This method can be called only once per
-    * call to <tt>next</tt>.  The behavior of an iterator is unspecified if
-    * the underlying collection is modified while the iteration is in
-    * progress in any way other than by calling this method.
-    */                                              
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+            const axis2_env_t *env);
+
+    /**
+     * Removes from the underlying collection the last element returned by the
+     * iterator (optional operation).  This method can be called only once per
+     * call to <tt>next</tt>.  The behavior of an iterator is unspecified if
+     * the underlying collection is modified while the iteration is in
+     * progress in any way other than by calling this method.
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_children_qname_iterator_remove(axiom_children_qname_iterator_t *iterator,
             const axis2_env_t *env);
-                         
-   /**
-    * Returns <tt>true</tt> if the iteration has more elements. (In other
-    * words, returns <tt>true</tt> if <tt>next</tt> would return an 
-    * axiom_node_t struct rather than null with error code set in environment
-    */                             
-    
-    AXIS2_EXTERN axis2_bool_t AXIS2_CALL 
+
+    /**
+     * Returns <tt>true</tt> if the iteration has more elements. (In other
+     * words, returns <tt>true</tt> if <tt>next</tt> would return an 
+     * axiom_node_t struct rather than null with error code set in environment
+     */
+
+    AXIS2_EXTERN axis2_bool_t AXIS2_CALL
     axiom_children_qname_iterator_has_next(axiom_children_qname_iterator_t *iterator,
-              const axis2_env_t *env);
+            const axis2_env_t *env);
 
-   /**
-    * Returns the next element in the iteration.
-    */
-    AXIS2_EXTERN axiom_node_t* AXIS2_CALL 
+    /**
+     * Returns the next element in the iteration.
+     */
+    AXIS2_EXTERN axiom_node_t* AXIS2_CALL
     axiom_children_qname_iterator_next(axiom_children_qname_iterator_t *iterator,
-          const axis2_env_t *env);
-                         
+            const axis2_env_t *env);
+
 
 #define AXIOM_CHILDREN_QNAME_ITERATOR_FREE(iterator, env) \
         axiom_children_qname_iterator_free(iterator, env)
@@ -110,10 +94,10 @@
 #define AXIOM_CHILDREN_QNAME_ITERATOR_NEXT(iterator, env) \
         axiom_children_qname_iterator_next(iterator, env)
 
-/** @} */
+    /** @} */
 
 #ifdef __cplusplus
 }
 #endif
- 
+
 #endif /* AXIOM_CHILDREN_QNAME_ITERATOR_H */

Modified: webservices/axis2/trunk/c/axiom/include/axiom_children_with_specific_attribute_iterator.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_children_with_specific_attribute_iterator.h?view=diff&rev=495494&r1=495493&r2=495494
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_children_with_specific_attribute_iterator.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_children_with_specific_attribute_iterator.h Thu Jan 11 22:11:41 2007
@@ -14,119 +14,119 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
- #ifndef AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_H
- #define AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_H
- 
- /**
- *@file axiom_children_with_specific_attribute_iterator.h   
- *@brief this is the iterator for om nodes 
- */
-  
+
+#ifndef AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_H
+#define AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_H
+
+/**
+*@file axiom_children_with_specific_attribute_iterator.h 
+*@brief this is the iterator for om nodes 
+*/
+
 #include <axiom_node.h>
 #include <axiom_text.h>
 #include <axis2_qname.h>
-  
+
 
 #ifdef __cplusplus
 extern "C"
 {
 #endif
 
-typedef struct axiom_children_with_specific_attribute_iterator_ops 
-                    axiom_children_with_specific_attribute_iterator_ops_t;
+    typedef struct axiom_children_with_specific_attribute_iterator_ops
+                axiom_children_with_specific_attribute_iterator_ops_t;
 
-typedef struct axiom_children_with_specific_attribute_iterator 
-                    axiom_children_with_specific_attribute_iterator_t;
+    typedef struct axiom_children_with_specific_attribute_iterator
+                axiom_children_with_specific_attribute_iterator_t;
 
-/**
- * @defgroup axiom_children_with_specific_attribute_iterator children with specific attribute iterator
- * @ingroup axiom_om
- * @{
- */
- 
-   /**
-    * \brief axiom_children_with_specific_attribute_iterator ops
-    * Encapsulator struct for ops of axiom_iterator
-    */
-     struct axiom_children_with_specific_attribute_iterator_ops
+    /**
+     * @defgroup axiom_children_with_specific_attribute_iterator children with specific attribute iterator
+     * @ingroup axiom_om
+     * @{
+     */
+
+    /**
+     * \brief axiom_children_with_specific_attribute_iterator ops
+     * Encapsulator struct for ops of axiom_iterator
+     */
+    struct axiom_children_with_specific_attribute_iterator_ops
     {
-      /**
-      * Free function free the om_children_with_specific_attribute_iterator struct
-      */
-        axis2_status_t (AXIS2_CALL *
-      free_fn)(axiom_children_with_specific_attribute_iterator_t *iterator,
-                 const axis2_env_t *env);
-                             
+        /**
+        * Free function free the om_children_with_specific_attribute_iterator struct
+        */
+        axis2_status_t(AXIS2_CALL *
+                free_fn)(axiom_children_with_specific_attribute_iterator_t *iterator,
+                        const axis2_env_t *env);
+
         /**
         * Removes from the underlying collection the last element returned by the
         * iterator (optional op).  This method can be called only once per
         * call to <tt>next</tt>.  The behavior of an iterator is unspecified if
         * the underlying collection is modified while the iteration is in
         * progress in any way other than by calling this method.
-        */                                              
-        axis2_status_t (AXIS2_CALL *
-      remove)(axiom_children_with_specific_attribute_iterator_t *iterator,
-                const axis2_env_t *env);
-                             
-       /**
-        * Returns true< if the iteration has more elements. (In other
-        * words, returns true if next would return an axiom_node_t struct
-        * rather than NULL with error code set in environment
-        */                             
-        
-        axis2_bool_t (AXIS2_CALL *
-      has_next)(axiom_children_with_specific_attribute_iterator_t *iterator,
-                  const axis2_env_t *env);
-    
-       /**
-        * Returns the next element in the iteration. returns null if there is no 
-      * more elements in the iteration
         */
-        axiom_node_t* (AXIS2_CALL *
-      next)(axiom_children_with_specific_attribute_iterator_t *iterator,
-              const axis2_env_t *env);
-    
-    
-    
+        axis2_status_t(AXIS2_CALL *
+                remove)(axiom_children_with_specific_attribute_iterator_t *iterator,
+                            const axis2_env_t *env);
+
+        /**
+         * Returns true< if the iteration has more elements. (In other
+         * words, returns true if next would return an axiom_node_t struct
+         * rather than NULL with error code set in environment
+         */
+
+        axis2_bool_t(AXIS2_CALL *
+                has_next)(axiom_children_with_specific_attribute_iterator_t *iterator,
+                        const axis2_env_t *env);
+
+        /**
+         * Returns the next element in the iteration. returns null if there is no 
+        * more elements in the iteration
+         */
+        axiom_node_t*(AXIS2_CALL *
+                next)(axiom_children_with_specific_attribute_iterator_t *iterator,
+                        const axis2_env_t *env);
+
+
+
     };
-    
-    
-struct axiom_children_with_specific_attribute_iterator
-{
-    axiom_children_with_specific_attribute_iterator_ops_t *ops;
-};    
 
-/** 
- * @param current child
- * @param env environment 
- * return axiom_children_with_specific_attribute_iterator_t 
- */
-
-AXIS2_EXTERN  axiom_children_with_specific_attribute_iterator_t * AXIS2_CALL
-axiom_children_with_specific_attribute_iterator_create(
-                                  const axis2_env_t *env, 
-                                  axiom_node_t *current_child,
-                                  axis2_qname_t *attr_qname,
-                                  axis2_char_t *attr_value,
-                                  axis2_bool_t detach);
-                                  
-/************ Macros *********************************************/
+
+    struct axiom_children_with_specific_attribute_iterator
+    {
+        axiom_children_with_specific_attribute_iterator_ops_t *ops;
+    };
+
+    /**
+     * @param current child
+     * @param env environment
+     * return axiom_children_with_specific_attribute_iterator_t
+     */
+
+    AXIS2_EXTERN  axiom_children_with_specific_attribute_iterator_t * AXIS2_CALL
+    axiom_children_with_specific_attribute_iterator_create(
+        const axis2_env_t *env,
+        axiom_node_t *current_child,
+        axis2_qname_t *attr_qname,
+        axis2_char_t *attr_value,
+        axis2_bool_t detach);
+
+    /************ Macros *********************************************/
 
 #define AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_FREE(iterator, env) \
         ((iterator)->ops->free_fn(iterator, env))
 
 #define AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_REMOVE(iterator, env) \
         ((iterator)->ops->remove(iterator, env))
-        
+
 #define AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_HAS_NEXT(iterator, env) \
         ((iterator)->ops->has_next(iterator, env))
-        
+
 #define AXIOM_CHILDREN_WITH_SPECIFIC_ATTRIBUTE_ITERATOR_NEXT(iterator, env) \
-        ((iterator)->ops->next(iterator, env))        
-        
-              
- /** @} */
+        ((iterator)->ops->next(iterator, env))
+
+
+    /** @} */
 
 #ifdef __cplusplus
 }

Modified: webservices/axis2/trunk/c/axiom/include/axiom_comment.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_comment.h?view=diff&rev=495494&r1=495493&r2=495494
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_comment.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_comment.h Thu Jan 11 22:11:41 2007
@@ -31,81 +31,62 @@
 {
 #endif
 
-    struct axiom_comment;
-    struct axiom_comment_ops;
 
-/**
- * @defgroup axiom_comment comment
- * @ingroup axiom_om
- * @{
- */
-
-
-  /** 
-    *   @brief comment ops struct
-    *   Encapsulator struct for ops of axiom_comment_t
-    */
-    typedef struct axiom_comment_ops
-    {
-        int dummy; /* if this is missing, windows compiler goes crazy */
-    } axiom_comment_ops_t;
-
-  /** 
-    * \brief comment struct
-    * Handles the XML comment in AXIOM
-    */
-    typedef struct axiom_comment
-    {
-        /** ops struct */
-        const axiom_comment_ops_t *ops;
-    } axiom_comment_t;
-
-  /**
-    * Creates a comment struct
-    * @param env Environment. MUST NOT be NULL,
-    * @param parent This is the parent node of the comment is any, can be NULL.
-    * @param value comment text
-    * @param node This is an out parameter.cannot be NULL.
-    *        Returns the node corresponding to the comment created.
-    *        Node type will be set to AXIOM_COMMENT
-    * @return a pointer to the newly created comment struct
-    */
-    AXIS2_EXTERN axiom_comment_t * AXIS2_CALL 
-    axiom_comment_create (const axis2_env_t *env,
-                             axiom_node_t *parent,
-                             const axis2_char_t *value,
-                             axiom_node_t **node);
-
-  /**
-    * Free a axis2_comment_t struct
-    * @param om_comment pointer to axis2_commnet_t struct to be freed
-    * @param env Environment. MUST NOT be NULL.
-    * @return satus of the op. 
-    *                AXIS2_SUCCESS on success ,AXIS2_FAILURE on error.
-    */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
-    axiom_comment_free (struct axiom_comment *om_comment,
-           const axis2_env_t *env);
-   /** get the comments data
-    * @param om_comment a pointer to axiom_comment_t struct
-    * @param env environment, MUST NOT be NULL 
-    * @returns comment text
-    */
-           
-    AXIS2_EXTERN axis2_char_t* AXIS2_CALL 
+    /**
+     * @defgroup axiom_comment comment
+     * @ingroup axiom_om
+     * @{
+     */
+
+
+    typedef struct axiom_comment axiom_comment_t;
+
+    /**
+      * Creates a comment struct
+      * @param env Environment. MUST NOT be NULL,
+      * @param parent This is the parent node of the comment is any, can be NULL.
+      * @param value comment text
+      * @param node This is an out parameter.cannot be NULL.
+      *        Returns the node corresponding to the comment created.
+      *        Node type will be set to AXIOM_COMMENT
+      * @return a pointer to the newly created comment struct
+      */
+    AXIS2_EXTERN axiom_comment_t * AXIS2_CALL
+    axiom_comment_create(const axis2_env_t *env,
+            axiom_node_t *parent,
+            const axis2_char_t *value,
+            axiom_node_t **node);
+
+    /**
+      * Free a axis2_comment_t struct
+      * @param om_comment pointer to axis2_commnet_t struct to be freed
+      * @param env Environment. MUST NOT be NULL.
+      * @return satus of the op. 
+      *                AXIS2_SUCCESS on success ,AXIS2_FAILURE on error.
+      */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axiom_comment_free(struct axiom_comment *om_comment,
+            const axis2_env_t *env);
+    /** get the comments data
+     * @param om_comment a pointer to axiom_comment_t struct
+     * @param env environment, MUST NOT be NULL 
+     * @returns comment text
+     */
+
+    AXIS2_EXTERN axis2_char_t* AXIS2_CALL
     axiom_comment_get_value(struct axiom_comment *om_comment,
-               const axis2_env_t *env);
-   /**
-    * set comment data
-    * @param om_comment pointer to axiom_comment_t struct
-    * @param env environment, MUST NOT be NULL.
-    * @param value comment text
-    * @returns AXIS2_SUCCESS on success , AXIS2_FAILURE on error
-    */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+            const axis2_env_t *env);
+    /**
+     * set comment data
+     * @param om_comment pointer to axiom_comment_t struct
+     * @param env environment, MUST NOT be NULL.
+     * @param value comment text
+     * @returns AXIS2_SUCCESS on success , AXIS2_FAILURE on error
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_comment_set_value(struct axiom_comment *om_comment,
-              const axis2_env_t *env,
-              const axis2_char_t* value);
+            const axis2_env_t *env,
+            const axis2_char_t* value);
     /**
      *  serialize function 
      *  @param om_comment pointer to axiom_comment_t struct
@@ -113,25 +94,25 @@
      *  @param om_output pointer to om_output_t struct
      *  @return AXIS2_SUCCESS on success, AXIS2_FAILURE on error.
      */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_comment_serialize(struct axiom_comment *om_comment,
-               const axis2_env_t *env,
-               axiom_output_t *om_output);
- 
-/** free given comment */
+            const axis2_env_t *env,
+            axiom_output_t *om_output);
+
+    /** free given comment */
 #define AXIOM_COMMENT_FREE(om_comment, env) \
         axiom_comment_free(om_comment, env)
-/** get comment text */
+    /** get comment text */
 #define AXIOM_COMMENT_GET_VALUE(om_comment, env) \
         axiom_comment_get_value(om_comment, env)
-/** set comment text */        
+    /** set comment text */
 #define AXIOM_COMMENT_SET_VALUE(om_comment, env, value) \
         axiom_comment_set_value(om_comment, env, value)
-/** serialize */
+    /** serialize */
 #define AXIOM_COMMENT_SERIALIZE(om_comment, env, om_output) \
         axiom_comment_serialize(om_comment, env, om_output)
 
-/** @} */
+    /** @} */
 
 #ifdef __cplusplus
 }

Modified: webservices/axis2/trunk/c/axiom/include/axiom_data_handler.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_data_handler.h?view=diff&rev=495494&r1=495493&r2=495494
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_data_handler.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_data_handler.h Thu Jan 11 22:11:41 2007
@@ -37,97 +37,97 @@
 {
 #endif
 
-typedef enum axiom_data_handler_type
-{
-    AXIOM_DATA_HANDLER_TYPE_FILE,
-    AXIOM_DATA_HANDLER_TYPE_BUFFER
-}axiom_data_handler_type_t;
+    typedef enum axiom_data_handler_type
+    {
+        AXIOM_DATA_HANDLER_TYPE_FILE,
+        AXIOM_DATA_HANDLER_TYPE_BUFFER
+    }axiom_data_handler_type_t;
 
 
-/* This should be moved to header file later axis2_defines.h*/    
+    /* This should be moved to header file later axis2_defines.h*/
 #define axis2_byte_t char
-   
-typedef struct axiom_data_handler_ops axiom_data_handler_ops_t;
-typedef struct axiom_data_handler axiom_data_handler_t;   
-
-/*
-      private final DataSource ds;
-      private final DataFlavor flavor;
-      private CommandMap commandMap;
-      private DataContentHandler dch;
-*/
-
-/** @defgroup axiom_data_handler Flow
-  * @ingroup axiom_data_handler
-  * @{
-  */
-
-/** 
- * @brief Flow ops struct
- * Encapsulator struct for ops of axiom_data_handler
- */
-struct axiom_data_handler_ops
-{
-   axis2_char_t *(AXIS2_CALL *
-    get_content_type)(axiom_data_handler_t *data_handler, 
-        const axis2_env_t *env); 
-   
-   axis2_byte_t* (AXIS2_CALL *
-    get_input_stream)(axiom_data_handler_t *data_handler, 
-        const axis2_env_t *env); 
-
-    axis2_status_t (AXIS2_CALL *
-    read_from)(axiom_data_handler_t *data_handler, 
-        const axis2_env_t *env, 
-        axis2_byte_t** output_stream, 
-        int *output_stream_size);
-
-    axis2_status_t (AXIS2_CALL *
-    set_binary_data)(axiom_data_handler_t *data_handler, 
-        const axis2_env_t *env, 
-        axis2_byte_t* input_stream, 
-        int input_stream_len);
-
-    axis2_status_t (AXIS2_CALL *
-    write_to)(axiom_data_handler_t *data_handler, 
-        const axis2_env_t *env);
-
-    axis2_status_t ( AXIS2_CALL *
-    set_file_name )(
-        axiom_data_handler_t *data_handler, 
-        const axis2_env_t *env, 
-        axis2_char_t* file_name);
-    
-    axis2_status_t (AXIS2_CALL *
-    free) (axiom_data_handler_t *data_handler, 
-        const axis2_env_t *env);
-};
-
-/** 
- * @brief Flow struct
- *   Flow  
- */ 
-struct axiom_data_handler
-{
-   axiom_data_handler_ops_t *ops;
-   
-   /*
-    axis2_char_t type;
-    *void handler;   
-   */
-};
-
-/**
- * Creates data_handler struct
- * @return pointer to newly created data_handler
- */
-AXIS2_EXTERN axiom_data_handler_t * AXIS2_CALL 
-axiom_data_handler_create (const axis2_env_t *env, 
-    const axis2_char_t *file_name, 
-    const axis2_char_t *mime_type);
 
+    typedef struct axiom_data_handler_ops axiom_data_handler_ops_t;
+    typedef struct axiom_data_handler axiom_data_handler_t;
 
-/*************************** Function macros **********************************/
+    /*
+          private final DataSource ds;
+          private final DataFlavor flavor;
+          private CommandMap commandMap;
+          private DataContentHandler dch;
+    */
+
+    /** @defgroup axiom_data_handler Flow
+      * @ingroup axiom_data_handler
+      * @{
+      */
+
+    /**
+     * @brief Flow ops struct
+     * Encapsulator struct for ops of axiom_data_handler
+     */
+    struct axiom_data_handler_ops
+    {
+        axis2_char_t *(AXIS2_CALL *
+                get_content_type)(axiom_data_handler_t *data_handler,
+                        const axis2_env_t *env);
+
+        axis2_byte_t*(AXIS2_CALL *
+                get_input_stream)(axiom_data_handler_t *data_handler,
+                        const axis2_env_t *env);
+
+        axis2_status_t(AXIS2_CALL *
+                read_from)(axiom_data_handler_t *data_handler,
+                        const axis2_env_t *env,
+                        axis2_byte_t** output_stream,
+                        int *output_stream_size);
+
+        axis2_status_t(AXIS2_CALL *
+                set_binary_data)(axiom_data_handler_t *data_handler,
+                        const axis2_env_t *env,
+                        axis2_byte_t* input_stream,
+                        int input_stream_len);
+
+        axis2_status_t(AXIS2_CALL *
+                write_to)(axiom_data_handler_t *data_handler,
+                        const axis2_env_t *env);
+
+        axis2_status_t(AXIS2_CALL *
+                set_file_name)(
+                    axiom_data_handler_t *data_handler,
+                    const axis2_env_t *env,
+                    axis2_char_t* file_name);
+
+        axis2_status_t(AXIS2_CALL *
+                free)(axiom_data_handler_t *data_handler,
+                        const axis2_env_t *env);
+    };
+
+    /**
+     * @brief Flow struct
+     *   Flow
+     */
+    struct axiom_data_handler
+    {
+        axiom_data_handler_ops_t *ops;
+
+        /*
+         axis2_char_t type;
+         *void handler;   
+        */
+    };
+
+    /**
+     * Creates data_handler struct
+     * @return pointer to newly created data_handler
+     */
+    AXIS2_EXTERN axiom_data_handler_t * AXIS2_CALL
+    axiom_data_handler_create(const axis2_env_t *env,
+            const axis2_char_t *file_name,
+            const axis2_char_t *mime_type);
+
+
+    /*************************** Function macros **********************************/
 
 #define AXIOM_DATA_HANDLER_FREE(data_handler, env) \
     ((data_handler)->ops->free (data_handler, env))
@@ -150,9 +150,9 @@
 #define AXIOM_DATA_HANDLER_SET_FILE_NAME(data_handler, env, file_name) \
     ((data_handler)->ops->set_file_name (data_handler, env, file_name))
 
-/*************************** End of function macros ***************************/
+    /*************************** End of function macros ***************************/
 
-/** @} */
+    /** @} */
 
 #ifdef __cplusplus
 }

Modified: webservices/axis2/trunk/c/axiom/include/axiom_data_source.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_data_source.h?view=diff&rev=495494&r1=495493&r2=495494
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_data_source.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_data_source.h Thu Jan 11 22:11:41 2007
@@ -33,79 +33,73 @@
 {
 #endif
 
-    struct axiom_data_source;
-
-/**
- * @defgroup axiom_data_source data_source
- * @ingroup axiom_om
- * @{
- */
-
-
-  /** 
-    * \brief data_source struct
-    * Handles the XML data_source in OM
-    */
-    typedef struct axiom_data_source
-    {
-        /** Reference count */
-        unsigned int ref;
-    } axiom_data_source_t;
-
-
-  /**
-    * Creates a new data_source struct
-    * @param env Environment. MUST  NOT be NULL, .
-    * @param parent parent of the new node. Optinal, can be NULL. 
-    *          The parent element must be of type AXIOM_ELEMENT
-    * @param value Text value. Optinal, can be NULL.
-    * @param comment_node This is an out parameter.  cannot be NULL.
-    *                       Returns the node corresponding to the data_source struct created.
-    *                       Node type will be set to AXIOM_DATA_SOURCE    
-    * @return pointer to newly created data_source struct 
-    */
-    AXIS2_EXTERN axiom_data_source_t * AXIS2_CALL 
-    axiom_data_source_create (const axis2_env_t *env,
-                          axiom_node_t *parent,
-                          axiom_node_t ** node);
-                          
-  /**
-    * Free an axiom_data_source struct
-    * @param env environment.  MUST NOT be NULL.
-    * @param om_data_source pointer to om data_source struct to be freed.
-    * @return satus of the op. AXIS2_SUCCESS on success
-    *         AXIS2_FAILURE on error.
-    */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
-    axiom_data_source_free (struct axiom_data_source *om_data_source,
-           const axis2_env_t *env);
-
-  /**
-    * Serialize op
-    * @param env environment.  MUST NOT be NULL.
-    * @param om_data_source pointer to om data_source struct to be serialized.
-    * @param om_output AXIOM output handler to be used in serializing.
-    * @return satus of the op. AXIS2_SUCCESS on success,
-    *            AXIS2_FAILURE on error
-    */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
-    axiom_data_source_serialize (struct axiom_data_source *om_data_source,
-                const axis2_env_t *env,
-                axiom_output_t *om_output);
-   /**
-    *  set the data_source value
-    * @param om_data_source om_data_source struct
-    * @param env environment , MUST NOT be NULL.
-    * @param value data_source 
-    * @return status of the op. AXIS2_SUCCESS on success,
-    *           AXIS2_FAILURE on error.                                                
-    */                                                
-    AXIS2_EXTERN axis2_stream_t * AXIS2_CALL 
+    /**
+     * @defgroup axiom_data_source data_source
+     * @ingroup axiom_om
+     * @{
+     */
+
+
+    /**
+      * \brief data_source struct
+      * Handles the XML data_source in OM
+      */
+    typedef struct axiom_data_source axiom_data_source_t;
+
+
+    /**
+      * Creates a new data_source struct
+      * @param env Environment. MUST  NOT be NULL, .
+      * @param parent parent of the new node. Optinal, can be NULL. 
+      *          The parent element must be of type AXIOM_ELEMENT
+      * @param value Text value. Optinal, can be NULL.
+      * @param comment_node This is an out parameter.  cannot be NULL.
+      *                       Returns the node corresponding to the data_source struct created.
+      *                       Node type will be set to AXIOM_DATA_SOURCE  
+      * @return pointer to newly created data_source struct 
+      */
+    AXIS2_EXTERN axiom_data_source_t * AXIS2_CALL
+    axiom_data_source_create(const axis2_env_t *env,
+            axiom_node_t *parent,
+            axiom_node_t ** node);
+
+    /**
+      * Free an axiom_data_source struct
+      * @param env environment.  MUST NOT be NULL.
+      * @param om_data_source pointer to om data_source struct to be freed.
+      * @return satus of the op. AXIS2_SUCCESS on success
+      *         AXIS2_FAILURE on error.
+      */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axiom_data_source_free(struct axiom_data_source *om_data_source,
+            const axis2_env_t *env);
+
+    /**
+      * Serialize op
+      * @param env environment.  MUST NOT be NULL.
+      * @param om_data_source pointer to om data_source struct to be serialized.
+      * @param om_output AXIOM output handler to be used in serializing.
+      * @return satus of the op. AXIS2_SUCCESS on success,
+      *            AXIS2_FAILURE on error
+      */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axiom_data_source_serialize(struct axiom_data_source *om_data_source,
+            const axis2_env_t *env,
+            axiom_output_t *om_output);
+    /**
+     *  set the data_source value
+     * @param om_data_source om_data_source struct
+     * @param env environment , MUST NOT be NULL.
+     * @param value data_source 
+     * @return status of the op. AXIS2_SUCCESS on success,
+     *           AXIS2_FAILURE on error.   
+     */
+    AXIS2_EXTERN axis2_stream_t * AXIS2_CALL
     axiom_data_source_get_stream(struct axiom_data_source *om_data_source,
-               const axis2_env_t *env);
-    
-        
-/** @} */
+            const axis2_env_t *env);
+
+
+    /** @} */
 
 #ifdef __cplusplus
 }

Modified: webservices/axis2/trunk/c/axiom/include/axiom_doctype.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_doctype.h?view=diff&rev=495494&r1=495493&r2=495494
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_doctype.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_doctype.h Thu Jan 11 22:11:41 2007
@@ -19,7 +19,7 @@
 #define AXIOM_DOCTYPE_H
 
 /**
- *@file axiom_doctype.h   
+ *@file axiom_doctype.h
  *@brief defines struct representing xml DTD and its manipulation functions
  */
 
@@ -34,105 +34,88 @@
     struct axiom_doctype;
     struct axiom_doctype_ops;
 
-/**
- * @defgroup axiom_doctype doctype
- * @ingroup axiom_om
- * @{
- */
-
-  /**
-    * \brief doctype ops struct
-    * Encapsulator struct for ops of axiom_doctype
-    */
-    typedef struct axiom_doctype_ops
-    {
-        int dummy; /* if this is missing, windows compiler goes crazy */
-    } axiom_doctype_ops_t;
-
-  /**
-    * \brief doctype struct
-    * Handles XML document type in AXIOM
-    */
-    typedef struct axiom_doctype
-    {
-        /** Doctype related ops */
-        const axiom_doctype_ops_t *ops;
-    } axiom_doctype_t;
-
-  /**
-    * Creates a axiom_doctype_t struct
-    * @param env Environment. MUST  NOT be NULL,
-    * @param parent parent of the new node. Optinal, can be NULL. 
-    * @param value doctype text
-    * @param node This is an out parameter.cannot be NULL.
-    *               Returns the node corresponding to the doctype created.
-    *               Node type will be set to AXIOM_DOCTYPE
-    * @return pointer to newly created doctype struct 
-    */
+    /**
+     * @defgroup axiom_doctype doctype
+     * @ingroup axiom_om
+     * @{
+     */
+
+    typedef struct axiom_doctype axiom_doctype_t;
+
+    /**
+      * Creates a axiom_doctype_t struct
+      * @param env Environment. MUST  NOT be NULL,
+      * @param parent parent of the new node. Optinal, can be NULL. 
+      * @param value doctype text
+      * @param node This is an out parameter.cannot be NULL.
+      *               Returns the node corresponding to the doctype created.
+      *               Node type will be set to AXIOM_DOCTYPE
+      * @return pointer to newly created doctype struct 
+      */
     AXIS2_EXTERN axiom_doctype_t * AXIS2_CALL
-    axiom_doctype_create (const axis2_env_t *env,
-                             axiom_node_t * parent,
-                             const axis2_char_t * value,
-                             axiom_node_t ** node);
-  /**
-    * free doctype struct
-    * @param om_doctype pointer to axiom_doctype_t struct to be freed
-    * @param env Environment. MUST NOT be NULL,
-    * @return satus of the op. AXIS2_SUCCESS on success
-    *         AXIS2_FAILURE on error.
-    */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+    axiom_doctype_create(const axis2_env_t *env,
+            axiom_node_t * parent,
+            const axis2_char_t * value,
+            axiom_node_t ** node);
+    /**
+      * free doctype struct
+      * @param om_doctype pointer to axiom_doctype_t struct to be freed
+      * @param env Environment. MUST NOT be NULL,
+      * @return satus of the op. AXIS2_SUCCESS on success
+      *         AXIS2_FAILURE on error.
+      */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_doctype_free(struct axiom_doctype *om_doctype,
-          const axis2_env_t *env);
-   /**
-    * @param om_doctype pointer to a axiom_doctype_t struct
-    * @param env environment must not be null       
-    * @return DTD text 
-    */
-    AXIS2_EXTERN axis2_char_t* AXIS2_CALL 
+            const axis2_env_t *env);
+    /**
+     * @param om_doctype pointer to a axiom_doctype_t struct
+     * @param env environment must not be null   
+     * @return DTD text 
+     */
+    AXIS2_EXTERN axis2_char_t* AXIS2_CALL
     axiom_doctype_get_value(struct axiom_doctype *om_doctype,
-               const axis2_env_t *env);
-   /**
-    * @param om_doctype pointer to axiom doctype_t struct
-    * @param env environment , MUST NOT be NULL.
-    * @param value doctype text value
-    * @return status of the op,
-    *         AXIS2_SUCCESS on success, AXIS2_FAILURE on error.
-    */
+            const axis2_env_t *env);
+    /**
+     * @param om_doctype pointer to axiom doctype_t struct
+     * @param env environment , MUST NOT be NULL.
+     * @param value doctype text value
+     * @return status of the op,
+     *         AXIS2_SUCCESS on success, AXIS2_FAILURE on error.
+     */
 
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_doctype_set_value(struct axiom_doctype *om_doctype,
-               const axis2_env_t *env,
-               const axis2_char_t *value);
-   /**
-    * serialize op 
-    * @param om_doctype pointer to axiom_doctype_t struct
-    * @param env environment , MUST NOT be NULL
-    * @param om_output pointer to axiom_output_t struct
-    * @returns status of the op,
-    *          AXIS2_SUCCESS on success, AXIS2_FAILURE on error.
-    */                                   
-    
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+            const axis2_env_t *env,
+            const axis2_char_t *value);
+    /**
+     * serialize op 
+     * @param om_doctype pointer to axiom_doctype_t struct
+     * @param env environment , MUST NOT be NULL
+     * @param om_output pointer to axiom_output_t struct
+     * @returns status of the op,
+     *          AXIS2_SUCCESS on success, AXIS2_FAILURE on error.
+     */
+
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_doctype_serialize(struct axiom_doctype *om_doctype,
-               const axis2_env_t *env,
-               axiom_output_t *om_output);
- 
-/** free given doctype */    
+            const axis2_env_t *env,
+            axiom_output_t *om_output);
+
+    /** free given doctype */
 #define AXIOM_DOCTYPE_FREE(doctype, env) \
         axiom_doctype_free(doctype, env)
-/** returns the value of doctype */
+    /** returns the value of doctype */
 #define AXIOM_DOCTYPE_GET_VALUE(doctype, env) \
         axiom_doctype_get_value(doctype, env)
-/** set the doctype value */
+    /** set the doctype value */
 #define AXIOM_DOCTYPE_SET_VALUE(doctype, env, value) \
         axiom_doctype_set_value(doctype, env, value)
-/** serialize op */       
+    /** serialize op */
 #define AXIOM_DOCTYPE_SERIALIZE(doctype, env, om_output) \
         axiom_doctype_serialize(doctype, env, om_output)
 
-/** @} */
-    
+    /** @} */
+
 #ifdef __cplusplus
 }
 #endif

Modified: webservices/axis2/trunk/c/axiom/include/axiom_document.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axiom_document.h?view=diff&rev=495494&r1=495493&r2=495494
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axiom_document.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axiom_document.h Thu Jan 11 22:11:41 2007
@@ -29,151 +29,132 @@
 #endif
 
 
-/**
- * @file axiom_document.h
- * @brief om_document represents an XML document
- */
+    /**
+     * @file axiom_document.h
+     * @brief om_document represents an XML document
+     */
 
 #define CHAR_SET_ENCODING "UTF-8"
 #define XML_VERSION   "1.0"
 
-    struct axiom_document; 
-    struct axiom_document_ops;
     struct axiom_stax_builder;
 
-/**
- * @defgroup axiom_document document
- * @ingroup axiom_om
- * @{
- */
-
-  /** 
-    * @brief document ops struct
-    * Encapsulator struct for ops of axiom_document_t
-    */
-    typedef struct axiom_document_ops
-    {
-        int dummy; /* if this is missing, windows compiler goes crazy */
-    } axiom_document_ops_t;
-
-  /**
-    * \brief document struct
-    * Handles the XML document in AXIOM
-    */
-    typedef struct axiom_document
-    {
-        /** ops of document struct */
-        const axiom_document_ops_t *ops;
-    } axiom_document_t;
-
-  /**
-    * creates an axiom_document_t struct
-    * @param env Environment. MUST NOT be NULL.
-    * @param root pointer to document's root node. Optional, can be NULL
-    * @param builder pointer to axiom_stax_builder 
-    * @return pointer to the newly created document.
-    */
+    /**
+     * @defgroup axiom_document document
+     * @ingroup axiom_om
+     * @{
+     */
+
+    typedef struct axiom_document axiom_document_t;
+
+    /**
+      * creates an axiom_document_t struct
+      * @param env Environment. MUST NOT be NULL.
+      * @param root pointer to document's root node. Optional, can be NULL
+      * @param builder pointer to axiom_stax_builder 
+      * @return pointer to the newly created document.
+      */
     AXIS2_EXTERN axiom_document_t * AXIS2_CALL
-    axiom_document_create (const axis2_env_t *env,
-                              axiom_node_t * root,
-                              struct axiom_stax_builder *builder);
-  /** 
-    * Free document struct
-    * @param document pointer to axiom_document_t struct to be freed
-    * @param env Environment. MUST NOT be NULL    
-    * @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE.
-    */
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
-    axiom_document_free (struct axiom_document *document,
-           const axis2_env_t *env);
-
-  /** Builds the next node if the builder is not finished with input xml stream
-    * @param document document whose next node is to be built. cannot be NULL
-    * @param env Environment. MUST NOT be NULL.        
-    * @return pointer to the next node. NULL on error.
-    */
-  
-    AXIS2_EXTERN axiom_node_t* AXIS2_CALL 
-    axiom_document_build_next (struct axiom_document *document,
-               const axis2_env_t *env);
-
-  /**
-    * Gets the root element of the document.
-    * @param document document to return the root of
-    * @param env Environment. MUST NOT be NULL.        
-    * @return returns a pointer to the root node. If no root present,
-    *            this method tries to build the root. Returns NULL on error. 
-    */
-    AXIS2_EXTERN axiom_node_t* AXIS2_CALL 
+    axiom_document_create(const axis2_env_t *env,
+            axiom_node_t * root,
+            struct axiom_stax_builder *builder);
+    /**
+      * Free document struct
+      * @param document pointer to axiom_document_t struct to be freed
+      * @param env Environment. MUST NOT be NULL  
+      * @return satus of the op. AXIS2_SUCCESS on success else AXIS2_FAILURE.
+      */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axiom_document_free(struct axiom_document *document,
+            const axis2_env_t *env);
+
+    /** Builds the next node if the builder is not finished with input xml stream
+      * @param document document whose next node is to be built. cannot be NULL
+      * @param env Environment. MUST NOT be NULL.  
+      * @return pointer to the next node. NULL on error.
+      */
+
+    AXIS2_EXTERN axiom_node_t* AXIS2_CALL
+    axiom_document_build_next(struct axiom_document *document,
+            const axis2_env_t *env);
+
+    /**
+      * Gets the root element of the document.
+      * @param document document to return the root of
+      * @param env Environment. MUST NOT be NULL.  
+      * @return returns a pointer to the root node. If no root present,
+      *            this method tries to build the root. Returns NULL on error. 
+      */
+    AXIS2_EXTERN axiom_node_t* AXIS2_CALL
     axiom_document_get_root_element(struct axiom_document *document,
-                      const axis2_env_t *env);
+            const axis2_env_t *env);
 
-  /**
-    * set the root element of the document. IF a root node is already exist,it is freed 
-    * before setting to root element 
-    * @param document document struct to return the root of
-    * @param env Environment. MUST NOT be NULL.        
-    * @return returns status code AXIS2_SUCCESS on success ,AXIS2_FAILURE on error. 
-    */        
-                                                    
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+    /**
+      * set the root element of the document. IF a root node is already exist,it is freed 
+      * before setting to root element 
+      * @param document document struct to return the root of
+      * @param env Environment. MUST NOT be NULL.  
+      * @return returns status code AXIS2_SUCCESS on success ,AXIS2_FAILURE on error. 
+      */
+
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_document_set_root_element(struct axiom_document *document,
-                      const axis2_env_t *env,
-                      axiom_node_t *om_node);
-   /**
-    * This method builds the rest of the xml input stream from current position till
-    * the root element is completed .
-    *@param document pointer to axiom_document_t struct to be built.
-    *@param env environment MUST NOT be NULL.
-    */
-    AXIS2_EXTERN axiom_node_t* AXIS2_CALL 
+            const axis2_env_t *env,
+            axiom_node_t *om_node);
+    /**
+     * This method builds the rest of the xml input stream from current position till
+     * the root element is completed .
+     *@param document pointer to axiom_document_t struct to be built.
+     *@param env environment MUST NOT be NULL.
+     */
+    AXIS2_EXTERN axiom_node_t* AXIS2_CALL
     axiom_document_build_all(struct axiom_document *document,
-               const axis2_env_t *env); 
+            const axis2_env_t *env);
     /**
      * get builder
      * @return builder , returns NULL if a builder is not associated with 
      *                   document
      */
-    AXIS2_EXTERN struct axiom_stax_builder* AXIS2_CALL 
-    axiom_document_get_builder(struct axiom_document *document,
-                 const axis2_env_t *env);                                                         
+    AXIS2_EXTERN struct axiom_stax_builder* AXIS2_CALL
+                axiom_document_get_builder(struct axiom_document *document,
+                        const axis2_env_t *env);
     /**
      * @param om_document
      * @return status code AXIS2_SUCCESS on success , otherwise AXIS2_FAILURE
-     */                                                  
-    AXIS2_EXTERN axis2_status_t AXIS2_CALL 
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axiom_document_serialize(struct axiom_document *document,
-               const axis2_env_t *env,
-               axiom_output_t *om_output);
+            const axis2_env_t *env,
+            axiom_output_t *om_output);
 
-/** frees given document */
+    /** frees given document */
 #define AXIOM_DOCUMENT_FREE(document,env) \
         axiom_document_free(document,env)
-        
-/** builds next node of document */
+
+    /** builds next node of document */
 #define AXIOM_DOCUMENT_BUILD_NEXT(document,env) \
         axiom_document_build_next(document,env)
-        
-/** gets the root eleemnt of given document */
+
+    /** gets the root eleemnt of given document */
 #define AXIOM_DOCUMENT_GET_ROOT_ELEMENT(document,env) \
         axiom_document_get_root_element(document,env)
-/** sets the root node */
+    /** sets the root node */
 #define AXIOM_DOCUMENT_SET_ROOT_ELEMENT(document,env,om_node) \
         axiom_document_set_root_element(document,env,om_node)
-               
-/** build till the root node is complete */
+
+    /** build till the root node is complete */
 #define AXIOM_DOCUMENT_BUILD_ALL(document,env) \
         axiom_document_build_all(document,env)
-        
-/** returns the builder */
+
+    /** returns the builder */
 #define AXIOM_DOCUMENT_GET_BUILDER(document, env) \
         axiom_document_get_builder(document, env)
-        
-/** serialize opertation */
+
+    /** serialize opertation */
 #define AXIOM_DOCUMENT_SERIALIZE(document, env, om_output) \
         axiom_document_serialize(document, env, om_output)
 
-/** @} */
+    /** @} */
 
 #ifdef __cplusplus
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org