1
0
Fork
You've already forked libxml
0
C library for xml parsing
  • C 95.5%
  • CMake 4.5%
2026年07月03日 23:04:36 +03:00
src Add files so I rember what to do 2026年07月03日 23:04:36 +03:00
.gitignore docs 2026年02月07日 20:37:03 +02:00
CMakeLists.txt init 2026年02月04日 21:14:33 +02:00
README.md readme stuff 2026年02月21日 13:35:56 +02:00

libxml

libxml is a C library used to parse xml files.

Building

To build the library follow these steps:

  1. clone the repo git clone https://codeberg.org/pizzuhh/libxml
  2. create a build directory and cd into it mkdir build cd ./build
  3. run cmake .. and make

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">