converters/xml2c 20151019_2 DragonFly
Convert an XML file into C struct/string declarations
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- BSD2CLAUSE
- Categories
- converters
- Package size
- 7.4 KiB, 13.5 KiB installed
Description
xml2c reads in an XML file and produces equivalent C source code, suitable for #including in your program. The C version is probably easier deal with in your code. You don't have to read and parse the XML file and then look for the nodes you want; instead you just loop through a bunch of structs. Or maybe you just don't want to distribute extra files with your app, and would rather build them into the executable.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | converters/xml2c | 20151019_2 |
| FreeBSD | converters/xml2c | 20151019_3 |
| MidnightBSD | converters/xml2c | 20151019_1 |
| HardenedBSD | converters/xml2c | 20151019_3 |
| GhostBSD | converters/xml2c | 20151019_3 |
Install
Binary package:
pkg install xml2c
From DPorts:
cd /usr/dports/converters/xml2c && make install clean
Dependencies
Run dependencies 1
No port depends on this one.