Re: [xml] xmlList* functionality



Hi,

Smith Baylor wrote:
Hi,

Are there any examples of using xmlListCreate, xmlListInsert, xmlListWalk and xmlListWalker

xmlListPtr list;
list = xmlListCreate(NULL, NULL);
if (! (xmlListInsert (list, (void *) "test") ) ) {
  printf ("error\n");
}

I am getting error in the o/p.  Any clues as to what I am doing wrong?
 Any samples for all the List functions is greatly appreciated.

The doc for xmlListInsert [1] says that this function returns 0 if it
succeeds.

[1] http://www.xmlsoft.org/html/libxml-list.html#xmlListInsert

Cheers,

Kasimier




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