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