VM Build XML file fails to validate against OVF 1.0 schema
- by siddharthgod
For our product, we were trying to generate VM / vApp build XML from java code. For this purpose, we were using XML Beans. When we tried to generate JAVA classes for OVF envelope for 0.9 (ovf-envelope.xsd in schemas/ovf) it was successful. However these schemas does not allow us to add IPassignment section which is available in OVF 1.0.
When we tried to compile 1.0 schema (ovfenv-vmware.xsd in schemas/ovf1.0.0e/vmware folder), we get validation errors. When we loaded this schema in schema editor we could see some validation errors.
First error we saw was following:
When we loaded ovfenv-vmware.xsd in XMLspy we could see following validation error in dsp8027.xsd -
"cos-nonambig: makes the content model non-deterministic against . Possible causes: name equality, overlapping occurrence or substitution groups."
Same error was also thrown by xmlbean while generating java classes from ovfenv-vmware.xsd.
Is there any workaround for this problem?