<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><style>p {margin:0px;padding:0px;} blockquote { border: 0px; margin-top: 0px; margin-bottom: 0px; }</style></head><body style="">
<p>Hi,<br><font color="#000000" face="Verdana" size="2"><br><blockquote type="cite">The XSD I'm validating against is the XSD provided by NIST for CVE posts and<br>the XML doc is the recent NVDs:<br><br><a href="http://nvd.nist.gov/schema/nvdcve.xsd">http://nvd.nist.gov/schema/nvdcve.xsd</a><br><a href="http://nvd.nist.gov/download/nvdcve-recent.xml">http://nvd.nist.gov/download/nvdcve-recent.xml</a><br><br>The error I'm getting from lxml is:<br><br>lxml.etree.XMLSyntaxError: Element '{<a href="http://nvd.nist.gov/feeds/cve/1.2%7Dref%27,">http://nvd.nist.gov/feeds/cve/1.2}ref',</a><br>attribute 'url': [facet 'pattern'] The value<br>'<a href="http://www.securitytracker.com/id?1021107%27">http://www.securitytracker.com/id?1021107'</a> is not accepted by the pattern<br>'(news|(ht|f)tp(s)?)://.+'.<br></blockquote></font></p><p>&nbsp;</p><p>Using xmllint I also run into a whole bunch of these errors:</p><p>&nbsp;</p><p>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)?)://.+'.</p><p>&nbsp;</p><p>$ xmllint --version<br>xmllint: using libxml version 20627 <br></p><p>&nbsp;</p><p>Validates ok in oXygen for me.&nbsp;</p><p>&nbsp;</p><p><font color="#000000" face="Verdana" size="2"><blockquote type="cite">Is this a libxml2 problem, my code or, dare I say, an evil bug?</blockquote></font></p><p>&nbsp;</p><p><font color="#000000" face="Verdana" size="2">libxml2, I'd say.</font></p><p>&nbsp;</p><p>Holger&nbsp;</p><p></p><p></p><div class="signature"><br /><br /><br />-- <br />"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...<br />Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail</div></body></html>