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