Re: schema validation with entities

Lara Blatchford <[email protected]> Mon, 9 Sep 2019 19:11:21 +0000
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <MWHPR22MB0877F8E37F81DD42C3C7C1FD9CB70@MWHPR22MB0877.namprd22.prod.outlook.com>
I figured out that I was going off-course with this question.  I was able to set replaceEntities to 1 in my xmlParserCtxt and my schema validation issues went away since the entities were already replace by the time I validated.

From: xml <[email protected]> On Behalf Of Lara Blatchford
Sent: Monday, September 9, 2019 11:35 AM
To: [email protected]
Subject: [xml] schema validation with entities


Good morning - is there any way to successfully execute schema validation on XML containing entity definitions/references with libxml2 *without* substituting the entities yourself?  I notice xmllint produces the same error I'm getting in my code:

ent_exp3.xml:8: element fruit: Schemas validity error : Internal error: xmlSchemaVDocWalk, there is at least one entity reference in the node-tree currently being validated. Processing of entities with this XML Schema processor is not supported (yet). Please substitute entities before validation..
fruits_ent_exp3.xml validation generated an internal error


Thanks,
Lara

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml