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
20
votes
4 answers

Apache Httpd Build from source: fatal error: expat.h: No such file or directory

I am trying to build Apache Server v 2.4.38 on RHEL 7.3 and I am using apr 1.6.5, apr-util 1.6.1, and pcre 8.42. I am running following commands ./configure --with-included-apr --with-pcre=/data/abc/installed/pcre_installed…
Amit Dube
  • 947
  • 4
  • 10
  • 23
19
votes
8 answers

Can I enforce the order of XML attributes using a schema?

Our C++ application reads configuration data from XML files that look something like this: ... …
Mike Willekes
  • 5,960
  • 10
  • 33
  • 33
17
votes
2 answers

Libtool claims it does not support shared libraries during cross compilation

I'm attempting to build the expat (2.0.0) XML parsing library for an ARM embedded machine running busybox 1.13, and during the ./configure, I get the error: checking if libtool supports shared libraries... no I've specified my gcc, g++, ar, ranlib,…
Alex Marshall
  • 10,162
  • 15
  • 72
  • 117
14
votes
6 answers

How to install XML::Parser without expat-devel?

XML::Parser fails to build on a quite fresh 64-bit Debian box. After issuing cpan XML::Parser, cpan fails with lots of errors about Expat.c and Expat.xs: [...] Expat.xs:2182: error: ‘CallbackVector’ has no member named ‘skip_until’ Expat.c: In…
Alois Mahdal
  • 10,763
  • 7
  • 51
  • 69
7
votes
1 answer

libxml2 vs expat for an XMPP server

I'm trying to create an XMPP library (and later a server) from scratch in Go (although the language itself is irrelevant) as a means to learn what I can about the XMPP protocol and server software development in general. As many of you know, XMPP is…
hannson
  • 4,465
  • 8
  • 38
  • 46
6
votes
2 answers

Haskell parse big xml file with low memory

So, I've played around with several Haskell XML libraries, including hexpat and xml-enumerator. After reading the IO chapter in Real World Haskell (http://book.realworldhaskell.org/read/io.html) I was under the impression that if I run the following…
Sean Clark Hess
  • 15,859
  • 12
  • 52
  • 100
6
votes
2 answers

Geting xml data using xml parser expat

I have managed to parse ok. But now I am having trouble getting the values that I need. I can get the element and the attributes. But cannot get the values. I would like to get the value of frame in this xml it is 20. /* track the current level in…
ant2009
  • 27,094
  • 154
  • 411
  • 609
5
votes
1 answer

Python interpreter takes ~12 seconds to start up, all of which is spent in `import pyexpat`

I am using a Homebrew-installed Python on my Mac (running OS X 10.13.1), and of late, I’ve noticed that the interpreter takes a frustratingly long time to start up. In setting out to try to solve this problem, I did a simple check with…
fish2000
  • 4,289
  • 2
  • 37
  • 76
5
votes
2 answers

Python + Expat: Error on � entities

I have written a small function, which uses ElementTree and xpath to extract the text contents of certain elements in an xml file: #!/usr/bin/env python2.5 import doctest from xml.etree import ElementTree from StringIO import StringIO def…
clacke
  • 7,688
  • 6
  • 46
  • 48
4
votes
2 answers

Gracefully recover from parse error in expat

XML is supposed to be strict, and so there are some Unicode characters which aren't allowed in XML. However I'm trying to work with RSS feeds which often contain these characters anyway, and I'd like to either avoid parse errors from invalid…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
4
votes
2 answers

PHP XML Expat parser: how to read only part of the XML document?

I have an XML document with the following structure: hello client hello client how can I help?
razz
  • 9,770
  • 7
  • 50
  • 68
4
votes
1 answer

ExpatError: no element found - Python script

Using OS X 10.6.8, libxml 2-2.7.8, libxslt-1.1.26, and python 2.6, I'm trying to run the tumblrRestore.py script linked here: https://github.com/hughsaunders/Tumblr-Restore/blob/master/tumblrRestore.py It ran successfully and restored 76 posts…
user1395079
  • 41
  • 1
  • 2
3
votes
1 answer

Android parsing an xml with saxparser

I am trying to parse an xml file withSaxParser on Android. This is my xml file:
michele
  • 26,348
  • 30
  • 111
  • 168
3
votes
1 answer

expat undefined reference to `XML_SetElementHandler'

I am getting these linker errors when i build my program using expat xml library . 3288 /tmp/ccFZziQa.o: In function `xml::node::load_xml(std::__cxx11::basic_string, std::allocator >)': 3289…
aks
  • 35
  • 1
  • 4
3
votes
1 answer

Including the Expat library in Visual Studio 2013

I've downloaded a copy of Expat 2.0.1, which is basically a bunch of .h and .c files (see the complete directory in the screenshot below). To add the library to the VS 2013 project I'm working on, I went to Properties -> Configuration Properties ->…
Adam
  • 8,752
  • 12
  • 54
  • 96
1
2 3 4 5 6 7