I have an xsd file that includes a bunch of repeating groups and I want to obtain a list of their paths. (There's mostly non-repeating groups in here; I don't care about these.)
I'm thinking that I can navigate through some sort of tree representation of the schema, and check if a node is repeating. If yes, I'll write its xpath to a file. If not, I'll skip over it.
I know I can generate an scm file using Saxon and this answer How can I find all elements in an XML Schema whose value is specified as a QName? but I'm only partially sure that this is the way to go.
Are there any known ways to do this?