Remove all the occurrence of a element from xsd using java
Can I get a sample java program which scans a folder for all the xsd and then
1. Removes the <choice> </choice> element from all the xsd
2. When there is a <choice> element could we check that the immediate parent element is <sequence> or not .
If its not there then wrap it by <sequence> </sequence> element.
(I think the smart way to perform such a task is using XSLT by the way)