Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

trang(1) [debian man page]

trang(1)						      General Commands Manual							  trang(1)

NAME
trang - convert between different schema languages for XML SYNOPSIS
trang [-I rng|rnc|dtd|xml] [-O rng|rnc|dtd|xsd] [-i input-param] [-o output-param] input-file ... output-file DESCRIPTION
trang takes as input a schema written in any of the following formats: RELAX NG (XML syntax) RELAX NG (compact syntax) XML 1.0 DTD and produces as output a schema written in any of the following formats: RELAX NG (XML syntax) RELAX NG (compact syntax) XML 1.0 DTD W3C XML Schema Trang can also infer a schema from one or more example XML documents. Trang uses an internal representation based on RELAX NG. For each supported input format, there is an input module that converts a schema in that input format into this internal representation. For each supported output format, there is an output module that converts the internal representation into a schema in that output format. Thus, any supported input format can be translated to any supported output format. Trang requires two command-line arguments: the first is the URI or filename of the schema to be translated; the second is the output file- name. Trang infers the input and output modules to be used from the extension of input and output filenames as follows: .rng RELAX NG (XML syntax) .rnc RELAX NG (compact syntax) .dtd XML 1.0 DTD .xsd W3C XML Schema .xml XML documents (used as examples from which to infer a schema) This inference can be overridden using the -I and -O options. When the input is XML documents used as examples to infer a schema, more than one input file may be specified as arguments. All the input files are specified before the output file. OPTIONS
-I rng|rnc|dtd|xml Specifies which input module to use. -O rng|rnc|dtd|xsd Specifies which output module to use. -i input-param -o output-param Specifies a parameter for an input (-i) or output (-o) module. The -i and -o options may be used multiple times in order to specify multiple parameters. There are two kinds of parameter: boolean parameters and string-valued parameters. A string-valued parameter is specified using the form name=value. A boolean parameter is specified using the form name or no-name. The applicable parameters depend on the particular input and output module. For details, see the HTML documentation. SEE ALSO
jing(1) Trang Manual http://relaxng.org AUTHOR
James Clark (jjc@jclark.com) This product includes software developed by the Apache Software Foundation (http://www.apache.org/). @VERSION@ trang(1)

Check Out this Related Man Page

xsd(1)																	    xsd(1)

NAME
xsd - Mono's utility for generating schema or class files SYNOPSIS
xsd <schema.xsd> /classes [options] xsd <schema.xsd> /dataset [options] xsd <assembly>.dll|<assembly>.exe [options] xsd <instance.xml> [<instance.xml> ...] [options] DESCRIPTION
xsd is a tool for intended to complement the XML serialization support of Mono. It can do the following tasks: Generate serializable classes From a given XML schema, generate a class that can be used to read and write xml documents that conform that schema (/classes option). Generate typed datasets From a given XML schema, generate a typed DataSet class that can be used to read and write xml documents that conform that schema (/dataset option). Generate XML schemas From a given assembly and an optional type name, generate an XML schema that can be used to validate the xml documents that can be obtained by serializing objects of that type. If no type is provided, xsd generates a schema for all types in the assembly. When specifying the assembly name do not include the file extension (.dll or .exe). xsd will look for the assembly using the standard assembly loading rules. Infer XML schemas From a given set of XML documents, infer the XML schema that can be used to validate those documents. OPTIONS
The following options are available: /element:name /e:name Specifies the name of the XML schema element for which a class or a dataset has to be generated. /namespace:name /n:name Specifies the namespace of the XML schema element for which a class or a dataset has to be generated. /language:name /l:name Specifies the programming language to use for the generated code. The only supported languages are CS (C#) and VB (Visual Basic.NET). /generator:type,assembly /g:type,assembly Indicates xsd.exe to use custom CodeDomProvider to generate code. The type name must be full name. Assembly name is a local file name that is going to be loaded. The specified Type must have the default constructor. /outputdir:path /o:path Specifies the directory where to generate the code or schemas. /type:name /t:name Specifies the full name of the type (including namespace) for which to generate the XML schema. /help /h Show usage help. AUTHORS
Lluis Sanchez Gual (lluis@ximian.com) Atsushi Enomoto (atsushi@ximian.com) LICENSE
xsd is released under the terms of the GNU GPL. SEE ALSO
disco(1), soapsuds(1), mono(1), mcs(1), wsdl(1) xsd(1)
Man Page