Questions tagged [expat-parser]

Expat is an XML parser library written in C

Expat is a stream-oriented XML parser. The programming model is based on handlers for patterns such as start tags that the parser finds in the XML document. Expat itself is written in C, but there are bindings for many languages.

94 questions
1
vote
1 answer

Why is libtool looking for .lib files instead of .a files?

I am in the process of cross-compiling Fontconfig for Windows using Mingw-w64 (the host is Ubuntu 12.04 64-bit). The process consists of the following steps: Compile and install the build dependencies (Freetype and eXpat). Run…
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
1
vote
2 answers

compiling libjingle, expat error

while installing libjingle, the installation halts because of a missing xmlparse.c this is the error part of the install... i do have xmlparse.c in the thirdparty/expat-2.0.1/lib/xmlparse.c, any idea what's wrong? File…
wolfgang
  • 7,281
  • 12
  • 44
  • 72
0
votes
1 answer

Error when trying to use XML::Parser under modperl2 - Could not load module

I've run into a problem when using XML::Parser under our modperl setup in production (on AIX 5.3). It works fine in development but fails on production with the following error: [Tue Apr 03 08:44:03 2012] [error] Can't load…
Nick
  • 2,418
  • 16
  • 20
0
votes
1 answer

Data extraction from cdata using expat in C

I am able to parse XML successfully, but I am facing probelm while extracting data from CDATA. For this, I am using XML_SetCdataSectionHandler(parser,CDATAstart,CDATAend). And by using this, my program can identify where the cdata exists but I am…
0
votes
2 answers

Parsing only part of a document with expat in PHP

I am building a website in PHP in which the content is stored in an XML file. Basically I have a single index.php page, which checks the querystring and serves the appropriate page from the XML. For example, entering www.mysite.com/?page=home would…
David John Welsh
  • 1,564
  • 1
  • 14
  • 23
0
votes
1 answer

How do I replace/update the version of the expat library used by Apache?

(Disclaimer: I just started using Linux and don't have much experience with configuring Apache and Python.) I have a rather common issue that is explained in more depth here http://code.google.com/p/modwsgi/wiki/IssuesWithExpatLibrary. Basically,…
Brian Schmitz
  • 1,023
  • 1
  • 10
  • 19
0
votes
3 answers

error at building libjingle on Mac OS X 10.7.2 like "error: string.h: No such file or directory"

I failed to build libjingle on Mac OS X 10.7.2. The output was the following when I run $path_to_swtoolkit/hammer.sh according to the README of libjingle. MBP17:talk rei25$ ~/Desktop/swtoolkit/hammer.sh scons: Reading SConscript files ... scons:…
chjlu
  • 1
  • 1
  • 2
0
votes
1 answer

Controlling number of bytes read() at a time with Expat

I'm parsing some XML using Python's Expat (by calling parser = xml.parsers.expat.ParserCreate() and then setting the relevant callbacks to my methods). It seems that when Expat calls read(nbytes) to return new data, nbytes is always 2,048. I have…
unwind
  • 391,730
  • 64
  • 469
  • 606
0
votes
0 answers

Example of unseting the handler while the libexpat parse is still in progress?

I'm trying to extract some fields from a very big XML file using libexpat. I want to stop the parser when all fields I needed are extracted. The documentation say that: Although handlers are typically set prior to parsing and left alone, an…
npsable
  • 13
  • 3
0
votes
1 answer

Expat c library XML schema validation

Does [Expat]https://libexpat.github.io/ c library parser can do the XML data validation against XML Schema Definition(XSD) like library Libxml2? Many thx!
0
votes
0 answers

How to prevent expat from automatically substituting entities?

Say I have an expat parser instantiated like so: def on_character_data(data): print(data) parser = xml.parsers.expat.ParserCreate(encoding=encoding) ... parser.CharacterDataHandler = on_character_data ... And an XML document like so:
midrare
  • 2,371
  • 28
  • 48
0
votes
4 answers

expat parser: memory consumption

I am using expat parser to parse an XML file of around 15 GB . The problem is it throws an "Out of Memory" error and the program aborts . I want to know has any body faced a similar issue with the expat parser or is it a known bug and has been…
sameer karjatkar
  • 2,017
  • 4
  • 23
  • 43
0
votes
1 answer

cmake .. -G "Visual Studio 16 2019" && msbuild /m expat.sln - failed

I'm trying to build expat library for 64-bit using VS 2019, for integrating with log4cxx. Downloaded the expat from here. Steps mentioned here are only linux. I tried to follow the steps mentioned in the package. But cmake is failing. There is no…
user3863360
  • 200
  • 7
0
votes
1 answer

C++ Expat prints only first letter of element and of data in tags

I am using Visual Studio 2017 and am learning to work with Expat (no option for using another XML parsing library at the moment) for the purpose of writing a function that will receive the tags nested in an XML tag and retrieving the string content…
Lotusmeristem
  • 53
  • 3
  • 13
0
votes
1 answer

Expat xml parser in python

When using expat xml parser in python, how can I get it store the parsed the xml data in a string or in a file or in any data structure. Please show me a way to accomplish how to parse and use the nodes of the xml data.
Mojo_Jojo
  • 939
  • 4
  • 13
  • 26