Nick Wellnhofer
d2b55a7a02
writer: Implement xmlTextWriterClose
...
This function can be used to make sure that closing the output stream
succeeded.
Fixes #513 .
2024-01-05 20:50:00 +01:00
Nick Wellnhofer
16b0dbc1b3
parser: Fix XML_ERR_UNSUPPORTED_ENCODING errors
...
Commit 45157261 added the check in the wrong place.
Also allow unsupported encoding in xmlNewInputInternal.
Fixes #654 .
2024-01-02 14:17:27 +01:00
Nick Wellnhofer
ecfbcc8a52
parser: Rework general entity parsing
...
Don't create a new parser context but reuse the existing one.
This exposes bug #601 in a more obvious way.
2023-12-25 23:38:40 +01:00
Nick Wellnhofer
6e3a2ac660
xinclude: Rework xml:base fixup
...
The xml:base fixup was broken in more complex cases.
Also avoid parsing and building the included URI multiple times.
2023-12-25 23:38:40 +01:00
Nick Wellnhofer
ed6596a47a
reader: Simplify error handling
...
Only use structured error handlers for parser, Schemas and RelaxNG
contexts. Also use structured error handler for XInclude context.
Remove TODO macro.
2023-12-21 02:46:27 +01:00
Nick Wellnhofer
89d19534de
encoding: Fix decoding of large chunks
...
After 95e81a36 , we must support XML_ENC_ERR_SPACE when using built-in
encoding handlers.
Should fix #610 .
2023-10-28 03:14:13 +02:00
Nick Wellnhofer
a9ada18352
tests: Start with testparser.c for extra tests
...
Several issues require customized tests. Start with a test that push
parses large documents. See #539 .
2023-10-22 14:24:43 +02:00