How can one create an XML
request conforming to an XSD
such that the request is valid?
One way would be to create the whole request and then verify it on the XSD
.
Is there a way to create a request while walking the schema?
The first thought that came to mind was of Zipper, but I am really not sure if they can be used here.
Maybe I have not understood it well, but it seems Zipper's are great if there is already some structure defined and things need to be changed in that structure. Can Zipper be used for a changing structure? (E.g Appending a sequence to an array of sequence ?)