I have XML that I am converting to Json using a XSD. But in order to maintain uniformity I want to provide data as an array in json for some elements even if the values occurs only once.
What changes should I make in my XSD? Example XML is given below:
"titledetail": [ { "b202": "01", "titleelement": [ { "x409": "01", "x501": null, "b031": "Around the World Coloring Book" } ] } ]
I tries to write a function for this but was told that the changes should be done in the XSD. I tried to follow some online solutions but nothing seemed to work fine for me.
Ankita is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.