Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-158

Add new reader/writer methods

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.91
    • None
    • xml/parser
    • 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.

      Attachments

        1. patch.xml.parser
          60 kB
          Nabeel Yoosuf

        Activity

          People

            nandika Korale Gamaralalage Nandika Chandrasiri Jayawardana
            nabeel_yoosuf Nabeel Yoosuf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: