KaiSzuttor / YAXP

Yet Another XML Parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yet Another XML Parser

This is a fun project with the goal of learning about parser implementations.

Build

Simple

In the project root:

mkdir build
cd build
cmake ..
make

Build with doxygen documentation

In the build directory:

cmake .. -DENABLE_DOXYGEN=TRUE
make
make doxygen-docs

The documentation can be found in the html directory. To view the documentation just open html/index.html with any browser.

Run

Run tests

cd build
ctest

Use the eval tool

cd build/src
./eval ../../data/data.xml ../../data/operations.xml > results.xml

Things that can be improved

  • The tests are very verbose and could benefit from implementing a comparison operator for the XML elements and the XML document,
  • The tests currently read from the file system which is an unnecessary dependency on hardware. Better: read from a hardcoded string or similar,
  • Tests for the evaluation function are missing.

About

Yet Another XML Parser


Languages

Language:C++ 73.4%Language:CMake 26.6%