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