schema [-<option> . . .]
Various operations on a schema file: check syntax and structure, dump.
Options
-s <string>
Schema description
-cmd <string>
Action to perform, e.g. dumpcsv, datacontent etc.
[-out] <string>
Output file
Examples
srv4 schema -s XXXXX -cmd dumpcsv -out YYYYY
where XXXX is the path of the schema file and YYYY is the path of the output comma-separated file. If '-out' is omitted the output is displayed on the console. For example:
srv4 schema -s ..\config\schemas\gnportal.xsd -cmd dumpcsv -out c:\temp\gnportal.txt
produces a file gnportal.txt that looks like this:
Object type,Description,Name,Type,Access class,Optional,Computed,Full-text field,Description
object,"Base type all the other ones descend from"
,,id,Id,Normal,,,,"The object id"
,,name,String(80),Normal,,,,"The object generic name - used in different ways by the descenders"
securityScope,"Scope used to bundle together related users and groups and control who can access and modify them."
,,id,Id,Normal,,,,"The object id"
,,name,String(80),Normal,,,,"The object generic name - used in different ways by the descenders"
,,description,String(500),Normal,Opt,,,"General description of the scope"
,,access,Access,Protected,Opt,,,"Access permissions to the scope and the user/groups belonging to it"