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