axlDoc * axl_doc_parse_strings ( axlError **  error,
  ... 
)

Allows to parse an xml document that is provided as a set of strings ended by a NULL reference.

This function works the same way like axl_doc_parse function, but allowing to provide a set of strings. Here is an example:

 // a document reference
 axlDoc   * doc;

 // note that the error is optional, and, if provided, it is not
 // required to initialize it.
 axlError * error;
 
 // parse the following set of strings
 doc = axl_doc_parse_strings (&error, 
                              "<?xml version='1.0' standalone='yes' ?>",
                              "<complex>",
                              "  <data>",
                              "     <row>",
                              "       <td>",
                              "          <value attr='10'/>
                              "       </td>",
                              "     </row>",
                              "  </data>",
                              "</complex>",
                              NULL); // last null reference 
 // check for an error
 if (doc == NULL) {
      printf ("There was an error while parsing the document: (code: %d) %s\n",
              axl_error_get_code (error), axl_error_get (error));
      axl_error_free (error);
 }

Parameters:
error An optional axlError reference where a textual diagnostic will be provided.
Returns:
A newly created axlDoc reference that must be deallocated by using axl_doc_free when no longer needed.