VM Build XML file fails to validate against OVF 1.0 schema

Posted by siddharthgod on Server Fault See other posts from Server Fault or by siddharthgod
Published on 2010-03-23T14:06:27Z Indexed on 2010/03/23 14:13 UTC
Read the original article Hit count: 263

Filed under:

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:

  1. 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."

  1. Same error was also thrown by xmlbean while generating java classes from ovfenv-vmware.xsd.

Is there any workaround for this problem?

© Server Fault or respective owner

Related posts about vmware