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