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

What is an XML parser? Using Expat

This might seem like a simple question. But I have been looking for an XML parser to use in one of my applications that is running on Linux. I am using Expat and have parsed my XML file by reading one in. However, the output is the same as the…
ant2009
  • 27,094
  • 154
  • 411
  • 609
0
votes
2 answers

how to compile an expat xml parsing in c Program? and where to install the expat. where to put the files in cygwin compiler

This is my first time using external headers and i have no idea about expat. Expat official website is not useful for a beginner. i need to compile a XML parser code in C using expat.h. i have downloaded expat files and included the path in header…
Ashwant Manikoth
  • 355
  • 3
  • 17
0
votes
2 answers

unable to parse data as i am getting an expatParser Exception

guys Following is the xml which i am trying to parse
abhishek
  • 1,434
  • 7
  • 39
  • 71
0
votes
1 answer

How to initialize the class only once and retain the overidden properties in python

I am carrying out XML parsing for a list of XML files. I am using a module which overrides the XMLParser class of element tree. This is the code- import sys sys.modules['_elementtree'] = None try: sys.modules.pop('xml.etree.ElementTree') except…
shweta
  • 107
  • 2
  • 14
0
votes
1 answer

Confirming existence of a string in an xml table Lua

Good afternoon everyone, My problem is that I have 2 XML lists String and String. In Lua I need to create a program which is parsing this list and when the user inputs a matching…
0
votes
0 answers

Parsing with Expat in C, how to read correct amount of chunk from xml document

Fellow Programmers, I searched the forum , but couldn't find answer to my problem. I am trying to parse 2 GB xml file in C using expat, here snippet from my code ( I have removed most of the part which does not relate to my problem ), void…
Sarwesh Suman
  • 141
  • 2
  • 4
0
votes
0 answers

gdb building with expat

I can't seem to get the syntax right for building gdb on Windows 10 (mingw), with expat. I downloaded expat sources and had no problems building. The expat.h file is in /usr/local/include and the expat library (libexpat.a and libexpat.dll.a) ended…
Batdude
  • 556
  • 7
  • 19
0
votes
2 answers

How to ignore mismatched tags while parsing xml in Python

I want to parse an XML file with Python. I don't need the hierarchical tag structure -- all I want is a simple SAX or Expat-based parser. However, they both fail with mismatched tag-related error messages when the XML file is not well formed. Is…
David Nemeskey
  • 640
  • 1
  • 5
  • 16
0
votes
1 answer

making the xar utility use expat instead of libxml2

From the xar utilities source code, it looks like it can use either the expat or libxml2 XML parsers #if HAVE_LIBXML_XMLREADER_H #include #elif HAVE_BSDXML_H #include #elif HAVE_EXPAT_H #include How do…
SivaDotRender
  • 1,581
  • 4
  • 21
  • 37
0
votes
1 answer

Installing expat XML Parser to utilize bluetooth in arm board

hi I am a beginner as programmer so ,in advance, appreciate for you patience to understand what I wrote. I'm trying to cross-compile the bluetooth libraries. Device is an arm-processor board, and my cross-compiler is arm-none-linux-gnueabi-gcc I…
user4948978
  • 11
  • 1
  • 3
0
votes
2 answers

how to link a library path while invoking an application in linux

I am currently working on graphviz in linux environment and i am new to linux. By using the below command i am trying to generate an svg file from the below listed input dot file.(i have installed graphviz 2.38.0) and the current user is having full…
Bijoy Bahuleyan
  • 81
  • 1
  • 1
  • 11
0
votes
1 answer

Getting "not well-formed (invalid token)" error from expat library

I'm trying to parse some XMPP with expat library. I have input file like: But there is error "not well-formed (invalid token)" every time I use…
Max Pashkov
  • 404
  • 1
  • 3
  • 12
0
votes
1 answer

how to append,add,update and delete node from xml using expat in php

I am the new in php. And i want to parse xml into database. I tried this using DomDocument. But my friends suggest me to use expat2 parser. I googling for it but not the get the proper answers and only get the example for reading the xml. But i want…
Umesh
  • 11
  • 4
0
votes
2 answers

Yahoo BOSS Python Library, ExpatError

I tried to install the Yahoo BOSS mashup framework, but am having trouble running the examples provided. Examples 1, 2, 5, and 6 work, but 3 & 4 give Expat errors. Here is the output from ex3.py: gpython examples/ex3.py examples/ex3.py:33:…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
0
votes
1 answer

How to use expat-parser with Russian charsets?

I tried to use expat for XML parsing, and I have Russian symbols in XML file, this symbols incorrectly interpret by expat. I got expired_str: Р СѓСЃСЃРєРёР№ текст Instead of: Русский текст Here is my cutted code: …
Yury Bushev
  • 642
  • 9
  • 25