xerces
Nim bindings for Apache Xerces-C++
Summary
| Latest Version | 0.1.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:27 |
Tags
Authors
- fox0430
Installation
nimble install xerces
choosenim install xerces
git clone https://github.com/fox0430/nim-xerces
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| xerces | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 2.0.6 | No |
Source
| Repository | https://github.com/fox0430/nim-xerces |
|---|---|
| Homepage | https://github.com/fox0430/nim-xerces |
| Registry Source | nimble_official |
README
nim-xerces
Nim bindings for Apache Xerces-C++.
Requirements
- Nim >= 2.0.6
- Apache Xerces-C++
Installtion
nimble install xerces
Usage
import pkg/xerces
const xmlData = """<?xml version="1.0"?>
<root>
<item id="1">Hello</item>
</root>"""
proc main() =
XMLPlatformUtils.initialize()
defer: XMLPlatformUtils.terminate()
let doc = parseXMLString(xmlData)
defer: doc.release()
let root = doc.getDocumentElement()
echo "Root: ", root.tagName()
for item in doc.getElementsByTagName("item"):
echo "Item: ", item.textContent()
when isMainModule:
main()
Build
nim cpp -r yourfile.nim
[!NOTE] Add the following lines to your .nimble
backend = "cpp"
License
MIT