How to deal with XMLSchema IOError?

April 27, 2012
7:58 a.m.
Hi How to check for errors when loading XMLSchema file? schema=etree.XMLSchema(file=polonSchemaFile) and the polonSchemaFile does not exist. lxml reports: schema=etree.XMLSchema(file=polonSchemaFile) File "xmlschema.pxi", line 105, in lxml.etree.XMLSchema.__init__ (src/lxml\lxml.etree.c:132720) lxml.etree.XMLSchemaParseError: failed to load external entity "polon-v2/XSD.2.0/plikImp.xsd" Exception handling does not help here I suppose? P.
4827
Age (days ago)
4827
Last active (days ago)
0 comments
1 participants
participants (1)
-
Piotr Oh