sl@0: <?xml version="1.0" encoding="utf-8"?> sl@0: <root> sl@0: <!-- sl@0: Microsoft ResX Schema sl@0: sl@0: Version 2.0 sl@0: sl@0: The primary goals of this format is to allow a simple XML format sl@0: that is mostly human readable. The generation and parsing of the sl@0: various data types are done through the TypeConverter classes sl@0: associated with the data types. sl@0: sl@0: Example: sl@0: sl@0: ... ado.net/XML headers & schema ... sl@0: <resheader name="resmimetype">text/microsoft-resx</resheader> sl@0: <resheader name="version">2.0</resheader> sl@0: <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> sl@0: <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> sl@0: <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> sl@0: <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> sl@0: <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> sl@0: <value>[base64 mime encoded serialized .NET Framework object]</value> sl@0: </data> sl@0: <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> sl@0: <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> sl@0: <comment>This is a comment</comment> sl@0: </data> sl@0: sl@0: There are any number of "resheader" rows that contain simple sl@0: name/value pairs. sl@0: sl@0: Each data row contains a name, and value. The row also contains a sl@0: type or mimetype. Type corresponds to a .NET class that support sl@0: text/value conversion through the TypeConverter architecture. sl@0: Classes that don't support this are serialized and stored with the sl@0: mimetype set. sl@0: sl@0: The mimetype is used for serialized objects, and tells the sl@0: ResXResourceReader how to depersist the object. This is currently not sl@0: extensible. For a given mimetype the value must be set accordingly: sl@0: sl@0: Note - application/x-microsoft.net.object.binary.base64 is the format sl@0: that the ResXResourceWriter will generate, however the reader can sl@0: read any of the formats listed below. sl@0: sl@0: mimetype: application/x-microsoft.net.object.binary.base64 sl@0: value : The object must be serialized with sl@94: : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter sl@0: : and then encoded with base64 encoding. sl@0: sl@0: mimetype: application/x-microsoft.net.object.soap.base64 sl@0: value : The object must be serialized with sl@0: : System.Runtime.Serialization.Formatters.Soap.SoapFormatter sl@0: : and then encoded with base64 encoding. sl@0: sl@0: mimetype: application/x-microsoft.net.object.bytearray.base64 sl@0: value : The object must be serialized into a byte array sl@0: : using a System.ComponentModel.TypeConverter sl@0: : and then encoded with base64 encoding. sl@0: --> sl@0: <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> sl@94: <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> sl@0: <xsd:element name="root" msdata:IsDataSet="true"> sl@0: <xsd:complexType> sl@0: <xsd:choice maxOccurs="unbounded"> sl@0: <xsd:element name="metadata"> sl@0: <xsd:complexType> sl@0: <xsd:sequence> sl@0: <xsd:element name="value" type="xsd:string" minOccurs="0" /> sl@0: </xsd:sequence> sl@94: <xsd:attribute name="name" use="required" type="xsd:string" /> sl@0: <xsd:attribute name="type" type="xsd:string" /> sl@0: <xsd:attribute name="mimetype" type="xsd:string" /> sl@94: <xsd:attribute ref="xml:space" /> sl@0: </xsd:complexType> sl@0: </xsd:element> sl@0: <xsd:element name="assembly"> sl@0: <xsd:complexType> sl@0: <xsd:attribute name="alias" type="xsd:string" /> sl@0: <xsd:attribute name="name" type="xsd:string" /> sl@0: </xsd:complexType> sl@0: </xsd:element> sl@0: <xsd:element name="data"> sl@0: <xsd:complexType> sl@0: <xsd:sequence> sl@0: <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> sl@0: <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> sl@0: </xsd:sequence> sl@94: <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> sl@0: <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> sl@0: <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> sl@94: <xsd:attribute ref="xml:space" /> sl@0: </xsd:complexType> sl@0: </xsd:element> sl@0: <xsd:element name="resheader"> sl@0: <xsd:complexType> sl@0: <xsd:sequence> sl@0: <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> sl@0: </xsd:sequence> sl@0: <xsd:attribute name="name" type="xsd:string" use="required" /> sl@0: </xsd:complexType> sl@0: </xsd:element> sl@0: </xsd:choice> sl@0: </xsd:complexType> sl@0: </xsd:element> sl@0: </xsd:schema> sl@0: <resheader name="resmimetype"> sl@0: <value>text/microsoft-resx</value> sl@0: </resheader> sl@0: <resheader name="version"> sl@0: <value>2.0</value> sl@0: </resheader> sl@0: <resheader name="reader"> sl@94: <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> sl@0: </resheader> sl@0: <resheader name="writer"> sl@94: <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> sl@0: </resheader> sl@0: </root>