Re: [xml] XSD Validation succeeds with xmllint but fails with libxml2, how do I fix this?



Hi Remi,

thanks for your quick reply!

…strangely enough, this makes no difference for the outcome for me. :(
Console output remains the same, bit by bit.

Cheers

Ps: I applied your patch to the stack overflow code snippet, as it makes sense, yet retains the error.

On Jun 9, 2011, at 12:53 PM, Remi Gacogne wrote:

On Thursday, June 09, 2011 12:37:58 PM Mastertree wrote:

> Anybody in here have an idea?
>
> Cheers and thanks in advance!

--- main.c.orig 2011-06-09 12:51:06.000000000 +0200
+++ main.c 2011-06-09 12:51:16.000000000 +0200
@@ -68,7 +68,7 @@
goto leave;
}

- validCtxt = xmlSchemaNewValidCtxt(NULL);
+ validCtxt = xmlSchemaNewValidCtxt(schema);

if (!validCtxt) {
fprintf(stderr, "Could not create XSD schema validation context.\n");


--
Rémi Gacogne
R&D Core Engineer

Deny All
63 ter, avenue Edouard Vaillant
92100 Boulogne Billancourt
France





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