Re: [libxml++] Schema validation with libxml++



On Mon, 2007-06-11 at 15:57 +0200, MARZULLO Laurent Ext DF/DCGC wrote:
> Hello,
> 
> Ok, I've tried to apply this patch to libxml++-2.12.0 but it failed.
> I've patch manually but it seems that "schema.h" is not found while
> Compiling libxml++
> 
> In file included from schemavalidator.cc:8:
> ../../libxml++/validators/schemavalidator.h:12:29 libxml++/schema.h: No such
> file or directory
> 
> I've tried to download 2.18 but schema.h does not seem to be in.
> Do you know where I can find this file ? (and schema.cc also)

In general, please comment about bugs and patches in bugzilla, so we can
see the information when reviewing patches. The schema.h file is in the
original patch, but I have failed to include it in my revised patch.

I don't recommend just patching libxml++ and relying on the resulting
patched code. Some more thought needs to go into this patch so that the
functionality can be included in a future libxml++ version.

If you really need this in an application, you should probably use the C
API together with the cobj() functions of libxml++ objects.

Murray wrote:
> There is a patch in bugzilla for this, but I'm not sure if it's the
> right approach:
> http://bugzilla.gnome.org/show_bug.cgi?id=312216
> 
> Isn't the Schema just named in the XML file, instead of a DTD file? If
> so, I would expect the validation to happen (optionally) when parsing
> the document, as we do for DTD-based XML files.
> 
-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com





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