How to extract a particular element details which has more references ???
I'm having many schema files (.xsd). Each schema files may include one or two external schema files.
Example, <xs:include schemaLocation="wait-advanced.xsd"/>
1) Assume that there are 50 elements in each schema file.
2) Assume many complex types defined in each schema file
3) Each elements has inner elements, attributes and refer complex types from the same file or a different file (i.e refer the complex elements defined in another schema file)
Need to extract the following:
a) Now let us assume a schema file name is "WaitingRequest.xsd" and it has element name called "waiting-details".
b) waiting-details element internally has elements which refers to complex types of the same schema file as well as from different schema files.
c) Now if the user gives the "waiting-details" i want to extract all the elements, referred elements, referred complex types etc., in a separate schema file.
Can anyone please help and let me how we can do this via Java?
Re: How to extract a particular element details which has more references ???
How do you think it could be accomplished? i.e. code or general thoughts