1 | <?xml version="1.0" encoding="utf-8"?> |
---|
2 | |
---|
3 | <root> |
---|
4 | |
---|
5 | <!-- |
---|
6 | |
---|
7 | Microsoft ResX Schema |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | Version 1.3 |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | The primary goals of this format is to allow a simple XML format |
---|
16 | |
---|
17 | that is mostly human readable. The generation and parsing of the |
---|
18 | |
---|
19 | various data types are done through the TypeConverter classes |
---|
20 | |
---|
21 | associated with the data types. |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | Example: |
---|
26 | |
---|
27 | |
---|
28 | |
---|
29 | ... ado.net/XML headers & schema ... |
---|
30 | |
---|
31 | <resheader name="resmimetype">text/microsoft-resx</resheader> |
---|
32 | |
---|
33 | <resheader name="version">1.3</resheader> |
---|
34 | |
---|
35 | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
---|
36 | |
---|
37 | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
---|
38 | |
---|
39 | <data name="Name1">this is my long string</data> |
---|
40 | |
---|
41 | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
---|
42 | |
---|
43 | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
---|
44 | |
---|
45 | [base64 mime encoded serialized .NET Framework object] |
---|
46 | |
---|
47 | </data> |
---|
48 | |
---|
49 | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
---|
50 | |
---|
51 | [base64 mime encoded string representing a byte array form of the .NET Framework object] |
---|
52 | |
---|
53 | </data> |
---|
54 | |
---|
55 | |
---|
56 | |
---|
57 | There are any number of "resheader" rows that contain simple |
---|
58 | |
---|
59 | name/value pairs. |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | Each data row contains a name, and value. The row also contains a |
---|
64 | |
---|
65 | type or mimetype. Type corresponds to a .NET class that support |
---|
66 | |
---|
67 | text/value conversion through the TypeConverter architecture. |
---|
68 | |
---|
69 | Classes that don't support this are serialized and stored with the |
---|
70 | |
---|
71 | mimetype set. |
---|
72 | |
---|
73 | |
---|
74 | |
---|
75 | The mimetype is used for serialized objects, and tells the |
---|
76 | |
---|
77 | ResXResourceReader how to depersist the object. This is currently not |
---|
78 | |
---|
79 | extensible. For a given mimetype the value must be set accordingly: |
---|
80 | |
---|
81 | |
---|
82 | |
---|
83 | Note - application/x-microsoft.net.object.binary.base64 is the format |
---|
84 | |
---|
85 | that the ResXResourceWriter will generate, however the reader can |
---|
86 | |
---|
87 | read any of the formats listed below. |
---|
88 | |
---|
89 | |
---|
90 | |
---|
91 | mimetype: application/x-microsoft.net.object.binary.base64 |
---|
92 | |
---|
93 | value : The object must be serialized with |
---|
94 | |
---|
95 | : System.Serialization.Formatters.Binary.BinaryFormatter |
---|
96 | |
---|
97 | : and then encoded with base64 encoding. |
---|
98 | |
---|
99 | |
---|
100 | |
---|
101 | mimetype: application/x-microsoft.net.object.soap.base64 |
---|
102 | |
---|
103 | value : The object must be serialized with |
---|
104 | |
---|
105 | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
---|
106 | |
---|
107 | : and then encoded with base64 encoding. |
---|
108 | |
---|
109 | mimetype: application/x-microsoft.net.object.bytearray.base64 |
---|
110 | |
---|
111 | value : The object must be serialized into a byte array |
---|
112 | |
---|
113 | : using a System.ComponentModel.TypeConverter |
---|
114 | |
---|
115 | : and then encoded with base64 encoding. |
---|
116 | |
---|
117 | --> |
---|
118 | |
---|
119 | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
---|
120 | |
---|
121 | <xsd:element name="root" msdata:IsDataSet="true"> |
---|
122 | |
---|
123 | <xsd:complexType> |
---|
124 | |
---|
125 | <xsd:choice maxOccurs="unbounded"> |
---|
126 | |
---|
127 | <xsd:element name="data"> |
---|
128 | |
---|
129 | <xsd:complexType> |
---|
130 | |
---|
131 | <xsd:sequence> |
---|
132 | |
---|
133 | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
---|
134 | |
---|
135 | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
---|
136 | |
---|
137 | </xsd:sequence> |
---|
138 | |
---|
139 | <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> |
---|
140 | |
---|
141 | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
---|
142 | |
---|
143 | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
---|
144 | |
---|
145 | </xsd:complexType> |
---|
146 | |
---|
147 | </xsd:element> |
---|
148 | |
---|
149 | <xsd:element name="resheader"> |
---|
150 | |
---|
151 | <xsd:complexType> |
---|
152 | |
---|
153 | <xsd:sequence> |
---|
154 | |
---|
155 | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
---|
156 | |
---|
157 | </xsd:sequence> |
---|
158 | |
---|
159 | <xsd:attribute name="name" type="xsd:string" use="required" /> |
---|
160 | |
---|
161 | </xsd:complexType> |
---|
162 | |
---|
163 | </xsd:element> |
---|
164 | |
---|
165 | </xsd:choice> |
---|
166 | |
---|
167 | </xsd:complexType> |
---|
168 | |
---|
169 | </xsd:element> |
---|
170 | |
---|
171 | </xsd:schema> |
---|
172 | |
---|
173 | <resheader name="resmimetype"> |
---|
174 | |
---|
175 | <value>text/microsoft-resx</value> |
---|
176 | |
---|
177 | </resheader> |
---|
178 | |
---|
179 | <resheader name="version"> |
---|
180 | |
---|
181 | <value>1.3</value> |
---|
182 | |
---|
183 | </resheader> |
---|
184 | |
---|
185 | <resheader name="reader"> |
---|
186 | |
---|
187 | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
---|
188 | |
---|
189 | </resheader> |
---|
190 | |
---|
191 | <resheader name="writer"> |
---|
192 | |
---|
193 | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
---|
194 | |
---|
195 | </resheader> |
---|
196 | |
---|
197 | <data name="$this.Name"> |
---|
198 | |
---|
199 | <value>JTreeASTPanel</value> |
---|
200 | |
---|
201 | </data> |
---|
202 | |
---|
203 | </root> |
---|