Author: dushshantha Date: Wed Jan 9 03:07:45 2008 New Revision: 610338 URL: http://svn.apache.org/viewvc?rev=610338&view=rev Log: applied the patch for Jira 872. Thanks Senaka for the patch
Modified: webservices/axis2/trunk/c/axiom/include/axiom_document.h webservices/axis2/trunk/c/axiom/src/om/om_document.c 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?rev=610338&r1=610337&r2=610338&view=diff ============================================================================== --- webservices/axis2/trunk/c/axiom/include/axiom_document.h (original) +++ webservices/axis2/trunk/c/axiom/include/axiom_document.h Wed Jan 9 03:07:45 2008 @@ -122,8 +122,8 @@ /** * This method builds the rest of the xml input stream from current position till * the root element is completed . - [EMAIL PROTECTED] document pointer to axiom_document_t struct to be built. - [EMAIL PROTECTED] env environment MUST NOT be NULL. + * @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( @@ -132,14 +132,27 @@ /** * get builder - * @return builder , returns NULL if a builder is not associated with - * document + * @param document pointer to axiom_document_t struct to be built. + * @param env environment MUST NOT be NULL. + * @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 axutil_env_t * env); - axiom_document_get_builder( - struct axiom_document *document, - const axutil_env_t * env); + /** + * sets builder for document. + * @param document pointer to axiom_document_t struct to be built. + * @param env environment MUST NOT be NULL. + * @param builder pointer to builder to associate with document + */ + AXIS2_EXTERN void AXIS2_CALL + axiom_document_set_builder( + axiom_document_t * document, + const axutil_env_t * env, + struct axiom_stax_builder * builder); /** * @param om_document Modified: webservices/axis2/trunk/c/axiom/src/om/om_document.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/om/om_document.c?rev=610338&r1=610337&r2=610338&view=diff ============================================================================== --- webservices/axis2/trunk/c/axiom/src/om/om_document.c (original) +++ webservices/axis2/trunk/c/axiom/src/om/om_document.c Wed Jan 9 03:07:45 2008 @@ -242,6 +242,15 @@ return document->builder; } +AXIS2_EXTERN void AXIS2_CALL +axiom_document_set_builder( + axiom_document_t * document, + const axutil_env_t * env, + axiom_stax_builder_t * builder) +{ + document->builder = builder; +} + AXIS2_EXTERN axis2_status_t AXIS2_CALL axiom_document_serialize( axiom_document_t * document, --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]