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