Skip to content
Snippets Groups Projects
Commit 5df42f14 authored by wactbprot's avatar wactbprot
Browse files

xsd 1.8.3

parent c2cc5ee6
Branches
Tags 0.3.2
No related merge requests found
## Notizen
### Hinweise zur Python-Bibliothek »lxml«
Tests ergaben Schwierigkeiten beim https-Zugriff.
»lxml« und »xmllint« verwenden beide die Linux/Unix-Bibliotheken »libxml2« und
»libxslt«.
* [Home-Page](https://lxml.de/)
* [Einfache Beispiele](https://stackoverflow.com/questions/299588/validating-with-an-xml-schema-in-python)
### Hinweise zur Python-Bibliothek »xmlschema«
Die hier benutzte Bibliothek.
* [Home-Page](https://xmlschema.readthedocs.io/en/latest/usage.html)
* [Einfache Beispiele](https://stackoverflow.com/questions/299588/validating-with-an-xml-schema-in-python)
### Hinweise zu »xmllint«
```
xmllint --noout --schema DCC_v1.8.1.xsd 11044_17_DCC_v1.8.1_Au.xml
xmllint --valid --noout 11044_17_DCC_v1.8.1_Au.xml
```
# xml-validation
HTML-Server written in Python for validation of xml (e.g. DCC xml) against a
HTTP-Server written in Python for validation of xml (e.g. DCC xml) against a
XML Schema.
## Notizen
»lxml« und »xmllint« verwenden beide die Linux/Unix-Bibliotheken »libxml2« und
»libxslt«.
### Hinweise zur Python-Bibliothek »lxml«
* [Home-Page](https://lxml.de/)
* [Einfache Beispiele](https://stackoverflow.com/questions/299588/validating-with-an-xml-schema-in-python)
### Hinweise zur Python-Bibliothek »xmlschema«
* [Home-Page](https://xmlschema.readthedocs.io/en/latest/usage.html)
* [Einfache Beispiele](https://stackoverflow.com/questions/299588/validating-with-an-xml-schema-in-python)
### Hinweise zu »xmllint«
```
xmllint --noout --schema DCC_v1.8.1.xsd 11044_17_DCC_v1.8.1_Au.xml
xmllint --valid --noout 11044_17_DCC_v1.8.1_Au.xml
```
### Installation
## Installation
```
> git clone git@a75436.berlin.ptb.de:vaclab/xml-validation.git
......@@ -40,8 +18,6 @@ xmllint --valid --noout 11044_17_DCC_v1.8.1_Au.xml
### /validate endpoint [POST]
```
> curl -X POST -H "Content-Type: text/xml" -d @valid_xml_matches_xsd http://localhost:5005/validate
> <ok/>
......
......@@ -6,7 +6,7 @@ config = utils.get_config_dict()
git_cmd = utils.git_cmd(config)
## kommt später vom server
xsd_file_name = 'DCC_v1.8.1.xsd'
xsd_file_name = 'DCC_v1.8.3.xsd'
app = Flask(__name__)
CORS(app)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment