The open source command line java application xsdvi creates an interactive diagram in SVG format from an XML Schema Definition. The generated SVG file can be displayed by a modern web browser where the user can expand and collapse the tree by mouse clicking.
Here is an example of a generated diagram
http://xsdvi.sourceforge.net/ipo.svg
The software can be downloaded from
http://sourceforge.net/projects/xsdvi/
It can be run as follows (assuming Java is installed and java.exe
is in the path):-
dist/lib
folder.java -jar xsdvi.jar <input1.xsd> [<input2.xsd> [<input3.xsd> ...]] [style]