Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/waldekmastykarz/sample-xml-validation


https://github.com/waldekmastykarz/sample-xml-validation

Last synced: 28 days ago
JSON representation

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.