Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waldekmastykarz/sample-xml-validation
https://github.com/waldekmastykarz/sample-xml-validation
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/waldekmastykarz/sample-xml-validation
- Owner: waldekmastykarz
- Created: 2015-09-11T12:01:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-14T10:41:26.000Z (almost 4 years ago)
- Last Synced: 2024-04-23T14:10:37.748Z (7 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# XML Validation sample
Sample project showing how to validate XML files using an XSD schema. The different XML files in the project represent the different test scenarios. Run using:
```
$ gulp validate-xml --xmlfile ./path/to/manifest.xml
```If you need to process the validation output you can have the task provide the output as JSON:
```
$ gulp validate-xml --xmlfile ./path/to/manifest.xml --json
```The sample project contains a test suite to validate the correct working of the XML validation process. Run using:
```
$ gulp test
```## Remarks
This sample is based on the Office Add-in manifest and its XSD as published on https://msdn.microsoft.com/library/fp123711?WT.mc_id=m365-0000-wmastyka. The XSD had to be modified on line 249 from:
```xml
```
to
```xml
```
as the original line was causing errors in the validation process.