XML Schema for OS API 1.1 does not load
Bug #752929 reported by
justinsb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The schema for the OpenStack API v1.1 does not load in lxml; the error I'm getting is this:
(nova.api.
I'm trying to use it like this:
def _load_schema_
filename = os.path.
schema_tree = etree.parse(
schema = etree.XMLSchema
return schema
This is the schema as available here:
http://
Related branches
Changed in nova: | |
status: | New → Invalid |
To post a comment you must log in.
I'm not sure if it helps, but a quick look at the schema shows that the issues lie in the following lines:
xmllint --schema server.xsd "<ignoreme/>"
common.xsd:38: element complexType: Schemas parser error : complex type 'Metadata': The content model is not determinist.
server.xsd:427: element complexType: Schemas parser error : complex type 'Servers': The content model is not determinist.
server.xsd:518: element complexType: Schemas parser error : complex type 'Addresses': The content model is not determinist.
server.xsd:527: element complexType: Schemas parser error : complex type 'AddressList': The content model is not determinist.
WXS schema server.xsd failed to compile
Removing those 4 lines makes the schema validate, but since I've never used an xml schema, those lines are probably important? :)