Content-Length: 263785 | pFad | http://github.com/ba0f3/xml.nim

17 GitHub - ba0f3/xml.nim: Simple XML parser in pure Nim
Skip to content

ba0f3/xml.nim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/ba0f3/xml.nim

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy