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
2 answers

CS107 Assignment file couldn't compile, missing expat.h and thread_107.h files

I was auditing cs107 at stanford online The problem I ran into is with assignment 6, when I type "make" in terminal, the error message pops up. Basically, I miss two header files, which I guess can be got from the pre-compiled .lib file. But somehow…
0
votes
4 answers

Python xml.dom and bad XML

I'm trying to extract some data from various HTML pages using a python program. Unfortunately, some of these pages contain user-entered data which occasionally has "slight" errors - namely tag mismatching. Is there a good way to have python's…
cwj
  • 2,473
  • 5
  • 28
  • 38
0
votes
2 answers

XML parsing expat in python handling data

I am attempting to parse an XML file using python expat. I have the following line in my XML file: <fail/> expat identifies the start and end tags but converts the & lt; to the less than character and the same for the greater…
pythonicate
  • 144
  • 1
  • 4
  • 13
-3
votes
2 answers

How to implement a parser in C for xml based structured language?

I need to implement a simple parser in C (or C++ if C is discouraged for this application) that will read a xml file which will only contain a few elements (that's why called it xml based) i.e., only 4 root elements and and less than 5 child…
1 2 3 4 5 6
7