No description
Find a file
2023-05-31 10:45:48 +07:00
.github fixes #3 2021-06-13 10:53:44 +07:00
fuzz require tag close before text 2023-05-31 10:45:05 +07:00
src require tag close before text 2023-05-31 10:45:05 +07:00
tests add harness for AFL++ fuzzing 2022-09-20 00:04:38 +07:00
.travis.yml fixes for Nim 0.20.0, closes #1 2019-06-13 11:36:25 +07:00
README.md add selector query engine, a modified version of q.nim 2018-08-16 13:47:22 +07:00
xml.nimble Merge pull request #4 from ringabout/patch-1 2023-05-31 10:45:48 +07:00

xml.nim

Simple XML parser in pure Nim

This module written for compile time XML parsing purpose, it supports only some features:

  • Nodes
  • Atrributes
  • CDATA and Text

The parser is simple and small, no error checking/correcting. Use it as your own risk*

If you need a more powerful XML/HTML parser, consider using parsexml

This module contains a modified version of my q.nim module, named selector.

Just import xml/selector to use it

Usage:

import xml, xml/selector

var d = q($readFile("test.html"))


assert d.select("head *").len == 2
echo d.select("head *")