Release Automation

  • 1.  Are there XML schema files for manifests available?

    Posted Dec 10, 2018 11:53 PM

    I am looking to validate release manifests before they are used, and was curious if there was XML XSD or DTD files available that define the schema?

     

    A search of the site and help and public information hasn't yielded any results.

     

    Currently am working with 6.4, but having a repository of all available schemas would be useful as well.

     

    Thank you in advance!



  • 2.  Re: Are there XML schema files for manifests available?
    Best Answer

    Broadcom Employee
    Posted Dec 13, 2018 09:52 PM

    Hi,

     

    I'm not sure if it is enough to check your manifest, but I found the example of xsd.

    I hope it helps you.

     

    <?xml version="1.0" encoding="UTF-8"?>

    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:element name="DeploymentManifest">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="properties" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="property" minOccurs="0" maxOccurs="unbounded">
    <xs:complexType>
    <xs:simpleContent>
    <xs:extension base="xs:string">
    <xs:attribute name="name" type="xs:string" />
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="Initialization" minOccurs="0" type="steps"/>
    <xs:element name="Deployment" minOccurs="0" type="steps"/>
    <xs:element name="Post-Deployment" minOccurs="0" type="steps" />
    </xs:sequence>
    <xs:attribute name="name" type="xs:string" />
    <xs:attribute name="project" type="xs:string" />
    <xs:attribute name="build" type="xs:string" />
    <xs:attribute name="template" type="xs:string" />
    <xs:attribute name="application" type="xs:string" />
    </xs:complexType>
    </xs:element>
    <xs:complexType name="steps">
    <xs:sequence>
    <xs:element name="step" minOccurs="0" maxOccurs="unbounded">
    <xs:complexType>
    <xs:sequence>
    <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
    </xs:sequence>
    <xs:attribute name="name" type="xs:string" />
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>

     

    Regards

    Yas



  • 3.  Re: Are there XML schema files for manifests available?

    Broadcom Employee
    Posted Dec 25, 2018 08:54 PM

    Hi,

     

    Did my answer help you?

    We don't have official XSD or DTD at this stage. If you need, please raise an idea.

     

    Thanks

    Yas