use of abstract class in validation schema
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Invalid
|
Undecided
|
Unassigned |
Bug Description
here is a bug, i think....
Or is it possible to give me a solution:
xsd file is attached.
simple lxml code =======
from lxml import etree
xmlout = etree.Element(
tmp = etree.SubElemen
tmp.set(
# --- validation
xsdinfile = "database.xsd"
xmloutfile= "test.xml"
print " -","input xsd file:",xsdinfile
print " -","output xml file:",xmloutfile
schema = etree.XMLSchema
valid = schema.
schema.
print " -","validation:
with open(xmloutfile, 'w') as output_file:
output_
=======
output error =======
python lmxl_test.py
Traceback (most recent call last):
File "lmxl_test.py", line 4, in <module>
tmp.
File "lxml.etree.pyx", line 744, in lxml.etree.
File "apihelpers.pxi", line 549, in lxml.etree.
File "apihelpers.pxi", line 1583, in lxml.etree.
ValueError: Invalid attribute name u'xsi:type'
========== =======
please could you send me a solution ?
Note that the error occurs *before* the validation. See lxml.de/ tutorial. html#namespaces
http://