Re: [xml] parsing a DTD to get elements and attributes



Thx.

Hmm, I can´t still figure out how to get
the descriptions of my DTD elements..
valid.c does not help very much for me.

  dtd = xmlParseDTD(NULL, (const xmlChar *) "my.dtd");
  ...

  elem = xmlGetDtdElementDesc(dtd, "MyElementName");
  while (elem != NULL)
  {
     printf("%s\n", elem->content->name);
     elem = elem->next;
  }

-> CORE DUMP





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