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