Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.91
-
None
-
None
-
All
Description
I copied the issue we discussed in the mail list so that we dont loose track of it.
Changes to be done to reader and writer are listed below.
writer
======
new attributes to impl struct:
int type;
xmlDocPtr *docp;
Original:
AXIS2_DECLARE(axis2_xml_writer_t *)
axis2_xml_writer_create_for_memory(axis2_env_t **env,
axis2_char_t *encoding,
int is_prefix_default,
int compression);
Modified:
AXIS2_DECLARE(axis2_xml_writer_t *)
axis2_xml_writer_create_for_memory(axis2_env_t **env,
axis2_char_t *encoding,
int is_prefix_default,
int compression,
int type);
Add:
int axis2_xml_writer_get_type(struct axis2_xml_writer xml_writer, axis2_env_t **env);
Original:
axis2_char_t* AXIS2_CALL
axis2_libxml2_writer_wrapper_get_xml(axis2_xml_writer_t *writer,
axis2_env_t **env);
Modified:
void* AXIS2_CALL
axis2_libxml2_writer_wrapper_get_xml(axis2_xml_writer_t *writer,
axis2_env_t **env);
Reader
======
Original:
AXIS2_DECLARE(axis2_xml_reader_t *)
axis2_xml_reader_create_for_buffer(axis2_env_t **env,
const axis2_char_t *buffer,
int size,
const axis2_char_t *encoding);
Modified:
AXIS2_DECLARE(axis2_xml_reader_t *)
axis2_xml_reader_create_for_buffer(axis2_env_t **env,
void *container,
int size,
const axis2_char_t *encoding,
int type);
Minor Issue: method name should ideally be axis2_xml_reader_create_for_memory. Since we already have a method with the same name, we need to refactor that name first.