matthew at linuxfromscratch.org
Fri Aug 6 16:27:11 PDT 2004
On Fri, 06 Aug 2004 09:42:09 -0700
"Kevin P. Fleming" <kpfleming at linuxfromscratch.org> wrote:
> Jamie Bennett wrote:
> > "In a nutshell the XmlTextReader API provides a simpler, more
> > standard and more
> > extensible interface to handle large documents than the existing SAX
> > version."
> Yes, I've use XmlTextReader in .NET applications. It's easy to work
> with. I haven't implemented entity callbacks and things like that, but
> they are pretty straightforward to do.
> Also note that we should move to Relax-NG for profile validation in
> the future, and thus validation during the profile load will be a
> non-issue (well, I don't believe there's an easy way to do Relax-NG
> validation in libxml2, but there may be).
I'm probably stating the obvious here but
http://www.xmlsoft.org/html/libxml-relaxng.html has the
functions/structures you should need to do Relax-NG validation using
libxml2. From a very brief skim-read of it then xmlRelaxNGValidateDoc()
would sound like a decent candidate :)
More information about the alfs-discuss