I am trying to validate an xml which I get from the users. I propose a list of parameters (which may change every now and then) in an xml format with empty values. Users should fill in values and upload it. Then I should validate the uploaded xml and save the values in db(Mongodb).
I tried trang to generate xsd from an xml file. It works but I do not know how to specify that user can leave some of these parameters without values.
I read something about nillable =true or minoccurs=0 which is used in xsd, however, I don’t want to modify the generated xsd manually. Is there a better solution? If it is not possible with trang, which converter do you suggest?(I am using java)