     printf("conversion wasn't successful. converted: %i octets.\n",temp);
                        }
                        free(out);
                        out = NULL;
                } else {
                        out = realloc(out,out_size+1);
                        out[out_size]=0; /*null terminating out*/

                }
        } else {
                printf("no mem\n");
        }
        return (out);
}


int
main(int argc, char **argv) {

	unsigned char *content, *out;
	xmlDocPtr doc;
	xml