Re: [xml] xmllint as filter?
- From: Elizabeth Mattijsen <liz dijkmat nl>
- To: Heiko Rupp <heiko rupp WiredMinds de>
- Cc: xml gnome org
- Subject: Re: [xml] xmllint as filter?
- Date: Fri, 23 Nov 2001 17:50:29 +0100
At 05:41 PM 11/23/01 +0100, Heiko Rupp wrote:
>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.
I'll keep that in mind. At the moment, the indexer is using expat. We're
seriously considering (well, at least I am ;-) moving to using libxml2. If
that moment comes, we'll probably create a support program that does this
this way in C (rather than the much more stupid Perl filter). Meanwhile,
the combination of xmllint and this stupid Perl filter, will work for us in
the meantime...
Thanks for the suggestion...
Elizabeth Mattijsen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]