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