Skip to content

Form not populated with XML if minOccurs=0 #38

@groupmsl

Description

@groupmsl

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions