xml

Pure Nim XML parser

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install xml
choosenim install xml
git clone https://github.com/ba0f3/xml.nim

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
xml - - - - - - -

Source

Repository https://github.com/ba0f3/xml.nim
Homepage https://github.com/ba0f3/xml.nim
Registry Source nimble_official

README

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