Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ray-chew/xml_parser
A simple XML parser in C++
https://github.com/ray-chew/xml_parser
cpp11 simple-project xercesc xml-parser
Last synced: about 2 months ago
JSON representation
A simple XML parser in C++
- Host: GitHub
- URL: https://github.com/ray-chew/xml_parser
- Owner: ray-chew
- License: mit
- Created: 2024-03-19T10:46:01.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-03-23T23:46:28.000Z (10 months ago)
- Last Synced: 2024-09-29T23:41:09.223Z (3 months ago)
- Topics: cpp11, simple-project, xercesc, xml-parser
- Language: C++
- Homepage:
- Size: 103 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# XML Parser
An exercise I completed as part of the *Advanced Practical Programming for Scientists* module at the Technische Universität Berlin in 2017.
Documentation generation requires [doxygen](https://www.doxygen.nl/).
* compile: `g++ -std=c++11 -O3 xml_parser.cxx -o xml_parser -lxerces-c`
* run: `./xml_parser [-V]`
* include `[-V]` flag to enable schema validation
* **xml_parser.cxx** uses the Xerces-C library for XML parsing. Accepts XML filepath as argument. Prints output to csv.txt. `[-V]` flag determines if XML file is to be validated. Namespace-location pair of external schema is fixed as `"http://gaslab.zib.de/kwpt/measured ./measured-1-1-0.xsd"`.
* Validation errors for given xml-xsd:
* `line #2 column #1081: value '1.0.0' does not match regular expression facet '1\.1\.0'.`
* `line #2 column #1081: attribute 'validity' is not declared for element 'measured'.`---
Available make commands:
* `make all`
* `make doc`
* `make coverage`
* `make check`
* `make clean`