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

Segmentation Fault (11) on httpd when python-ldap is initialized

I'm using mod_wsgi for a Django application (OSQA) on RHEL 5 with Python 2.43 (cannot upgrade). I had the site set up and working fine, and then tried to integrate the authentication with python-ldap for accessing Active Directory attributes e.g. a…
Alex
  • 11
  • 2
1
vote
2 answers

Expat-based xml parsing script not working on Linux, work on Windows

I'm writing a set of tool in python to extract data from some xml files that are generated by a traffic simulation software. As the resulting files can be quite big I use the xml.parsers.expat to parse them. The issue is, when I run my scripts at…
thomas
  • 1,855
  • 4
  • 17
  • 19
1
vote
0 answers

compile expat 2.0.0 with arm-linux-androideabi android ndk toolchain

I want to build expat 2.0.0 for arm-linux-androideabi with a toolchain from Android NDK. I use Centos 7, x86_64. My configure step seems to…
Andrea S.
  • 41
  • 5
1
vote
0 answers

How to Compile GPX Read Support into a C# Project (Using OGR/GPX Driver)?

When I throw the path to a GPX file to OSGeo.OGR.Ogr.Open(), I get null back instead of a populated DataSource. In my situation, I believe this is happening because I'm not building my OGR/GPX driver with read support (that's what my log file says,…
1
vote
1 answer

XML CharacterDataHandler callback unpextedly called multiple times

I'm learning about libexpat. I cobbled together this example for basic familiarity using the API: The Code: #include #include #include #include void start(void* userData, const char* name, const char*…
StoneThrow
  • 5,314
  • 4
  • 44
  • 86
1
vote
2 answers

using expat startelement handler C++

I am using expat to read an xml file. I want to populate some of my class member variables from the configruation specified in thexml file. I have defined my startelement handler, void Start(void *data,const XML_Char *el, const XML_Char…
Aneev
  • 11
  • 4
1
vote
2 answers

GDB configure script cant find expat, is there a way to specify where to find it?

OS: CentOS 7 GDB-7.11 I need GDB-7.11 because there is finally support for thread names to appear in the debugger on a remote debug session. I can not get the thread names to show up, however and I believe it is because when I run GDB I am getting…
Jared Sanchez
  • 67
  • 1
  • 10
1
vote
0 answers

ImportError xml.parsers.expat does not work

I have a simple script that import xml.parsers.expat, that works fine if it is executed by command line. But if I call it using subprocess.call(python import-expat.py, shell=True) it does not work. The script is: #! /usr/bin/env python import…
CodeIK
  • 177
  • 1
  • 14
1
vote
1 answer

C++ Expat XML tag support

I can't find any documentation about what the expat-parser does and does not support in terms of XML tags. I know that in the general case expat lets the event handlers (implemented by the user) deal with the tags, but specifically I would like to…
Maria
  • 565
  • 6
  • 20
1
vote
1 answer

Python.expat can't parse XML file with bad symbols. How to go around?

I'm trying to parse an XML file (OSM data) with expat, and there are lines with some Unicode characters that expat can't parse:
culebrón
  • 34,265
  • 20
  • 72
  • 110
1
vote
1 answer

Parsing XML in Python using Expat

Background: I'm coming from C#-land, so I'm looking for something like being able to handle nodes and values by selecting via Xpath. Here's my code, so far: import urllib import sys from xml.parsers import expat url =…
bitcycle
  • 7,632
  • 16
  • 70
  • 121
1
vote
1 answer

C++ std::map std::bitset segfault

I have this code: static void XMLCALL hackHandler(void *data, const XML_Char *name, const XML_Char **attr) { SetPointers* sets = static_cast(data); if (strcmp(name, "instruction") == 0 || strcmp(name, "load") == 0 || strcmp(name,…
adrianmcmenamin
  • 1,081
  • 1
  • 15
  • 44
1
vote
0 answers

expat.redist in nuget deploys the wrong DLL

I have added the Nuget/Coapp package for Expat (https://github.com/coapp-packages/expat) to my Visual C++ 2012 project. The project is using the Unicode charset and I finally found where I configure the Expat build rules (Project properties >…
Christoph
  • 1,964
  • 2
  • 27
  • 44
1
vote
1 answer

Expat (C) - "invalid token" for (nearly) every line

I have some XML I am trying to process with Expat in C. The XML can be parsed in Java so I have no reason to believe it is malformed. Further, the C code I have will parse a string literal I plug in "by hand" - but it fails to parse my XML…
adrianmcmenamin
  • 1,081
  • 1
  • 15
  • 44
1
vote
1 answer

Expat prints out garbage when I print to screen or file

When I print out information from my XML document I get �� before each line. Here is my XML document. Tove Jani Reminder Don't forget me this…
OshaMan
  • 111
  • 6