-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Hello,
I have an XSD with something like:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="andeContinuousIntegrationTools"> <xs:complexType> <xs:all> <xs:element name="automatedIceDeployment"> <xs:complexType> <xs:sequence> <xs:element name="getConfig" type="aidUpdateConfig" minOccurs="0" maxOccurs="unbounded"/> ... </xs:sequence> </xs:complexType> </xs:element> ... </xs:all> </xs:complexType> </xs:element> </xs:schema>
And I try and generate a populated html form with the following xml:
<?xml version="1.0"?><andeContinuousIntegrationTools><automatedIceDeployment><updateConfig name="jj" templateName="jkj" templateVersion="-1" deletePreviousVersion="false" deleteAllPreviousVersions="true"><general iceName="test" friendlyName="test" autoSwitcherAlias="true" autoLoggingDir="true" autoConfigurationDir="true"></general></updateConfig></automatedIceDeployment><morpheusAutoDeployment></morpheusAutoDeployment></andeContinuousIntegrationTools>
But this only generates an empty form. If I remove the minOccours="0" from my XSD though it does generate a populated form.
I don't want this section of XML to be required, but want it to populate a form if it is present in input XML. Is this possible?