Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epeios-q37/xppq-cli
The Epeios XML preprocessor with command-line interface
https://github.com/epeios-q37/xppq-cli
Last synced: 24 days ago
JSON representation
The Epeios XML preprocessor with command-line interface
- Host: GitHub
- URL: https://github.com/epeios-q37/xppq-cli
- Owner: epeios-q37
- License: agpl-3.0
- Created: 2017-04-08T16:10:34.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2022-06-08T06:48:26.000Z (over 2 years ago)
- Last Synced: 2024-11-18T02:44:36.673Z (about 2 months ago)
- Language: C++
- Size: 555 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# The *XPPq* command-line tool
[![MacOS](https://github.com/epeios-q37/xppq-cli/actions/workflows/MacOS.yml/badge.svg)](https://github.com/epeios-q37/xppq-cli/actions/workflows/MacOS.yml) [![Ubuntu](https://github.com/epeios-q37/xppq-cli/actions/workflows/Ubuntu.yml/badge.svg)](https://github.com/epeios-q37/xppq-cli/actions/workflows/Ubuntu.yml) [![Windows](https://github.com/epeios-q37/xppq-cli/actions/workflows/Windows.yml/badge.svg)](https://github.com/epeios-q37/xppq-cli/actions/workflows/Windows.yml)
## Description
*XPPq* is a command-line tool which transforms an [*XML*](//q37.info/s/s3jtm3c9) file to another *XML* file, following directives inserted directly in the source *XML* file. This directives allow to handle macros, to affect value to variables and to test their values, to include files… In a glance, *XPPq* aims to be to *XML* what [*CPP*](//q37.info/s/xmpsbj77) is to *C*/*C++*.
More information about *XPPq* : .
## Example
File `Common.xml`:
```xml
linux.org
windows.com
/home/dupond/
c:\Documents\Dupond\
SomeFile
OtherFile
http://
/something
```
File `Linux.xml`:
```xml
```
File `Windows.xml`
```xml
```
`xppq Linux.xml` outputs following:
```xml/home/dupond/SomeFile
/home/dupond/OtherFile
http://linux.org/something```
`xppq Windows.xml` outputs following:
```xmlc:\Documents\Dupond\SomeFile
c:\Documents\Dupond\OtherFile
http://windows.com/something```