Nick Wellnhofer
4135ceea75
meson: Run Python tests
2025-03-14 03:27:31 +01:00
Nick Wellnhofer
696572248f
globals: Remove unused globals
...
- xmlBufferAllocScheme
- xmlDefaultBufferSize
- xmlParserDebugEntities
2025-03-05 12:24:38 +01:00
Nick Wellnhofer
92d7b0cd90
xpath: Rename valuePush and valuePop
2025-03-05 12:24:38 +01:00
Nick Wellnhofer
03be993ce5
Use memcpy to avoid pointer cast warnings
2025-03-05 12:24:38 +01:00
Nick Wellnhofer
85bd58ef56
globals: Remove functions related to global state handling
...
- xmlGetGlobalState
- xmlInitializeGlobalState
- xmlGetThreadId
- xmlIsMainThread
2025-03-04 17:38:10 +01:00
Nick Wellnhofer
03a8d5f93d
unicode: Make Unicode functions private
2025-03-04 17:31:11 +01:00
Nick Wellnhofer
361f7bff92
parser: Make nodePush, nodePop, namePush, namePop private
2025-03-04 16:47:14 +01:00
Nick Wellnhofer
e50d314a27
build: Add separate configuration option for RELAX NG
...
Support for RELAX NG used to be enabled together with XML Schema support
(--with-schemas). Now there's a separate option and a new feature macro
LIBXML_RELAXNG_ENABLED.
2025-03-01 15:18:20 +01:00
Nick Wellnhofer
6fc260760a
regexp: Hide debugging code behind DEBUG_REGEXP
...
xmlRegexpPrint is now a deprecated no-op.
2025-02-22 20:55:06 +01:00
Jan Alexander Steffens (heftig)
064a02114a
meson: Fix Python module build
2025-02-20 13:53:25 +01:00
Jan Alexander Steffens (heftig)
c2e2d76211
python: Pass destination dir to generator.py
...
Simplify usage across build systems.
2025-02-20 13:53:25 +01:00
Nick Wellnhofer
cd220b93d8
valid: Remove duplicate error messages when streaming
2024-12-28 11:55:24 +01:00
Nick Wellnhofer
7ca75b321f
python: Declare init func with PyMODINIT_FUNC
2024-12-07 15:12:15 +01:00
Nick Wellnhofer
0dc26910c1
parser: Deprecate more internal functions
2024-11-21 22:31:20 +01:00
Nick Wellnhofer
e2ad249c23
parser: Deprecate more internal symbols
...
- xmlParseExternalSubset
- xmlPushInput
- xmlPopInput
- xmlCopyCharMultiByte
- xmlCreateEntityParserCtxt
- xmlStringComment
2024-11-19 00:25:23 +01:00
Yegor Yefremov
513949293d
python/tests: fix typos
...
Typos were found with codespell.
2024-10-15 11:11:38 +02:00
Satadru Pramanik
c7b2786676
Avoid Python 'licence' distribution option is deprecated; use 'license' error
2024-10-12 11:55:50 +00:00
Nick Wellnhofer
c34d0ae9cc
html: Deprecate htmlIsBooleanAttr
2024-10-06 20:04:00 +02:00
Nick Wellnhofer
6040785ac4
html: Deprecate AutoClose API
2024-10-06 20:04:00 +02:00
Nick Wellnhofer
e179f3ec0e
html: Stop reporting syntax errors
...
It doesn't make much sense to keep the old syntax error handling which
doesn't conform to HTML5.
Handling HTML5 parser errors is rather involved and not essential for
parsers.
2024-10-06 20:04:00 +02:00
Nick Wellnhofer
c46b89e243
xpath: Deprecate xmlXPathEvalExpr
...
Also check the argument instead of crashing if there's no context.
2024-09-13 21:06:36 +02:00
Nick Wellnhofer
40abebbc73
python: Fix SAX driver with character streams
...
This apparently broke with Python 3.5 which introduced character
streams.
Fixes #790 .
2024-08-29 01:31:26 +02:00
Nick Wellnhofer
eb66d03ef7
io: Deprecate a few functions
2024-07-16 17:42:10 +02:00
Nick Wellnhofer
69f12d6d47
encoding: Deprecate xmlByteConsumed
...
This was only used by Chromium/WebKit to detect whether xmlParseContent
really succeeded. It's a horrible, overcomplicated hack.
See 8c5848bd and #767 .
2024-07-13 15:42:02 +02:00
Nick Wellnhofer
ec0881099b
parser: Upgrade XML_IO_NETWORK_ATTEMPT to error
...
Fixes XML::LibXML test suite.
2024-07-04 15:47:20 +02:00
Nick Wellnhofer
30ef77554b
parser: Don't use deprecated xmlCopyChar
2024-07-02 13:34:11 +02:00
Nick Wellnhofer
cc0cc2d3b7
parser: Add more parser context accessors
2024-06-27 14:45:33 +02:00
Nick Wellnhofer
c5750fc6a7
python: Switch to xmlCtxtSetErrorHandler
2024-06-27 14:44:55 +02:00
Nick Wellnhofer
3ff8a2c4b8
parser: Deprecate xmlIsLetter
2024-06-27 14:43:10 +02:00
Nick Wellnhofer
c2ccbc0fed
meson: Implement option dependencies
...
This also removes the FreeBSD hack.
2024-06-21 23:13:17 +02:00
Rosen Penev
5d542feff1
libxml: define ATTRIBUTE_UNUSED for clang
...
Silences warnings under Clang on Windows.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-20 15:24:15 -07:00
Nick Wellnhofer
1112699cfa
legacy: Remove most legacy functions from public headers
...
Also remove warning messages.
2024-06-17 15:47:42 +02:00
Nick Wellnhofer
2608baaf92
parser: Make failure to load main document a warning
...
Revert the change that made failures to load the main document an error.
This fixes the --path option of xmllint and xsltproc.
Should fix #733 .
2024-06-14 20:06:07 +02:00
Nick Wellnhofer
b34dc1e4a3
tree: Deprecate xmlBuffer members
2024-06-13 18:09:17 +02:00
Nick Wellnhofer
712a31abe4
parser: Deprecate most public struct members
...
This will probably cause many warnings in downstream code abusing
libxml2 internals, but we can always undeprecate some members later.
2024-06-13 18:04:34 +02:00
Nick Wellnhofer
669bd34993
xpointer: Remove support for XPointer locations
...
The latest spec for what it essentially an XPath extension seems to be
this working draft from 2002:
https://www.w3.org/TR/xptr-xpointer/
The xpointer() scheme is listed as "being reviewed" in the XPointer
registry since at least 2006. libxml2 seems to be the only modern
software that tries to implement this spec, but the code has many bugs
and quality issues.
If you configure --with-legacy, old symbols are retained for ABI
compatibility.
2024-06-12 18:20:01 +02:00
Nick Wellnhofer
dba1ed85a3
ftp: Remove FTP support
...
Remove the built-in FTP client. If you configure --with-legacy, old
symbols are retained for ABI compatibility.
2024-06-12 18:19:55 +02:00
Nick Wellnhofer
1b1e8b3c12
io: Stop invoking generic error handler for IO errors
2024-06-12 16:14:15 +02:00
Rosen Penev
f227086380
meson: convert boolean options to feature option
...
Simpler. Seems like they're only disabled by minimum.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-06-06 17:13:41 -07:00
Nick Wellnhofer
1ae68e40df
python: Fix build with disabled modules
2024-06-06 22:55:15 +02:00
Nick Wellnhofer
bd7cafdbce
meson: Add some TODO comments
2024-05-20 23:59:55 +02:00
Nick Wellnhofer
592546267f
threads: Deprecate remaining ThrDef functions
2024-05-14 15:44:50 +02:00
Nick Wellnhofer
fdc5ff3657
parser: Always throw entity errors if external DTD is loaded
...
When parsing with XML_PARSE_DTDLOAD, missing entities are always an
error.
Also consolidate behavior when validating. See b717abdd.
2024-05-03 11:52:54 +02:00
Nick Wellnhofer
ae23a4ce56
unicode: Deprecate most xmlUCSIs* functions
...
These don't seem to be used by downstream code.
2024-04-30 17:42:59 +02:00
Nick Wellnhofer
bffef46c4c
doc: Don't install example code
2024-04-28 22:58:06 +02:00
Nick Wellnhofer
1cdfece12b
memory: Remove memory debugging
...
This is useless compared to sanitizers or valgrind and has a
considerable performance impact if enabled accidentally.
2024-04-28 20:42:55 +02:00
Nick Wellnhofer
88169bfda6
tree: Deprecate xmlSetCompressMode
2024-04-28 19:30:39 +02:00
Nick Wellnhofer
05654cfe00
html: Deprecate htmlHandleOmittedElem
2024-04-28 18:58:27 +02:00
Nick Wellnhofer
b717abdd09
parser: Consolidate error handling for undeclared entities
...
Always use XML_WAR_UNDECLARED_ENTITY with warning error level in
documents with external subset or parameter entities. Use
XML_ERR_UNDECLARED_ENTITY otherwise.
2024-04-23 18:36:15 +02:00
Vincent Torri
5732ce56f3
meson: Initial commit
2024-04-04 12:23:39 +02:00