Hi Jim, No, I don't know of one. I'm not sure what you mean by supplying a list of required elements. Every element in a schema is defined either implicitly or explicitly with a minOccurs attribute. I guess you're wanting to go beyond that and remove just a subset of those with minOccurs of 0? Or, stated differently, define a subset that has minOccurs of 0 and that you want to retain and remove the rest?
At any rate, this is a pretty generic XML schema kind of question. You might have better luck asking it on xmldev or one of the other XML lists. (Actually, off the top of my head, whacking all of the element declarations that have minOccurs of 0 doesn't seem like it would be all that hard to do with XSLT. The trick is if you want to keep some of them. XML schema language allows you to add attributes from any non-XSD namespace. Perhaps you edit the source schema to add your own attribute to the minOccurs = 0 nodes you want to keep and look for that too?) Good Luck, Mike At 03:46 PM 12/22/2005 +0000, Jim Divoky wrote: >Has anyone located a tool that allows one to prune XML Schemas? I see >references that such tools exist. Ideally, I'd like to supply the >tool with a list of required elements and the tool would prune all >unused leaves. I've attempted to develop such a tool using XSLT but >it's not a trivial pursuit. > >Jim Divoky >EC Solutions, Inc. >330-606-6826 > > > > > > >. >Please use the following Message Identifiers as your subject prefix: ><SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC> >Access the list online at: http://groups.yahoo.com/group/EDI-L > >Yahoo! Groups Links > > > > --------------------------------------------------------------- Michael C. Rawlins, Rawlins EC Consulting www.rawlinsecconsulting.com ------------------------ Yahoo! Groups Sponsor --------------------~--> AIDS in India: A "lurking bomb." Click and help stop AIDS now. http://us.click.yahoo.com/VpTY2A/lzNLAA/yQLSAA/OIFolB/TM --------------------------------------------------------------------~-> . Please use the following Message Identifiers as your subject prefix: <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC> Access the list online at: http://groups.yahoo.com/group/EDI-L Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/EDI-L/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
