[xml] Parse html file using libcurl xml parser



Hi,


The original html tag is

  <meta name="keywords" content="a, abercrombie, art nouveau, a, art glass, ebay, online shopping, online auction" /><meta name="XslBuildInfo" content="2005-08-22 10:18:29,," />
 
I parsed the above tag using libxml parser, the code as following

  if ((!xmlStrcmp(cur->name, (const xmlChar *)"meta")))
          {
               
               uri = xmlGetProp(cur, reinterpret_cast<unsigned char*>("name"));
               printf("uri: %s\n", uri);
               xmlFree(uri);
          }

it gives the output as

uri: keywords


but i want to get the keywords content  i.e, a, abercrombie, art nouveau, a, art glass, ebay, online shopping, online auction.

How do i proceed?

Advanced thanks for your reply.

Regards,
Inbakumar.G





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