sl@18
|
1 |
<?xml version="1.0" encoding="utf-8"?>
|
sl@18
|
2 |
<root>
|
sl@18
|
3 |
<!--
|
sl@18
|
4 |
Microsoft ResX Schema
|
sl@18
|
5 |
|
sl@18
|
6 |
Version 2.0
|
sl@18
|
7 |
|
sl@18
|
8 |
The primary goals of this format is to allow a simple XML format
|
sl@18
|
9 |
that is mostly human readable. The generation and parsing of the
|
sl@18
|
10 |
various data types are done through the TypeConverter classes
|
sl@18
|
11 |
associated with the data types.
|
sl@18
|
12 |
|
sl@18
|
13 |
Example:
|
sl@18
|
14 |
|
sl@18
|
15 |
... ado.net/XML headers & schema ...
|
sl@18
|
16 |
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
sl@18
|
17 |
<resheader name="version">2.0</resheader>
|
sl@18
|
18 |
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
sl@18
|
19 |
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
sl@18
|
20 |
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
sl@18
|
21 |
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
sl@18
|
22 |
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
sl@18
|
23 |
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
sl@18
|
24 |
</data>
|
sl@18
|
25 |
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
sl@18
|
26 |
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
sl@18
|
27 |
<comment>This is a comment</comment>
|
sl@18
|
28 |
</data>
|
sl@18
|
29 |
|
sl@18
|
30 |
There are any number of "resheader" rows that contain simple
|
sl@18
|
31 |
name/value pairs.
|
sl@18
|
32 |
|
sl@18
|
33 |
Each data row contains a name, and value. The row also contains a
|
sl@18
|
34 |
type or mimetype. Type corresponds to a .NET class that support
|
sl@18
|
35 |
text/value conversion through the TypeConverter architecture.
|
sl@18
|
36 |
Classes that don't support this are serialized and stored with the
|
sl@18
|
37 |
mimetype set.
|
sl@18
|
38 |
|
sl@18
|
39 |
The mimetype is used for serialized objects, and tells the
|
sl@18
|
40 |
ResXResourceReader how to depersist the object. This is currently not
|
sl@18
|
41 |
extensible. For a given mimetype the value must be set accordingly:
|
sl@18
|
42 |
|
sl@18
|
43 |
Note - application/x-microsoft.net.object.binary.base64 is the format
|
sl@18
|
44 |
that the ResXResourceWriter will generate, however the reader can
|
sl@18
|
45 |
read any of the formats listed below.
|
sl@18
|
46 |
|
sl@18
|
47 |
mimetype: application/x-microsoft.net.object.binary.base64
|
sl@18
|
48 |
value : The object must be serialized with
|
sl@18
|
49 |
: System.Serialization.Formatters.Binary.BinaryFormatter
|
sl@18
|
50 |
: and then encoded with base64 encoding.
|
sl@18
|
51 |
|
sl@18
|
52 |
mimetype: application/x-microsoft.net.object.soap.base64
|
sl@18
|
53 |
value : The object must be serialized with
|
sl@18
|
54 |
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
sl@18
|
55 |
: and then encoded with base64 encoding.
|
sl@18
|
56 |
|
sl@18
|
57 |
mimetype: application/x-microsoft.net.object.bytearray.base64
|
sl@18
|
58 |
value : The object must be serialized into a byte array
|
sl@18
|
59 |
: using a System.ComponentModel.TypeConverter
|
sl@18
|
60 |
: and then encoded with base64 encoding.
|
sl@18
|
61 |
-->
|
sl@18
|
62 |
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
sl@18
|
63 |
<xsd:element name="root" msdata:IsDataSet="true">
|
sl@18
|
64 |
<xsd:complexType>
|
sl@18
|
65 |
<xsd:choice maxOccurs="unbounded">
|
sl@18
|
66 |
<xsd:element name="metadata">
|
sl@18
|
67 |
<xsd:complexType>
|
sl@18
|
68 |
<xsd:sequence>
|
sl@18
|
69 |
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
sl@18
|
70 |
</xsd:sequence>
|
sl@18
|
71 |
<xsd:attribute name="name" type="xsd:string" />
|
sl@18
|
72 |
<xsd:attribute name="type" type="xsd:string" />
|
sl@18
|
73 |
<xsd:attribute name="mimetype" type="xsd:string" />
|
sl@18
|
74 |
</xsd:complexType>
|
sl@18
|
75 |
</xsd:element>
|
sl@18
|
76 |
<xsd:element name="assembly">
|
sl@18
|
77 |
<xsd:complexType>
|
sl@18
|
78 |
<xsd:attribute name="alias" type="xsd:string" />
|
sl@18
|
79 |
<xsd:attribute name="name" type="xsd:string" />
|
sl@18
|
80 |
</xsd:complexType>
|
sl@18
|
81 |
</xsd:element>
|
sl@18
|
82 |
<xsd:element name="data">
|
sl@18
|
83 |
<xsd:complexType>
|
sl@18
|
84 |
<xsd:sequence>
|
sl@18
|
85 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
sl@18
|
86 |
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
sl@18
|
87 |
</xsd:sequence>
|
sl@18
|
88 |
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
sl@18
|
89 |
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
sl@18
|
90 |
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
sl@18
|
91 |
</xsd:complexType>
|
sl@18
|
92 |
</xsd:element>
|
sl@18
|
93 |
<xsd:element name="resheader">
|
sl@18
|
94 |
<xsd:complexType>
|
sl@18
|
95 |
<xsd:sequence>
|
sl@18
|
96 |
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
sl@18
|
97 |
</xsd:sequence>
|
sl@18
|
98 |
<xsd:attribute name="name" type="xsd:string" use="required" />
|
sl@18
|
99 |
</xsd:complexType>
|
sl@18
|
100 |
</xsd:element>
|
sl@18
|
101 |
</xsd:choice>
|
sl@18
|
102 |
</xsd:complexType>
|
sl@18
|
103 |
</xsd:element>
|
sl@18
|
104 |
</xsd:schema>
|
sl@18
|
105 |
<resheader name="resmimetype">
|
sl@18
|
106 |
<value>text/microsoft-resx</value>
|
sl@18
|
107 |
</resheader>
|
sl@18
|
108 |
<resheader name="version">
|
sl@18
|
109 |
<value>2.0</value>
|
sl@18
|
110 |
</resheader>
|
sl@18
|
111 |
<resheader name="reader">
|
sl@18
|
112 |
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
sl@18
|
113 |
</resheader>
|
sl@18
|
114 |
<resheader name="writer">
|
sl@18
|
115 |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
sl@18
|
116 |
</resheader>
|
sl@18
|
117 |
</root> |