Re: [xml] xmlChar * to char *



I want to remove  only '\n'  and '\t' from the parsed xml. How can it be
possible.

Serious question?

xmlChar *optr = iptr;
while (*iptr) {
        if (*ptr != '\n' && *ptr != '\t') {
                *optr = *iptr;
                ++optr;
        }
        ++iptr;
}
*optr = '\0';



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]