[lxml-dev] lxml XSD Schema validation problem

jholg at gmx.de jholg at gmx.de
Thu Nov 6 15:15:58 CET 2008


Hi,


> The XSD I'm validating against is the XSD provided by NIST for CVE posts 
> and
> the XML doc is the recent NVDs:
> 
> http://nvd.nist.gov/schema/nvdcve.xsd
> http://nvd.nist.gov/download/nvdcve-recent.xml
> 
> The error I'm getting from lxml is:
> 
> lxml.etree.XMLSyntaxError: Element 
> '{http://nvd.nist.gov/feeds/cve/1.2}ref',
> attribute 'url': [facet 'pattern'] The value
> 'http://www.securitytracker.com/id?1021107' is not accepted by the 
> pattern
> '(news|(ht|f)tp(s)?)://.+'.
> 

 Using xmllint I also run into a whole bunch of these errors:

 nvdcve-recent.xml:18: element ref: Schemas validity error : Element 
'{http://nvd.nist.gov/feeds/cve/1.2}ref', attribute 'url': [facet 
'pattern'] The value 'http://xforce.iss.net/xforce/xfdb/40864' is not 
accepted by the pattern '(news|(ht|f)tp(s)?)://.+'.

 $ xmllint --version
xmllint: using libxml version 20627 

 Validates ok in oXygen for me. 

 
> Is this a libxml2 problem, my code or, dare I say, an evil bug?
 libxml2, I'd say.

 Holger 


-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20081106/817bbf2f/attachment-0001.htm 


More information about the lxml-dev mailing list