Re: [xml] xmllint as filter?



Elizabeth Mattijsen wrote:

P.S. At this point I don't care whether it would be accepted as a patch or not. I would just like to get a little C hacking experience again... ;-)

Why don't you then just write a little C program that basically does
the following

dtd=xmlParseDTD(NULL,"/path/to/dtd");

while(1) {
  read buffer
  doc=xmlParseMemory(buffer,sizeof(buffer))
  correct=xmlValidateDtd(doc,dtd);
  if(correct)
     copy buffer to output stream
}

It needs a little more than this, but I think it shows the idea.

--
Heiko W. Rupp
Project Management
WiredMinds Informationssysteme GmbH
Wilhelmsplatz 11
D-70182 Stuttgart

Email: Heiko Rupp WiredMinds de            Phone: +49 711 49048-232
Mobile: +49 172 7471 438                   Fax:   +49 711 49048-111




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