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
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 On Behalf Of Lara Blatchford
Sent: Monday, September 9,
On 9/7/19 12:37 AM, Liam R. E. Quin wrote:
On Fri, 2019-09-06 at 01:57 -0400, Webb Scales wrote:
The first issue is that the XML parser seems to balk entirely at the
fact that the document is preceded by a comment before the XML
declaration. (I'm less than shocked, but it is kind of
disappointi
On Mon, 2019-09-09 at 22:41 -0400, Webb Scales wrote:
> the
> fact remains that I don't control the text that I'm trying to parse,
> and I still need to parse it, even though it's not "well-formed".
You may need to write some form of pre-processor that fixes the
problems. As you say, that may red
I'm OK with making small on-the-fly "edits" to the input (such as
removing the initial comment, or removing all comments), but trying to
make my code discern the overall structure (such as picking out the
boundaries between the documents) is starting to step over into actually
parsing it, which
On Tue, 2019-09-10 at 00:29 -0400, Webb Scales wrote:
>
> If the TextReader didn't insist upon reading beyond the root end-tag,
All XML parsers do that, as the spec requires them to check if anything
follows it and raise an error if so.
Liam
--
Liam Quin - web slave for https://www.fromoldboo