Generate Sample XML Omit Element and other more complex generations
Posted: Thu May 21, 2020 12:24 am
- Using the generate sample XML I'd like to customize it to omit some of the optional elements. For the current testing they are not worth having. I could modify the schema to eliminate them but thought I should be able to set preferred number of repetitions to Zero and have it vanish.
- I also have more complex constraints done in schematron I'd like to be able to do things like if element X has attribute value Y then pick content value from list Z e.g.
<responsibleParty type='person'>Bill Gates</responsibleParty>
so When type=company pick one of (Apple, IBM, Microsoft) when type=person pick one of (Bill Gates, Steve Jobs, Charles Flint)