Hi, I would like to validate this XML: http://geo102.fsv.cvut.cz:8080/geoserver/sf/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=sf:bugsites&maxFeatures=1 I tried: 1. Download the xml (bugsites.gml) 2. Downloaded the schema http://geo102.fsv.cvut.cz:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd (schemax.xml) 3. written script from lxml import etree xmlschema_doc = etree.parse(open('schema.xsd')) xmlschema = etree.XMLSchema(xmlschema_doc) doc = etree.parse(open('bugsites.gml')) print xmlschema.validate(doc) It ends up with False response :-( Thanks Jachym -- Jachym Cepicky URL: http://les-ejk.cz e-mail: jachym.cepicky at gmail com PGP: http://les-ejk.cz/pgp/JachymCepicky.pgp @jachymc
Jachym Cepicky, 11.02.2014 23:38:
I would like to validate this XML:
I tried:
1. Download the xml (bugsites.gml) 2. Downloaded the schema http://geo102.fsv.cvut.cz:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd (schemax.xml) 3. written script
from lxml import etree
xmlschema_doc = etree.parse(open('schema.xsd')) xmlschema = etree.XMLSchema(xmlschema_doc)
doc = etree.parse(open('bugsites.gml')) print xmlschema.validate(doc)
It ends up with False response :-(
Does xmlschema.error_log contain anything useful? Stefan
participants (2)
-
Jachym Cepicky
-
Stefan Behnel