1,525 questions
2
votes
1
answer
118
views
libxml2 DTD parsing from string fails on ATTLIST
I want to embed a DTD into a C++ application, parse the DTD and validate an XML document against it. However, when the DTD becomes large enough, the DTD parser fails. If I dump the same DTD into a ...
2
votes
2
answers
135
views
Perl XML::LibXML and Storable equals segfault?
When using the perl library Storable to store and retrieve XML::LibXML document objects, I get a segmentation fault. Specifically, once I use the LibXML routine findnodes. My question is: why, and is ...
0
votes
1
answer
70
views
libxml2 throws SIGFPE in debian 13
Consider this code:
// g++ xml.cpp -I /usr/include/libxml2 -lxml2
#include <libxml/xmlschemas.h>
#include <fenv.h>
int main() {
feenableexcept(FE_DIVBYZERO);
xmlParserCtxtPtr ctx ...
0
votes
1
answer
115
views
/usr/local/bin/xmllint: undefined symbol: xmlMemSize when compiling webkitgtk-2.46.3
During compilation of the latest stable release webkitgtk-2.46.3 I'm getting this error:
raphy@raohy:~/Downloads/webkitgtk-2.46.3$ cmake --build builddir/
[ 92%] Built target ...
0
votes
0
answers
73
views
Older versions of lxml and pandas on WIndows 10 in 2024
I've recently ran into an issue where I have to install an older (4.6.2) version of lxml to use an older version of pandas, however, when installing via pip install lxml==4.6.2, the wheel simply won't ...
0
votes
1
answer
74
views
Is redefinition of attribute values in extension allowed?
Does the official specification of XSD allow to re-define attribute values (with default/fixed) in derived types with <extension>?
Both MSXML and Xerces-C allow this, but not libxml2 (does not ...
2
votes
3
answers
3k
views
XML::LibXML not installing on ubuntu 22.04
I'm having trouble installing XML::LibXML with cpan on ubuntu 22.04.
I have installed libxml2 and zlib1g. And CPAN reports that it sees libxml2:
# Compiled against libxml2 version: 21303
# Running ...
0
votes
1
answer
119
views
Invalid XSD schema using libxmljs with NodeJS with flattened XSD
I want to validate an XML document against an XSD schema. I'm using libxmljs 0.33 with NodeJS 18.
I keep receiving this error:
Error: Invalid XSD schema
at createPDF (/root/workspace/app/apps/...
1
vote
1
answer
107
views
How to construct XML node from string with namespace?
I am trying to create a xmlNode from an XML string with xmlParseBalancedChunkMemory but when the XML string containing a prefix/namespace in it, libxml2 would throw error 201 (...
0
votes
2
answers
205
views
How to register default NS in libxml2 for C++?
Question: What is the correct way to register the default NS for XPath context?
I've gone through numerous posts (mostly non-C++ and Google search) about registering NS, but I cannot find anything for ...
0
votes
1
answer
158
views
libxml2 not pretty print if xml contains whitespaces?
I have the following sample XML. if I feed it to libxml2 without any formatting or whitespace in between, then it would pretty-print fine when calling xmlNodeDump() with 1:
const char *xml= "<...
1
vote
1
answer
4k
views
I encounter the error xmlsec.InternalError: (-1, 'lxml & xmlsec libxml2 library version mismatch')
When I run sentry devserver --workers on my computer, I encounter the error:
xmlsec.InternalError: (-1, 'lxml & xmlsec libxml2 library version
mismatch')
My computer is running MacOS m3 pro, ...
0
votes
0
answers
40
views
libxml2 How to keep tag and property's letter case In Parse
My libxml2 Version is 2.9.10
I tried to parse the HTML and find the SVG from it, and save it in file.
The work went smoothly.
However,I found the saved svg can't not render in browser.
I compared the ...
1
vote
0
answers
1k
views
libxml2 and libxslt development packages issue in Redhat Linux
I am trying to install python module shareplum on python3.8 and My machine is RHEL 6.10 , but getting below error while using command:
pip3.8 install shareplum
× Getting requirements to build wheel ...
0
votes
1
answer
265
views
Building libxml2 without root privilages
I am trying to build libxml2 on a high performance cluster where I don't have root privileges.
I do this with (first loading possible dependencies as instructed by someone who managed to install ...