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