C library for xml parsing
- C 95.5%
- CMake 4.5%
| src | Add files so I rember what to do | |
| .gitignore | docs | |
| CMakeLists.txt | init | |
| README.md | readme stuff | |
libxml
libxml is a C library used to parse xml files.
Building
To build the library follow these steps:
- clone the repo
git clone https://codeberg.org/pizzuhh/libxml - create a build directory and cd into it
mkdir buildcd ./build - run
cmake ..andmake
How to use and why to use this library?
This library is basic. It's not designed to cover the enitre xml specification but just what I know about xml. I do plan on evolving this library to make it usable for almost every use case where xml can be used.
About html. This parser can parse html but with few exceptions. Before you plan on using this library with html file make sure the html follows this:
- Close every node. Some nodes like
<input>don't need closing, but in xml they do need to be closed!<input/> - Remove
<!DOCTYPE html>at the beginning. This parser doesn't support that. - Make sure values of key-value pairs are quoted. (e.g.
<something key="value">