how can I use xmlschema to produce a tree from my xsd file? #430
miladmoradi89
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a very xomplex xsd file that describes application specific xml files.
there are many complexities such as groups, inheritences, lists ....
also 5 other xsd files are imported in this main xsd file.
I was wondering if it would be possible to create a tree of allowed hierarchy of tags based on this xsd. I do not have an xml file.
I only have an xsd file it has a root called Dataset.
from there I want to create a tree that shows which tags are allowed to come as direct chidlren of each tag.
I was confused with the documentation.
interchildren() iter_elements() and iter_component() ....
I am not sure how I can create a tree of all possible hierarchy of tags allowed by my xsd.
I think such a thing can be useful for all developer as we need to digest all complexities of xsd files to understand what we should expect from outr xml.
can you please guid me how to do it?
Beta Was this translation helpful? Give feedback.
All reactions