Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mono-xmltool(1) [debian man page]

mono-xmltool(Mono 1.0)													    mono-xmltool(Mono 1.0)

NAME
mono-xmltool - Mono XML validation and transformation tool. SYNOPSIS
mono-xmltool --validate [*.rng | *.rnc | *.nvdl | *.xsd] [instances] mono-xmltool --validate-rng relax-ng-grammar-xml [instances] mono-xmltool --validate-rnc relax-ng-compact-grammar-file [instances] mono-xmltool --validate-nvdl nvdl-script-xml [instances] mono-xmltool --validate-xsd xml-schema [instances] mono-xmltool --transform stylesheet instance-xml mono-xmltool --prettyprint [source [result]] DESCRIPTION
mono-xmltool is a command line front end for various functions available in the Mono XML class libraries. It currently it offers validation with various different kinds of schemas, xslt transformations and pretty printing. XML VALIDATION
mono-xmltool can validate a given set of XML files (the instances parameter) using the given schema file. Currently supported schema files include Relax NG (*.rng), Compact Relax NG (*.rnc), Namespace-based Validation Dispatching Language (*.nvdl) and XML Schema (*.xsd). If invoked with the --validate argument, Mono will use the filename extension to guess the kind of validation required. The --validate-xxx flags would force a specific kind of validation. The following lists the flags and the actual class that implements them in Mono: --validate-rng Commons.Xml.Relaxng.RelaxNgPattern as the schema, and Commons.Xml.Relaxng.RelaxngValidatingReader validator. --validate-rnc Commons.Xml.Relaxng.RncParser as the schema, and Commons.Xml.Relaxng.RelaxngValidatingReader validator. --validate-nvdl Commons.Xml.Nvdl as the schema and Commons.Xml.NvdlValidatingReader validator. --validate-xsd System.Xml.Schema.XmlSchema as the schema and uses System.Xml.XmlValidatingReader as the validator. TRANSFORMATIONS
This does an XSLT transformation. The stylesheet must be an XSLT file, the instance-xml is the document to be processed. Output it sent to the standard output. PRETTY PRINTING
Produces a pretty-print rendering of the source file. If it is not specified it reads the standard input. If result is not specified, the output is sent to the standard output. MAILING LISTS
Mailing lists are listed at the http://www.mono-project.com/Mailing_Lists WEB SITE
http://www.mono-project.com SEE ALSO
mono(1),mcs(1). mono-xmltool(Mono 1.0)

Check Out this Related Man Page

xmerl_xsd(3erl) 					     Erlang Module Definition						   xmerl_xsd(3erl)

NAME
xmerl_xsd - Interface module for XML Schema vlidation. DESCRIPTION
Interface module for XML Schema vlidation. It handles the W3.org specifications of XML Schema second edition 28 october 2004. For an intro- duction to XML Schema study part 0. An XML structure is validated by xmerl_xsd:validate/[2,3]. DATA TYPES
global_state() : The global state of the validator. It is representated by the #xsd_state{} record. option_list() : Options allow to customize the behaviour of the validation. Possible options are : {tab2file,boolean()} : Enables saving of abstract structure on file for debugging purpose. {xsdbase,filename()} : XSD Base directory. {fetch_fun,FetchFun} : Call back function to fetch an external resource. {fetch_path,PathList} : PathList is a list of directories to search when fetching files. If the file in question is not in the fetch_path, the URI will be used as a file name. {state,State} : It is possible by this option to provide a state with process information from an earlier validation. EXPORTS
file2state(FileName) -> {ok, State} | {error, Reason} Types State = global_state() FileName = filename() Reads the schema state with all information of the processed schema from a file created with state2file/[1,2] . The format of this file is internal. The state can then be used validating an XML document. format_error(L::Errors) -> Result Types Errors = error_tuple() | [error_tuple()] Result = string() | [string()] Formats error descriptions to human readable strings. process_schema(Schema) -> Result Equivalent to process_schema(Schema, []) . process_schema(Schema, Options) -> term() process_schemas(Schemas) -> Result Equivalent to process_schema(Schemas, []) . process_schemas(Schemas, Options) -> term() process_validate(Schema, Xml::Element) -> Result Equivalent to process_validate(Schema, Xml, []) . process_validate(Schema, Xml, Opts) -> term() state2file(S::State) -> ok | {error, Reason} Same as state2file(State,SchemaName) The name of the saved file is the same as the name of the schema, but with .xss extension. state2file(S::State, FileName) -> ok | {error, Reason} Types State = global_state() FileName = filename() Saves the schema state with all information of the processed schema in a file. You can provide the file name for the saved state. FileName is saved with the .xss extension added. validate(Xml::Element, State) -> Result Equivalent to validate(Element, State, []) . validate(Xml::Element, State, Opts::Options) -> Result Types Element = XmlElement Options = option_list() Result = {ValidElement, global_state()} | {error, Reasons} ValidElement = XmlElement State = global_state() Reasons = [ErrorReason] | ErrorReason Validates a parsed well-formed XML element (Element). A call to validate/2 or validate/3 must provide a well formed parsed XML element #xmlElement{} and a State, global_state() , which holds necessary information from an already processed schema. Thus validate enables reuse of the schema information and therefore if one shall validate several times towards the same schema it reduces time consumption. The result, ValidElement, is the valid element that conforms to the post-schema-validation infoset. When the validator finds an error it tries to continue and reports a list of all errors found. In those cases an unexpected error is found it may cause a single error reason. Usage example: 1>{E,_} = xmerl_scan:file("my_XML_document.xml"). 2>{ok,S} = xmerl_xsd:process_schema("my_XML_Schema.xsd"). 3>{E2,_} = xmerl_xsd:validate(E,S). Observe that E2 may differ from E if for instance there are default values defined in my_XML_Schema.xsd . AUTHORS
<> xmerl 1.2.8 xmerl_xsd(3erl)
Man Page