2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml / ChangeLog
1 2010-01-12  Atsushi Enomoto  <atsushi@ximian.com>
2
3         * XmlConvert.cs : handle Infinity and -Infinity here due to the
4           commented reason.
5
6 2010-01-12  Atsushi Enomoto  <atsushi@ximian.com>
7
8         * XmlConvert.cs : ToSingle(string) should do the same as ToDouble().
9
10 2010-01-12  Atsushi Enomoto  <atsushi@ximian.com>
11
12         * XmlConvert.cs : ToDouble(string) should handle NaN, INF and -INF
13           with whitespace allowed.
14
15 2010-01-12  Atsushi Enomoto  <atsushi@ximian.com>
16
17         * XmlConvert.cs : ToDouble(string) and ToIntXX(string) allows
18           whitespaces.
19
20 2010-01-12  Atsushi Enomoto  <atsushi@ximian.com>
21
22         * XmlConvert.cs : ToString(DateTimeOffset) does not emit extra
23           fraction numbers.
24
25 2010-01-12  Atsushi Enomoto  <atsushi@ximian.com>
26
27         * XmlConvert.cs : fix some cosmetic compatibility bugs:
28           ArgumentException -> FormatException.
29
30 2010-01-12  Atsushi Enomoto  <atsushi@ximian.com>
31
32         * XmlWriter.cs : handle a corner case for empty string handling 
33           difference between XmlTextWriter and XmlWriter.Create().
34
35 2009-11-27  Atsushi Enomoto  <atsushi@ximian.com>
36
37         * NamespaceHandling.cs, XmlWriterSettings.cs, XmlTextWriter2.cs:
38           implement NamespaceHandling support for Moonlight.
39
40 2009-11-17  Atsushi Enomoto  <atsushi@ximian.com>
41
42         * XmlConvert.cs : fix DateTimeOffset roundtrip by giving format
43           strings in refined order. Patch by Santa Marta, at:
44           http://irc.gimite.net/channel/mono-jp/archive/20091105
45           ( http://smdn.invisiblefulmoon.net/misc/forum/programming/#n10 )
46
47 2009-11-13  Andreia Gaita  <avidigal@novell.com>
48
49         * XmlNamespaceManager.cs: XmlReader.Read calls LookupNamespace via
50         the internal sig, which skips any overrides that might exist on
51         subclasses, so redirect all calls to the public call to make sure
52         all overrides are called as well.
53         Make AddNamespace, HasNamespace and RemoveNamespace private.
54
55 2009-11-11  Atsushi Enomoto  <atsushi@ximian.com>
56
57         * XmlDocument.cs, XmlElement.cs, XmlAttribute.cs,
58           XmlAttributeCollection.cs :
59           when CreateElement() and/or CreateAttribute() are overriden,
60           use overriden method. Otherwise, use internal optimal ones.
61           Fixed bug #549839.
62
63 2009-11-11  Atsushi Enomoto  <atsushi@ximian.com>
64
65         * XmlNodeReaderImpl.cs : when the reader is at attribute value,
66           MoveToNextAttribute() incorrectly moved to the first attribute.
67           Fixed bug #550379.
68
69 2009-10-23  Andreia Gaita  <avidigal@novell.com>
70
71         * XmlConvert.cs: make ToUri static, fixes #548918 (moon)
72
73 2009-10-05  Atsushi Enomoto  <atsushi@ximian.com>
74
75         * XmlConvert.cs : fix wrong ToDateTimeOffset loop, based on the
76           patch by David Mitchell.
77
78 2009-09-15  Atsushi Enomoto  <atsushi@ximian.com>
79
80         * XmlAttributeCollection.cs : removed duplicate ID attribute check
81           here as this behavior not specifically defined by W3C DOM Level 2
82           specification. Fixed bug #508296.
83
84 2009-08-21  Atsushi Enomoto  <atsushi@ximian.com>
85
86         * XmlTextReader.cs : there still was use of bogus
87           XmlParserContext.NameTable.
88
89 2009-07-22  Atsushi Enomoto  <atsushi@ximian.com>
90
91         * XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed
92           as long as the URI is correct. Fixed bug #514015.
93
94 2009-07-22  Atsushi Enomoto  <atsushi@ximian.com>
95
96         * XmlInputStream.cs : cosmetic exception type change. Patch by
97           Hib Eris. Fixed bug #523971.
98
99 2009-05-27  Sebastien Pouliot  <sebastien@ximian.com>
100
101         * XmlReaderSettings.cs: Set prohibitDtd when changing the value 
102         of DtdProcessing. Will fix a few Moonlight DRT tests
103
104 2009-05-19  Atsushi Enomoto  <atsushi@ximian.com>
105
106         * XmlConvert.cs : no reason not to report invalid input string for
107           ToGuid().
108
109 2009-04-28  Sebastien Pouliot  <sebastien@ximian.com>  
110
111         * XmlTextReader.cs (InitializeContext): Under NET_2_1 do not give
112         a second change using Path.GetFullPath. (GetStreamFromUrl) Add
113         extra validations that would be missed in NET_2_1
114
115 2009-04-28  Sebastien Pouliot  <sebastien@ximian.com>
116
117         * XmlReaderSettings.cs: Add MaxCharactersInDocument property for 
118         NET_2_1 profile
119         * XmlUrlResolver.cs: Cleanup #ifdef NET_2_1 inside this file 
120         since this is not used anymore in Moonlight
121
122 2009-04-28  Sebastien Pouliot  <sebastien@ximian.com> 
123
124         * XmlXapResolver.cs: Remove dependency on XmlUrlResolver. Small 
125         fixes wrt new unit tests (inside moon-unit).
126
127 2009-04-28  Sebastien Pouliot  <sebastien@ximian.com>
128
129         * XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
130         method for NET_2_1 profile.
131
132 2009-04-22  Atsushi Enomoto  <atsushi@ximian.com>
133
134         * XmlQualifiedName.cs : added Parse() overload that is used for
135           xsd validation.
136
137 2009-04-22  Atsushi Enomoto  <atsushi@ximian.com>
138
139         * XmlAttributeCollection.cs : when the node to be inserted has owner
140           element _but_ is identical to that of this collection, do not
141           reject it to raise an error. Fixed bug #496022.
142
143 2009-03-25  Geoff Norton  <gnorton@novell.com>
144
145         * XmlTextReader.cs: Create the uri as relativeorabsolute.
146
147 2009-03-18  Atsushi Enomoto  <atsushi@ximian.com>
148
149         * XmlReader.cs : handle DateTimeOffset in typed reader methods.
150
151 2009-03-17  Atsushi Enomoto  <atsushi@ximian.com>
152
153         * XmlTextWriter2.cs : some weird TextWriter has null Encoding.
154           Fixed bug #372525.
155
156 2009-03-16  Atsushi Enomoto  <atsushi@ximian.com>
157
158         * XmlParserContext.cs : .NET has weird nametable initialization.
159           Fixed bug #484519.
160
161 2009-03-16  Atsushi Enomoto  <atsushi@ximian.com>
162
163         * XmlReader.cs : (ReadToFollowing) check LocalName, not Name.
164           Fixed bug #478506.
165
166 2009-03-16  Atsushi Enomoto  <atsushi@ximian.com>
167
168         * DTDRreader.cs : read up all DTD stream so that we don't have to
169           see bugs like #469317 many times.
170
171 2009-03-16  Atsushi Enomoto  <atsushi@ximian.com>
172
173         * XmlReaderBinarySupport.cs : ReadContentsAsBase64() could skip
174           EndElement at the next XmlReader.Read(). Fixed bug #480066.
175
176 2009-03-16  Atsushi Enomoto  <atsushi@ximian.com>
177
178         * XmlTextWriter2.cs : only bogus v1 XmlTextWriter ignores null
179           namespace for conflict check. Fixed bug #479725.
180
181 2009-03-13  Atsushi Enomoto  <atsushi@ximian.com>
182
183         * XmlConvert.cs : added ToUri() (extraneous in 2.0; used only from
184           2.1 S.X.Serialization.dll in MS SDK).
185
186 2009-03-02  Chris Toshok  <toshok@ximian.com>
187
188         * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
189         EntityResolvingXmlReader.cs: 2.1 has HasValue.
190
191
192 2009-02-27  Atsushi Enomoto  <atsushi@ximian.com>
193
194         * XmlReader.cs : do not try to read at non-readable state in
195           MoveToContent().
196
197 2009-02-23  Alan McGovern  <amcgovern@novell.com>
198
199         * XmlTextReader.cs: Under the SL2 profile, the default resolver
200         is a XmlXapResolver.
201
202 2009-02-23  Atsushi Enomoto  <atsushi@ximian.com>
203
204         * XmlReader.cs : ReadContentAsXxx() should not advance XmlReader
205           when it is on attribute *value* text.
206
207 2009-02-10  Atsushi Enomoto  <atsushi@ximian.com>
208
209         * XmlTextWriter2.cs : similar fix in WriteStartElement() to
210           previous change. Fixed bug #474091.
211
212 2009-02-09  Atsushi Enomoto  <atsushi@ximian.com>
213
214         * XmlElementTest.cs: SetAttribute(name,value) should identify value
215           change for existing node, from new node insertion.
216           Fixed bug #464394.
217
218 2009-02-06  Atsushi Enomoto  <atsushi@ximian.com>
219
220         * XmlTextWriter2.cs : in WriteStartAttribute(), fill namespace in
221           case it is null and the prefix has matching ns. Fixed bug #472634.
222
223 2009-01-30  Atsushi Enomoto  <atsushi@ximian.com>
224
225         * DTDValidatingReader2.cs, EntityResolvingXmlReader.cs : simplify
226           parsercontext provision.
227         * XmlValidatingReader.cs : expand parser context provision to
228           non-dtdvalidating readers.
229
230 2009-01-22  Atsushi Enomoto  <atsushi@ximian.com>
231
232         * XmlXapResolver.cs : fix assembly qualified names,
233           and give detailed errors.
234         * XmlResolver.cs : in 2.1 do not resolve relative Uri
235           to absolute.
236
237 2009-01-22  Atsushi Enomoto  <atsushi@ximian.com>
238
239         * XmlXapResolver.cs : new in 2.1.
240         * XmlReaderSettings.cs : use above.
241
242 2009-01-20  Atsushi Enomoto  <atsushi@ximian.com>
243
244         * XmlDocumentNavigator.cs : in some corner cases an attribute
245           may have null OwnerElement. Fixed bug #458245.
246
247 2009-01-20  Atsushi Enomoto  <atsushi@ximian.com>
248
249         * XmlReaderBinarySupport.cs : do not hang in the middle of reading
250           byte chunk at some node types. Fixed bug #464229.
251
252 2009-01-14  Sebastien Pouliot  <sebastien@ximian.com>
253
254         * NamespaceHandling.cs: New. Enum for Silverlight 2. Microsoft's 
255         System.Xml.Linq.dll (often bundled in XAP files) needs it (or we 
256         throw a TypeLoadException).
257         * XmlWriterSettings.cs: Add SL2 specific NamespaceHandling property
258
259 2009-01-08  Atsushi Enomoto  <atsushi@ximian.com>
260
261         * XmlReader.cs : ReadContentAsString() does not reject non-elements.
262           ReadElementContentAsString() rejects non-content nodes.
263
264 2008-12-19  Atsushi Enomoto  <atsushi@ximian.com>
265
266         * XmlNamespaceManager.cs : namespace lookup failed for non-atomic
267           string in 1.1 profile. Fixed 1.0 part of #379139.
268
269 2008-12-18  Atsushi Enomoto  <atsushi@ximian.com>
270
271         * DTDValidatingReader.cs : remove unused file.
272
273 2008-11-04  Atsushi Enomoto  <atsushi@ximian.com>
274
275         * XmlTextReader.cs : simply call ClearValueBuffer() on each Read().
276
277 2008-10-02  Atsushi Enomoto  <atsushi@ximian.com>
278
279         * XmlDocumentNavigator.cs : added some overriden methods (to be
280           implemented).
281
282 2008-09-24  Atsushi Enomoto  <atsushi@ximian.com>
283
284         * XmlDocument.cs : it returns non-null Schemas by default (and
285           returns non-empty set after being set null).
286
287 2008-09-17  Atsushi Enomoto  <atsushi@ximian.com>
288
289         * XmlReader.cs : detailed error location in ReadSubtree().
290
291 2008-09-17  Atsushi Enomoto  <atsushi@ximian.com>
292
293         * XmlReader.cs : ReadSubtree() is valid only on an element.
294
295 2008-09-10  Atsushi Enomoto  <atsushi@ximian.com>
296
297         * XmlDocument.cs, XmlDocumentNavigator.cs :
298           reduce navigator fields.
299
300 2008-08-21  Stephane Delcroix  <sdelcroix@novell.com>
301
302         * EnityResolvingXmlReader.cs:
303         * XmlReader.cs:
304         * XmlTextReader.cs:
305         * XmlTextReader2.cs: re-enable ResolveEntity for 2.1
306
307 2008-08-21  Stephane Delcroix  <sdelcroix@novell.com>
308
309         * XmlReaderSettings.cs: adding DtdProcessing and
310         MaxCharactersFromEntities properties for 2.1
311
312 2008-08-21  Stephane Delcroix  <sdelcroix@novell.com>
313
314         * DtdProcessing: adding this enum on the 2.1 build
315
316 2008-08-05  Jb Evain  <jbevain@novell.com>
317
318         * XmlConvert.cs (ToChar): add a specific SL2 version.
319
320 2008-07-28  Atsushi Enomoto  <atsushi@ximian.com>
321
322         * XmlNamespaceManager.cs : check null arg.
323         * XmlTextReader.cs : fixed bug #412657; now we populate nametable
324           and namespace manager in case they are null in parser context, and
325           use them instead of the members in the parser context.
326
327 2008-06-11  Atsushi Enomoto  <atsushi@ximian.com>
328
329         * XmlConvert.cs : fixed bug #397934. Utc mode accepts more formats.
330
331 2008-06-11  Atsushi Enomoto  <atsushi@ximian.com>
332
333         * XmlConvert.cs : no need for TARGET_JVM.
334
335 2008-06-09  Atsushi Enomoto  <atsushi@ximian.com>
336
337         * XmlTextReader.cs : when Normalized is true, '<' after \r which
338           comes after text node was incorrectly consumed as a text content.
339           Fixed bug #398374.
340
341 2008-06-05  Atsushi Enomoto  <atsushi@ximian.com>
342
343         * XmlConvert.cs : now we can use roundtrip format for float/double.
344           Fixed bug #320424.
345
346 2008-06-04  Atsushi Enomoto  <atsushi@ximian.com>
347
348         * XmlTextReader2.cs : added FIXME comment which won't fix, that
349           I have noticed during fixing bug #378239.
350
351 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
352
353         * XmlReader.cs : some Create() overloads with baseUri argument did
354           not set baseUri correctly. Fixed bug #392385.
355
356 2008-05-07  Atsushi Enomoto  <atsushi@ximian.com>
357
358         * XmlReader.cs : force CloseInput to every XmlReader that is created
359           from url (I mean, every internal XmlReader instance).
360
361 2008-04-17  Atsushi Enomoto  <atsushi@ximian.com>
362
363         * XmlAttributeCollection.cs : check attribute identity only if the
364           source node is in the document tree. Fixed bug #380720.
365
366 2008-02-19  Atsushi Enomoto  <atsushi@ximian.com>
367
368         * XmlParserContext.cs : .net does not populate XmlNamespaceManager
369           automatically.
370         * XmlDocument.cs : so, always create one here.
371
372 2008-01-25  Atsushi Enomoto  <atsushi@ximian.com>
373
374         * XmlReader.cs : MoveToNextSibling() should check EOF (as Skip() does
375           not). Fixed bug #347768.
376
377 2008-01-15  Atsushi Enomoto  <atsushi@ximian.com>
378
379         * XmlParserContext.cs : do not pass invalid URI to XmlTextReader#ctor
380           even as a dummy. Fixed bug #353654.
381
382 2007-12-17  Atsushi Enomoto  <atsushi@ximian.com>
383
384         * XmlConvert.cs : added NET_3_5 members.
385
386 2007-12-06  Atsushi Enomoto  <atsushi@ximian.com>
387
388         * XmlUrlResolver.cs : in net_2_0, use Uri.IsAbsoluteUri to filter
389           relative URIs out.
390
391 2007-11-09  Atsushi Enomoto  <atsushi@ximian.com>
392
393         * XmlConvert.cs : ToDateTime(XmlDateTimeSerializationMode) should
394           allow more strings than existing one. Fixed bug #339004.
395
396 2007-10-30  Atsushi Enomoto  <atsushi@ximian.com>
397
398         * XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
399           not Parse(). Use 'K' for roundtrip format.
400
401 2007-10-10  Atsushi Enomoto  <atsushi@ximian.com>
402
403         * XmlTextWriter2.cs : making <del>silly</del>funky MS compatibility
404           change in WriteStartAttribute() to call WriteEndAttribute() if an
405           attribute is open.
406
407 2007-10-10  Atsushi Enomoto  <atsushi@ximian.com>
408
409         * XmlTextWriter2.cs : I could make previous change only in 2.0 mode.
410
411 2007-10-10  Atsushi Enomoto  <atsushi@ximian.com>
412
413         * XmlTextWriter2.cs : When it is at Error state, do not try to close
414           attributes and elements at Close(). They will result in further
415           error and rather hide the actual issue when disposed.
416
417 2007-09-28  Atsushi Enomoto  <atsushi@ximian.com>
418
419         * XmlWriter.cs : it is now documented that WriteNode(XPathNavigator)
420           ignores attributes and namespace decls, so do that.
421         * XQueryConvert.cs : removed extra stuff that are not in use.
422
423 2007-09-27  Atsushi Enomoto  <atsushi@ximian.com>
424
425         * XmlWriter.cs : implemented WriteValue(object) based on
426           MSDN "Writing Typed Data" with some fix.
427           http://msdn2.microsoft.com/en-us/library/bft97s8e(VS.80).aspx
428         * XmlTextWriter.cs : state check is extraneous. It caused unexpected
429           rejection of empty namespace URI.
430
431 2007-08-13  Atsushi Enomoto  <atsushi@ximian.com>
432
433         * XmlTextWriter2.cs : fix extraneous indentation which is put after
434           omitted xmldecl.
435
436 2007-08-09  Jb Evain  <jbevain@novell.com>
437
438         * XmlTextReader.cs: Avoid using 2.0 only feature in 2.1.
439
440 2007-08-09  Jb Evain  <jbevain@novell.com>
441
442         * XmlConvert.cs: use 2.1 available overloads of Parse.
443
444 2007-08-09  Jb Evain  <jbevain@novell.com>
445
446         * XmlInputStream.cs: there's no ASCII encoding in 2.1.
447
448 2007-08-09  Atsushi Enomoto  <atsushi@ximian.com>
449
450         * XmlReader.cs XmlNodeReader2.cs XmlTextReader.cs XmlTextReader2.cs
451           XmlNodeReaderImpl.cs EntityResolvingXmlReader.cs :
452           The previous attempt was wrong. Those internal-virtualized ones
453           could be used in System.Xml.Core classes and outside the assembly
454           any derived XmlReaders would have thrown throw Exception.
455           Now I marked them as nonexistent-in-2.1 or privatized.
456         * XmlWriter.cs : actually only this class is affected (if there
457           were DOM or XSD they would have been affected as well).
458
459 2007-08-09  Atsushi Enomoto  <atsushi@ximian.com>
460
461         * XmlReader.cs : HasValue, ReadAttributeValue() and ResolveEntity()
462           do not exist in 2.1 profile. Hiding abstract stuff seems to cause
463           some issues at run time, so they are ifdef-ed out from 2.1.
464         * XmlNodeReader2.cs DTDValidatingReader2.cs XmlTextReader.cs
465           XmlTextReader2.cs XmlNodeReaderImpl.cs DTDValidatingReader.cs
466           EntityResolvingXmlReader.cs : hence the change above.
467
468 2007-08-04  Jb Evain  <jbevain@novell.com>
469
470         * XmlUrlResolver.cs: remove code duplication in 2.1.
471
472 2007-08-04  Jb Evain  <jbevain@novell.com>
473
474         * XmlTextReader.cs, XmlConvert.cs, XmlReaderBinarySupport.cs:
475         Use the available constructor for the 2.1 profile.
476
477 2007-08-03  Atsushi Enomoto  <atsushi@ximian.com>
478
479         * DTDObjectModel.cs : in 2.0 and especially 2.1 profiles, use
480           our own DictionaryBase-like generic type. It is to reduce
481           dependency on DictionaryBase which does not exist in 2.1 mscorlib.
482           (included in 2.0 as well so that we do not skip NUnit tests so far)
483
484 2007-08-03  Atsushi Enomoto  <atsushi@ximian.com>
485
486         * XmlResolver.cs, XmlUrlResolver.cs, XmlSecureResolver.cs :
487           remove ICredential in NET_2_1 (they have to be explicitly removed
488           outside tuner work as ICredentials does not exist in 2.1 profile).
489           We cannot use WebRequest in 2.1 as well, so remove dependency on
490           it in GetEntity() (and added MonoTODO for non-file URLs).
491
492 2007-07-12  Atsushi Enomoto  <atsushi@ximian.com>
493
494         * XmlWriter.cs : in WriteNode(XPathNavigator,bool), default namespace
495           is broken. Fixed bug #82051.
496
497 2007-07-11  Atsushi Enomoto  <atsushi@ximian.com>
498
499         * XmlReader.cs : looks like I introduced extra Settings check at
500           r69383. Fixed bug #82062.
501
502 2007-07-04  Atsushi Enomoto  <atsushi@ximian.com>
503
504         * DTDValidatingReader2.cs :
505           we can remove NET_2_1 from this unused code in SL.
506
507 2007-07-04  Atsushi Enomoto  <atsushi@ximian.com>
508
509         * DTDAutomata.cs DTDObjectModel.cs DTDReader.cs
510           DTDValidatingReader2.cs XmlException.cs XmlReader.cs
511           XmlReaderSettings.cs XmlWriter.cs :
512           Make System.Xml.Core.dll build easier, using NET_2_1.
513
514           DTD support is simply cut at this stage (as it largely depends on
515           sys.xml.schema stuff).
516
517 2007-06-30  Gert Driesen  <drieseng@users.sourceforge.net>
518
519         * XmlTextReader.cs: Expose ProhibitDtd on 1.0 profile too.
520
521 2007-06-13  Atsushi Enomoto  <atsushi@ximian.com>
522
523         * XmlNode.cs : InnerText is settable on XmlDocumentFragment (silly,
524           but since XmlDocumentFragment does not override this property
525           it must be handled here).
526
527 2007-06-11  Atsushi Enomoto  <atsushi@ximian.com>
528
529         * XmlTextReader.cs : ReadStartElement() has bogus error message.
530
531 2007-05-31  Atsushi Enomoto  <atsushi@ximian.com>
532
533         * XmlTextWriter2.cs :
534           NewLineOnAttributes indentation fix, for bug #81770.
535
536 2007-05-25  Atsushi Enomoto  <atsushi@ximian.com>
537
538         * XQueryConvert.cs : removed unused methods. They will prevent
539           System.Xml.Core.dll implementation.
540
541 2007-05-15  Konstantin Triger <kostat@mainsoft.com>
542
543         * XmlWriter.cs, XmlTextWriter2.cs: ensure the file
544                 is closed in XmlWriter.Create(filename).
545
546 2007-04-25  Atsushi Enomoto  <atsushi@ximian.com>
547
548         * XmlConvert.cs : MinValue and MaxValue, same for ToDateTime().
549
550 2007-04-25  Atsushi Enomoto  <atsushi@ximian.com>
551
552         * XmlConvert.cs : MinValue and MaxValue are unchanged by the
553           serialization mode (unlike DateTime.ToString()).
554
555 2007-04-25  Atsushi Enomoto  <atsushi@ximian.com>
556
557         * XmlConvert.cs : in 2.0, use F instead of f in dateTime formatting.
558
559 2007-04-25  Atsushi Enomoto  <atsushi@ximian.com>
560
561         * XmlReader.cs : fixed wrong depth comparison in ReadToNextSibling().
562           Fixed bug #81451, by Eric Mercier.
563
564 2007-04-03  Atsushi Enomoto  <atsushi@ximian.com>
565
566         * XmlTextReader.cs : character ']' inside DTD comment caused parser
567           error. Fixed bug #81294.
568
569 2007-03-05  Atsushi Enomoto  <atsushi@ximian.com>
570
571         * XmlReader.cs : when Create() returns customized XmlTextReader, set
572           EntityHandling.ExpandEntities. Fixed bug #81000.
573
574 2007-02-20  Atsushi Enomoto  <atsushi@ximian.com>
575
576         * XmlTextReader.cs, XmlTextReader2.cs : Reset() should work now.
577           Closing bug #80849.
578
579 2007-02-20  Atsushi Enomoto  <atsushi@ximian.com>
580
581         * DTDValidatingReader2.cs, XmlTextReader.cs, XmlNodeReaderImpl.cs:
582           Read() silently returns false when it is closed. Fixed bug #80848.
583
584 2007-02-07  Atsushi Enomoto  <atsushi@ximian.com>
585
586         * XmlReader.cs : ReadElementContentAsString() and all relevant methods
587           didn't consume empty element correctly.
588
589 2006-12-20  Atsushi Enomoto <atsushi@ximian.com>
590
591         * XmlNode.cs : (InsertBefore) when newChild == refChild, do nothing
592           except for node type check. Fixed bug #80331.
593
594 2006-12-19  Atsushi Enomoto <atsushi@ximian.com>
595
596         * XmlTextReader.cs : Fixed ReadChars() to consume child elements,
597           including such cases that it breaks tags in the middle of multiple
598           ReadChars() calls. Fixed bug #80308.
599
600 2006-12-19  Atsushi Enomoto <atsushi@ximian.com>
601
602         * XmlTextReader.cs : ReadChars() does not have to store characters,
603           so avoid extra storing. Patch by Csaba Halasz, fixed bug #80306.
604
605 2006-12-12  Atsushi Enomoto <atsushi@ximian.com>
606
607         * XmlNode.cs : InnerText was returning comment text when there was
608           only a Comment node. Fixed bug #80233.
609
610 2006-12-12  Atsushi Enomoto <atsushi@ximian.com>
611
612         * XmlReader.cs : Create() with string url was not returning validating
613           XmlReader.
614
615 2006-12-12  Atsushi Enomoto <atsushi@ximian.com>
616
617         * DTDValidatingReader2.cs : when an attribute declaration is missing
618           in the corresponding attlist declaration, it caused NRE.
619           Fixed bug #80231.
620
621 2006-12-11  Atsushi Enomoto <atsushi@ximian.com>
622
623         * XmlDocument.cs : call overriden CreateAttribute() when loading from
624           XmlReader.
625
626 2006-12-05  Atsushi Enomoto <atsushi@ximian.com>
627
628         * XmlReader.cs : new 2.0 MoveToAttribute(int) failed to move to the
629           final attribute in an element.
630
631 2006-12-05  Atsushi Enomoto <atsushi@ximian.com>
632
633         * XmlNode.cs : GetPrefixOfNamespace() was not correctly searching
634           ancestors' namespaces.
635
636 2006-11-20  Atsushi Enomoto <atsushi@ximian.com>
637
638         * XmlTextWriter2.cs : fixed some relationship between
639           ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
640           See new tests more details.
641         * XmlWriter.cs : it could reuse XmlTextWriter.ctor(TextWriter,
642           XmlWriterSettings). It also resulted in dropping several internal
643           members in XmlTextWriter.
644
645 2006-11-14  Atsushi Enomoto <atsushi@ximian.com>
646
647         * XmlReaderSettings.cs : in copy constructor, copy (dispatch)
648           validation event as well. Add OnValidationError() to be invoked
649           by other internal stuff to raise the validation event.
650
651 2006-11-13  Michael Meeks  <michael.meeks@novell.com>
652
653         * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs:
654         pass the XmlResolver through to the GetStream impl.
655
656 2006-10-30  Atsushi Enomoto <atsushi@ximian.com>
657
658         * XmlTextReader2.cs : if DTD does not exist, do not try to resolve
659           entity from null DTD (caused NRE). Fixed bug #79620.
660
661 2006-10-27  Atsushi Enomoto <atsushi@ximian.com>
662
663         * DTDReader.cs : some parameter entity expansions were not done.
664           Fixed bug #79683.
665
666 2006-09-27  Atsushi Enomoto <atsushi@ximian.com>
667
668         * XmlTextWriter2.cs : null arg check.
669
670 2006-09-26  Atsushi Enomoto <atsushi@ximian.com>
671
672         * XmlDeclaration.cs :
673           Removed bogus return statement in Value. Fixed bug #79496.
674
675 2006-09-21  Atsushi Enomoto <atsushi@ximian.com>
676
677         * XmlNameEntryCache.cs : It should expand temporary buffer even at
678           initial state. Fixed bug #79468.
679
680 2006-09-19  Atsushi Enomoto <atsushi@ximian.com>
681
682         * XmlElement.cs : for non-atomized names, alter null prefix with "".
683           Fixed bug #79420.
684
685 2006-09-04  Atsushi Enomoto <atsushi@ximian.com>
686
687         * XmlReader.cs : ReadContentAsString() and its family should allow 
688           attribute node. Fixed bug #79268.
689
690 2006-09-01  Atsushi Enomoto <atsushi@ximian.com>
691
692         * XmlTextWriter2.cs : expect atomized names only when it is
693           appropriate. Fixed bug #79047.
694
695 2006-08-26  Atsushi Enomoto <atsushi@ximian.com>
696
697         * XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
698           so that it could fill default and fixed attributes. This ends up
699           to fix bug #79163 (it fills fixed "xmlns" attribute and thus
700           the node's namespace URI becomes that of glade-2.0).
701
702 2006-08-17  Atsushi Enomoto <atsushi@ximian.com>
703
704         * XmlEntity.cs, XmlEntityReference.cs, XmlNode.cs :
705           create entity content only when its children is being accessed.
706           It results differently when there is no actual reference in the
707           document - an invalid entity value (when it is used to create
708           child nodes) is ignored unless a code tries to access the Value
709           of an XmlEntity. Fixed bug #79091
710         * DTDReader.cs : the fix above uncovered another bug (ibm66n03.xml).
711           Check illegal reference name in literal entity value.
712
713 2006-08-17  Atsushi Enomoto <atsushi@ximian.com>
714
715         * XmlTextReader.cs, XmlTextReader2.cs, DTDReader.cs :
716           (ResolveExternalEntityReplacementText) need to skip text
717           declaration in external entities. To make it possible internalize
718           SkipTextDeclaration() in XmlTextReader(2). Fixed bug #79090.
719
720 2006-08-16  Atsushi Enomoto <atsushi@ximian.com>
721
722         * XmlTextReader2.cs : Check recursive entity reference.
723           Fixed bug #79085. It makes W3C standalone tests on NET_2_0 working.
724
725 2006-08-14  Atsushi Enomoto <atsushi@ximian.com>
726
727         * XmlTextReader.cs : When a whitespace node comes after a text 
728           declaration in XML external entity (i.e. .ctor() with
729           XmlNodeType.Element), it contained extra value character ('<').
730
731 2006-08-10  Atsushi Enomoto <atsushi@ximian.com>
732
733         * XmlTextWriter2.cs : more indentation fixes. Now I believe it is
734           almost MS compat, but it won't help poor Mike.
735
736 2006-08-07  Atsushi Enomoto <atsushi@ximian.com>
737
738         * XmlTextWriter2.cs : WriteBinHex() is allowed at Attribute state.
739           Fixed bug #79019.
740
741 2006-07-28  Atsushi Enomoto <atsushi@ximian.com>
742
743         * XmlTextWriter2.cs : fixed some indentation bugs: comments and PIs
744           should not cause indentation override like text, cdata and
745           whitespaces do.
746           Fixed some error messages on node kind.
747         * XmlTextWriter.cs, XmlTextWriterOpenElement.cs : removed old code.
748           (I don't want to remove old great code but it confused mike today.)
749
750 2006-07-26  Atsushi Enomoto <atsushi@ximian.com>
751
752         * XmlReader.cs :
753           For DTD validator, call to SetSchemas() makes no sense.
754         * XmlValidatingReader.cs : now it internally holds old
755           XmlSchemaCollection instead of new XmlSchemaSet, to make
756           XmlSchemaSet.SchemaCollection unneccessary.
757           Removed SetSchemas() since it is now extraneous because of the
758           XmlReaderChange above.
759
760 2006-07-25  Atsushi Enomoto <atsushi@ximian.com>
761
762         * XmlConvert.cs : TimeSpan conversion for TimeSpan.MinValue was
763           failing.
764
765 2006-07-19  Atsushi Enomoto <atsushi@ximian.com>
766
767         * XmlReader.cs : In Create(), support validation flags for DTD.
768         * DTDValidatingReader2.cs : when NET_2_0 and ProcessIdentityConstraints
769           is false, skip ID validation.
770
771 2006-06-26  Atsushi Enomoto <atsushi@ximian.com>
772
773         * XmlReader.cs : when Create() received string url, it should set 
774           XmlTextReader2.CloseInput always true. Fixed bug #78706.
775
776 2006-06-08  Atsushi Enomoto <atsushi@ximian.com>
777
778         * XmlTextWriter2.cs : if an attribute being written has the same
779           non-empty namespace URI as current default namespace, its prefix
780           should be written. Fixed bug #78598.
781
782 2006-05-09  Atsushi Enomoto <atsushi@ximian.com>
783
784         * XmlAttribute.cs : (WriteTo) when the namespace URI is empty,
785           always use empty string for prefix.
786
787 2006-04-27  Geoff Norton  <gnorton@customerdna.com>
788
789         * XmlDocument.cs: Move back to the element after
790         reading an attribute.  This mimics Microsofts behaviour.
791
792 2006-04-21  Atsushi Enomoto <atsushi@ximian.com>
793
794         * XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
795           rejected after writing some content. I totally disagree on that
796           it should be allowed, but here is the fix.
797
798 2006-04-14  Atsushi Enomoto <atsushi@ximian.com>
799
800         * XmlReader.cs : ReadElementContentAsObject() incorrectly rejected
801           the argument type System.Object.
802
803 2006-04-10  Atsushi Enomoto <atsushi@ximian.com>
804
805         * XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
806           and root nodes instead of dispatching to ReadSubtree().
807
808 2006-04-06  Atsushi Enomoto <atsushi@ximian.com>
809
810         * XmlReader.cs : ReadElementContentAsXXX() did not consume empty
811           element correctly.
812
813 2006-04-05  Atsushi Enomoto <atsushi@ximian.com>
814
815         * XmlWriter.cs : Create(StringBuilder,XmlWriterSettings) was missing
816           settings argument to pass another .ctor().
817         * XmlWriterSettings.cs : set_NewLineChars() should reject null.
818
819 2006-04-03      Boris Kirzner <borisk@mainsoft.com>
820         * XmlException.cs: fix .net soap serialization compatibility.
821
822 2006-03-28  Atsushi Enomoto <atsushi@ximian.com>
823
824         * XmlNameEntry.cs XmlNameEntryCache.cs :
825           Added atomization support for prefixed names.
826           Inspired by Joshua Tauberer's patch.
827         * XmlElement.cs XmlAttribute.cs : use above.
828
829 2006-03-23  Atsushi Enomoto <atsushi@ximian.com>
830
831         * XmlReader.cs : in XmlReader.Create() ValidationType Auto and XDR
832           are simply ignored (it was found on running NvdlValidatingReader
833           under MS.NET 2.0).
834
835 2006-03-23  Atsushi Enomoto <atsushi@ximian.com>
836
837         * DTDValidatingReader.cs : avoid NullReferenceException. Input
838           XmlReader might not be IHasXmlParserContext.
839
840 2006-03-08  Atsushi Enomoto <atsushi@ximian.com>
841
842         * XmlReader.cs: ReadContentAsXXX() just stops at start element,
843           without rejecting it as an error.
844           ReadElementContentAsXXX() rejects child element nodes.
845
846 2006-02-28  Atsushi Enomoto <atsushi@ximian.com>
847
848         * XmlElement.cs : (WriteTo) use IsEmpty to determine which to use:
849           WriteEndElement() and WriteFullEndElement(). Fixed sys.security
850           regression.
851
852 2006-02-24  Atsushi Enomoto <atsushi@ximian.com>
853
854         * XmlTextWriter2.cs :
855           WriteRaw() has stupid second arg. Fixed bug #77623.
856           WriteString() should raise an error when it is called immediately
857           after WriteStartDocument().
858
859 2006-02-22  Atsushi Enomoto <atsushi@ximian.com>
860
861         * XmlTextWriter2.cs : WriteChars() should allow Attribute state.
862
863 2006-02-22  Atsushi Enomoto <atsushi@ximian.com>
864
865         * XmlChar.cs : (IndexOfInvalidChar) fixed surrogate pairs handling.
866           They were always regarded as invalid.
867         * XmlTextWriter2.cs : seems like MS XmlTextWriter outputs invalid
868           characters as character references. It totally does not make sense
869           but corcompare depended on that behavior.
870
871           This "compatibility" fix causes 10% or more performance loss!!!
872
873 2006-02-21  Atsushi Enomoto <atsushi@ximian.com>
874
875         * XmlTextWriter2.cs : (WriteStartAtribute) more == removal.
876         * XmlNode.cs : (get_InnerText) reduce extra StringBuilder creation.
877
878 2006-02-21  Atsushi Enomoto <atsushi@ximian.com>
879
880         * XmlTextWriter2.cs : (WriteStartAttribute) reduced string == string.
881
882 2006-02-21  Atsushi Enomoto <atsushi@ximian.com>
883
884         * XmlDocument.cs : (ReadNodeCore) not public.
885
886 2006-02-21  Atsushi Enomoto <atsushi@ximian.com>
887
888         * XmlTextWriter2.cs : (CloseStartElement)
889           Avoid ArrayList.Clear() and culture-sensitive Contains().
890
891 2006-02-21  Atsushi Enomoto <atsushi@ximian.com>
892
893         * XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
894           which discards "overriden" namespaces.
895         * XmlTextWriter2.cs : fresh implementation.
896           - The source structure is simplified and cleaner.
897           - When outputting escaped string, output directly to TextWriter.
898           - roughly 20% performance improvement.
899
900           (Also fixed previous perf. evaluation excess in ChangeLog.)
901
902 2006-02-20  Atsushi Enomoto <atsushi@ximian.com>
903
904         * XmlElement.cs : (WriteTo) make use of HasAttributes. Remove extra
905           check. 5% speed improvement.
906
907 2006-02-20  Atsushi Enomoto <atsushi@ximian.com>
908
909         * DTDValidatingReader2.cs : added Source XmlReader property for
910           XsdValidatingReader use (see XsdValidatingReader change as well).
911
912 2006-02-20  Atsushi Enomoto <atsushi@ximian.com>
913
914         * EntityResolvingXmlReader.cs, XmlNodeReader2.cs, XmlTextReader2.cs :
915           in get_NodeType() entity reader existence check is faster.
916         * DTDValidatingReader2.cs : IsDefault could be avoided.
917
918 2006-02-20  Atsushi Enomoto <atsushi@ximian.com>
919
920         * XmlNodeReaderImpl.cs : optimized Depth.
921
922 2006-02-20  Atsushi Enomoto <atsushi@ximian.com>
923
924         * XmlValidatingReader.cs : reducing layered ReadState invocation
925           results in 10% speed up.
926
927 2006-02-20  Atsushi Enomoto <atsushi@ximian.com>
928
929         * XmlNodeReaderImpl.cs : Reimplemented Read(). Points are:
930           - reduced call to NextSibling which is very unlikely to be inlined
931           - reorganized conditioning to avoid extra check
932           - added description on each returning branch.
933           - And then, removed unused code.
934           It is 1.5x faster than before.
935
936 2006-02-17  Atsushi Enomoto <atsushi@ximian.com>
937
938         * XmlElement.cs : NextSibling could be effectively computed using
939           LastLinkedChild, beyond previous XmlLinkedNode optimization.
940
941 2006-02-17  Atsushi Enomoto <atsushi@ximian.com>
942
943         * XmlLinkedNode.cs : In NextSibling, use LastChild directly.
944           It improves NextSibling performance in bulky document.
945
946 2006-02-17  Atsushi Enomoto <atsushi@ximian.com>
947
948         * XmlNodeReaderImpl.cs : do not compute ownerLinkedNode, just store
949           it in Read(). Simply use state field in EOF. They result in 20%
950           perf. boost. Expanding EOF also improved performance by 2-3%
951           (mono --optimize=inline might work in the later stage).
952
953 2006-02-17  Atsushi Enomoto <atsushi@ximian.com>
954
955         * DTDValidatingReader2.cs : more refactoring. Split ReadContent()
956           into some methods. Reduced some extra MoveToElement().
957
958 2006-02-17  Atsushi Enomoto <atsushi@ximian.com>
959
960         * DTDValidatingReader2.cs : more refactoring. Removed and simplified
961           some error check. String += would be enough for entity-reference-
962           mixed attributes which rarely happen, so simplify the code.
963           Added comments on how the fields are used.
964
965 2006-02-17  Atsushi Enomoto <atsushi@ximian.com>
966
967         * DTDValidatingReader2.cs : attribute node simplification. It now
968           stores attribute node slots, including default attributes for
969           further refactoring.
970
971 2006-02-17  Atsushi Enomoto <atsushi@ximian.com>
972
973         * DTDValidatingReader2.cs, EntityResolvingXmlReader.cs :
974           new files for refactoring DTD validating reader. As the first stage,
975           it splits entity handling process from DTD validation step.
976
977           (DTDValidatingReader.cs will be removed at some stage).
978
979 2006-02-17  Atsushi Enomoto <atsushi@ximian.com>
980
981         * DTDObjectModel.cs : entity resolution method will be used in
982           the next DTD validating reader in 1.x.
983
984 2006-02-16  Atsushi Enomoto <atsushi@ximian.com>
985
986         * IHasXmlChildNode.cs :
987           New internal interface to hold LastLinkedChild.
988         * XmlNodeListChildren.cs XmlEntity.cs XmlElement.cs XmlAttribute.cs
989           XmlLinkedNode.cs XmlEntityReference.cs XmlNode.cs
990           XmlDocumentFragment.cs XmlDocument.cs : use it. It minimizes memory
991           consumption in XmlText, XmlWhitespace, XmlComment etc.
992
993 2006-02-16  Atsushi Enomoto <atsushi@ximian.com>
994
995         * XmlChar.cs : added IndexOfNonWhitespace() and IndexOfInvalid() (not
996           in use yet).
997         * NewLineHandling.cs : prepared to be used internally in 1.x.
998
999 2006-02-16  Atsushi Enomoto <atsushi@ximian.com>
1000
1001         * XmlDocument.cs XmlTextReader.cs : in ReadNode(), we can avoid
1002           extraneous whitespace node creation for XmlTextReader by setting
1003           WhitespaceHandling.Significant when PreserveWhitespace is false.
1004
1005 2006-02-16  Atsushi Enomoto <atsushi@ximian.com>
1006
1007         * XmlTextReader.cs : atomize whitespace values. It effectively saves
1008           memory consumption when an input XML is indented.
1009
1010 2006-02-14  Atsushi Enomoto <atsushi@ximian.com>
1011
1012         * XmlTextReader.cs : When "Significant" is assigned to
1013           WhitespaceHandling, it should ignore non-significant whitespaces.
1014
1015 2006-02-14  Atsushi Enomoto <atsushi@ximian.com>
1016
1017         * XmlWriter.cs : (WriteElementString and WriteAttributeString)
1018           Skip empty string output.
1019
1020 2006-02-14  Atsushi Enomoto <atsushi@ximian.com>
1021
1022         * XmlTextWriter.cs : WriteRaw("") is not simply ignored but process
1023           state check and closes open tag.
1024
1025 2006-02-11  Atsushi Enomoto <atsushi@ximian.com>
1026
1027         * XmlTextReader.cs :
1028           Avoid extra AppendValueChar() in ReadWhitespace().
1029
1030 2006-02-06  Atsushi Enomoto <atsushi@ximian.com>
1031
1032         * XmlTextReader.cs : ReadTextReader() is now assured to have current
1033           node content, except for Text, CDATA and Comment. ReadName() does
1034           not use nameBuffer and reuse peekChars.
1035
1036 2006-02-06  Atsushi Enomoto <atsushi@ximian.com>
1037
1038         * XmlTextReader.cs : eliminated currentTagBuffer. XmlDeclaration is
1039           now once read as PI and then re-parsed from Value. DTD internal
1040           subset is now parsed as usual "value".
1041
1042 2006-02-06  Atsushi Enomoto <atsushi@ximian.com>
1043
1044         * XmlTextReader.cs : Expect() could be written inline and it could
1045           provide better information. ReadEndTag() could use Expect() instead
1046           of costy ReadName().
1047
1048 2006-02-04  Atsushi Enomoto <atsushi@ximian.com>
1049
1050         * XmlTextReader.cs : on ReadEndTag() we can avoid NameTable.Add().
1051           Store name, local name and prefix in the stack instead of just name
1052           and reuse them for EndElement.
1053
1054 2006-02-04  Atsushi Enomoto <atsushi@ximian.com>
1055
1056         * XmlDocumentNavigator.cs : make use of HasAttributes (avoid possible
1057           XmlAttributeCollection creation).
1058
1059 2006-02-03  Atsushi Enomoto <atsushi@ximian.com>
1060
1061         * XmlTextReader.cs : no need to call Clear() for each attribute value.
1062
1063 2006-02-03  Atsushi Enomoto <atsushi@ximian.com>
1064
1065         * XmlDocument.cs : reverted most of the previous changes. It somehow
1066           broke System.Data tests.
1067
1068 2006-01-30  Atsushi Enomoto <atsushi@ximian.com>
1069
1070         * XmlDocument.cs, XmlAttribute.cs, XmlElement.cs : Avoid unnecessary
1071           name checks in CreateElement() and CreateAttribute().
1072           get_DocumentType() could be stopped when the iterated child node
1073           is the document element.
1074         * XmlNode.cs : removed commented lines.
1075         * XmlNameEntry.cs : hash code for a name entry is mostly identical by
1076           its local name, so avoid extraneous GetHashCode() especially on
1077           namespaces.
1078
1079 2006-01-30  Atsushi Enomoto <atsushi@ximian.com>
1080
1081         * XmlReader.cs : ReadOuterXml() returns meaingful value only for
1082           element and attribute. ReadInnerXml() does not have to create
1083           XmlTextWriter for empty elements.
1084
1085 2006-01-30  Atsushi Enomoto <atsushi@ximian.com>
1086
1087         * XmlNodeReader2.cs XmlException.cs XmlReader.cs XmlTextReader.cs
1088           XmlWriter.cs XmlTextWriter.cs XmlValidatingReader.cs
1089           XmlNodeReaderImpl.cs DTDValidatingReader.cs XmlSecureResolver.cs:
1090           cleaning up obsolete NET_1_0 code.
1091
1092 2006-01-28  Atsushi Enomoto <atsushi@ximian.com>
1093
1094         * XmlTextWriter.cs : avoid case-insensitive String.Compare().
1095           Use array for openElements rather than ArrayList.
1096
1097 2006-01-28  Atsushi Enomoto <atsushi@ximian.com>
1098
1099         * XmlElement.cs, XmlAttribute.cs :
1100           Avoid ChildNodes.Count and use FirstChild/NextSibling.
1101
1102 2006-01-28  Atsushi Enomoto <atsushi@ximian.com>
1103
1104         * XmlNode.cs, XmlIteratorNodeList.cs :
1105           Now we can enable XmlIteratorNodeList again (mcs, incorrectly
1106           removing nodes in the node list, was fixed).
1107
1108 2006-01-28  Atsushi Enomoto <atsushi@ximian.com>
1109
1110         * XmlDocument.cs : in ReadNode() to consume element node, switched
1111           to MoveToAttribute(int) since MoveToNextAttribute() was somehow
1112           not working fine. It is needed to avoid Sys.Data test breakage
1113           and anything else should be fixed indeed.
1114
1115 Fri Jan 27 20:39:48 CET 2006 Paolo Molaro <lupus@ximian.com>
1116
1117         * XmlTextReader.cs, XmlChar.cs: more tweaks and speedups.
1118
1119 2006-01-27  Atsushi Enomoto <atsushi@ximian.com>
1120
1121         * XmlTextReader.cs : optimization patch by Paolo.
1122           Fast path optimization in PeekChar().
1123           Avoid double-evaluation of PeekChar() and ReadChar() by new
1124           Advance() method.
1125
1126 2006-01-27  Atsushi Enomoto <atsushi@ximian.com>
1127
1128         * XmlNode.cs : disabled XmlIteratorNodeList optimization. It caused
1129           some kind of regression under mcs/tests/xml-025.cs.
1130
1131 2006-01-27  Atsushi Enomoto <atsushi@ximian.com>
1132
1133         * XmlAttributeCollection.cs :
1134           Replaced all Nodes.Count with Count (it could avoid extraneous
1135           ArrayList creation in XmlNamedNodeMap). ID attribute adjustment
1136           was extraneously done against all attribute nodes and thus there
1137           was a plenty of call to Value.
1138         * XmlNamedNodeMap.cs : added comment on SetNamedItem() W3C spec
1139           violation.
1140
1141 2006-01-27  Atsushi Enomoto <atsushi@ximian.com>
1142
1143         * XmlNode.cs,
1144           XmlDocument.cs,
1145           XmlAttribute.cs,
1146           XmlElement.cs :
1147           Added internal AppendChild() override that omites node type
1148           checking, and used it in many places.
1149
1150 2006-01-27  Atsushi Enomoto <atsushi@ximian.com>
1151
1152         * XmlDocument.cs : optimized ReadAttributeNode() to not call
1153           MoveToAttribute() unneccesarily (call it only when ReadNode() is
1154           called on an attribute node).
1155
1156 2006-01-27  Atsushi Enomoto <atsushi@ximian.com>
1157
1158         * XmlNode.cs :
1159           in get_InnerText(), avoid extraneous StringBuilder creation.
1160
1161 2006-01-27  Atsushi Enomoto <atsushi@ximian.com>
1162
1163         * XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
1164           It does not iterate all nodes in advance.
1165         * XmlNode.cs : use XmlIteratorNodeList in SelectNodes().
1166
1167 2006-01-26  Atsushi Enomoto <atsushi@ximian.com>
1168
1169         * XmlWriter.cs : Dispose() is protected.
1170
1171 2006-01-25  Atsushi Enomoto <atsushi@ximian.com>
1172
1173         * XmlNamedNodeMap.cs : lazily create internal ArrayList. Thanks to
1174           Joshua Tauberer for the hint.
1175
1176 2006-01-25  Atsushi Enomoto <atsushi@ximian.com>
1177
1178         * XmlConvert.cs : ToString(TimeSpan) should return valid duration
1179           for TimeSpan.Zero, rather than "P". Fixed bug #77350
1180
1181 2006-01-24  Atsushi Enomoto <atsushi@ximian.com>
1182
1183         * XmlNameEntryCache.cs XmlNameEntry.cs :
1184           Made name entry fields as not read-only. Added Update() to reset
1185           members. Its semantics of Equals() is changed.
1186           Now entry cache is based on Hashtable rather than ArrayList.
1187           It saves heavy iteration in ArrayList.
1188
1189 2006-01-24  Atsushi Enomoto <atsushi@ximian.com>
1190
1191         * XmlNameEntryCache.cs XmlNameEntry.cs XmlDocument.cs :
1192           Add Hash field to find name entry quickly.
1193           In XmlNameEntryCache make use of name table (it is totally
1194           unused there though).
1195
1196 2006-01-16  Atsushi Enomoto <atsushi@ximian.com>
1197
1198         * XmlConvert.cs : handle Ticks. Fixed bug #77252.
1199
1200 2006-01-13  Atsushi Enomoto <atsushi@ximian.com>
1201
1202         * XmlTextWriter.cs : Fixed bug #77082.
1203           When the state was Start, after WriteProcessingInstruction() and
1204           WriteWhitespace() change it to Prolog.
1205           After WriteDocType() set state to WriteState.Element.
1206
1207 2006-01-12  Atsushi Enomoto <atsushi@ximian.com>
1208
1209         * XmlTextWriter.cs : Do not local duplicate of automatically-created
1210           prefixes (i.e. check local autocreated prefixes other than
1211           namespaces from ancestors). Fixed bug #77086 and #77087.
1212
1213 2006-01-12  Atsushi Enomoto <atsushi@ximian.com>
1214
1215         * XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
1216           ArgumentException in WriteNmTokenInternal().
1217
1218 2006-01-12  Atsushi Enomoto <atsushi@ximian.com>
1219
1220         * XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
1221           such invalid "xml" prefix which is being mapped to different
1222           namespace URI than the predefined one.
1223           Removed comment that does not make sense.
1224         * XmlNamespaceManager.cs : IsValidDeclaration() could be private.
1225           Added some comments.
1226
1227 2006-01-11  Atsushi Enomoto <atsushi@ximian.com>
1228
1229         * DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an
1230           attribute is #IMPLIED.
1231
1232 2006-01-06  Atsushi Enomoto <atsushi@ximian.com>
1233
1234         * XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
1235           ReadSubtree() for non-element content since they are not allowed
1236           in ReadSubtree() (but allowed here).
1237
1238 2006-01-06  Atsushi Enomoto <atsushi@ximian.com>
1239
1240         * XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
1241           nodes as target string nodes as well as other text nodes.
1242
1243 2006-01-06  Atsushi Enomoto <atsushi@ximian.com>
1244
1245         * XmlValidatingReader.cs : ReadTypedValue() was not working with
1246           non-XmlSchemaDatatype types.
1247
1248 2006-01-05  Gert Driesen <drieseng@users.sourceforge.net>
1249
1250         * XmlTextWriter.cs: Modified WriteWhitespace to throw ArgumentException
1251         if value is null or zero-length string. Modified WriteNmToken to throw
1252         ArgumentException if name is null or zero-length string. Cosmetic
1253         change to WriteStringInternal.
1254         * XmlElement.cs: In 2.0 profile, do not throw ArgumentNullException
1255         if new value for Prefix is null.
1256
1257 2005-12-26  Atsushi Enomoto <atsushi@ximian.com>
1258
1259         * XmlTextWriter.cs : when namespaceURI is String.Empty, Prefix
1260           should be just ignored (it is likely to happen that DOM nodes
1261           with empty namespace URI are specified non-empty prefix by
1262           users, which had better be just ignored). Fixed bug #77095.
1263
1264 2005-12-26  Atsushi Enomoto <atsushi@ximian.com>
1265
1266         * XmlElement.cs : patch for Prefix property by Vorobiev Maksim.
1267           - null should cause ArgumentNullException.
1268           - "" should not raise an error.
1269           - throws ArgumentException when it is readonly.
1270
1271 2005-12-23  Atsushi Enomoto <atsushi@ximian.com>
1272
1273         * XmlTextWriter.cs : When xml:space or xml:lang attribute was
1274           directly written without an element, it caused ArgumentOutOfRange.
1275           Fixed bug #77084.
1276
1277 2005-12-23  Atsushi Enomoto <atsushi@ximian.com>
1278
1279         * XmlTextWriter.cs : (WriteStartAttribute) set prefix as "xmlns" when
1280           namespaceURI is that of xmlns attributes. Fixed bug #77083.
1281
1282 2005-12-15  Atsushi Enomoto <atsushi@ximian.com>
1283
1284         * DTDObjectModel.cs : (CreateXsdParticle) element particle was
1285           missing occurence indicators.
1286
1287 2005-12-15  Atsushi Enomoto <atsushi@ximian.com>
1288
1289         * DTDObjectModel.cs : some fixes on GetXmlSchema()
1290           - make generated schema cleaner.
1291           - enumeration was missing for attribute type.
1292         * XmlTextReader.cs, XmlTextReader2.cs : added tiny notes for dtd2xsd.
1293
1294 2005-12-15  Konstantin Triger <kostat@mainsoft.com>
1295
1296         * XmlTextWriter.cs: allow null string in WriteCData.
1297
1298 2005-12-14  Atsushi Enomoto <atsushi@ximian.com>
1299
1300         * XmlNode.cs : (GetNamespaceOfPrefix) return const xml/xmlns URIs
1301           only under 2.0.
1302
1303 2005-12-14  Atsushi Enomoto <atsushi@ximian.com>
1304
1305         * XmlDocumentNavigator.cs : added UnderlyingObject as to behave as
1306           documented in MSDN.
1307
1308 2005-12-14  Atsushi Enomoto <atsushi@ximian.com>
1309
1310         * XmlNode.cs : under 2.0 xml/xmlns are treated as special cases in
1311           GetNamespaceOfPrefix()/GetPrefixOfNamespace() (but it still does not
1312           implement IXmlNamespaceResolver, bummer).
1313
1314 2005-12-14  Atsushi Enomoto <atsushi@ximian.com>
1315
1316         * XmlDocument.cs : changed some exception types.
1317         * XmlDocumentNavigator.cs : added 2.0 SchemaInfo.
1318
1319 2005-12-13  Atsushi Enomoto <atsushi@ximian.com>
1320
1321         * XmlTextReader.cs : 1.x build fix.
1322
1323 2005-12-13  Atsushi Enomoto <atsushi@ximian.com>
1324
1325         * XmlTextReader.cs : when XmlReader.Create() creates this instance,
1326           don't expect strict text declaration. Check SkipTextDeclaration()
1327           on Read().
1328
1329 2005-12-12  Atsushi Enomoto <atsushi@ximian.com>
1330
1331         * XmlReader.cs : fixed several misconception in MoveToNextSibling().
1332           It should check its ReadState to avoid infinite loop.
1333
1334 2005-12-12  Atsushi Enomoto <atsushi@ximian.com>
1335
1336         * XmlException.cs : added another .ctor() overload that takes both
1337           IXmlLineInfo and innerException.
1338         * XmlQualifiedName.cs : added Parse() overload that takes XmlReader
1339           (since XmlReader is not IXmlNamespaceResolver anymore).
1340         * XmlReader.cs : made several fixes on 2.0 ReadContentAs(),
1341           ReadElementContentAs() and all of its variants.
1342
1343 2005-12-09  Atsushi Enomoto <atsushi@ximian.com>
1344
1345         * XmlInputStream.cs :
1346           Added Encoding property on NonBlockingStreamReader
1347         * XmlTextReader.cs :
1348           set Encoding property when it proceeds to xml declaration.
1349
1350 2005-12-09  Atsushi Enomoto <atsushi@ximian.com>
1351
1352         * XmlReader.cs : ReadToDescendant() should work when its ReadState is
1353           Initial.
1354
1355 2005-12-09  Atsushi Enomoto <atsushi@ximian.com>
1356
1357         * XmlChar.cs : removed incorrect comment.
1358         * XmlReader.cs : Create() clones XmlReaderSettings (if supplied).
1359           For wrapped XmlReader, check ConformanceLevel to be consistent.
1360         * XmlTextReader.cs, XmlTextReader2.cs : added get_Conformance for
1361           internal use. Removed unused fields.
1362         * XmlInputStream.cs : updated NonBlockingStreamReader to the latest
1363           StreamReader (it is almost a copy).
1364
1365 2005-12-08  Atsushi Enomoto <atsushi@ximian.com>
1366
1367         * XmlTextReader.cs : avoid Char.IsSurrogate() and do it inside
1368           PeekChar(), which improves notable performance.
1369
1370 2005-12-08  Atsushi Enomoto <atsushi@ximian.com>
1371
1372         * XmlReaderSettings.cs : Schemas will be created only when it is
1373           required.
1374
1375 2005-12-08  Andrew Skiba  <andrews@mainsoft.com>
1376
1377         * IXmlNamespaceResolver.cs: delete TARGET_JVM,
1378         no need to mangle the name
1379
1380 2005-12-08  Atsushi Enomoto <atsushi@ximian.com>
1381
1382         * Driver.cs, Profiler.cs, XmlQualifiedNameTable.cs :
1383           removed old code.
1384
1385 2005-12-08  Atsushi Enomoto <atsushi@ximian.com>
1386
1387         * XmlReaderSettings.cs : thanks to idiotic MS design,
1388           AllowXmlAttributes is turned on by default.
1389
1390 2005-12-08  Atsushi Enomoto <atsushi@ximian.com>
1391
1392         * XmlReaderSettings.cs :
1393           set_Schemas() is fixed in 2.0 RTM (it just works).
1394         * XmlResolver.cs : throw ArgumentNullException instead of
1395           ArgumentException when both base and relative urls are null.
1396
1397 2005-12-08  Atsushi Enomoto <atsushi@ximian.com>
1398
1399         * XmlReaderSettings.cs : ProhibitDtd is set as default.
1400         * XmlWriterSettings.cs : no set_OutputMethod.
1401
1402 2005-11-30  Konstantin Triger  <kostat@mainsoft.com>
1403
1404         * IXmlNamespaceResolver.cs: TARGET_JVM namespace change.
1405
1406 2005-11-17  Vladimir Krasnov <vladimirk@mainsoft.com>
1407
1408         * XmlInputStream.cs: fixed Initialize method to be able 
1409         to read unicode file without BOM. TARGET_JVM only.
1410
1411 2005-11-14  Atsushi Enomoto <atsushi@ximian.com>
1412
1413         * XmlNodeReader.cs : removed historical one.
1414
1415 2005-11-10  Atsushi Enomoto <atsushi@ximian.com>
1416
1417         * XmlReader.cs, XmlNode.cs :
1418           [DebuggerDisplay] are not worthy of existing.
1419
1420 2005-11-09  Atsushi Enomoto <atsushi@ximian.com>
1421
1422         * XmlTokenizedType.cs, XmlNodeOrder.cs : so those enums happen to
1423           have [Serializable] in .NET 1.x, and removed in 2.0 (enums are
1424           anyways serializable, so those attributes do not make sense).
1425
1426 2005-11-09  Atsushi Enomoto <atsushi@ximian.com>
1427
1428         * XmlValidatingReader.cs : added CanReadBinaryContent.
1429         * XmlTextReader.cs, XmlTextReader2.cs : GetNamespacesInScope() are
1430           now both public and private (i.e. hush IsVirtual).
1431         * XmlWriterSettings.cs, XmlWriter.cs, XmlTextWriter.cs :
1432           NormalizeNewLines vanished.
1433
1434 2005-11-09  Atsushi Enomoto <atsushi@ximian.com>
1435
1436         * XmlReader.cs : MoveToAttribute(int) is virtual in NET_2_0.
1437
1438 2005-11-09  Atsushi Enomoto <atsushi@ximian.com>
1439
1440         * XmlConvert.cs : implemented VerifyTOKEN().
1441
1442 2005-11-09  Atsushi Enomoto <atsushi@ximian.com>
1443
1444         * XmlConvert.cs : VerifyNCName() and VerifyName() throws
1445           ArgumentNullException for "".
1446
1447 2005-11-07  Atsushi Enomoto <atsushi@ximian.com>
1448
1449         * XmlReader.cs : dependent XmlSchemaValidationFlags fix.
1450           Added ReadElementContentAsObject() and ReadContentAsObject().
1451         * XmlReader.cs, XmlTextReader.cs :
1452           LookupNamespace(string,bool) is now private.
1453         * XmlReader.cs, XmlNode,cs :
1454           [DebuggerDisplay].
1455
1456 2005-11-07  Atsushi Enomoto <atsushi@ximian.com>
1457
1458         * XmlElement.cs, XmlCDataSection.cs, XmlText.cs, XmlWhitespace.cs,
1459           XmlSignificantWhitespace.cs : added ParentNode overrides (actually
1460           they don't make sense since it just calls base.)
1461         * XmlNode.cs, XmlDocument.cs : changed .NET 2.0 CreateNavigator() impl
1462           to match signature and skip OwnerDocument check in XmlNode (since
1463           it is overriden). Maybe MS does not have ownerDocument as a field and
1464           costs too much on OwnerDocument property.
1465           Added missing bits in XmlDocument.
1466
1467 2005-11-07  Atsushi Enomoto <atsushi@ximian.com>
1468
1469         * XmlAttribute.cs : added new overrides in 2.0 RTM (this scarcely
1470           makes sense without real optimization though).
1471         * XmlDocument.cs, XmlElement.cs, XmlNode.cs : avoid ChildNodes and
1472           save extra XmlNodeList creation cost.
1473
1474 2005-11-07  Atsushi Enomoto <atsushi@ximian.com>
1475
1476         * XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
1477         * XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
1478           ReadTypedValue() is removed.
1479         * XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
1480         * XmlWriter.cs : Settings is virtual.
1481
1482 2005-10-23  Atsushi Enomoto <atsushi@ximian.com>
1483
1484         * XmlDocumentNavigator.cs : now MoveToFirst() invokes internal
1485           MoveToFirstImpl().
1486
1487 2005-10-23  Atsushi Enomoto <atsushi@ximian.com>
1488
1489         * XmlTextWriter.cs : oops, so WriteState.Error is NET_2_0 only.
1490
1491 2005-10-23  Atsushi Enomoto <atsushi@ximian.com>
1492
1493         * XmlTextWriter.cs : (Error state check) actually I need to set Error.
1494
1495 2005-10-23  Atsushi Enomoto <atsushi@ximian.com>
1496
1497         * XmlTextWriter.cs : throw InvalidOperationException if any of
1498           WriteBlah() methods were invoked at error state.
1499
1500 2005-10-23  Atsushi Enomoto <atsushi@ximian.com>
1501
1502         * XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
1503           default namespace was returning "" instead of null. It didn't check
1504           empty namespace URI for non-empty prefixes.
1505
1506 2005-10-07  Joshua Tauberer <tauberer@for.net>
1507
1508         * XmlTextReader.cs: SkipTextDeclaration would not accept processing
1509         instructions that began with the string 'xml', e.g. rejecting
1510         'xml-stylesheet'.
1511
1512 2005-10-08  Gert Driesen <drieseng@users.sourceforge.net>
1513
1514         * XmlAttribute.cs: InnerText and InnerXml do not override getters in
1515         NET_2_0. Removed extra CLSCompliant attribute on SchemaInfo.
1516         * XmlReaderSettings.cs: Marked sealed.
1517
1518 2005-10-04  Atsushi Enomoto <atsushi@ximian.com>
1519
1520         * XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
1521           digits for "second" were not exactly 3. Fixed bug #76328.
1522
1523 2005-10-04  Atsushi Enomoto <atsushi@ximian.com>
1524
1525         * XmlReader.cs : Name is virtual in NET_2_0.
1526
1527 2005-10-03  Atsushi Enomoto <atsushi@ximian.com>
1528
1529         * XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
1530           added supprot for NormalizeNewLines.
1531           NewLineOnAttributes is considered only when Indent is true.
1532
1533 2005-10-01  Atsushi Enomoto <atsushi@ximian.com>
1534
1535         * XmlAttribute.cs, XmlDocument.cs : check id table updates when
1536           XmlAttribute.set_Value() was invoked. Fixed bug #76311.
1537
1538 2005-10-01  Atsushi Enomoto <atsushi@ximian.com>
1539
1540         * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs :
1541          XmlReader.Create() with string url argument are not working because
1542          of incorrect choice of the .ctor().
1543
1544 2005-09-28  Atsushi Enomoto <atsushi@ximian.com>
1545
1546         * XmlNodeReaderImpl.cs : when the source node was not a document and
1547           it is an empty element, Read() was incorrectly moving to the parent
1548           of the source node. Patch by Csaba Halasz. Fixed bug #76260.
1549
1550 2005-09-27  Atsushi Enomoto <atsushi@ximian.com>
1551
1552         * XmlTextReader.cs : surrogate computation is incorrect. Fixed bug
1553           #76247. Patch by Brion Vibber.
1554
1555 2005-09-26  Atsushi Enomoto <atsushi@ximian.com>
1556
1557         * DTDValidatingReader.cs : Namespace manager was not handled correctly.
1558           Now it does the same as XmlTextReader does. Fixed bug #76234.
1559
1560 2005-09-26  Gert Driesen <drieseng@users.sourceforge.net>
1561
1562         * XmlNodeChangedEventArgs.cs: Only make ctor publicly available
1563         in NET_2_0. Fixed API compatiblity with .NET 1.1.
1564         * XmlOutputMethod.cs: Fixed values of enum fields to match MS.NET.
1565         Only available in .NET 2.0.
1566
1567 2005-09-25  Atsushi Enomoto <atsushi@ximian.com>
1568
1569         * XmlReader.cs, XmlReaderSettings.cs, XmlDocument.cs:
1570           XmlSchemaValidationFlags updates.
1571
1572 2005-09-21  Atsushi Enomoto <atsushi@ximian.com>
1573
1574         * XmlWriterSettings.cs : true NET_2_0 updates.
1575
1576 2005-09-21  Atsushi Enomoto <atsushi@ximian.com>
1577
1578         * XmlOutputMethod.cs : new file.
1579         * XmlWriter.cs, XmlValidatingReader.cs, XmlReaderSettings.cs,
1580           XmlUrlResolver.cs, XmlWriterSettings.cs :
1581           more NET_2_0 updates.
1582
1583 2005-09-21  Atsushi Enomoto <atsushi@ximian.com>
1584
1585         * XmlNodeReader2.cs, XmlReader.cs,
1586           XmlTextReader.cs, XmlTextReader2.cs,
1587           XmlNodeChangedEventArgs.cs, XmlElement.cs,
1588           XmlNode.cs, XmlDocument.cs :
1589           updated NET_2_0 API.
1590
1591 2005-09-14  Atsushi Enomoto <atsushi@ximian.com>
1592
1593         * XmlTextReader.cs : when there is a heading half of surrogate at the
1594           end of read buffer, it didn't treat it as a surrogate.
1595           Fixed bug #76102.
1596
1597 2005-09-14  Atsushi Enomoto <atsushi@ximian.com>
1598
1599         * XmlTextWriter.cs : for surrogate pair, output character reference
1600           as a single character instead of two reference pairs. Fixed bug #76095.
1601           Patch by Brion Vibber.
1602
1603 2005-08-31  Sebastien Pouliot  <sebastien@ximian.com>
1604
1605         * XmlDocument.cs: Added an InheritanceDemand for Unrestricted on 
1606         CreateDocumentType and ReadNode methods.
1607         * XmlException.cs: Added a Demand for SerializationFormatter on 
1608         GetObjectData method.
1609         * XmlResolver.cs: Added an InheritanceDemand for Unrestricted on 
1610         ResolveUri method.
1611         * XmlSecureResolver.cs: Fixed exception when creating evidences with 
1612         an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy 
1613         and PermitOnly if the security manager is enabled.
1614         * XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
1615         class.
1616         * XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on 
1617         the class.
1618         * XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted 
1619         on the class.
1620
1621 2005-08-16  Atsushi Enomoto <atsushi@ximian.com>
1622
1623         * DTDReader.cs : no need to skip text declaration for such entity
1624           declaration that has literal entity. It should not expand entities
1625           inside ResolveExternalEntityReplacementText().
1626           Finally fixed bug #51495.
1627
1628 2005-08-16  Atsushi Enomoto <atsushi@ximian.com>
1629
1630         * XmlTextReader.cs, XmlTextReader2.cs : added internal .ctor() to
1631           receive both TextReader, XmlNodeType and BaseURI for entity
1632           resolution (though it would be removed later).
1633         * XmlParserInput.cs : Now to handle nested PE insertion and correct
1634           BaseURI, it internally holds a stack of "input source".
1635         * DTDObjectModel.cs,
1636           DTDReader.cs :
1637           Required fixes for XmlParserInput.
1638           Handle BaseURI as expected. Added ActualUri for resolved actual
1639           source URI (to resolve nested entities). Pass ActualUri to internal
1640           XmlTextReader.ctor() in ResolveExternalEntityReplacementText()
1641           (well, yes I remember, it is problematic.)
1642
1643           Incorrect Base URI handling bug (part of #51495) is fixed.
1644
1645 2005-08-16  Atsushi Enomoto <atsushi@ximian.com>
1646
1647         * DTDReader.cs, XmlParserInput.cs :
1648           let's fix #51495. First of all, refactoring.
1649
1650 2005-08-04  Atsushi Enomoto <atsushi@ximian.com>
1651
1652         * XmlAttribute.cs : When there was only one child in attribute
1653           and it was an entity reference, set_Value() tried to set text value
1654           and thus failed.
1655
1656 2005-08-03  Gert Driesen  <drieseng@users.sourceforge.net>
1657
1658         * XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
1659         * XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to
1660         RoundtripKind to match .NET 2.0 Beta 2.
1661         * XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
1662         in .NET 2.0 Beta 2, and is explicit interface implementation.
1663         * XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
1664         in .NET 2.0 Beta 2.
1665         * XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
1666         in .NET 2.0 Beta 2.
1667         * XmlValidatingReader.cs: GetNamespacesInScope returns generic 
1668         IDictionary in .NET 2.0 Beta 2.
1669         * IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic
1670         IDictionary in .NET 2.0 Beta 2.
1671         * XmlNamespaceManager.cs: GetNamespacesInScope returns generic 
1672         IDictionary in .NET 2.0 Beta 2.
1673         * XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic 
1674         IDictionary in .NET 2.0 Beta 2.
1675         * DTDValidatingReader.cs: GetNamespacesInScope returns generic
1676         IDictionary in .NET 2.0 Beta 2.
1677
1678 2005-07-14  Atsushi Enomoto <atsushi@ximian.com>
1679
1680         * XmlTextWriter.cs : In WriteQualifiedName(), when there is open
1681           attribute, it calls LookupPrefix() and then if namespace was empty,
1682           it resulted in an exception. Fixed bug #75546.
1683
1684 2005-06-29  Atsushi Enomoto <atsushi@ximian.com>
1685
1686         * XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
1687           to ISO 8601 and XSD datatypes 3.2.6.1).
1688
1689 2005-06-27  Andrew Skiba  <andrews@mainsoft.com>
1690
1691         * DTDReader.cs : don't validate entity values, when the entry is
1692         redefined so it will be never used. Fixes valid-sa-086 test from W3C
1693         xmlconf suite.
1694
1695 2005-06-27  Atsushi Enomoto <atsushi@ximian.com>
1696
1697         * XmlQueryDialect.cs : removed.
1698
1699 2005-06-27  Atsushi Enomoto <atsushi@ximian.com>
1700
1701         * XmlWriter.cs : added Create(XmlWriter).
1702         * XmlValidatingReader.cs : added Read*AsBase64/BinHex().
1703         * XmlReaderSettings.cs : added obsolete annoyances to hush corcompare.
1704
1705 2005-06-22  Atsushi Enomoto <atsushi@ximian.com>
1706
1707         * XmlTextReader.cs : use StringBuilder.ToString(int,int) when it does
1708           not have a large chunk of data, following Ben's idea.
1709
1710 2005-06-22  Atsushi Enomoto <atsushi@ximian.com>
1711
1712         * XmlTextReader.cs : use StringBuilder to store character values; that
1713           saves 40% memory for large chunk of xml. Patch by Gonzalo.
1714
1715 2005-06-22  Andrew Skiba  <andrews@mainsoft.com>
1716
1717         * XmlNode.cs : cosmetic fix - remove unnecessary argument from
1718           AppendChildValues function.
1719           
1720 2005-06-22  Atsushi Enomoto <atsushi@ximian.com>
1721
1722         * XmlTextReader.cs : normalization is not required to check character
1723           validity everywhere except for character reference.
1724
1725 2005-06-17  Atsushi Enomoto <atsushi@ximian.com>
1726
1727         * DTDValidatingReader.cs : removed some extra IsDefault check (with
1728           the latse code default attributes are stored in hashtables anyways.)
1729           Fixup attribute namespaces _after_ xmlns attributse are filled.
1730           The latest change is not good that namespaceURI of a local attribute
1731           was incorrectly globally looked up (it should be always "").
1732
1733 2005-06-17  Atsushi Enomoto <atsushi@ximian.com>
1734
1735         * XmlValidatingReader.cs : LookupNamespace() was trying to access to 
1736           null reference to validatingReader.
1737         * DTDValidatingReader.cs : Fixed default xmlns* attribute handling.
1738           It used to be valid only at the declaring element.
1739
1740 2005-06-14  Atsushi Enomoto <atsushi@ximian.com>
1741
1742         * DTDValidatingReader.cs : further text node fixes.
1743           - Cut out validation code from Text node case.
1744           - Now it does not use error-prone case transition but uses 
1745             DocumentFragment 'vacant room' and fixed incorrect transition from
1746             whitespace to text.
1747           - CDATA should be validated the same as Text is.
1748
1749 2005-06-14  Atsushi Enomoto <atsushi@ximian.com>
1750
1751         * DTDValidatingReader.cs : whitespace nodes were incorrectly rejected
1752           inside non-mixed content model.
1753
1754 2005-06-09  Andrew Skiba  <andrews@mainsoft.com>
1755
1756         * XmlConvert.cs : add TARGET_JVM for roundtrip bug
1757
1758 2005-06-06  Atsushi Enomoto <atsushi@ximian.com>
1759
1760         * XmlEntityReference.cs, XmlNode.cs : protected api fix.
1761
1762 2005-06-02  Atsushi Enomoto <atsushi@ximian.com>
1763
1764         * XmlEntityReference.cs, XmlNode.cs : For entity references, BaseURI 
1765           resolution should be different from that of parent since they might
1766           differ. Patch by Andrew Skiba.
1767
1768 2005-05-31  Atsushi Enomoto <atsushi@ximian.com>
1769
1770         * DTDReader.cs :
1771           make sure to close parser input before parser stack pop.
1772         * DTDValidatingReader.cs : ditto.
1773         * DTDObjectModel.cs : Fixed another incorrect null BaseURI check.
1774
1775 2005-05-31  Atsushi Enomoto <atsushi@ximian.com>
1776
1777         * DTDValidatingReader.cs : Last BaseURI exposed this hidden bug via
1778           sys.security tests.
1779
1780 2005-05-30  Atsushi Enomoto <atsushi@ximian.com>
1781
1782         * DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
1783           BaseURI which results in incorrect URI resolution.
1784
1785 2005-05-21  Atsushi Enomoto <atsushi@ximian.com>
1786
1787         * DTDObjectModel.cs : For simple type restriction creation it failed
1788           when there is no enumerations (largely failed).
1789
1790 2005-05-21  Atsushi Enomoto <atsushi@ximian.com>
1791
1792         * XmlImplementation.cs : added new NET_2_0 ctor.
1793           Let's check corcompare:-/
1794
1795 2005-05-11  Atsushi Enomoto <atsushi@ximian.com>
1796
1797         * DTDValidatingReader.cs : namespace storing was stupid.
1798
1799 2005-05-10  Atsushi Enomoto <atsushi@ximian.com>
1800
1801         * DTDValidatingReader.cs : since namespace declarations might be
1802           resolved differently due to entity handling, it holds its own set
1803           of declared namespaces. NamespaceURI and LookupNamespace() use it.
1804
1805 2005-05-09  Atsushi Enomoto <atsushi@ximian.com>
1806
1807         * XmlReader.cs : added ReadElementContentAsLong().
1808         * XmlWriter.cs : removed some obsolete WriteValue() overloads.
1809         * XmlResolver.cs,
1810           IXmlNamespaceResolver.cs : removed deprecated 2.0 bits.
1811         * XQueryConvert.cs : obsolete (yeah, now XQuery should be hidden).
1812
1813 2005-05-06  Atsushi Enomoto <atsushi@ximian.com>
1814
1815         * XmlInputStream.cs : Now XmlStreamReader uses non-blocking TextReader
1816           that is mostly copied from StreamReader. It should fix bug #74161.
1817
1818 2005-05-05  Atsushi Enomoto <atsushi@ximian.com>
1819
1820         * XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
1821           XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
1822           DTDValidatingReader.cs : Removed most of "atomizedName" related
1823           stuff that are obsoleted in 2.0 beta2.
1824         * XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.
1825
1826 2005-05-04  Andrew Skiba <andrews@mainsoft.com>
1827
1828         * IXmlNamespaceResolver.cs : mangle the interface method names when
1829         compiling for TARGET_JVM
1830         
1831 2005-03-30  Atsushi Enomoto <atsushi@ximian.com>
1832
1833         * XmlUrlResolver.cs : just return connected Stream instead of fully
1834           downloaded memory cache. Fix by Konstantin Triger.
1835
1836 2005-03-24  Atsushi Enomoto <atsushi@ximian.com>
1837
1838         * XmlWriter.cs : WriteQualifiedName() should check namespace validity
1839           (whether it is in scope or not).
1840         * XmlTextWriter.cs : When WriteQualifiedName() is invoked inside
1841           attribute and no matching namespace declaration, create prefix
1842           on demand. Code reused from WriteStartAttribute().
1843
1844 2005-03-22  Atsushi Enomoto <atsushi@ximian.com>
1845
1846         * XmlValidatingReader.cs : create schema set on demand.
1847
1848 2005-03-22  Atsushi Enomoto <atsushi@ximian.com>
1849
1850         * XmlParserInput.cs,
1851           XmlNode.cs,
1852           XmlUrlResolver.cs,
1853           DTDValidatingReader.cs : removed/commented out those warned code.
1854
1855 2005-03-15  Atsushi Enomoto <atsushi@ximian.com>
1856
1857         * XmlDocumentNavigator.cs : overriden IsDescendant (default 
1858           implementation extraneously clones).
1859
1860 2005-03-15  Atsushi Enomoto <atsushi@ximian.com>
1861
1862         * DTDValidatingReader.cs : When expanding entities and there is a
1863           sequence of text nodes, its value was not returned.
1864         * XmlTextReader.cs : better invalid char error report for EOF.
1865
1866 2005-03-09  Andrew Skiba <andrews@mainsoft.com>
1867
1868         * XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
1869           surrogate calculations. This fixes bug 73513.
1870
1871 2005-03-09  Atsushi Enomoto <atsushi@ximian.com>
1872
1873         * XmlParserInput.cs : silly mixed line endings :(
1874
1875 2005-03-08  Atsushi Enomoto <atsushi@ximian.com>
1876
1877         * XmlTextWriter.cs : namespace declaration check for those which starts
1878           with 'x' 'm' 'l' should not be done here (it might be 'declared'
1879           though reserved).
1880         * XmlNamespaceManager.cs : error message for "'xml' prefix for
1881           different namespace" is incorrect.
1882
1883 2005-03-07  Atsushi Enomoto <atsushi@ximian.com>
1884
1885         * XmlDocument.cs : ugh, so I introduced extraneous reader.Read() in
1886           ReadNode() for EntityReference and it resulted in unexpected skip.
1887         * DTDValidatingReader.cs : On EndEntity, LocalName and Name should
1888           return the name of entity. Removed unused entityReaderNameStack.
1889
1890 2005-03-07  Atsushi Enomoto <atsushi@ximian.com>
1891
1892         * DTDValidatingReader.cs : reverted one change in r40985. Entity stack
1893           is nothing to do with ReadAttributeValue().
1894
1895 2005-03-07  Atsushi Enomoto <atsushi@ximian.com>
1896
1897         * DTDValidatingReader.cs : When there was actual attribute in source 
1898           XmlReader, MoveToAttribute(i) did not move source reader as expected.
1899
1900 2005-03-03  Atsushi Enomoto <atsushi@ximian.com>
1901
1902         * XmlDocument.cs : In ReadNode(), on EntityReference node, when 
1903           XmlReader can resolve entity, it expands entity and apppend 
1904           children into the entity reference. Patch by Konstantin Triger.
1905
1906 2005-03-03  Atsushi Enomoto <atsushi@ximian.com>
1907
1908         * XmlTextWriter.cs : For duplicating namespace mapping, it should
1909           create another prefix without throwing an exception.
1910
1911 2005-03-02  Atsushi Enomoto <atsushi@ximian.com>
1912
1913         * XmlTextWriter.cs : LookupPrefix() should not return those prefix
1914           that is overriden by another xmlns declaration.
1915
1916 2005-02-26  Atsushi Enomoto <atsushi@ximian.com>
1917
1918         * XmlEntity.cs : it was not returning SYSTEM ID when there is no
1919           PUBLIC ID.
1920         * XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
1921           get_NodeType() resulted in loop.
1922
1923 2005-02-25  Atsushi Enomoto <atsushi@ximian.com>
1924
1925         * XmlComment.cs, XmlNode.cs, XmlText.cs, XmlProcessingInstruction.cs,
1926           XmlEntityReference.cs, XmlSignificantWhitespace.cs, XmlAttribute.cs,
1927           XmlElement.cs, XmlEntity.cs, XmlCDataSection.cs :
1928           For those nodes that are created by Clone(), IsReadOnly is false.
1929           Patch by Konstantin Triger.
1930
1931 2005-02-25  Atsushi Enomoto <atsushi@ximian.com>
1932
1933         * XmlDocumentNavigator.cs : iteratedNames array could be fixed and
1934           performance got improved. Patch by Konstantin Triger.
1935
1936 2005-02-25  Atsushi Enomoto <atsushi@ximian.com>
1937
1938         * XmlAttribute.cs : MS does not reject non-NCName prefix. Patch by
1939           Konstantin Triger.
1940
1941 2005-02-24  Atsushi Enomoto <atsushi@ximian.com>
1942
1943         * XmlTextWriter.cs : WriteString() should be valid when 
1944           WriteStartDocument() was not called.
1945
1946 2005-02-23  Atsushi Enomoto <atsushi@ximian.com>
1947
1948         * XmlNamespaceManager.cs : IsValidDeclaration was giving useless error
1949           information.
1950
1951 2005-02-23  Atsushi Enomoto <atsushi@ximian.com>
1952
1953         * XmlDocumentNavigator.cs : it should virtually expand EntityReference,
1954           so refactored to handle both entity references and top level children.
1955
1956 2005-02-22  Atsushi Enomoto <atsushi@ximian.com>
1957
1958         * XmlTextReader.cs : XmlParserContext was not properly popped on
1959           the expected timing and thus had lost BaseURI, XmlSpace and XmlLang.
1960         * XmlInputStream.cs : XmlTextReader does not allow invalid utf-8 
1961           characters.
1962
1963 2005-02-21  Atsushi Enomoto <atsushi@ximian.com>
1964
1965         * DTDValidatingReader.cs : It should not skip whitespace and
1966           significant whitespace nodes unless it is expanding entities.
1967         * XmlDocumentNavigator.cs : Fixed NodeType that was returning
1968           incorrect type when there is a sequence of text/cdata/space nodes.
1969
1970 2005-02-18  Atsushi Enomoto <atsushi@ximian.com>
1971
1972         * XmlNamespaceManager.cs : Prefix "xml" is bound to the fixed
1973           namespace "http://www.w3.org/XML/1998/namespace", but it is not
1974           vice versa (i.e. we can use other prefixes for this namespace URI).
1975
1976 2005-02-17  Atsushi Enomoto <atsushi@ximian.com>
1977
1978         * XmlNode.cs : It does not have to iterate children to find argument
1979           node. Fixed exception type to ArgumentException. Patch by Andrew
1980           Skiba.
1981
1982 2005-02-16  Atsushi Enomoto <atsushi@ximian.com>
1983
1984         * XmlAttribute.cs : just use InnerText for Value. Patch by Andrew
1985           Skiba.
1986         * XmlConvert.cs : Handle null and empty strings for EncodeName(),
1987           EncodeLocalName() and EncodeNmToken(). Patch by Andrew Skiba.
1988         * NameTable.cs : usually tail of namespaces are rather different than
1989           head of them. Patch by Andrew Skiba.
1990         * XmlUrlResolver.cs : missing %20 handling. Patch by Andrew Skiba.
1991
1992 2005-02-15  Atsushi Enomoto <atsushi@ximian.com>
1993
1994         * XmlAttribute.cs : For default attributes, WriteTo() writes nothing
1995           under MS.NET.
1996         * DTDValidatingReader.cs : reduced indentation using Linus trick
1997           (it was too deep in nest).
1998
1999 2005-02-14  Atsushi Enomoto <atsushi@ximian.com>
2000
2001         * DTDValidatingReader.cs : Namespaces and prefixes are not properly
2002           handled (it incorrectly assumed DTD definitions and thus always 
2003           assumed empty namespace/prefixes).
2004
2005 2005-02-14  Atsushi Enomoto <atsushi@ximian.com>
2006
2007         * DTDValidatingReader.cs : element name stack might be empty when the
2008           input XmlReader contains fragments. Patch by Andrew Skiba.
2009
2010 2005-01-25  Martin Baulig  <martin@ximian.com>
2011
2012         * XmlNode.cs (XmlNode.SchemaInfo): Mark this as not CLS-compliant
2013         to avoid a CS3025.
2014
2015         * XmlReaderSettings.cs (XmlReaderSettings.XmlResolver): Mark this
2016         as not CLS-compliant to avoid a CS3025.
2017
2018 2005-01-18  Atsushi Enomoto <atsushi@ximian.com>
2019
2020         * XmlNode.cs,
2021           XmlAttribute.cs,
2022           XmlAttributeCollection.cs :
2023           Now reuse parentNode field for XmlAttribute.OwnerElement and
2024           reduce class allocation size.
2025         * XmlNameEntry.cs :
2026           New class that represents a name triplet.
2027           XmlNameEntryCache.cs :
2028           New type to cache name entries.
2029         * XmlAttribute.cs,
2030           XmlElement.cs :
2031           Replace name strings with name entry and save class allocation size.
2032           XmlDocument.cs :
2033           Add name entry cache field to document and reuse name entries that 
2034           are already allocated.
2035
2036 2005-01-17  Atsushi Enomoto <atsushi@ximian.com>
2037
2038         * XmlNode.cs, XmlAttribute.cs : reverted the previous patch. It broke
2039           several nunit tests.
2040
2041 2005-01-15  Ben Maurer  <bmaurer@ximian.com>
2042
2043         * XmlNode.cs (InnerText, AppendChildValues): Don't allocate a
2044         string in the case where nothing needs to be appended.
2045
2046         * XmlAttribute.cs (BuildChildValue): Start out the string with
2047         `null' not `String.Empty'. String.Concat (null, blah) == blah,
2048         pointerwise. ie, there is no allocation. This makes it so that
2049         getting the value of an attribute is faster for the fast case.
2050
2051 2005-01-13  Atsushi Enomoto <atsushi@ximian.com>
2052
2053         * XmlResolver.cs : throw ArgumentException in ResolveUri().
2054
2055 2005-01-11  Atsushi Enomoto <atsushi@ximian.com>
2056
2057         * XmlTextWriter.cs : WriteComment() was outputting extraneous EOL.
2058
2059 2004-12-26  Atsushi Enomoto <atsushi@ximian.com>
2060
2061         * XmlReader.cs : ReadElementContentAsBinHex() was calling ..AsBase64().
2062         * XmlValidatingReader.cs : In set_EntityHandling(), set that property
2063           of DTDValidatingReader.
2064         * XmlNodeReader2.cs,
2065           XmlNodeReaderImpl.cs : added simplified implementation that splits
2066           entity handling and anything else.
2067         * XQueryConvert.cs : implemented ShouldCheckValueFacets().
2068           Use Convert class instead of simple casts (check range).
2069         * XmlReaderSettings.cs : added SetSchemas() for XPathNavigator.
2070
2071 2004-12-22  Atsushi Enomoto <atsushi@ximian.com>
2072
2073         * XmlParserContext.cs : all the string properties must not be set as
2074           null. Thanks to Joshua.
2075         * XmlTextReader.cs,
2076           DTDObjectModel.cs,
2077           DTDReader.cs : XmlResolver.ResolveUri() may return null.
2078
2079 2004-12-17  Atsushi Enomoto <atsushi@ximian.com>
2080
2081         * XmlReaderBinarySupport.cs : added support class for base64/binhex
2082           reading that mostly automates those reader support.
2083         * XmlReader.cs : added CanReadBinaryContent, CanReadValueChunk,
2084           ReadContentAsBase64(), ReadElementContentAsBase64(),
2085           ReadContentAsBinHex(), ReadElementContentAsBinHex() and
2086           ReadValueChunk().
2087         * XmlTextReader.cs : Now ReadBase64() and ReadBinHex() implementations
2088           are moved to XmlReaderBinarySupport. Added CanReadBinaryContent and
2089           CanReadValueChunk overrides. Call Binary.Reset() to enable them.
2090         * XmlTextReader2.cs : added CanReadBinaryContent, CanReadValueChunk.
2091           Added ReadContentAsBase64(), ReadElementContentAsBase64(),
2092           ReadContentAsBinHex(), ReadElementContentAsBinHex() (just because
2093           they are overriden in MS.NET).
2094         * XmlNodeReader.cs : added CanReadBinaryContent and CanReadValueChunk.
2095           Call Binary.Reset() to enable them.
2096
2097 2004-12-16  Atsushi Enomoto <atsushi@ximian.com>
2098
2099         * XmlConvert.cs :
2100           Added DateTime related methods with serialization mode.
2101
2102 2004-12-16  Atsushi Enomoto <atsushi@ximian.com>
2103
2104         * XmlReader.cs : added MoveToFollowing().
2105         * XmlNode.cs,
2106           XmlElement.cs,
2107           XmlAttribute.cs : added SchemaInfo support.
2108         * XmlDocument.cs : added Schemas and Validate().
2109           ReadNode() now copies xmlReader's SchemaInfo.
2110         * XmlNodeReader.cs : ditto (just reflects node's SchemaInfo).
2111
2112 2004-12-15  Atsushi Enomoto <atsushi@ximian.com>
2113
2114         * XmlReader.cs :
2115           Create() should assure NameTable!=null on creating XmlTextReader.
2116           Now use XmlSchemaValidatingReader for all xsd validation.
2117         * XmlTextReader2.cs :
2118           Don't use input reader's Settings. It is null.
2119         * XmlReaderSettings.cs : added XmlResolver.
2120
2121 2004-12-14  Atsushi Enomoto <atsushi@ximian.com>
2122
2123         * XmlReaderSettings.cs : XsdValidate and DtdValidate are now
2124           ValidationType.
2125         * XmlReader.cs : In Create(), use XmlSchemaValidatingReader for xsd
2126           validation.
2127
2128 2004-12-12  Zoltan Varga  <vargaz@freemail.hu>
2129
2130         * XmlTextReader.cs: Work around a compiler bug in csc 2.0 beta 1.
2131
2132 2004-12-09  Atsushi Enomoto <atsushi@ximian.com>
2133
2134         * DTDObjectModel.cs : implemented lightweight XmlSchema generator.
2135
2136 2004-12-08  Atsushi Enomoto <atsushi@ximian.com>
2137
2138         * XmlValidatingReader.cs : making smarter relationship between
2139           XsdValidatingReader.
2140
2141 2004-12-08  Atsushi Enomoto <atsushi@ximian.com>
2142
2143         * XmlException.cs : added SecurityPermissionAttributes.
2144         * XmlReaderSettings.cs,
2145           XmlReader.cs : added ValidationFlags and removed obsolete ones.
2146
2147 2004-12-06  Atsushi Enomoto <atsushi@ximian.com>
2148
2149         * XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
2150           ns is null, and don't lookup prefix for empty namespace.
2151
2152 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2153
2154         * XmlTextReader.cs: don't use \0 as buffer terminator.
2155         * XmlInputStream.cs: s/Array.Copy/Buffer.BlockCopy/.
2156
2157 2004-11-30  Atsushi Enomoto <atsushi@ximian.com>
2158
2159         * DTDReader.cs : Consideration on parameter entity was missing for 
2160           attribute default value. Fixed bug #70008.
2161
2162 2004-11-26  Atsushi Enomoto <atsushi@ximian.com>
2163
2164         * XmlReader.cs : not fixage, just explicitly formatted code a bit.
2165         * XmlTextReader.cs,
2166           XmlEntity.cs,
2167           XmlAttributeCollection.cs,
2168           XmlTextWriter.cs,
2169           XmlElement.cs,
2170           XmlNode.cs,
2171           DTDObjectModel.cs,
2172           XmlParserInput.cs,
2173           DTDReader.cs,
2174           XmlDocument.cs : warning removal.
2175
2176 2004-11-25  Atsushi Enomoto <atsushi@ximian.com>
2177
2178         * XmlQualifiedNameTable.cs : oops, it was not implemented.
2179
2180 2004-11-24  Atsushi Enomoto <atsushi@ximian.com>
2181
2182         * XmlQualifiedName.cs : in 2.0 it is [Serializable].
2183         * XmlTextReader.cs : removed unused local variable.
2184         * XmlTextWriter.cs : Improved some exception messages.
2185           moved some private fields into #if NET_2_0.
2186         * XmlValidatingReader.cs : rename specifiedResolver to
2187           resolverSpecified and use it in internal get_Resolver().
2188           Added [Obsolete] for ReadTypedValue() whose base is obsoleted.
2189
2190 2004-11-22  Atsushi Enomoto <atsushi@ximian.com>
2191
2192         * XmlTextReader.cs : Now attribute normalization is handled on Read(),
2193           not on get_Value. This caused a problem when we use
2194           XmlValidatingReader that value is not always normalized expectedly.
2195
2196 2004-11-22  Atsushi Enomoto <atsushi@ximian.com>
2197
2198         * XmlReader.cs : removed old ReadValueAsXXX() and added new
2199           ReadContentAsXXX() and ReadElementContentAsXXX().
2200         * XmlTextReader.cs : removed old ReadValueAsXXX() (no overrides now).
2201         * XmlTextWriter.cs : added indentation on Comment nodes.
2202         * XmlDateTimeSerializationMode.cs : updated.
2203         * XmlResolver.cs : added 2.0 NameTable field.
2204         * ValidationType.cs : added ObsoleteAttributes on some members.
2205
2206 2004-11-18  Atsushi Enomoto <atsushi@ximian.com>
2207
2208         * XmlParserContext.cs : the fix was not checked in :(
2209
2210 2004-11-17  Atsushi Enomoto <atsushi@ximian.com>
2211
2212         * XQueryConvert.cs : moved from System.Xml.Query.
2213
2214 2004-11-14  Atsushi Enomoto <atsushi@ximian.com>
2215
2216         * XmlWriter.cs : after WriteAttributes(), argument XmlReader must
2217           move to element. This fixes bug #69350.
2218
2219 2004-11-10  Atsushi Enomoto <atsushi@ximian.com>
2220
2221         * XmlParserContext.cs : PushScope() was accessing list out of range.
2222
2223 2004-11-09  Atsushi Enomoto <atsushi@ximian.com>
2224
2225         * DTDValidatingReader.cs, XmlTextReader.cs :
2226           needed more changes wrt XmlException.
2227
2228 2004-11-08  Atsushi Enomoto <atsushi@ximian.com>
2229
2230         * DTDObjectModel.cs,
2231           DTDReader.cs,
2232           XmlReader.cs,
2233           XmlTextReader.cs,
2234           XmlException.cs :
2235
2236           Added support for 2.0 XmlException.SourceUri property. Improved
2237           exception handling to contain BaseURI everywhere in the parser.
2238
2239 2004-11-08  Atsushi Enomoto <atsushi@ximian.com>
2240
2241         * XmlTextReader2.cs : added. It is used to serve public API, plus
2242           entity handling support.
2243
2244         * DTDObjectModel.cs,
2245           DTDValidatingReader.cs,
2246           XmlDocumentType.cs,
2247           XmlParserContext.cs,
2248           XmlTextReader.cs :
2249           Implemented XmlTextReader.EntityHandling and ResolveEntity(). To
2250           implement them, XmlTextReader in 2.0 itself is in XmlTextReader2.cs
2251           and XmlTextReader.cs contains Mono.Xml2.XmlTextReader which is the
2252           same as 1.x XmlTextReader. XmlTextReader2 switches entity reader and
2253           source reader, and never handles tokenization. 
2254           The reason for "Mono.Xml2" is to avoid large changes in constructor.f
2255
2256 2004-11-08  Atsushi Enomoto <atsushi@ximian.com>
2257
2258         * XmlAttribute.cs, XmlElement.cs : get_Name should consider name table.
2259         * XmlDocument.cs : use NameTable in Load() and LoadXml().
2260         * XmlReader.cs : In Create(), use NameTable in XmlReaderSettings.
2261
2262 2004-11-05  Atsushi Enomoto <atsushi@ximian.com>
2263
2264         * XmlDocumentNavigator.cs : create rarely-used ArrayList later. This
2265           significantly improves XmlDocument-based XPath performance.
2266
2267 2004-11-04  Atsushi Enomoto <atsushi@ximian.com>
2268
2269         * XmlTextReader.cs : Manually expanded some of AppendValueChar() and
2270           XmlChar.IsWhitespace() which are on critical points on performance
2271           (marked as FIXME, but it depends on JIT).
2272
2273 2004-11-04  Atsushi Enomoto <atsushi@ximian.com>
2274
2275         * XmlTextReader.cs : Search xml:* attributes more efficiently.
2276
2277 2004-11-04  Atsushi Enomoto <atsushi@ximian.com>
2278
2279         * XmlTextReader.cs : Reduced NameTable.Add() for prefixed names. First,
2280           ReadName() now returns atomized LocalName and Prefix. Second, to
2281           avoid extraneous split, SetProperties() now takes prefix and
2282           localName that might be given from ReadName(). Third, removed 
2283           FillNames(). This optimizes "namespace-aware and prefixed document"
2284           parsing 10-20% faster.
2285
2286 2004-11-03  Atsushi Enomoto <atsushi@ximian.com>
2287
2288         * XmlTextReader.cs :
2289           With related to AddNamespace(), there was extra string.StartsWith()
2290           calls. Now AttributeTokenInfo.FillNames() is splitted into
2291           FillPrefixAndXmlns() and FillNamespace(), and AddNamespace() is done
2292           at FillPrefixAndXmlns().
2293
2294 2004-11-03  Atsushi Enomoto <atsushi@ximian.com>
2295
2296         * XmlTextReader.cs :
2297           Reduces LookupNamespace() call in FillNames(). This improves 6-7%
2298           speedup in some scenario.
2299           Code refactory; Removed unused code. AddAttribute() is used only for
2300           DTD, so renamed to AddDtdAttribute(). For PUBLIC and SYSTEM ids,
2301           FillNames() is not required. Two SetProperties() are ambiguous, so
2302           renamed one (that takes TokenInfo) as SetTokenProperties().
2303
2304 2004-11-03  Atsushi Enomoto <atsushi@ximian.com>
2305
2306         * XmlParserContext.cs : rewrote; especially to avoid XmlSpace boxing.
2307
2308 2004-11-03  Atsushi Enomoto <atsushi@ximian.com>
2309
2310         * XmlTextReader.cs : LookupNamespace() don't have to be called in
2311           ReadStartTag() to check prefix, since NamespaceURI is filled in
2312           FillNames(). 10% performance up by avoiding this extra check.
2313
2314 2004-10-29  Atsushi Enomoto <atsushi@ximian.com>
2315
2316         * XmlValidatingReader.cs : fixed incorrect recursion between
2317           indexer and GetAttribute().
2318
2319 2004-10-29  Atsushi Enomoto <atsushi@ximian.com>
2320
2321         * DTDReader.cs, DTDValidatingReader.cs, XmlTextReader.cs :
2322           When XmlTextReader is created with NodeType Element or Attribute,
2323           skip possible text declaration (that might be used for resolving
2324           entities) that specifies text encoding. With this fix, bug #61274
2325           must be regarded as fixed.
2326
2327 2004-10-29  Atsushi Enomoto <atsushi@ximian.com>
2328
2329         * XmlNodeReader.cs : Reimplemented ResolveEntity(). It does not use
2330           XmlTextReader trick anymore. XmlNodeReader itself is used instead.
2331
2332 2004-10-29  Atsushi Enomoto <atsushi@ximian.com>
2333
2334         * XmlNodeReader.cs : for NET_1_0 ReadInnerXml(), just use
2335           XmlReader.ReadInnerXmlInternal(). It should work fine.
2336           Ditto for ReadOuterXml().
2337
2338 2004-10-29  Atsushi Enomoto <atsushi@ximian.com>
2339
2340         * XmlNodeReader.cs : removed unused/unreachable code. Simplify
2341           namespace lookup.
2342
2343 2004-10-29  Atsushi Enomoto <atsushi@ximian.com>
2344
2345         * XmlDocument.cs, XmlNodeReader.cs, XmlTextReader.cs,
2346           XmlValidatingReader.cs : Those readers could just implement internal
2347           interface IHasXmlParserContext.
2348         * XmlTextReader.cs, XmlValidatingReader.cs : this[] disappeared in 2.0.
2349           (XmlReader has them as virtual.)
2350         * XmlReader.cs : ReadAsObject() disappeared.
2351         * XmlWriter.cs : WriteFromObject() disappeared.
2352
2353 2004-10-29  Atsushi Enomoto <atsushi@ximian.com>
2354
2355         * XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
2356         * XmlNode.cs : dustclean.
2357
2358 2004-10-28  Atsushi Enomoto <atsushi@ximian.com>
2359
2360         * XmlDocument.cs : use XPathEditableDocument again.
2361         * XmlNode.cs : To be compatible with XPathEditableDocument, it should
2362           not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.
2363
2364 2004-10-28  Atsushi Enomoto <atsushi@ximian.com>
2365
2366         * XmlChar.cs, XmlConstructs.cs :
2367           Switched again, for reducing per-process memory consumption.
2368         * XmlInputStream.cs :
2369           Just 64 bytes of buffer would be enough, for example like
2370           <?xml version="1.0" encoding="iso-8859-15" standalone="yes" ?>
2371
2372 2004-10-28  Atsushi Enomoto <atsushi@ximian.com>
2373
2374         * IXmlDataEvidence.cs : disappeared.
2375         * XmlConvertDateTimeSerializationMode.cs : incorrect filename. removed.
2376         * XmlDateTimeSerializationMode.cs : added
2377         * NewLineHandling.cs : added
2378         * IXmlNamespaceResolver.cs, XmlNamespaceManager.cs :
2379           now 'atomizedNames' is obsolete.
2380         * XmlReaderSettings.cs, XmlWriterSettings.cs :
2381           Should not be sealed. Should not be ICloneable.
2382
2383 2004-10-28  Atsushi Enomoto <atsushi@ximian.com>
2384
2385         * XmlDocument.cs : XPathEditableDocument looks broken. Just reverted
2386           to fix 2.0 corcompare.
2387
2388 2004-10-26  Atsushi Enomoto <atsushi@ximian.com>
2389
2390         * XmlTextReader.cs : Don't create attribute Value string on Read()
2391           (i.e. create string when get_Value() is invoked.) This optimizes
2392           some kind of XmlTextReader usage significantly such as Skip().
2393
2394 2004-10-22  Atsushi Enomoto <atsushi@ximian.com>
2395
2396         * XmlConvertDateTimeSerializationMode.cs : added.
2397         * XmlConvertDateTimeOption.cs : removed.
2398
2399 2004-10-22  Atsushi Enomoto <atsushi@ximian.com>
2400
2401         * XmlDocument.cs :
2402           For net_2_0, CreateNavigator() returns editable XPathNavigator.
2403         * XmlReader.cs, XmlTextReader.cs, XmlValidatingReader.cs :
2404           They do not implement IXmlDataEvidence anymore.
2405
2406 2004-10-18  Atsushi Enomoto  <atsushi@ximian.com>
2407
2408         * XmlTextReader.cs :
2409           Fixed CheckCharacters setter that always set false.
2410           CheckCharacters check is also required for ReadText(). This fixes
2411           bug #68449.
2412
2413 2004-10-15  Atsushi Enomoto  <atsushi@ximian.com>
2414
2415         * XmlTextReader.cs : Inside DTD, '<' character inside XML comment 
2416           is regatded as invalid. This fixes bug #68410. (Error message was
2417           also not correct.)
2418
2419 2004-10-14  Atsushi Enomoto  <atsushi@ximian.com>
2420
2421         * XmlWriter.cs : CreateTextWriter() is private.
2422
2423 2004-10-09  Atsushi Enomoto  <atsushi@ximian.com>
2424
2425         * XmlNodeReader.cs : LookupPrefix() was only after 2.0.
2426
2427 2004-10-08  Atsushi Enomoto  <atsushi@ximian.com>
2428
2429         * XmlNamespaceManager.cs : GetNamespacesInScope() caused
2430           IndexOutOfRangeException (miscounted indexes).
2431
2432 2004-10-04  Atsushi Enomoto  <atsushi@ximian.com>
2433
2434         * XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
2435           For attribute nodes, it should not use WriteSubtree() which does not
2436           support attribute nodes.
2437
2438 2004-09-20  Gert Driesen <drieseng@users.sourceforge.net>
2439         
2440         * XmlValidatingReader.cs: Added deprecation message.
2441
2442 2004-09-14  Atsushi Enomoto  <atsushi@ximian.com>
2443
2444         * XmlTextWriter.cs : Close() should not Flush() when the output is
2445           already closed. bug #65918 is fixed.
2446
2447 2004-09-12  Atsushi Enomoto  <atsushi@ximian.com>
2448
2449         * XmlTextWriter.cs : CloseOutput must be true by default.
2450
2451 2004-09-08  Atsushi Enomoto  <atsushi@ximian.com>
2452
2453         * XmlWriter.cs, XmlTextWriter.cs, XmlWriterSettings.cs :
2454           Implemented CheckCharacters and CloseOutput support.
2455
2456 2004-09-08  Atsushi Enomoto  <atsushi@ximian.com>
2457
2458         * XmlReader.cs : evidence is always provided.
2459         * XmlWriter.cs, XmlTextWriter.cs :
2460           added support for ConformanceLevel and OmitXmlDeclaration.
2461
2462 2004-09-08  Atsushi Enomoto  <atsushi@ximian.com>
2463
2464         * XmlTextReader.cs : Console.WriteLine() injected :(
2465         * XmlTextWriter.cs : It it partly supports XmlWriterSettings.
2466         * XmlWriter.cs : implemented Create().
2467         * XmlWriterSettings.cs : removed EncodeXmlBinary (deprecated).
2468
2469 2004-09-07  Atsushi Enomoto  <atsushi@ximian.com>
2470
2471         * XmlFactory.cs : removed (obsolete).
2472
2473 2004-09-07  Atsushi Enomoto  <atsushi@ximian.com>
2474
2475         * XmlNamespaceManager.cs : GetNamespacesInScope() ignored default
2476           namespace when scope is .ExcludeXml or .All.
2477         * XmlReader.cs : Implemented ValueType, SchemaInfo, ReadAsObject().
2478           Fixed ReadTypedValue() to call ReadValueAs().
2479
2480 2004-09-07  Atsushi Enomoto  <atsushi@ximian.com>
2481
2482         * XmlNamespaceManager.cs : Fixed GetNamespacesInScope() that returned
2483           inconsistent namespace pairs.
2484
2485 2004-09-07  Atsushi Enomoto  <atsushi@ximian.com>
2486
2487         * XmlReader.cs, XmlTextReader.cs :
2488           Added NET_2_0 CheckCharacters support.
2489
2490 2004-09-06  Atsushi Enomoto  <atsushi@ximian.com>
2491
2492         * XmlNode.cs : GetEnumerator() does not have to create ChildNodes
2493           every time. Removed unused StringBuilder field.
2494
2495 2004-09-06  Atsushi Enomoto  <atsushi@ximian.com>
2496
2497         * XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
2498           to read more (and might result in an error).
2499
2500 2004-09-03  Atsushi Enomoto  <atsushi@ximian.com>
2501
2502         * XmlTextReader.cs : When Normalization is true, CRLF and CR should
2503           be converted to single LF. This should fix part of bug #62076.
2504
2505 2004-08-30  Atsushi Enomoto  <atsushi@ximian.com>
2506
2507         * XmlWriter.cs : implemented WriteValue(object) for known types.
2508
2509 2004-08-30  Atsushi Enomoto  <atsushi@ximian.com>
2510
2511         * XmlElement.cs : XmlAttributeCollection doesn't have to be created
2512           every time until the actual use. This sometimes optimizes
2513           attribute-less XML performance siginificantly.
2514
2515 2004-08-27  Atsushi Enomoto  <atsushi@ximian.com>
2516
2517         * XmlAttribute.cs : some property getters threw NullReferenceException
2518           when the attribute is not added to an element.
2519         * XmlNode.cs : When a node is not appended to another node, BaseURI
2520           is empty. Bug #64120 is fixed.
2521
2522 2004-08-26  Atsushi Enomoto  <atsushi@ximian.com>
2523
2524         * XmlTextWriter.cs : In CheckState(), don't create indentation string
2525           at every time. WriteIndent() now handles the indentation without
2526           recomputation.
2527
2528 2004-08-23  Atsushi Enomoto  <atsushi@ximian.com>
2529
2530         * XmlReader.cs, XmlTextReader.cs, XmlWriter.cs :
2531           eliminate MS.Internal.Xml.* classes.
2532
2533 2004-08-21  Atsushi Enomoto  <atsushi@ximian.com>
2534
2535         * XmlElement.cs : set_InnerText was removing children incompletely.
2536           This fixes bug #63574.
2537
2538 2004-08-20  Atsushi Enomoto  <atsushi@ximian.com>
2539
2540         * XmlTextReader.cs : Fixed EOF not to return true when it is just
2541           closed. Element and EndElement location is now adjusted to be the
2542           same as MS.NET does. This fixes bug #63505 and #63507.
2543           ResetState() now throws InvalidOperationException() as MS.NET does.
2544
2545         * WriteState.cs : added missing 2_0 enumeration.
2546         * XmlReader.cs : ReadTypedValue() is virtual.
2547         * XmlValidatingReader.cs : ReadTypedValue() is override under 2_0.
2548
2549 2004-08-10  Atsushi Enomoto  <atsushi@ximian.com>
2550
2551         * XmlValidatingReader.cs : Replaced XmlSchemaCollection with
2552           XmlSchemaSet. Added Settings property override
2553
2554 2004-08-10  Atsushi Enomoto  <atsushi@ximian.com>
2555
2556         * DTDReader.cs : Replacing XmlSchemaDatatype .FromName(string) with
2557           .FromName(string, string) [going to remove former one; it is not
2558           good to support xdt:blah datatypes].
2559
2560 2004-08-03  Atsushi Enomoto  <atsushi@ximian.com>
2561
2562         * DTDValidatingReader.cs,
2563           XmlValidatingReader.cs : implemented IXmlNamespaceResolver.
2564         * XmlNamespaceManager.cs,
2565           XmlNodeReader.cs : implemented GetNamespacesInScope().
2566
2567 2004-08-03  Atsushi Enomoto  <atsushi@ximian.com>
2568
2569         * XmlCharacterData.cs,
2570           XmlDocument.cs,
2571           XmlNodeChangedEventArgs.cs : 
2572           Implemented XmlNodeChangedEventArgs.OldValue and .NewValue.
2573
2574 2004-08-03  Atsushi Enomoto  <atsushi@ximian.com>
2575
2576         * XmlWriter.cs : implemented settings-less Create().
2577         * XmlWriterSettings.cs : added some comments.
2578
2579 2004-07-29  Atsushi Enomoto  <atsushi@ximian.com>
2580
2581         * XmlWriter.cs : implemented WriteNode(XPathNavigator, bool) 
2582           incompletely, using XPathNavigator.ReadSubtree().
2583
2584 2004-07-29  Atsushi Enomoto  <atsushi@ximian.com>
2585
2586         * XmlReader.cs : Implemented new 2.0 virtual members that used to be
2587           abstract in 1.x. Implemented ReadSubtree().
2588
2589 2004-07-28  Lluis Sanchez Gual  <lluis@novell.com>
2590
2591         * XmlTextReader.cs: Stop parsing when a null character is found.
2592
2593 2004-07-28  Atsushi Enomoto  <atsushi@ximian.com>
2594
2595         * XmlReader.cs : Implemented missing MoveToNextSibling() and
2596           MoveToDescendant().
2597         * XmlTextReader.cs : Added missing ReadValueAs() override (hmm...
2598           are they really worth overriding?)
2599
2600 2004-07-28  Atsushi Enomoto  <atsushi@ximian.com>
2601
2602         * XmlWriter.cs : Added new WriteStartAttribute(string).
2603
2604 2004-07-28  Atsushi Enomoto  <atsushi@ximian.com>
2605
2606         * XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
2607         * XmlQualifiedName.cs : Added internal static Parse().
2608         * XmlReader.cs : use XmlQualifiedName.Parse().
2609         * XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
2610         * XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
2611           Implemented 2.0 virtual methods that used to be abstract in 1.x.
2612
2613 2004-07-26  Atsushi Enomoto  <atsushi@ximian.com>
2614
2615         * XmlReader.cs : Implemented ReadValueAsXxx() except for
2616           ReadValueAsList().
2617         * XmlTextReader.cs : implemented them as well, just invoking 
2618           base.ReadValueAsXxx ().
2619         * XmlWriter.cs : implemented some WriteValue() methods.
2620
2621 2004-07-21  Atsushi Enomoto  <atsushi@ximian.com>
2622
2623         * XmlConvert.cs : added internal ToBinHexString() (BTW according to
2624           MSDN documentation it should be public).
2625         * XmlReader.cs : fixed one incorrect Create() overload. Added
2626           LookupNamespace (string, bool) (public for 2.0, internal for 1.x).
2627         * XmlTextReader.cs : Mostly implemented IXmlNamespaceResolver
2628           interface. Fixed HasLineInfo() access modifier on 2.0.
2629         * XmlNodeReader.cs : Mostly implemented IXmlNamespaceResolver
2630           interface. Wrote common namespace node lookup method and rewrote
2631           existing LookupNamespace().
2632         * XmlValidatingReader.cs : Fixed 2.0 IXmlLineInfo members' signatures.
2633
2634 2004-07-20  Atsushi Enomoto  <atsushi@ximian.com>
2635
2636         * XmlNode.cs : When the argument node being inserted is the existing
2637           document element, it should not result in an error (since it should
2638           be first removed from document, thus no error should happen).
2639
2640 2004-07-16  Atsushi Enomoto  <atsushi@ximian.com>
2641
2642         * XmlTextReader.cs : Fixed several problems on ReadBase64();
2643           Whitespaces should be ignored, and '=' was not skipped correctly.
2644           It caused "unexpected end of document" error at immediate close tag.
2645
2646 2004-07-13  Atsushi Enomoto  <atsushi@ximian.com>
2647
2648         * Added MonoFIXAttribute.cs
2649
2650 2004-07-13  Atsushi Enomoto  <atsushi@ximian.com>
2651
2652         * XmlWriter.cs : Added Create() stubs.
2653         * XmlWriterSettings.cs : Added missing property setters.
2654         * XmlValidatingReader.cs : added internal schemas setter.
2655         * XmlTextReader.cs : added internal XmlReaderSettings property setter.
2656         * XmlReader.cs :  Halfly implemented Create().
2657         * DTDValidatingReader.cs : author information was missing.
2658
2659 2004-07-11  Atsushi Enomoto  <atsushi@ximian.com>
2660
2661         * XmlConvertDateTimeOption.cs : it is NET_2_0.
2662         * IXmlNamespaceResolver.cs,
2663           XmlNamespaceScope.cs : Compile it in .net 1.1 (as internal).
2664         * XmlNamespaceManager.cs : Implement IXmlNamespaceResolver.
2665
2666 2004-07-09  Atsushi Enomoto  <atsushi@ximian.com>
2667
2668         * XmlConvertDateTimeOption.cs : Forgot to change the content...
2669
2670 2004-07-09  Atsushi Enomoto  <atsushi@ximian.com>
2671
2672         * ConformanceLevel.cs : Fixed integer value.
2673         * Added XmlConvertDateTimeOption.cs.
2674         * Removed XmlItemView.cs and XmlItemViewCollection.cs.
2675
2676 2004-07-09  Atsushi Enomoto  <atsushi@ximian.com>
2677
2678         * IXmlNamespaceResolver.cs :
2679           Fixed return value of GetNamespacesInScope().
2680         * IXmlDataEvidence.cs,
2681           XmlReader.cs,
2682           XmlTextReader.cs,
2683           XmlValidatingReader.cs : fixed Evidence (it is not array anymore).
2684         * XmlReader.cs :
2685           Implemented virtual indexers, QuoteChar, and Dispose() (2.0 stuff).
2686         * XmlNodeReader.cs,
2687           In net_2_0, indexers vanished from XmlNodeReader.
2688           In net_2_0, overriden QuoteChar vanished.
2689         * XmlReaderSettings.cs : set_NameTable is missing.
2690         * XmlTextReader.cs : Implemented ProhibitDtd.
2691
2692 2004-07-09  Atsushi Enomoto  <atsushi@ximian.com>
2693
2694         * XmlAttributeCollection.cs : In .net 2.0, it became sealed class.
2695         * IXmlDataEvidence.cs : not "Evidences" but "Evidence".
2696         * XmlInputStream.cs : new csc rejected implicit int->char cast.
2697         * XmlNamespaceManager.cs : In net_2_0, LookupNamespace(string) and
2698           LookupPrefix(string) does not require argument string as atomized.
2699           Added HasNamespace (string, bool).
2700         * XmlReader.cs : Added Settings and SchemaInfo properties.
2701         * XmlReaderSettings.cs : Added NameTable. Throw XmlException when
2702           attempt to set Schemas.
2703         * XmlTextReader.cs : Fixed "Evidences" to "Evidence". new csc rejected
2704           implicit int->char cast.
2705         * XmlValidatingReader.cs : Fixed "Evidences" to "Evidence".
2706
2707 2004-06-27  Atsushi Enomoto  <atsushi@ximian.com>
2708
2709         * XmlDocument.cs:
2710           Close XmlReader only when it is created. This fixes bug #60809.
2711
2712 2004-06-18  Atsushi Enomoto <atsushi@ximian.com>
2713
2714         * DTDObjectModel.cs, DTDReader.cs, XmlConvert.cs, XmlDocument.cs,
2715           XmlException.cs, XmlParserInput.cs, XmlTextReader.cs,
2716           XmlTextWriter.cs : Globalization.
2717         * XmlNode.cs : Fixed error message that confused node type.
2718
2719 2004-06-14  Atsushi Enomoto <atsushi@ximian.com>
2720
2721         * XmlDocumentNavigator.cs : MoveToNext() should skip concatenating
2722           text/cdata/whitespace nodes.
2723
2724 2004-06-14  Atsushi Enomoto <atsushi@ximian.com>
2725
2726         * XmlInputStream.cs : Fixed encoding detection detected in xslt
2727           standalone tests. Removed extraneous code.
2728
2729 2004-06-13  Atsushi Enomoto <atsushi@ximian.com>
2730
2731         * XmlTextReader.cs : Character range check is always done. It is only
2732           character references for which check is not done when Normalization
2733           is false.
2734           A bit more kind error message for multiple document element error.
2735         * XmlTextWriter.cs : Check if character is valid and entitize when
2736           it was invalid.
2737
2738 2004-06-09  Atsushi Enomoto <atsushi@ximian.com>
2739
2740         * XmlNamespaceManager.cs : The error message was improper.
2741           Fix for bug #59880.
2742
2743 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2744
2745         * XmlInputStream.cs: Initialize reads a larger buffer now when trying
2746         to guess the encoding.
2747
2748 2004-06-06  Atsushi Enomoto <atsushi@ximian.com>
2749
2750         * NameTable.cs : Fixed incorrect hash computation. Thanks to Ben.
2751         * XmlTextWriter.cs : Fixed remaining LookupNamespace() atom problem
2752           shown in xslt standalone tests.
2753
2754 2004-06-06  Atsushi Enomoto <atsushi@ximian.com>
2755
2756         * XmlTextWriter.cs : Improved indenting. For children of a mixed 
2757           content element, it won't be indented.
2758
2759 2004-06-06  Atsushi Enomoto <atsushi@ximian.com>
2760
2761         * DTDObjectModel.cs,
2762           XmlDocument.cs : Close stream always.
2763         * XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
2764         * XmlTextReader.cs : Namespace check was not done. Some tests depends
2765           on this failure and to be fixed.
2766
2767 2004-06-03  Atsushi Enomoto <atsushi@ximian.com>
2768
2769         * XmlNamespaceManagre.cs : Fixed LookupNamespace() and LookupPrefix().
2770           They require that names are *already* atomized.
2771         * XmlNodeReader.cs,
2772           XmlTextWriter.cs : use safe overload of LookupXXX().
2773
2774 2004-05-30  Atsushi Enomoto <atsushi@ximian.com>
2775
2776         * XmlTextReader.cs : Fixed version mismatch; ProhibitDtd should be
2777           NET_2_0.
2778
2779 2004-05-29  Gert Driesen (drieseng@users.sourceforge.net)
2780         
2781         * XmlTextReader.cs: Added ProhibitDtd property for NET 1.1 to match
2782         public API in MS.NET 1.1
2783
2784 2004-05-27  Atsushi Enomoto <atsushi@ximian.com>
2785
2786         * XmlDocument.cs : Save() should indent only when PreserveWhitespace
2787           is false. Fixed bug #59155.
2788           Modified comment lines a bit.
2789
2790 2004-05-27  Atsushi Enomoto <atsushi@ximian.com>
2791
2792         * XmlTextWriter.cs : WriteRaw() looks to proceed WriteState to Prolog
2793           (if it is Start). Fixed bug #59154.
2794
2795 2004-05-27  Atsushi Enomoto <atsushi@ximian.com>
2796
2797         * XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
2798           and don't bork against <foo></foo>. Also mofidied this method to skip
2799           <foo/>. Fixed bug #59142.
2800           Modified some comments on the code (FIXME->LAMESPEC et al).
2801
2802 2004-05-24  Atsushi Enomoto <atsushi@ximian.com>
2803
2804         * DTDReader.cs : When sequential PE references exist, the reader only
2805           expands the first one and in some cases the parser complaints the
2806           content (such like expecting name character but found '%').
2807           This fixes bug #58818.
2808
2809 2004-05-23  Atsushi Enomoto <atsushi@ximian.com>
2810
2811         * XmlNode.cs : RemoveChild() should check null argument.
2812           Normalize() was broken in some cases.
2813
2814 2004-05-22  Atsushi Enomoto <atsushi@ximian.com>
2815
2816         * ConformanceLevel.cs : added.
2817
2818 2004-05-22  Atsushi Enomoto <atsushi@ximian.com>
2819
2820         * XmlNodeChangedEventArgs.cs : the last patch looks true 
2821           ONLY AFTER .NET 2.0.
2822
2823 2004-05-22  Atsushi Enomoto <atsushi@ximian.com>
2824
2825         * XmlReaderSettings.cs, XmlWriterSettings.cs : NET_2_0 were missed.
2826
2827 2004-05-22  Atsushi Enomoto <atsushi@ximian.com>
2828
2829         * XmlFactory.cs,
2830           XmlItemView.cs,
2831           XmlItemViewCollection.cs,
2832           XmlReaderSettings.cs,
2833           XmlWriterSettings.cs : added new .NET 2.0 classes.
2834
2835         * AsyncXmlTextWriter.cs,
2836           IXPathChangeNavigator.cs,
2837           IXPathEditor.cs,
2838           IXPathNavigator.cs,
2839           XmlChangeFilters.cs,
2840           XmlInfoItemType.cs,
2841           XmlNodeChangeType.cs,
2842           XPathChangeNavigator.cs,
2843           XPathDocument2.cs,
2844           XPathDocument2ChangedEventAction.cs,
2845           XPathDocument2ChangedEventHandler.cs,
2846           XPathEditor.cs,
2847           XPathNavigator2.cs : removed. (They are only in .NET 1.2)
2848
2849         * XmlWriter.cs : added new NET_2_0 WriteElementString().
2850
2851 2004-05-22  Atsushi Enomoto <atsushi@ximian.com>
2852
2853         * XmlNodeChangedEventArgs.cs : not properly inherited from EventArgs.
2854
2855 2004-05-17  Atsushi Enomoto <atsushi@ximian.com>
2856
2857         * XmlConvert.cs : Fixed ToString(TimeSpan) that didn't handle Hour 
2858           correctly. This fixes bug #57786.
2859
2860 2004-05-13  Atsushi Enomoto <atsushi@ximian.com>
2861
2862         * XmlValidatingReader.cs : explicitly mark as MonoTODO for XDR (not
2863           supported).
2864
2865 2004-05-12  Atsushi Enomoto <atsushi@ximian.com>
2866
2867         * DTDObjectModel.cs,
2868           DTDReader.cs,
2869           XmlDocument.cs,
2870           XmlInputStream.cs,
2871           XmlParserInput.cs,
2872           XmlTextReader.cs,
2873           XmlUrlResolver.cs : removed reference to Mono.Xml.
2874           Made Mono.Xml.* classes internal.
2875         * XmlDocument.cs : output xml declaration for TextWriter output in Save()
2876         * XmlElement.cs : Name character check should be done in .ctor().
2877         * XmlNamespaceManager.cs : Removed dangerous internal .ctor()
2878
2879 2004-05-10  Atsushi Enomoto <atsushi@ximian.com>
2880
2881         * XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
2882           node can be it as well) and added check for Attributes existence
2883           in GetAttribute() and MoveTo*Attribute().
2884
2885 2004-05-10  Atsushi Enomoto <atsushi@ximian.com>
2886
2887         * XmlTextWriter.cs : comment not in the content state is indented.
2888           This fixes bug #58247.
2889
2890 2004-05-07  Lluis Sanchez Gual  <lluis@ximian.com>
2891
2892         * XmlTextWriter.cs: In WriteStartAttribute, when the prefix is xmlns and
2893           the name is empty, convert it to a xmlns attribute.
2894
2895 2004-04-27  Atsushi Enomoto <atsushi@ximian.com>
2896
2897         * XmlTextReader.cs : don't use NET_1_0.
2898
2899 2004-04-24  Atsushi Enomoto <atsushi@ximian.com>
2900
2901         * XmlComment.cs. XmlProcessingInstruction.cs : missing commits.
2902
2903 2004-04-24  Atsushi Enomoto <atsushi@ximian.com>
2904
2905         W3C DOM compliant read-only check support (buggy part in MS.NET).
2906         * XmlAttribute.cs,
2907           XmlCDataSection.cs,
2908           XmlCharacterData.cs,
2909           XmlDocument.cs,
2910           XmlElement.cs,
2911           XmlNode.cs,
2912           XmlSignificantWhitespace.cs,
2913           XmlText.cs
2914           : CloneNode() - set read-only when copied node is read-only.
2915             Check IsReadOnly on attempt to modify value.
2916         * XmlEntity.cs,
2917           XmlEntityReference.cs : Set descendant nodes read-only.
2918         * XmlAttributeCollection.cs,
2919           XmlNode.cs
2920           : Fixed incompatible exception type.
2921         * XmlEntityReference.cs : CloneNode() should not pass an empty string
2922           as its name.
2923         * XmlEntityReference.cs,
2924           XmlProcessingInstruction.cs : Check XML name validity.
2925         * XmlText.cs : CloneNode() does not have to check children.
2926
2927 2004-04-24  Atsushi Enomoto <atsushi@ximian.com>
2928
2929         * XmlDeclaration.cs : More strict check on InnerText and Value.
2930
2931 2004-04-24  Atsushi Enomoto <atsushi@ximian.com>
2932
2933         * DTDReader.cs, XmlConvert.cs, XmlDeclaration.cs, XmlImplementation.cs,
2934           XmlNode.cs : Culture independency fix.
2935
2936 2004-04-22  Atsushi Enomoto <atsushi@ximian.com>
2937
2938         * XmlEntityReference.cs : Added XPathNodeType (just for workaround).
2939           This should really fix bug #57248.
2940
2941 2004-04-20  Atsushi Enomoto <atsushi@ximian.com>
2942
2943         * XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
2944           only an EntityReference (not navigatable) child. Bug #57248 fixed.
2945         * XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
2946           instead of WriteAttributes() only for MS.NET behavior compatibility.
2947           This change makes SgmlReader usable (due to SgmlReader bug).
2948
2949 2004-04-10  Atsushi Enomoto <atsushi@ximian.com>
2950
2951         * XmlParserContext.cs : Fixed .ctor() not to reference null namespace
2952           manager. This fixes bug #56770.
2953
2954 2004-04-06  Atsushi Enomoto <atsushi@ximian.com>
2955
2956         * DTDReader.cs : In ProcessDTDSubset(), 1)error message was 
2957           generated with incorrect stream character, 2)entity nest check 
2958           should not depend on line info which might not be supplied, 3)
2959           empty PE should be skipped.
2960         * XmlParserInput.cs : use index for StringBuilder instead of calling
2961           Remove() many times. This highly optimizes DTD parser.
2962
2963         * XmlAttribute.cs : removed commented code.
2964         * XmlEntity.cs : removed unused field.
2965
2966 2004-04-05  Atsushi Enomoto <atsushi@ximian.com>
2967
2968         * DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList 
2969           only when they are required.
2970         * DTDReader.cs,
2971           XmlParserInput.cs : raw tag string now don't have to be kept, while
2972           it cost so much. Removed unused code. 20% to 30% memory got saved.
2973         * XmlNotation.cs : removed unused code.
2974         * XmlTextReader.cs : Removed unused code. ReadString() now uses 
2975           XmlReader's internal method. Fixed BaseURI to be conformant with
2976           W3C XML InfoSet and (subsequently) xml:base specification (i.e. 
2977           reflect xml:base attribute correctly).
2978
2979 2004-04-05  Atsushi Enomoto <atsushi@ximian.com>
2980
2981         * XmlAttribute.cs : get_Value should return all children's value.
2982         * XmlCharacterData.cs : DOM's substring does not raise an error when
2983           startIndex + count exceeds the length of Data.
2984         * XmlNamedNodeMap.cs : SetNamedItem() returns the new child when it
2985           does not replace another named item.
2986         * XmlElement.cs : with related to the XmlNamedNodeMap change, 
2987           SetAttributeNode() is required to fix as to return null when it does
2988           not replace existing attribute.
2989
2990 2004-03-31  Atsushi Enomoto <atsushi@ximian.com>
2991
2992         * XmlDocumentNavigator.cs : When this instance is created from xmlns 
2993           attributes, it should be Namespace node.
2994
2995 2004-03-27  Atsushi Enomoto <atsushi@ximian.com>
2996
2997         * XmlReader.cs : ReadInnerXml() should progress reader when it is on
2998           an empty element. This fixes bug #56064.
2999
3000 2004-03-27  Atsushi Enomoto <atsushi@ximian.com>
3001
3002         * DTDReader.cs : In some places sequential parameter entity was
3003           incorrectly skipped (and caused invalid result).
3004
3005 2004-03-24  Atsushi Enomoto <atsushi@ximian.com>
3006
3007         * XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
3008           namespace nodes which has the same name as already-iterated nodes.
3009           Also xmlns='' should not be selected, and once it appeared, default 
3010           namespace should not be selected anymore.
3011
3012 2004-03-24  Atsushi Enomoto <atsushi@ximian.com>
3013
3014         * XmlCharacterData.cs : ReplaceData() should reject negative integer
3015           value for count argument.
3016         * XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
3017           On RemoveNamedItem(), default attribute value should be restored.
3018
3019 2004-03-24  Atsushi Enomoto <atsushi@ximian.com>
3020
3021         * XmlAttributeCollection.cs : Remove() should throw an exception when
3022           target attribute is not included in the collection.
3023         * XmlDocument.cs : ImportNode() should reject null node.
3024         * XmlNode.cs : Fixed type of exception for invalid insertion.
3025           It should throw an exception not only when the owner document of the
3026           reference element is different but its parent element is different.
3027           Some error message improvement.
3028
3029 2004-03-21  Atsushi Enomoto <atsushi@ximian.com>
3030
3031         * XmlReader.cs : ReadInnerXml() incorrectly tried to get output xml.
3032           This fixes bug #55856.
3033
3034 2004-03-20  Atsushi Enomoto <atsushi@ximian.com>
3035
3036         * XmlTextWriter.cs : Fixed indentation on CDATA. This fixes bug #55828.
3037
3038 2004-03-19  Atsushi Enomoto <atsushi@ximian.com>
3039
3040         * XmlImplementation.cs : HasFeature() returns true when strVersion
3041           is null.
3042
3043 2004-03-16  Atsushi Enomoto <atsushi@ximian.com>
3044
3045         * XmlWhitespace.cs : Fixed WriteTo(). Whitespace nodes should be 
3046           written regardless of document's PreserveWhitespace.
3047
3048 2004-03-16  Atsushi Enomoto <atsushi@ximian.com>
3049
3050         * XmlDocumentNavigator.cs : Value should return concatenated string for 
3051           sequential text nodes. Considered detached nodes, the result of 
3052           MoveToParent() should be checked.
3053
3054 2004-03-15  Atsushi Enomoto <atsushi@ximian.com>
3055
3056         * XmlReader.cs : ReadInnerXml()/ReadOuterXml() should not bork when
3057           the reader is on EndElement. Patch by Jean-Marc Andre.
3058
3059 2004-03-14  Atsushi Enomoto <atsushi@ximian.com>
3060
3061         * XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
3062           to return attribute node. It affects on IHasXmlNode.GetNode() and
3063           SelectNodes()/SelectSingleNode().
3064
3065 2004-03-04  Atsushi Enomoto <atsushi@ximian.com>
3066
3067         * XmlImplementation.cs : fixity fix (I need NUnit runnable ;)
3068
3069 2004-03-04  Atsushi Enomoto <atsushi@ximian.com>
3070
3071         * XmlImplementation.cs : forgot to commit (renaming internal case)
3072
3073 2004-03-04  Atsushi Enomoto <atsushi@ximian.com>
3074
3075         * XmlDocument.cs : Implementation should not return null.
3076
3077 2004-02-25  Atsushi Enomoto <atsushi@ximian.com>
3078
3079         * XmlTextWriterOpenElement.cs : Reset() should reset _all_ fields.
3080           This fixes indentation bug.
3081
3082 2004-02-19  Atsushi Enomoto <atsushi@ximian.com>
3083
3084         * XmlTextWriter.cs : Fixed bugzilla #54554 (incorrent end tag output).
3085
3086 2004-02-16  Atsushi Enomoto <atsushi@ximian.com>
3087
3088         * DTDAutomata.cs,
3089           DTDObjectModel.cs,
3090           DTDReader.cs,
3091           DTDValidatingReader.cs : made classes internal.
3092         * XmlDocument.cs : removed extra FIXMEs.
3093         * XmlNamedNodeMap.cs,
3094           XmlResolver.cs,
3095           XmlUrlResolver.cs : 
3096           Fixed incorrect method signature.
3097
3098 2004-02-13  Atsushi Enomoto <atsushi@ximian.com>
3099
3100         * DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs : 
3101           say goodbye to sys.collections.specialized.
3102           (replaced the classes in that namespace with ArrayList or Hashtable)
3103
3104 2004-02-12  Atsushi Enomoto <atsushi@ximian.com>
3105
3106         * XmlReader.cs : For performance reason, XmlTextReader now uses
3107           base ReadInnerXml() and don't store currentTag array unnecessarily.
3108         * XmlTextReader.cs :
3109           - Fixed GetAttribute(int) that might cause index out of range.
3110           - Now it consumes the text reader by reading blocks, as MS.NET does.
3111             Modified GetRemainder(), PeekChar(), ReadChar() and so on.
3112           - Now it doesn't create Value string for linked nodes, unless it 
3113             is actually required.
3114           - some code refactory.
3115
3116 2004-02-11  Atsushi Enomoto <atsushi@ximian.com>
3117
3118         * XmlTextWriter.cs, XmlTextWriterOpenElement.cs :
3119           Reduced creation of openlElement. It also saves much memory.
3120
3121 2004-02-10  Atsushi Enomoto <atsushi@ximian.com>
3122
3123         * XmlNode.cs : ChildNodes should not create XmlNodeListChildren
3124           every time. This fix heavily improved performance.
3125
3126 2004-02-10  Atsushi Enomoto <atsushi@ximian.com>
3127
3128         * XmlAttributeCollection.cs : set owner element as parent on removal
3129           events (though they are not "parent" in infoset or dom context)
3130         * XmlElement.cs : Don't remove attributes twice (raises extraneous
3131           removal events).
3132         * XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
3133           Added NET_2_0 members.
3134
3135 2004-02-08  Atsushi Enomoto <atsushi@ximian.com>
3136
3137         * DTDObjectModel.cs : Limit external entity reference from DTD by 256.
3138           foreach elimination.  DTDParameterEntityDeclaration should set Root.
3139           Compute attribute default value without raising an error.
3140           (for non-error reporting reader)
3141         * DTDReader.cs : Fixes for the above fixes. foreach elimination.
3142         * DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
3143           XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
3144           XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
3145           XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
3146           XmlText.cs : foreach elimination.
3147         * XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
3148           foreach elimination. Removed unnecesary methods.
3149         * XmlTextReader.cs : code format refactory. Optimized some methods.
3150           foreach elimination. Replaced Stack with string array.
3151           Replaced StringBuilder with char array. Removed unnecessary methods.
3152
3153 2004-02-06  Atsushi Enomoto <atsushi@ximian.com>
3154
3155         * DTDValidatingReader.cs : Fixed MoveToElement() that causes incorrect
3156           IsDefault and Depth.
3157         * XmlAttribute.cs : Fixed .ctor(). Omit more namespace check when 
3158           checkNamespace = false.
3159         * XmlNamedNodeMap.cs : Fixed SetNamedItem() to raise events.
3160         * XmlAttributeCollection.cs : Reimplemented InsertAfter to use
3161           InsertBefore() (similar to XmlNode).
3162         * XmlDocument.cs : Added internal .ctor().  Reimplemented ReadNode()
3163           as recursive, to make event order compatible.
3164         * XmlDocumentType.cs : Use SetNamedItem() (to raise events).
3165         * XmlElement.cs : Some refactory.  Fixed SetAttributeNode() with 
3166           string name to block prefixed name.
3167         * XmlEntity.cs : Don't raise events on setting contents.
3168         * XmlNode.cs : Some refactory. Added raiseEvent argument to internal
3169           InsertBefore().
3170         * XmlEntityReference.cs : related fix for XmlNode change.
3171         * XmlTextReader.cs : When the reader is on "attributes" of xmldecl or
3172           doctype, Depth 1 lower than usual attribute. Split large function.
3173
3174 2004-02-05  Atsushi Enomoto <atsushi@ximian.com>
3175
3176         * XmlConvert.cs : ToSingle() and ToDouble() should be culture 
3177           independent. Patch by Rodolfo Campero.
3178
3179 2004-02-04  Atsushi Enomoto <atsushi@ximian.com>
3180
3181         * DTDObjectModel.cs : Never expand entity on ScanEntityValue().
3182         * DTDValidatingReader.cs : XmlDeclaration node requires attributes
3183           to be movable.
3184         * XmlAttribute.cs,
3185           XmlDocument.cs,
3186           XmlDocumentFragment.cs,
3187           XmlElement.cs,
3188           XmlEntity.cs,
3189           XmlLinkedNode.cs,
3190           XmlNode.cs,
3191           XmlNotation.cs : 
3192           Added namespace checking flag (required for such xml readers
3193           that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
3194         * XmlDocumentType.cs,
3195           XmlEntity.cs,
3196           XmlEntityReference.cs : The children of Entity and EntityReference
3197           became correct. They now holds parsed nodes, but it is only when
3198           they are appended to the document.
3199         * XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
3200           boolean checkNodeType argument.  This method also tries to create
3201           Entity's and EntityReference's child nodes.  Also added internal
3202           RemoveChild() with boolean checkNodeType argument.
3203         * XmlNodeReader.cs : Quick hack for ResolveEntity() that became 
3204           broken with these changes. use InnerXml as input to entityReader.
3205         * XmlTextReader.cs : XmlDeclaration's value LocalName should be the
3206           same as Name.  The names of DTD's pseudo attributes should be empty.
3207           Fixed DTD node's Depth (was regarded as attribute value's depth).
3208
3209 2004-02-03  Atsushi Enomoto <atsushi@ximian.com>
3210
3211         * XmlTextReader.cs, DTDReader.cs : fixity fix ;)
3212
3213 2004-02-03  Atsushi Enomoto <atsushi@ximian.com>
3214
3215         * ChangeLog : Fixed incorrect description that should be written for
3216           DTDValidatingReader.cs but written for DTDReader.cs.
3217         * DTDValidatingReader.cs : Fixes described in the last DTDReader fix.
3218
3219         * XmlChar.cs,
3220           XmlConstructs.cs : Made XmlChar and XmlConstructs equivalent and
3221           replaced XmlChar with XmlConstruts, renaming "XmlChar" to 
3222           "XmlCharCompact" and "XmlConstructs" to "XmlChar". 
3223           (XmlChar will be used for compact framework.)
3224         * DTDReader.cs, XmlParserInput.cs, XmlTextReader.cs : 
3225           XmlChar related changes.  Support for surrogate pair.
3226           It cannot use TextReader's peek anymore (for surrogate pair).
3227           Character range check for PI value, attribute value, text
3228         * XmlTextWriter.cs : Change openElements from Stack to ArrayList.
3229           (It calls ToArray() every time.)
3230
3231 2004-02-03  Alon Gazit <along@mainsoft.com>
3232         * XmlNamedNodeMap - now Item(int index) returns null for nodeList.Count
3233           instead of throwing ArgumentOutOfRangeException.
3234
3235 2004-02-03  Atsushi Enomoto <atsushi@ximian.com>
3236
3237         * XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
3238           predefined entity names.
3239         * DTDObjectModel.cs : DTDxxxCollection now derives from 
3240           - DTDCollectionBase that derives from DictionaryBase.
3241           - "Literal value" and "replacement text" are handled differently.
3242           - Throw XmlException when external entity could not be resolved. 
3243           - Return ReplacementText for EntityValue.
3244         * DTDReader.cs :
3245           - Support IXmlLineInfo.
3246           - Fixed IGNORE section handling to be more strict.
3247           - Compute replacement text on reading entity declarations.
3248           - Don't expand char references before getting literal entity value.
3249           - Check not allowed parameter entity inside internal subset.
3250         * DTDValidatingReader.cs :
3251           - Added ValidateWhitespaceNode() to check whitespace's Validity
3252             Constraints on external elementdecl and standalone document.
3253           - When invalid data against its datatype was found, don't throw
3254             parse error.
3255           - Other code refactory.
3256         * XmlTextReader.cs : 
3257           - Check for invalid Text pattern "]]>" should not depend on line 
3258             info since it might not be supported.
3259           - Check referenced character's validity (WFC).
3260
3261 2004-01-28  Atsushi Enomoto <atsushi@ximian.com>
3262
3263         * DTDReader.cs : Added Normalization.  Parameter Entity declaration
3264           should block invalid characters. (GEDecl should be fixed as well.)
3265         * XmlConstruct.cs : Should allow surrogate chars.
3266         * XmlNotation.cs : When prefix is empty (i.e. almost all cases) 
3267           Name should not add ':'. Patch by Boris Kirzner.
3268         * XmlTextReader.cs : Modified private ReadCharacterReference() to
3269           return the character (or -1 when should not return anything).
3270           Now Text character reference are checked their character range.
3271           Set DTDReader.Normalization as well as the reader itself.
3272
3273 2004-01-28  Atsushi Enomoto <atsushi@ximian.com>
3274
3275         * DTDReader.cs : Make sure that parameter entities are not allowed
3276           inside internal subset unless it appears as a markupdecl.
3277         * DTDValidatingReader.cs : ENTITY or ENTITIES type attributes must have
3278           a value that indicates *unparsed* entity (i.e. NDATA required).
3279
3280 2004-01-26  Atsushi Enomoto <atsushi@ximian.com>
3281
3282         * XmlTextWriter.cs : quick performance fix.
3283           Reduced memoty allocation (e.g. 12% when writing XMLSchema.xsd.)
3284
3285 2004-01-26  Atsushi Enomoto <atsushi@ximian.com>
3286
3287         * DTDObjectModel.cs :
3288           - DTDNode's BaseURI should not always refer to that of DTD's.
3289           - Use absolute URI's .ToString() instead of AbsolutePath.
3290         * DTDReader.cs : Throw XmlException for illegal character references.
3291         * DTDValidatingReader.cs :
3292           - Share XmlResolver when the actual reader is XmlTextReader.
3293             (MS's XmlValidatingReader and XmlTextReader do this.)
3294           - Added its own EntityHandling property.
3295         * XmlValidatingReader.cs : Share XmlResolver with XmlTextReader.
3296         * XmlReader.cs,
3297           XmlTextReader.cs : Added new NET_2_0 members.
3298         * XmlElement.cs : Removed extra lines (caused by XmlTextWriter bugs).
3299         * XmlEntityReference.cs : Forgot to add, the real fix by Boris.
3300
3301 2004-01-23  Atsushi Enomoto <atsushi@ximian.com>
3302
3303         * XmlWriter.cs, XmlTextWriter.cs :
3304           Several namespace related fixes.
3305           - Current element's NamespaceURI should be immediately available
3306             after the call of WriteStartElement() for LookupPrefix(), so 
3307             AddMissingElementXmlns() only affects on output. This is 
3308             now identified by shouldCheckElementXmlns field.
3309           - Attribute's overraped xmlns should be ignored for LookupPrefix(),
3310             Especially, when the owner element is written with the default
3311             namespace. HOWEVER, the attribute should be *written*. This is
3312             identified by shouldAddSavedNsToManager field.
3313           - In AddMissingElementXmlns(), non-empty prefix namespace was not
3314             checked user-written attributes.
3315           - XmlWriter.WriteAttributeString() never supplies namespace URI for
3316             xmlns attributes for other versions than NET_1_0. Instead, added
3317             ns check logic in WriteStartAttribute() only with NET_1_0.
3318           - WriteEndAttribute() should reject zero-length namespace for 
3319             non-default xmlns declarations.
3320           - LookupPrefix() should reject argument null and empty.
3321
3322         (added 2004-01-24 : forgot to mention more)
3323           - WriteAttributeString() w/o namespace should supply null, not ""
3324           - Added .NET 1.2 members.
3325           - Regard any name with "xml" prefix as in "namespace for XML".
3326
3327 2004-01-22  Atsushi Enomoto <atsushi@ximian.com>
3328
3329         * XmlElement.cs : Reverted previous fix since it broke monodoc web 
3330           service.
3331
3332 2004-01-20  Atsushi Enomoto <atsushi@ximian.com>
3333
3334         * XmlNode.cs : When adding a node to child list, it should reject its
3335           ancestors. Patch by Boris Kirzner.
3336         * XmlNodeReader.cs : Related fix to the fix above. It should not move
3337           to children of XmlEntityReference nodes.
3338         * XmlTextWriter.cs : FixedWriteStartElement() not to write default
3339           namespace when ns is null (while ns is "", it writes default ns).
3340         * XmlElement.cs : Fixed WriteTo() to call WriteStartElement(localName)
3341           when NamespaceURI is an empty string.
3342
3343 2004-01-14  Atsushi Enomoto <atsushi@ximian.com>
3344
3345         * XmlAttribute.cs : when set a value, it is no longer default 
3346           (even if the value is the same as default value).
3347         * XmlAttributeCollection.cs : Remove() should recover default attribute
3348           value to default, not specified value.
3349           Patch by Boris Kirzner (modified a bit)
3350         * XmlDocument.cs : Reference to undeclared entity is not allowed in
3351           Load(), while allowed in ReadNode(). Added such distinguishing logic.
3352
3353 2004-01-13  Atsushi Enomoto <atsushi@ximian.com>
3354
3355         * XmlValidatingReader.cs : Throw exception only in case of errors.
3356           Added NET_2_0 Evidences property.
3357
3358 2004-01-12  Atsushi Enomoto  <atsushi@ximian.com>
3359
3360         * XmlElement.cs : Fixed .ctor(). Default attribute was not treated as
3361           Specified = false. Patch by Boris Kirzner.
3362
3363 2004-01-11  Atsushi Enomoto <atsushi@ximian.com>
3364
3365         * XmlException.cs : Fixed incorrect .ctor signature.
3366         * XmlParserInput.cs : Fixed in sync with the above fix.
3367
3368 2004-01-08  Atsushi Enomoto  <atsushi@ximian.com>
3369
3370         * XmlAttribute.cs, XmlElement.cs : 
3371           Fixed incorrect protected .ctor modification.
3372
3373 2004-01-08  Nick Drochak <ndrochak@ieee.org>
3374
3375         * DTDValidatingReader.cs: Removed unused variable
3376         
3377 2004-01-07  Atsushi Enomoto  <atsushi@ximian.com>
3378
3379         * XmlNamespaceManager.cs : Implemented .NET 1.2 methods that take
3380           atomizedNames argument.
3381         * XmlTextReader.cs : Use new namespace manager methods.
3382           Reduced NameTable.Add().
3383         * DTDObjectModel.cs : fixed incorrectly commented-out line.
3384
3385 2004-01-07  Atsushi Enomoto  <atsushi@ximian.com>
3386
3387         * XmlAttribute.cs, XmlDocument.cs, XmlElement.cs :
3388           set_Prefix should atomize to name table.
3389           Avoided extraneous atomization attempt a bit.
3390
3391 2004-01-07  Atsushi Enomoto  <atsushi@ximian.com>
3392
3393         * DTDObjectModel.cs, DTDReader.cs, XmlSecureResolver.cs :
3394           avoiding obvious exception.
3395         * DTDReader.cs, XmlTextReader.cs : Some optimization. 
3396           Avoided extraneous PeekChar() and reduced name string creation.
3397
3398 2004-01-05  David Sheldon <dave-mono@earth.li>
3399   
3400   * XmlTextReader.cs: Fixed constructors taking string url to not
3401     loose the absolute part of the path.
3402
3403 2004-01-04  Atsushi Enomoto  <atsushi@ximian.com>
3404
3405         * XmlDocument.cs : Fixed Load() to set XmlResolver correctly. Patch
3406           by Benjamin Jemlich.
3407           Assure closing XmlTextReader which are internally used.
3408
3409 2004-01-03  Atsushi Enomoto  <atsushi@ximian.com>
3410
3411         * XmlTextWriter.cs : trivial character-case fix
3412         * XmlUrlResolver.cs : It downloads network stream content at 
3413           GetEntity() call. You can try like below:
3414             for (int i=0;i<100;i++) u.GetEntity(url, null, typeof(Stream));
3415
3416 2003-12-23  Atsushi Enomoto  <atsushi@ximian.com>
3417
3418         * XmlNamedNodeMap.cs : Fixed internal SetNamedItem(node, pos) to set
3419           replacing node correctly. This fixes bug #52453.
3420
3421 2003-12-21  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3422
3423         * XmlDocument.cs, XmlElement.cs, XmlNode.cs :
3424           GetElementsByTagName() - Fixed bugzilla #52419, refactored, 
3425           and moved private implementation methods to XmlNode class.
3426
3427 2003-12-20  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3428
3429         * XmlTextWriter.cs :
3430           Element's namespace should be escaped as usual attribute.
3431
3432 2003-12-18  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3433
3434         * XmlTextWriter.cs : Indentation between xmldecl and doctype.
3435         * DTDValidatingReader.cs : AttList null reference fix.
3436
3437 2003-12-16  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3438
3439         * DTDValidatingReader.cs : Validity check and entity expansion were
3440           incorrectly mixed.
3441         * DTDObjectModel.cs, DTDReader.cs, XmlInputStream.cs :
3442           Going to remove XmlInputStream. XmlStreamReader might be replacable.
3443
3444 2003-12-15  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3445
3446         * XPathDocument2ChangedEventHandler.cs : fixed incorrect argument.
3447         * Moved UpdateEventHandler.cs and XmlUpdateEventArgs.cs to sqlxml.
3448
3449 2003-12-15  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3450
3451         * XmlTextReader.cs : BaseURI was broken. This fixes bug #52098.
3452
3453 2003-12-15  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3454
3455         * XmlUrlResolver.cs : GetEntity() does not return direct network stream
3456           that may hold up connection. Now it reads up all the content stream.
3457
3458 2003-12-12  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3459
3460         * XmlAttributeCollection.cs,
3461           XmlElement.cs : Fixed bug #51415.
3462           When adding attribute to an element using Attributes, it failed.
3463
3464 2003-12-11  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3465
3466         * XmlDocument.cs : Fixed ReadNode() to call AppendChild() to document
3467           after setting all attribute nodes. Modified ReadNode() to handle
3468           Depth comparison and error handling (!= to <). It allows MS's
3469           SgmlReader bug that returns incorrect Depth.
3470
3471 2003-12-11  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3472
3473         * XmlDocumentNavigator.cs : Fixed MoveToNextAttribute (and 
3474           MoveToNextNamespace) that might result in NullReferenceException.
3475           patch by Sanjay Gupta. This fixed bug #51941 (and possibly #51415)
3476
3477 2003-12-07  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3478
3479         * XmlUrlResolver.cs : Update with recent System.Uri change. This fixes
3480           bugzilla #51808 (patch by Jeroen Zwartepoorte, a bit modified).
3481
3482 2003-12-04  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3483
3484         * XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
3485         * XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
3486           This may fix bug #51415.
3487
3488 2003-11-28  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3489
3490         * XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".
3491
3492 2003-11-28  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3493
3494         * XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
3495           shouldn't expect non-empty element content. This will fix bug #48287.
3496
3497 2003-11-28  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3498
3499         * XmlTextWriter.cs : When element's namespace should be overwritten by
3500           one of its attribute, if exist as such. This fixes bug #51305.
3501
3502 2003-11-24  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3503
3504         * DTDValidatingReader.cs : Fixed ReadContent() which may result in 
3505           invalid additional Text node.
3506
3507 2003-11-24  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3508
3509         * XmlTextWriter.cs : 
3510           On WriteProcessingInstruction(), ArgumentException() is expected ;-)
3511
3512 2003-11-24  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3513
3514         * XmlTextWriter.cs :
3515           WriteProcessingInstruction() should check name validity.
3516           AddMissingElementXmlns() should allow namespace emission even if it
3517           is identical to existing one.
3518
3519 2003-11-22  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3520
3521         * XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.
3522
3523 2003-11-20 Eran Domb <erand@mainsoft.com>
3524
3525         * XmlTextWriter.cs (WriteStartAttribute) : Check if the ket already exists in the newAttributeNamespaces table 
3526           before trying to add it to the table.
3527
3528 2003-11-19  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3529
3530         * DTDValidatingReader.cs : Replaced entity should not treat whitespaces
3531           as significant.
3532         * XmlNode.cs : Removed extraneous MonoTODOs.
3533
3534 2003-11-17  Jackson Harper  <jackson@ximian.com>
3535
3536         * XPathEditor.cs: .net 1.2 only
3537         
3538 2003-11-17  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
3539
3540         * AsyncXmlTextWriter.cs, IXPathChangeNavigator.cs, IXPathEditor.cs,
3541           IXPathNavigator.cs, IXmlDataEvidence.cs, IXmlNamespaceResolver.cs,
3542           UpdateEventHandler.cs, XPathChangeNavigator.cs, XPathDocument2.cs,
3543           XPathDocument2ChangedEventAction.cs, 
3544           XPathDocument2ChangedEventHandler.cs, XPathEditor.cs,
3545           XPathNavigator2.cs, XmlChangeFilters.cs, XmlInfoItemType.cs,
3546           XmlNamespaceScope.cs, XmlNodeChangeType.cs, XmlQualifiedNameTable,cs,
3547           XmlQueryDialect.cs, XmlUpdateEventArgs.cs
3548           : Added .NET 1.2 classes (for convenience of ObjectSpaces stubbing).
3549
3550 2003-11-02  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3551
3552         * XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
3553           to skip XmlEntityReference.
3554         * XmlTextWriter.cs : Fixed AddMissingElements() and 
3555           WriteStartAttribute() not to emit extraneous xmlns.
3556
3557 2003-11-02  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3558
3559         * XmlTextWriter.cs : Skip multiple xmlns when element and any of 
3560           attributes have the same xmlns values.
3561           WriteEndElement() allows open attribute (calles WriteEndAttribute()).
3562           Indentation should be inserted between ">" and "</xxx>" .
3563
3564 2003-11-02  Pedro Martínez Juliá  <yoros@wanadoo.es>
3565
3566         * XmlConvert.cs: Only parse INF/-INF/NaN. Other Infinty or NAN
3567         numbers are parsed with the respective ::Parse method.
3568
3569 2003-11-01  Pedro Martínez Juliá  <yoros@wanadoo.es>
3570
3571         * XmlConvert.cs: Revert my last change. INF and -INF must be
3572         processed here because Double::Parse and Single::Parse doesn't
3573         understand anything of parsing [-]INF.
3574
3575 2003-11-01  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3576
3577         * XmlDocument.cs : Save(Stream) should not close the stream.
3578
3579 2003-10-25  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3580
3581         * DTDReader.cs, DTDValidatingReader.cs, XmlInputStream.cs,
3582           XmlTextReader.cs : More cleanup.
3583         * XmlDocument.cs : Removed CheckName(). Code cleanup.
3584         * XmlElement.cs : .ctor() now adds default attributes (if required).
3585         * XmlAttribute.cs, XmlElement.cs, XmlEntity.cs, XmlEntityReference.cs,
3586           XmlNotation.cs : Now uses OwnerDocument's NameTable.
3587
3588 2003-10-25  Pedro Martínez Juliá  <yoros@wanadoo.es>
3589
3590         * XmlConvert.cs: Support for the sign in double and single. The
3591         processing of the infinites and nan numbers are more complex than
3592         comparing to "INF" so we must let Double::Parse and Single::Parse
3593         doing their job.
3594
3595 2003-10-25  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3596
3597         * DTDValidatingReader.cs : Now it handles whitespace entity as
3598           significant.
3599         * XmlConvert.cs : As to NIST testcases, exponential support on single
3600           and double floating point numbers.
3601         * XmlValidatingReader.cs : If it IsDefault, then line number and line
3602           position returns 0.
3603
3604 2003-10-25  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3605
3606         * DTDReader.cs,
3607           XmlConstructs.cs,
3608           XmlTextReader.cs,
3609           XmlWriter.cs : Fixed incorrect access modifier.
3610         * XmlTextWriter.cs : Imported state variable from XmlWriter.
3611         * DTDValidatingReader.cs : Removed extraneous MonoTODO.
3612         * XmlConvert.cs : Implemented ToTimeSpan().
3613           Modified ToDateTime() to reuse the same array.
3614
3615 2003-10-19  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3616
3617         * XmlAttributeCollection.cs : Fixed synchronization stuff.
3618         * XmlConvert.cs : Added two FromBinHexString() methods.
3619         * XmlTextReader.cs : Modified to use one of the above method.
3620         * XmlValidatingReader.cs : XsdValidatingReader.XmlResolver will be 
3621           disabled (in the next commit), so resolver won' be set to it.
3622           Attempt to validate against XDR now throws NotSupportedException.
3623
3624 2003-10-19  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3625
3626         * XmlChar.cs : added WhitespaceChars, used in common.
3627         * XmlConvert.cs,
3628           XmlDeclaration.cs,
3629           XmlParserInput.cs,
3630           XmlTextReader.cs,
3631           XmlTextWriter.cs : String.Trim()
3632         * XmlConvert.cs : shifted XmlConstructs to XmlChar.
3633         * XmlTextReader.cs : Implemented Normalization.
3634
3635 2003-10-19  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3636
3637         * XmlNode.cs : GetPrefixOfNamespace() also contained a bug similar to
3638           GetNamespaceOfPrefix() fixed at 2003-10-13.
3639         * XmlTextReader.cs : ReadBase64() should keep incomplete base64 block
3640           which remained by previous call of this method.
3641         * XmlUrlResolver.cs : Added assertion for file Uri path's absoluteness.
3642         * XmlValidatingReader.cs : Notice about intention of XDR won't be
3643           supported (at least in Mono 1.0).
3644
3645 2003-10-18  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3646
3647         * XmlDocument.cs : CloneNode() does not copy PreserveWhitespace.
3648         * XmlWriter.cs : Calling WriteNode() with XmlReader whose state is
3649           XmlDeclaration now calls WriteProcessingInstruction(). This fixes
3650           testcase XmlWriterTests.WriteNodeFullDocument().
3651         * XmlTextWriter.cs : Added LAMESPEC comments related to above.
3652
3653 2003-10-13  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3654
3655         * XmlDocument.cs : Fixed bugzilla #49607. Save() outputs XML 
3656           declaration even though there is no XmlDeclaration child.
3657         * XmlTextReader.cs : Fixed Init() so that ResetState() should work.
3658
3659 2003-10-13  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3660
3661         * XmlTextWriter.cs : Implemented WriteSurrogateCharEntity().
3662           Reverted my recent extraneous check in WriteStartAttribute().
3663
3664 2003-10-13  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3665
3666         * XmlNode.cs : GetNamespaceOfPrefix() should check Attributes existence.
3667           And it should throw ArgumentNullException.
3668
3669 2003-10-13  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3670
3671         * XmlAttribute.cs : Fixed InnerText that did not removed its content
3672           if there is two or more children.
3673         * XmlNode.cs : XmlNode.cs : Fixed bugzilla #49580 (1)to return "",
3674           (2)not to compare NodeType for detached nodes, (3)optimization to
3675           compare element's prefix.
3676         * XmlSecureResolver.cs : Removed extraneous members.
3677
3678 2003-10-09  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3679
3680         * Added DTDReader.cs. It is almost importation of XmlTextReader.
3681         * DTDObjectModel.cs :
3682           - More .NET-ism. Properties took place of fields.
3683           - Imported PE set from XmlTextReader. Added location info.
3684           - Added DTDEntityBase common to PE and GE.
3685           - More correct text declaration handling with new XmlTextReader.
3686         * DTDValidatingReader.cs :
3687           - Now uses entity resolving XmlTextReader to validate attributes
3688             correctly. Implemented standalone
3689           - Standalone and default related validity constraints check.
3690         * XmlImplementation.cs: Implemented HasFeature().
3691         * XmlNode.cs : Implemented Supports().
3692         * XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
3693         * XmlParserInput.cs : Removed extraneous members.
3694         * XmlTextReader.cs :
3695           - All DTD related functionality now goes to DTDReader.cs
3696           - It became old simple TextReader input style.
3697           - Implemented GetRemainder().
3698           - Implemented ReadBase64(), ReadBinHex() and ReadChars(), using 
3699             additional new private method ReadUntilEndTag().
3700           - Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
3701             ReadXmlDeclaration() now became simple.
3702           - More strict entity reference check at SetEntityReferenceProperty()
3703           - Removed extraneous members.
3704         * XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.
3705
3706 2003-10-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3707
3708         * XmlTextReader.cs: when we get an unexpected EOF in ReadContent, set
3709         the state before throwing the exception if depth > 0.
3710
3711 2003-10-04  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3712
3713         * XmlAttribute.cs : Removed extraneous MonoTODO.
3714         * XmlTextWriter.cs : Implemented WriteBinHex() and WriteChars().
3715           WriteStartElement() and WriteStartAttribute() should ignore Prefix
3716           if namespace uri is not specified.
3717
3718 2003-10-04  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3719
3720         * XmlDocumentFragment.cs,
3721           XmlElement.cs,
3722           XmlEntityReference.cs : Removed extraneous MonoTODO.
3723         * XmlNode.cs : Implemented Normalize().
3724         * XmlNodeReader.cs :
3725           - AttributeCount and HasAttributes should return its owner element's
3726             value, to be consistent with XmlTextReader.
3727           - Fixed Depth to reflect correct attribute/attribute-value iteration.
3728           - simplified ownerElement and HasValue.
3729           - Prefix won't return null.
3730           - MoveToElement() should also work against attribute value nodes.
3731         * XmlTextReader.cs : MoveToElement() should return false if it is
3732           positioned at element itself.
3733
3734 2003-10-04  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3735
3736         * XmlTextReader.cs : Improved SignificantWhitespace handling.
3737
3738 2003-10-01  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3739
3740         * XmlSecureResolver.cs : Implemented basic feature.
3741
3742 2003-10-01  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3743
3744         * XmlUrlResolver.cs : Should work with null type argument.
3745
3746 2003-10-01  Lluis Sanchez Gual <lluis@ximian.com>
3747
3748         * XmlTextWriter.cs : An attribute can require a prefix for the default
3749           namespace, so we need to store the prefix as well as the namespace.
3750
3751 2003-09-30  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3752
3753         * DTDValidatingReader.cs : Simplified to use 
3754           XmlSchemaUtil.GetParserContext().
3755         * XmlValidatingReader.cs : ValidationType.Auto should always use
3756           XsdValidatingReader because xsi:schemaLocation might be used.
3757
3758 2003-09-30  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3759
3760         * XmlTextReader.cs : Attribute value token properties were incorrectly
3761           set by the linked node.
3762
3763 2003-09-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3764
3765         * XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
3766           considers such case that target node was not adapted to the document.
3767         * XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
3768         * XmlTextWriter.cs : use 'as'  instead of 'try..catch'.
3769
3770 2003-09-25 Ben Maurer  <bmaurer@users.sourceforge.net>
3771
3772         * XmlNode.cs (XPathNodeType): Give more useful debugging message.
3773         * XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
3774         in MoveToNext.
3775
3776 2003-09-23  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3777
3778         * XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
3779           recovery was still not enough. Fixed GrowScopes() (incorrect index).
3780
3781 2003-09-21  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3782
3783         * XmlTextReader.cs : 
3784           - Fix for bugzilla #48337 (containing Ben's advice on that).
3785           - Added internal XmlTokenInfo classes. Nodes are now handled as token 
3786             objects (linked node, attributes and attribute values). Most of the
3787             node state properties and iterating methods are changed to refer to
3788             the token classes (except for value builder availability). Removed
3789             fields which are never used. CompileDTDSubset() is changed in
3790             reflection to nodeType field removal.
3791           - Fixed Depth that should vary in moving between attributes and/or
3792             reading attribute values.
3793           - LineNumber and LinePosition now returns more correct location.
3794           - Fixed Value that should still return true if its value is an empty
3795             attribute value string.
3796           - EntityValue is checked WFC constraints even thoug it is not used.
3797           - All .ctor() now initializes ReadState as Initial.
3798           - Read() should be available for attribute value constructor.
3799         * XmlAttribute.cs : set_InnerXml() now calls reader's Read().
3800
3801 2003-09-21  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3802
3803         * XmlNamespaceManager.cs: PopScope() must retain those namespaces which
3804           are added in the scope before PushScope() was called.
3805
3806 2003-09-20 Ben Maurer  <bmaurer@users.sourceforge.net>
3807
3808         * XmlNamespaceManager.cs: Rewrote. Uses arrays, rather than linked
3809         lists and removes uses of Hashtable. Results in huge speed gains.
3810
3811 2003-09-19 Ben Maurer  <bmaurer@users.sourceforge.net>
3812
3813         * XmlConvert.cs: NaN.ToString () != INF.
3814
3815 2003-09-14  Lluis Sanchez Gual  <lluis@ximian.com>
3816
3817         * XmlTextWriter.cs: Attributes that have a namespace must be always
3818           prefixed.
3819
3820 2003-09-13  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3821
3822         * XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
3823           in .ctor().
3824         * XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
3825           Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
3826           add Namespaces immediately, but adds at AddMissingElementXmlns so 
3827           that we don't have to have extra check than namespaceManager's
3828           LookupPrefix(). 2) Removed writtenAttributes for performance reason
3829           since it is no more required.
3830
3831 2003-09-10  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3832
3833         * XmlDocument.cs : patch by Jonathan Hogg. Fixed CreateAttribute()
3834           that handled xmlns attributes inproperly.
3835
3836 2003-09-08  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3837
3838         * XmlNamespaceManager.cs : GetEnumerator() should return all of the
3839           available pairs (of prefix and namespace).
3840         * XmlQualifiedName.cs : Quick fix for NullReferenceException in case
3841           of name (or ns) is null. (The description of the immediate previous 
3842           changes will be inserted below.)
3843         * XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
3844         * XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
3845           will release resources it had allocated.
3846
3847 2003-09-01 Ben Maurer  <bmaurer@users.sourceforge.net>
3848
3849         * XmlDocument.cs (Save): use the encoding of the document, if
3850         available.
3851
3852 2003-08-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3853
3854         * XmlValidatingReader.cs : Implemented SchemaType. Added support for
3855           ValidationType.Schema. Added support for XmlResolver. Fixed 
3856           ReadTypedValue() not to consume EndElement.
3857
3858 2003-08-19  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3859
3860         * XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
3861           infinite loop.
3862         * XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
3863           Commented out Console.Error.WriteLine().
3864         * XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
3865           escape and unescape for relative URI string.
3866
3867 2003-08-19 Ben Maurer  <bmaurer@users.sourceforge.net>
3868
3869         * XmlParserContext.cs: Make each context inherit next.
3870
3871 2003-08-18 Ben Maurer  <bmaurer@users.sourceforge.net>
3872
3873         * XmlChar.cs (IsWhitespace): Spare enumerator allocation.
3874         * XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
3875         fat, use low-fat loops instead. Even better, call the function
3876         inside XmlChar for code reuse.
3877         * HighWaterStack.cs (added): New class that acts like a Stack, but
3878         helps with memory allocation.
3879         * XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
3880         HighWaterStack.
3881         * XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
3882         use a variable that stores the position in the ArrayList.
3883         
3884 2003-08-18 Ben Maurer  <bmaurer@users.sourceforge.net>
3885
3886         * XmlTextWriter.cs: Begin diet. String.Format has too much
3887         saturated fat, lets replace with the fat-free .Write ()
3888         calls. Effects best seen when Paolo's StreamWriter patch is
3889         applied.
3890
3891 2003-08-14  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3892
3893         * XmlNodeReader.cs : Fixed ReadAttributeValue() that might result in
3894           vanishing current node.
3895
3896 2003-08-14  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3897
3898         * DTDValidatingReader.cs : Added SchemaType.
3899           Read() Assures to return to element.
3900         * DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
3901         * XmlReader.cs : ReadString() should be virtual in NET_1_1.
3902         * XmlTextReader.cs : 1) Depth should consider Attribute and its values.
3903           Introduced insideAttribute field to support them.
3904           2) ReadAttributeValue() should consider empty string.
3905         * XmlValidatingReader.cs :
3906           Fixed several properties which premised as if it was already read.
3907           Encoding and Namespaces now throws NotSupportedException for other
3908           than XmlTextReader.
3909           Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
3910
3911 2003-08-10  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3912
3913         * XmlInputStream.cs : Reverted CanSeek as to return false anyway.
3914
3915 2003-08-10  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3916
3917         * DTDObjectModel.cs : added XmlResolver related members. Added
3918           invalid entity recursion logic. Added encodingdecl check on textdecl.
3919         * DTDValidatingReader.cs : It now implements IHasXmlParserContext.
3920         * XmlChar.cs : IsPubidChar() should not allow TAB(&#9;).
3921         * XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
3922           to receive DTDObjectModel to support other than XmlTextReader. 
3923           2) Most of its public member is now based on DTDObjectModel.
3924         * XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
3925           2) ReadNode() now considers XmlParserContext's DTDObjectModel for
3926           other than XmlTextReader (such as XmlValidatingReader).
3927         * XmlNode.cs : code cleanup only.
3928         * XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
3929         * XmlTextReader.cs : 1) Illegal entity reference check logic was moved 
3930           from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
3931           change on ReadEntityReference(). 3) ReadAttribute() now checks
3932           reference to external entity reference. 4) Added textdecl encoding
3933           check. 5) DTDObjectModel fields are now set correctly. 6) added
3934           PERef markup nest check. 7) If PEDecl was not found, it might be WFC
3935           violation, not only be VC violation. 8) ReadEntityDecl() now receives
3936           its declared entity itself, and this method checks IsInternalSubset.
3937         * XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
3938           2) ValidationType.None should be the same as Auto, not DTD (in the
3939           future it should keep xml schema's default values).
3940
3941         Pending Stuff in XmlTextReader which breaks some NUnit tests;
3942           1) SetEntityReferenceProperies() has check for illegal references.
3943           2) ReadAttribute(bool) has similar check for illegal references.
3944
3945 2003-08-09  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3946
3947         * DTDAutomata.cs : Fixed (modified or added) TryEndElement() of choice,
3948           sequence and oneOrMore. Fixed DTDChoiceAutomata.TryStartElement().
3949
3950 2003-08-09  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3951
3952         * XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation 
3953           and supplied SkipWhitespace() as they needed. It broke monodoc.
3954           Fixed ReadEntityValueDecl() to get correct value.
3955
3956 2003-08-08  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3957
3958         * XmlInputStream.cs :
3959           Fixed Initialize() that might result in incorrect buffer.
3960           CanRead and Position should consider buffer (especially when the
3961           stream was EOF).
3962           CanSeek should use stream's CanSeek.
3963
3964         * XmlChar.cs : added GetPredefinedEntity().
3965         * DTDObjectModel.cs :
3966           - Modified ComputeDefaultValue() to use it.
3967           - Fixed NormalizedDefaultValue not to expect parsed value as string.
3968           - ResolveExternalEntity now detects invalid standalone specification.
3969           - DTDParameterEntityDeclaration.Value is now changed to property and
3970             keep its resolved value of literal value of external value using
3971             new Resolve (XmlResolver) method (called only by XmlTextReader).
3972         * DTDValidatingReader.cs :
3973           - It now handles entity-expanded Whitespace and SignificantWhitespace
3974             correctly. Does not raise unexpected text not allowed error.
3975           - Fixed MoveToAttribute()s to move internal reader correctly, and
3976             should be able to move in other cases than on element node.
3977           - On Read()ing document type and ResolveEntity(), it now sets
3978             XmlResolver on text reader.
3979           - On ID constraints check and type verification, it now uses
3980             normalized attribute or its tokenized value(s).
3981           - Fixed ValidateAttributes() to add default values when 
3982             ValidationType is Auto.
3983         * XmlParserContext.cs : added internal Dtd setter.
3984         * XmlParserInput.cs :
3985           InsertParameterEntityBuffer() should add surrounding whitespaces.
3986           Removed unused code block.
3987         * XmlTextReader.cs :
3988           - Modified ReadReference(), ReadAttribute() and Dereference() to use
3989             XmlChar.GetPredefinedEntity().
3990           - When returning entity reference, it checks extity declaration
3991             existence in certain conditions.
3992           - ReadAttribute() now skips general entity replacement on reading
3993             entity value.
3994           - ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
3995           - ReadXmlDeclaration() holds isStandalone, which might be used in
3996             entity reference's well-formedness check.
3997           - internal 'DTD' now uses XmlParserContext.Dtd.
3998           - isInternalSubset was meaningless. Now uses input stack's Count.
3999           - Added some required SkipWhitespace().
4000           - Several parameter entity handling changes.  Added GetPEValue(name).
4001             TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
4002             now uses its Resolve() when it was external PE.  Now it uses value
4003             buffer instead of currentTag, to efficiently read (included) PE.
4004             CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
4005             ImportAsPERef() simply inserts the value to currentInput.
4006             ReadEntityDecl() also uses value buffer.   Removed non-used methods.
4007           - Default attributes are now stored in normalized form.
4008           - Dereference() now considers non-expanding predefined entities.
4009         * XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
4010           is more correctly supported.
4011
4012         * XmlAttributeCollection.cs :
4013           When removing default attribute, it immediately inserts the attribute.
4014           RemoveAll() should consider default (not-removable) attributes.
4015         * XmlDocument.cs :
4016           Should have its default XmlResolver. Added Internal Resolver.
4017           Some Load() should use its XmlResolver.
4018           ImportNode() should copy its children in node level, not value level.
4019           It also have to consider not to copy default attribute on importing
4020           XmlElement.
4021         * XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
4022         * XmlAttribute.cs,
4023           XmlDocumentFragment.cs.
4024           XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
4025         * XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
4026           ResolveEntity() uses XmlResolver on entityReader.
4027
4028 2003-08-07  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4029
4030         * DTDObjectModel.cs :
4031           - Added validation error check (and AddError(), Errors).
4032           - Fixed ComputeDefaultValue() to handle various references correctly.
4033           - DTDEntityDeclaration.EntityValue became property, and added
4034             LiteralEntityValue. The new one holds resolved value.
4035             Added ResolveExternalEntity(). It now required root in .ctor().
4036         * DTDValidatingReader.cs :
4037           - Now it handles namespaced attributes (as input to xsd validator).
4038           - Added XmlResolver property as usual XmlReader.
4039           - Added currentEntityHandling field so that it can stand changing
4040             XmlValidatingReader's EntityHandling dynamically.
4041           - FilterNormalization() now requires name for getting datatypes and
4042             can stand for non-current attribute normalization.
4043           - Splitted ReadContent() from Read() that can be called recursively
4044             when expanding entities.
4045           - Now handles Entity not found error *after* resolution of entities,
4046             as MS.NET does.
4047           - Read()ing DTD checks its Errors and raises validation error events.
4048             In some situations, DTD parsing may detect VC error, not WFC error.
4049             It also strictly checks NData existence.
4050           - Handling of entity-resolved text is a bit changed and Read()ing
4051             element, endElement, cdata now changed to switch collecting text
4052             and collected text.
4053           - content type ANY should allow texts.
4054           - Added enumerated attribute validity check.
4055           - Added Name/Names creation rule check for ID/IDREF/IDREFS.
4056           - Added entity existence check for ENTITY/ENTITIES attributes.
4057           - Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
4058           - Fixed to remove extraneous #REQUIRED check.
4059           - Contributing default attribute is now only applied to the case
4060             ValidationType is DTD or None.
4061           - ResolveEntity() now handles external entities.
4062             Added Mono.Xml.IXmlParserContext interface support.
4063         * XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
4064         * XmlTextReader.cs :
4065           - Fixed ReadAttributeValue() to reset returnEntityReference.
4066           - Added bool MaybeTextDecl only for ResolveEntity().
4067           - Fixed ReadWhitespace(). In fact its value is considered even if it
4068             is in the end of the XML.
4069           - Fixed ReadXmlDeclaration(). Now skips text declaration.
4070           - CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
4071           - ReadContentSpec() should set OrderType = OR for mixed model.
4072             Fixed to set content element name correctly.
4073           - ImportAsPERef() now skips Text declaration.
4074           - Type of enumerated default attributes shold be string.
4075           - Undeclared PE error is now handled as DTD's VC error, not
4076             XmlTextReader's WFC error.
4077         * XmlValidatingReader.cs : BaseURI should provide that of 
4078           original XmlReader's when read was not started yet.
4079           Fixed XmlResolver to delegate to DTDValidatingReader.
4080
4081         * XmlAttributeCollection.cs : Acquiring attList declaration is
4082           insufficient especially in case of lack of elementdecl.
4083         * XmlChar.cs : (Maybe this is compact than XmlConstructs.)
4084           added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
4085           IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
4086
4087         * XmlInputStream.cs : Removed "version" declaration check. It should
4088           be done by XmlTextReader.
4089
4090         * XmlNodeReader.cs : added internal GetInternalParserContext() and now
4091           it can be used in XmlValidatingReader.ResolveEntity().
4092           ResolveEntity() sets XmlTextReader.MaybeTextDecl.
4093
4094 2003-08-05  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4095
4096         * DTDValidatingReader.cs :
4097           Added full ExpandEntities support for text node and entity reference
4098           node (although require many usage tests). Almost all methods and
4099           properties now have currentTextValue != null check, that field means
4100           that there are cached (entity-resolved) text.
4101           Implemented default attribute aware XmlLang and XmlSpace.
4102         * XmlNodeReader.cs : ResolveEntity() should not require DTD.
4103
4104 2003-08-03  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4105
4106         * DTDValidatingReader.cs,
4107           XmlNodeReader.cs,
4108           XmlReader.cs,
4109           XmlTextReader.cs,
4110           XmlValidatingReader.cs : fixed pragma USE_VERSION_1_0 to NET_1_0.
4111
4112 2003-08-03  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4113
4114         * DTDObjectModel.cs : Added BaseURI (but not used yet).
4115           DTDAttListDeclaration.ctro() now requires root dtd object model.
4116         * DTDValidatingReader.cs : Read() now expands EntityReference if
4117           entity handling of validating reader is ExpandEntities.
4118         * XmlReader.cs,
4119           XmlTextReader.cs,
4120           XmlNodeReader.cs,
4121           XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
4122             ReadOuterXml which are modified in MS.NET 1.1.
4123         * XmlConstructs.cs : added int version of IsValid, IsInvalid,
4124           IsContent, IsMarkup and IsNCNameStart.
4125           Fixed int version of IsXXX() to check array index range. 
4126           Added IsValidName (string).
4127         * XmlTextReader.cs :
4128           - Read() handles document with non document element as an error.
4129           - ReadText() and ReadCharacterReference() checkes illegal characters.
4130           - ReadEntityReference() checks name validity.
4131           - ReadProcessingInstruction() rejects such name that starts with
4132             "xml" ignoring case, and checks attributes more strictly.
4133           - ReadDeclaration() rejects unrecognized kind of declaration.
4134           - In many places, added "required whitespace" check in DTD markup.
4135           - DTD content model now disallows mixing use of '|' and ','.
4136
4137 2003-08-02  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4138
4139         * XmlDocumentFragment.cs : I missed to add it in relation to the
4140           previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
4141         * XmlNodeReader.cs : removed some TODO attributes.
4142         * DTDValidatingReader.cs,
4143           XmlValidatingReader.cs : Implemented ResolveEntity().
4144
4145 2003-07-31  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4146
4147         * XmlParserContext.cs,
4148           XmlAttribute.cs,
4149           XmlElement.cs : Added internal Dtd and new internal XmlParserContext
4150           .ctor() that takes DTDObjectModel. And then rewrote classes which 
4151           uses DTD information. Changed DocTypeName, InternalSubset, PublicId
4152           and SystemId to use DTDObjectModel.
4153         * DTDObjectModel.cs :
4154           Added DTDObjectModel.InternalSubsetHasPEReference.
4155           Added DTDEntityDeclaration.IsInternalSubset.
4156         * XmlTextReader.cs :
4157           Added internal GetInternalParserContext (to build entity reader).
4158           Added private isIntSubset to check if the DTD subset is internal or
4159           external, which might affect well-formedness constraints.
4160           Changed GenerateDTDObjectModel to return the resulting DTD model.
4161
4162         * XmlEntityReference.cs : implemented BaseURI.
4163         * XmlNodeReader.cs :
4164           - Implemented ResolveEntity() and CanResolveEntity(). In fact
4165             it leads too many changes on almost all methods and properties,
4166             since they now must be aware of entityReader.
4167           - fixed ownerElement that might be used to return from attribute 
4168             value to the element through parent attribtues.
4169           - Now changed indexer to call GetAttribute() and moved actual logic
4170             to the matching GetAttribute() methods.
4171
4172 2003-07-29  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4173
4174         * XmlNode.cs : fixed internal ConstructNamespaceManager() for InnerXml
4175           not to create extraneous xmlns="".
4176
4177 2003-07-28  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4178
4179         * DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
4180           attribute declaration should be got independently of elementdecl.
4181         * XmlAttribute.cs :
4182           Added internal SetDefault() to mark as default.
4183           Removed InnerText implementation that is just the same as XmlNode.
4184         * XmlDocument.cs : id shouldn't be removed from table at 'trying' to
4185           get matching elements.  ReadAttributeNode() now sets default mark.
4186         * XmlElement.cs : WriteTo() should ignore default attributes.
4187         * XmlTextWriter.cs : shuold allow valid name char such as digits.
4188
4189 2003-07-27  Piers Haken <piersh@friskit.com>
4190
4191         * XmlQualifiedName.cs : fields should never be null
4192
4193 2003-07-27  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4194
4195         * XmlDocumentFragment.cs : added XPathNodeType indicating Root.
4196
4197 2003-07-27  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4198
4199         * XmlDocument.cs (GetIdenticalAttribute): restored OwnerElement.IsRooted
4200
4201 2003-07-27  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4202
4203         * XmlLinkedNode.cs : added internal IsRooted.
4204
4205 2003-07-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4206
4207         * DTDValidatingReader.cs :
4208           - Added ID support in ValidateAttributes().
4209           - More refined ReadAttributeValue() support for non-expanding entity
4210             situation
4211           - It should handle LocalName, Name, Prefix, NamespaceURI and Value
4212             correctly when the reader is on each of the value nodes of an
4213             attribute. Now XmlDocument.ReadNode() should work well.
4214         * XmlDocument.cs :
4215           - added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
4216             RemoveIdenticalAttribute()
4217           - Implemented GetElementById().
4218         * XmlAttributeCollection.cs :
4219           - added private ownerDocument property and replaced
4220             ownerElement.OwnerDocument with it.
4221           - Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
4222             It calls XmlDocument.{Add|Remove}IdenticalAttribute().
4223           - Added RemoveIdenticalAttribute() and it is used in Remove().
4224             (I also added AddIdenticalAttribute() but is not used.)
4225
4226 2003-07-26  Duncan Mak  <duncan@ximian.com>
4227
4228         * XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
4229         for OwnerElement.IsRooted to fix the build..
4230
4231 2003-07-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4232
4233         * XmlDocumentType.cs :
4234           modified private DTD to dtd and added internal DTD (the same thing).
4235         * XmlElement.cs :
4236           Fixed SetAttributeNode() to check if specified attribute is already
4237           set to the other element. In fact it is W3C DOM's specification but
4238           MS.NET 1.0 failed to catch it.
4239         * XmlTextReader.cs :
4240           ReadAttributeValue() should check if the value of the attribute is
4241           already read when the whole value is entity reference.
4242           Also, Name of text nodes should be "", not "#text"
4243
4244 2003-07-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4245
4246         * XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
4247           with http://www.w3.org/XML/1998/namespace.
4248         * XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
4249         * XmlNode.cs : InnerText should handle CDATA and whitespaces.
4250         * XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
4251         * XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
4252           attributes (as MS.NET does). It isn't good way and I may change it.
4253
4254 2003-07-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4255
4256         * DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
4257           DTDNotationDeclarationCollection and replaced Hashtables with them.
4258           Added NormalizedDefaultValue property for DTDAttributeDefinition.
4259         * DTDValidatingReader.cs :
4260           - It now reads attribute values into value collection. 
4261           - Renamed consumedDefaultAttribute to consumedAttribute, and
4262             inContent to insideContent.
4263           - GetAttribute() should allow reader's other node state than element.
4264           - MoveToNextAttribute() should move when reader is placed other than
4265             the first attribute.
4266           - HandleError() now supports ValidationType.None (i.e. does nothing).
4267           - ValidateAttribute() now collects and resolves attribute value 
4268             entity references. (On the other hand, it doesn't support
4269             EntityHandling.ExpandCharEntity.)
4270           - NodeType shouldn't return Attribute after ReadAttributeValue().
4271             Now only Text is supported, but must also support EntityReference.
4272           - Add FilterNormalization() and partially support Normalization.
4273
4274 2003-07-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4275
4276         * XmlTextReader.cs :
4277           Read() now handles parser context stuff (BaseURI, XmlLang and 
4278           XmlSpace) correctly for an empty element.
4279           Normalization property now doesn't throw an error. Will be used soon.
4280         * XmlValidatingReader.cs : added ValidationType.None support (wait for
4281           the next DTDValidatingReader update for "not firing event handler).
4282         * XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
4283
4284 2003-07-19  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4285
4286         * DTDValidatingReader.cs :
4287           changed base class to XmlReader and implemented IXmlLineInfo members.
4288           changed .ctor() argument from event handler to validating reader.
4289           Removed some #if ... #else ... #endif blocks.
4290           Added validation event support for Read() using HandleError().
4291         * XmlValidatingReader.cs : added internal OnValidationEvent().
4292         * XmlDocument.cs : ReadNode() now checks reader's state more strictly.
4293
4294 2003-07-19  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4295
4296         * XmlUrlResolver.cs : applied BenM's patch for file uri problem
4297           (bug #46610).
4298
4299 2003-07-15  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4300
4301         * DTDValidatingReader.cs :
4302           added DTDObjectModel support for non-XmlTextReader XmlReader 
4303           e.g. XmlNodeReader (Read() method).
4304         * XmlDocument.cs :
4305           added internal CreateDocumentType(XmlTextReader) and moved
4306           ReadDoctypeNode() to XmlDocumentType.ImportFromDTD().
4307         * XmlDocumentType.cs :
4308           added internal .ctor(XmlTextReader, document) and ImportFromDTD().
4309         * XmlTextReader.cs :
4310           Renamed useSbForVal (valueBuilderAvailable), valSb (valueBuilder)
4311           and currentSubset (DTD).
4312           Added GenerateDTDObjectModel() (for independent doctype parsing).
4313
4314 2003-07-15  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4315
4316         * XmlAttribute.cs :
4317           .ctor() should reject xml- or xmlns-prefixed node.
4318         * XmlNamespaceManager.cs :
4319           added some xmlns validity check.
4320         * XmlNode.cs :
4321           optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
4322           avoiding XmlNamespaceManager creation.
4323         * XmlNodeReader.cs :
4324           doctype node should return PUBLIC and SYSTEM for its indexer, 
4325           and Value should be internal subset,
4326
4327 2003-07-12  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4328
4329         * DTDObjectModel.cs,
4330           DTDValidatingReader.cs : Completely rewrote attribute handling.
4331
4332 2003-07-12  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4333
4334         * XmlAttribute.cs,
4335           XmlElement.cs : Fixed CloneNode() for bug #46129.
4336         * XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
4337           String.Format arguments, and basically XmlException.ctor(
4338           IXmlLineInfo, message) seems good idea to use.
4339         * XmlTextReader.cs :
4340           - Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
4341             required non-null context which don't have to exist.
4342           - Added state check. Introduced 'currentState' and 'maybeTextDecl' 
4343             (for external entity) and removed hasEnteredDocument. Added 
4344             state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
4345             ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
4346           - Replaced throw ReaderError() with throw new XmlException() and
4347             fixed that some error hadn't thrown, only created.
4348           - ResetState() should re-initialize existing private members other 
4349             than some specified fields.
4350           - Private AddAttribute() should check if the same-named attribute 
4351             already exists.
4352         * DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
4353
4354 2003-07-09  Lluis Sanchez Gual <lluis@ximian.com>
4355
4356         * XmlTextReader.cs : Implemented ResetState() method.
4357
4358 2003-07-06  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4359
4360         * XmlElement.cs : IsEmpty has removed attributes since it incorrectly
4361           used RemoveAll().
4362
4363 2003-07-06  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4364
4365         * XmlDocument.cs : Load(string filename) should close its stream.
4366           Small change for the latest DTDObjectModel change.
4367         * XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
4368           changed methods are only related to DTD stuff).
4369           Now uses XmlSchemaDatatype for attribute type definition.
4370         * XmlValidatingReader : initial (limited) support for DTD validation.
4371           It can handle only XmlTextReader.
4372         * DTDObjectModel.cs : changed radically for initial validation support.
4373         * added DTDAutomata.cs and DTDValidatingReader.cs.
4374
4375 2003-07-06  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4376
4377         * XmlElement.cs : Removed extraneous xmlns output support (it should
4378           be done by XmlTextWriter).
4379         * XmlNode.cs : InsertBefore() now checks validity of the newChild (and
4380           most of the changes are in fact indentation changes).
4381         * XmlWriter.cs : WriteAttributes() now can write entity references.
4382           WriteNode() now writes xmldecl attributes correctly.
4383           Removed namespaceManager and xmlns check logic, since it should be 
4384           done by individual XmlTextWriter.
4385         * XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
4386           written multiple xmlns declarations.
4387           Moved namespaceManager from abstract XmlWriter.
4388           Write{Start|End}Attribute() and WriteString() now checks xmlns 
4389           attribute value. (MS.NET holds value only with this write method).
4390
4391 2003-07-04  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4392
4393         * XmlDocument.cs : removed xmlReader.Close() from Load(XmlReader).
4394
4395 2003-06-30  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4396
4397         * XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and 
4398           essentially changed most of the property handling (e.g. removed attribute 
4399           enumerator and it now became really cloneable).
4400         * XmlNodeReader.cs : ReadInnerXml() changes its state as error
4401           when the method is called at Initial state.
4402
4403 2003-06-25  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4404
4405         * XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
4406           as non-empty, and XmlElement's IsEmpty is designed as such.
4407           Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor 
4408           doctype node. 
4409         * XmlNode.cs : Fixed XPathNodeType. It should throw an exception
4410           instead of returning undefined enum value.
4411           Modified some code comments.
4412         * XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement() 
4413           when XmlReader's node is not at empty element or at EndElement. 
4414           Fixed XmlDeclaration's standalone check.
4415
4416 2003-06-21  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4417
4418         * XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
4419           to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
4420
4421 2003-06-20  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4422
4423         * XmlInputStream.cs : quick fix for public ctor() BaseURI bug.
4424
4425 2003-06-20  Ben Maurer <bmaurer@users.sourceforge.net>
4426         
4427         * XmlTextReader.cs: Reduces memory allocation when the reader is
4428         not queried for some values.
4429         * NameTable.cs: Now uses a custom hashtable to implement. As a
4430         result, when Get (char[], int, int) is called, a string is only
4431         allocated if it is actually a new entry.
4432         (StrEqArray) Compares a string and a char[]
4433         (AddEntry) Adds a new entry to the hashtable
4434         (Entry) Represents a hashtable entry.
4435
4436 2003-06-20  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4437
4438         * XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.
4439
4440 2003-06-16  Ben Maurer <bmaurer@users.sourceforge.net>
4441         * XmlUrlResolver.cs: really fixed #44231
4442
4443 2003-06-16  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4444
4445         * XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases 
4446           this method set current node null.
4447         * XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
4448           String.Empty instead of null (expected value).
4449         * XmlTextReader.cs,
4450           XmlUrlResolver.cs,
4451           XmlInputStream.cs : fixed BaseURI problem (bug #44231).
4452
4453 2003-06-15  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4454
4455         * XmlNodeReader.cs : this [name] and this [name, ns] (and
4456           GetAttribute() methods in turn) returns null instead of String.Empty.
4457         * XmlTextWriter.cs : WriteStartAttribute() should try to use specified
4458           prefix before auto-generating prefixes.
4459           Implemented WriteBase64().
4460
4461 2003-06-13  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4462
4463         * XmlNodeReader.cs : LookupNamespace () has refered invalid current
4464           node for attributes. Modified to use private "document" property.
4465
4466 2003-06-10  Lluis Sanchez Gual <lluis@ximian.com>
4467
4468         * XmlTextWriter.cs: when adding an attribute with a namespace, a prefix must be automaticaly
4469           generated, and a namespace declaration must be added. 
4470         * XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
4471
4472 2003-06-10  Zoltan Varga  <vargaz@freemail.hu>
4473
4474         * XmlAttribute.cs: Accept a null prefix or namespaceURI.
4475
4476 2003-06-10  Duncan Mak  <duncan@ximian.com>
4477
4478         * XmlDocumentNavigator.cs (GetNode): Make it implement
4479         IHasXmlNode.
4480
4481 2003-06-05  Lluis Sanchez Gual <lluis@ideary.com>
4482
4483         * XmlTextWriter.cs : Fixed bug. After calling for example WriteStartElement ("pref","ln","ns");
4484           a call to LookupPrefix ("pref") when still writting attributes should 
4485           return "ns", and it didn't.
4486
4487 2003-06-02  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4488
4489         * XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
4490         * XmlConvert.cs : fixed VerifyNCName() to check correctly.
4491
4492 2003-06-01  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4493
4494         * XmlDocumentNavigator.cs : Compute document node one time.
4495           MoveToFirstChild() should move to PIs and comments.
4496
4497 2003-05-30  Miguel de Icaza  <miguel@ximian.com>
4498
4499         * XmlReader.cs (ReadStartElement): Improve error message.  
4500
4501 2003-05-28  Lluis Sanchez Gual <lluis@ideary.com>
4502
4503         * XmlTextReader.cs : MoveToAttribute methods must set the enumerator to the right
4504           position, since MoveToNextAttribute may be called after it. 
4505           SetProperties(): attributes do not "inherit" the namespace.
4506         * XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
4507
4508 2003-05-27  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4509
4510         * NameTable.cs : Add() sets the given name string interned.
4511         * XmlParserContext.cs : added internal PushScope() and PopScope() to
4512           hold stacks of xml:base, xml:lang and xml:space.
4513         * XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
4514           property for stacked attributes). Renamed Initialize() to Initialize-
4515           Context(). Modified to use XmlParserContext.PushScope()/PopScope().
4516
4517 2003-05-26  Lluis Sanchez Gual <lluis@ximian.com>
4518
4519         * XmlReader.cs: Little fix to WriteAttributeString()
4520
4521 2003-05-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4522
4523         * XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
4524           XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
4525           XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
4526           XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
4527           Reverted the recent accessibility mistake (5/16).
4528         * XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic 
4529           from XmlNode to XmlDocument.
4530
4531 2003-05-18  Lluis Sanchez Gual <lluis@ideary.com>
4532
4533         * XmlQualifiedName.cs : Fixed bug in equality operator.
4534
4535 2003-05-18  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4536
4537         * XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
4538           any open attributes or elements. WriteWhitespace() checks state and
4539           closes start tag.  Fixed WriteStringInternal() to replace CR/LF chars
4540           when it is called inside attribute value.
4541         * XmlException.cs : added .NET 1.1 .ctor.
4542         * added XmlSecureResolver.cs (only stubbing).
4543         * XmlAttribute.cs : set_InnerXml() should remove children.
4544         * XmlAttribute.cs,
4545           XmlElement.cs,
4546           XmlDocumentFragment.cs,
4547           XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
4548         * XmlNode.cs : RemoveAll() should also remove all attributes.
4549         * XmlTextRader.cs : .ctor() for attribute value reader should add
4550           quotations at initialization, since it requires quote chars.
4551         * XmlWriter.cs : WriteAttributeString() more correct xmlns check.
4552
4553 2003-05-16  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4554
4555         * changed XPathNodeType modifier to internal *protected* override.
4556         * XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
4557         * XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
4558         * XmlAttributeCollection.cs : removed some incorrect TODO attributes.
4559         * XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
4560           when the argument is "xmlns".
4561         * XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
4562         * XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
4563         * XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
4564         * XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
4565           not to set error state for non-started XmlNodeReader.
4566         * XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
4567           BaseURI support. Fixed Initialize() to handle Attribute correctly.
4568           SetProperty for attribute auto-completes xmlns NSURI.
4569           Attribute and whitespace handling became more correct.
4570           Don't parse external DTD if XmlResolver is null.
4571         * XmlTextWriter.cs : implemented WriteEntityRef().
4572           WriteStartAttribute() checks if ns does not equal to that of xmlns.
4573         * XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
4574
4575 2003-05-05  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4576
4577         * XmlConvert.cs : IsInvalid() Now uses XmlConstructs.IsName(Start).
4578           EncodeName() now correctly encodes invalid names.
4579           Result string of ToString(DateTime) contains "fffffff".
4580
4581 2003-04-29  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4582
4583         * XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
4584         * XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
4585           MoveTo*Attribute(),
4586           Fixed this[] to work correctly against XmlDeclarations.
4587           Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
4588           (which may prevent validations etc.)
4589         * XmlReader.cs,
4590           XmlNodeReader.cs,
4591           XmlTextReader.cs : Fixed ReadString() to be compliant with each
4592           other.
4593         * XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
4594
4595 2003-04-27  Pedro Martínez Juliá  <yoros@wanadoo.es>
4596
4597         * XmlNode.cs: ensure to get a valid Uri in BaseUri when loading the
4598         source document from a file.
4599
4600 2003-04-27  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4601
4602         * XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
4603           content EntityReference correctly.
4604         * XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
4605           HasAttributes, indexers, MoveTo*Attribute() and Read() ).
4606           Modified Skip() to call Read () explicitly.
4607         * XmlTextReader.cs :
4608           Fixed ReadInnerXml() which ignored EndElement token in certain cases.
4609           Implemented MoveToAttribute (local, ns), and modified GetAttribute()
4610           in relation to this change.
4611           Attributes for XmlDeclaration are now correctly set.
4612         * XmlTextWriter.cs : WriteRaw() is now different from WriteString().
4613           Simplified WriteAttributes() for XmlDeclaration.
4614
4615 2003-04-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4616
4617         * XmlTextReader.cs : fixed ReadInnerXml(). it was inconsistent with
4618           Depth property fix.
4619
4620 2003-04-25  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4621
4622         * XmlDocument.cs : fixed Load() to set baseURI correctly.
4623         * XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
4624         * XmlTextReader.cs :
4625           fixed Depth. When it's on StartElement, Depth was already incremented.
4626           fixed private SaveProperty(), which moved away its saved properties
4627           when MoveToElement was called repeatedly.
4628         * XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
4629         * XmlWriter.cs :
4630           WriteAttributes() refactory (for XMLDecl).
4631           WriteNode() don't Read() when the reader is Initial state, let other
4632           invokation to Read(). In case of Element, it should write entire
4633           element. In case of Attribute, it shouldn't Read().
4634           WriteStartDocument() should omit standalone decl. when there is no
4635           explicit value.
4636
4637 2003-04-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4638
4639         * XmlReader.cs: reverted last patch. It breaks System.Configuration 
4640         because 1. it considers XmlDeclaration as content and 2. always
4641         returns XmlNodeType.None.
4642         
4643
4644 2003-04-23  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4645
4646         * Added missing ChangeLog of 4/4/2003.
4647         * XmlTextWriter.cs : patch by Erik. fixed WriteQualifiedName.
4648           (write prefix instead of ns.)
4649         * XmlInputStream.cs : file access mode fix (FileAccess.Read was missing)
4650         * XmlTextReader.cs : modified to call Read() instead of ReadContent().
4651           (It may be required for decorated reader such as XmlValidatingReader.)
4652           Changed Read() error message for mismatch end tag.
4653         * XmlDocument.cs : (ReadNode) friendly message for mismatch EndElement.
4654         * XmlReader.cs : Corrected misinterpreted MoveToContent() method.
4655
4656 2003-04-04  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4657
4658         * XmlDocument.cs : Load() now closes the given XmlReader.
4659           Don't allow creation of XmlTextReader for Doctype. (workaround.)
4660         * XmlInputStream.cs : It now closes its internal stream explicitly.
4661         * XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
4662         * XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
4663         * XmlParserInput.cs : added Close() method.
4664         * XmlReader.cs : MoveToContent() should (1) not Read in case of empty
4665           element, and (2) MoveToElement() in case of attribute.
4666         * XmlTextReader.cs : Close() now actually closes source TextReaders.
4667
4668 2003-03-26  Duncan Mak  <duncan@ximian.com>
4669
4670         * XmlTextWriter.cs (Write): A patch from Atsushi to fix
4671         prematurely ending the write, or something like that. It was
4672         causing us to chop off the end of the document when we're trying
4673         to generate XML Schemas.
4674
4675 2003-03-23  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4676
4677         * XmlTextReader.cs : implemented ReadString().
4678           fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
4679           null reference exception when context is null.
4680         * XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
4681           fixed Read() - when positioned at EndElement, it didn't progress.
4682           fixed HasAttribute - it didn't return false in all cases.
4683           fixed Name and LocalName - only limited type of nodes return names.
4684           fixed AttributeCount - in some cases it threw null ref exception.
4685
4686 2003-03-22  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4687
4688         * XmlTextWriter.cs : WriteStartDocument doesn't set hasRoot=true, then
4689           WriteEndDocument without root element now raises an error correctly.
4690         * XmlDocumentNavigator.cs : (MoveToFirstChild) fixed bugzilla #36672.
4691           implemented BaseURI, NameTable, XmlLang, GetAttributes, GetNamespace,
4692           MoveToAttribute.
4693
4694 2003-03-22  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4695
4696         * XmlElement.cs : RemoveAttribute now don't throws when specified
4697           attribute does not exist.
4698
4699 2003-03-21  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4700
4701         * XmlNode.cs : add descriptions for some node type error.
4702
4703 2003-03-21  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4704
4705         * XmlNodeArrayList.cs, XmlNodeListChildren.cs : bugzilla #39920 fix.
4706
4707 2003-03-19  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4708
4709         * XmlDeclaration.cs : quick fix, not to use regex for set_Value.
4710
4711 2003-03-19  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4712
4713         * XmlTextReader.cs : Fixed wrong notationdecl SYSTEM id read.
4714         * XmlInputStream.cs : Should allow versionless input stream entity.
4715
4716 2003-03-18  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4717
4718         * added XmlParserInput.cs for multi xml document sources.
4719         * added DTDObjectModel.cs (maybe temporary).
4720         * XmlTextReader.cs :
4721           + fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
4722           + Some members such as LineNumber, ReadChar now uses XmlParserInput.
4723           + added support for Namespaces (namespace-ignorant parse available).
4724           + added support for XmlResolver.
4725           + replace SetReaderContext()/SetReaderFragment() with Initialize().
4726           + use NameTable in CreateNameString.
4727           + fixed ReadCData(). Now reads "]]]>" correctly.
4728           + support for DTD parse.
4729           + Read() now throws an error when it reached EOF while Depth > 0.
4730         * XmlAttribute.cs,
4731           XmlDocumentFragment.cs,
4732           XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
4733         * XmlDocument.cs : ReadNode() now reads DocumentType.
4734         * XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
4735         * XmlEntity.cs,
4736           XmlNotation.cs : added override LastLinkedChild (for doctype node).
4737         * XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
4738         * XmlElement.cs : bugfix for node removal of set_InnerXml.
4739         * XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
4740           (to append child XmlEntity into XmlDocumentType correctly.)
4741         * XmlInputStream.cs : fixed to access file with FileAccess.Read.
4742
4743 2003-03-15  Duncan Mak  <duncan@ximian.com>
4744
4745         * XmlElement.cs (Name): Only append prefix + ':' when prefix is
4746         neither String.Empty nor null. Thanks to Simon Guindon for
4747         reporting the bug and Jackson for fixing this bug with me.
4748
4749 2003-03-15  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4750
4751         * XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
4752         * XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
4753           fixed ReadNode(), it should call reader.Read() only on Initial state.
4754         * XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
4755           and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
4756           System.Net.WebClient directly.
4757         * XmlParserContext.cs : baseURI never be null.
4758         * XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
4759         * XmlUrlResolver.cs : namespace change for XmlInputStream.
4760
4761 2003-03-12  Elan Feingold <efeingold@mn.rr.com>
4762
4763         * XmlTextReader.cs: When throwing a ReaderException, show what
4764         character was the culprit
4765
4766 2003-03-05  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4767
4768         * XmlDocumentFragment.cs, XmlElement.cs :
4769           modified InnerXml (fragment type from Element to DocumentFragment).
4770
4771         * XmlElement.cs : fixed WriteTo() ns check.
4772         * XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
4773         * XmlNode.cs : fixed ConstructNamespaceManager().
4774
4775         * XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
4776           IsPubid with an int arg.
4777         * XmlReader.cs : changed to use XmlChar.cs (its role is as same as
4778           XmlConstructs.cs).
4779         * XmlTextReader.cs :
4780           improved error messages with line info.
4781           / checking matching start and end tags.
4782           / prevents the apperance of multiple root elements. (patch by Erik)
4783           fixed and refactored ReadInnerXml() and ReadOuterXml()
4784           changed to use XmlChar.cs.
4785
4786         * XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
4787           (It will help c14n implementation.)
4788           / blocks multiple attribute output with element node.
4789
4790 2003-02-28  Alan Tam <Tam@SiuLung.com>
4791
4792         * XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
4793         methods to make them compatible with the XML Schema Spec from W3C
4794         ToString(TimeSpan) is still outstanding
4795
4796 2003-02-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4797
4798         * XmlDocument.cs:
4799         (Load (string)): hack to workaround some issues with Uri.Parse. Once
4800         Parse is fixed, remove the hack.
4801
4802 2003-02-16  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4803
4804         * XmlQualifiedName.cs : fixed GetHashCode() to avoid null reference
4805         * XmlTextReader.cs : fixed ReadAttributeValue() to handle 
4806                 entity reference, and some refactory.
4807
4808 2003-02-16  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4809
4810         * XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.
4811
4812 2003-02-16  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4813
4814         * XmlInputStream.cs : added (also contains internal XmlStreamReader).
4815         * XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
4816                 and can read non-UTF-8 stream.
4817         * XmlTextReader.cs : related to above stream fix.
4818         * XmlUrlResolver.cs : implemented GetEntity ().
4819
4820 2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4821
4822         * XmlTextWriter.cs: implemented WriteRaw (char[], int, int).
4823
4824 2003-02-02  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4825
4826         * XmlTextReader.cs : implemented QuoteChar.
4827
4828 2003-01-26  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4829
4830         * XmlNode.cs : implemented ReplaceChild.
4831           removed DocElem checking at InsertBefore.
4832         * XmlNodeReader.cs : fixed ReadString and Read for correct node info.
4833         * XmlText.cs : implemented CloneNode and SplitText.
4834
4835 2003-01-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4836
4837         * XmlCharacterData.cs: added XPathNodeType property.
4838
4839 2003-01-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4840
4841         * XmlTextWriter.cs: throw an exception if WriteEndDocument is
4842         called without a prior call to WriteStartDocument.
4843
4844 2003-01-21  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4845
4846         * XmlNodeReader.cs : several fix to get more compatible with MS.NET.
4847
4848 2003-01-19  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4849
4850         * XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
4851                 null when no matching uri.
4852         * XmlElement.cs : removed unnecessary xmlns output.
4853         * XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
4854         * XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix 
4855                 along with the change above, and moved timing of 'xmlns' output 
4856                 to CloseStartElement.
4857         * XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
4858
4859 2003-01-18  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4860
4861         * XmlWriter.cs: modified WriteStartElement (see test for detail).
4862         Added WriteNode.
4863
4864 2003-01-13  Ville Palo <vi64pa@koti.soon.fi>
4865
4866         * XmlDocument.cs: Added CheckName () method to check names validity.
4867         
4868 2003-01-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4869
4870         * XmlTextReader.cs:
4871         (ReadOuterXml): use Depth property which return elementDepth, not depth.
4872
4873 2003-01-11  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4874
4875         * XmlElement.cs : (by ville) XmlElement.set_InnerText event bugfix.
4876         * XmlTextReader.cs : some fix for ReadOuterXml().
4877
4878 2003-01-08  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4879
4880         * XmlTextReader.cs : bugfix for attributes related to creation of 
4881           XmlAttribute *node*.
4882
4883 2003-01-08  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4884
4885         * XmlTextReader.cs : bugfix for attribute values which have entity
4886           references.
4887
4888 2002-12-28  Ville Palo <vi64pa@koti.soon.fi>
4889
4890         * XmlDocument.cs: XmlTextWriter.Formatting == Indented when 
4891         calling Save () -methods.
4892         
4893 2002-12-28  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4894
4895         * XmlNodeReader.cs : primitive reading implementation.
4896
4897 2002-12-28  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4898
4899         * XmlElement.cs : quick fix for the incomplete patch of #35308 below.
4900
4901 2002-12-28  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4902
4903         * XmlDocument.cs : removed inconsistent line-feed output.
4904         * XmlElement.cs, XmlTextWriter.cs :
4905                 fixed for bugzilla 35308 (default ns output)
4906         * XmlWhitespace.cs : limited output only when preserving whitespace.
4907
4908 2002-12-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4909
4910         * XmlAttribute.cs, XmlDocument.cs, XmlTextReader.cs:
4911                 Implemented XmlTextReader.ReadAttributeValue().
4912                 Added internal ReadAttributeNodeValue().
4913                 Fixed XmlAttribute.InnerXml to use these methods.
4914         
4915         * XmlDocument.cs, XmlDocumentFragment.cs, XmlElement.cs, XmlNode.cs:
4916                 Implemented XmlDocument.ReadNode() and removed ConstructDOM().
4917                 Other changes are replacing them.
4918
4919 2002-12-24  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4920
4921         * XmlDocument.cs: patch by Ville (fixed default PreserveWhitespace)
4922
4923 2002-12-21  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4924
4925         * XmlElement.cs, XmlTextWriter.cs, XmlWriter.cs:
4926                 patch by JD Conley <jconley@winfessor.com>.
4927                 (Fix for xmlns attribute output.)
4928
4929 2002-12-05  Ville Palo <vi64p@koti.soon.fi>
4930
4931         * XmlQualifiedName.cs: Little fix to ToString () -method
4932
4933 2002-12-04  Tim Haynes  <thaynes@openlinksw.com>
4934
4935         * class/System.XML/System.Xml/XmlElement.cs: Made more refined
4936         checks on attributeNode to fix 32262.
4937
4938 2002-12-03  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
4939
4940         * XmlDocument.cs (CreateNavigator(XmlNode)) : reverted
4941         * XmlTextWriter.cs (WriteStartElementInternal):
4942           fixed when default namespace was specified, all descendants
4943           fail to omit the default namespace declarations.
4944         * XmlAttribute.cs,
4945           XmlDocument.cs,
4946           XmlNode.cs (internal XmlLang/XmlSpace) : implemented(defined)
4947         * XmlAttribute.cs,
4948           XmlDocumentFragment.cs,
4949           XmlElement.cs (set_InnerXml): now uses XmlLang/XmlSpace
4950         * XmlElement.cs (set_IsEmpty) : implemented
4951           (WriteTo) : removed my improper indenting (Writer already done)
4952         * XmlNode.cs (BaseURI) : fixed if ParentNode is null, NullPointerEx
4953           (ConstructDOM) : implemented when xmlReader isn't XmlTextReader
4954         ...and renamed XmlDocument.ConventionalParser to ReusableReader ;-)
4955
4956 2002-12-01  Atsushi Enomoto  <ginga@kit.hi-ho.ne.jp>
4957
4958         * XmlNode.cs (RemoveChild):
4959                 bugfixed when XmlNode is Document OwnerDocument is null
4960         * XmlDeclaration.cs (Value):
4961                 bugfixed regular expression pattern.
4962         * XmlDocument.cs (CreateNavigator): bugfixed access modifier.
4963
4964 2002-11-24  Duncan Mak  <duncan@ximian.com>
4965
4966         * XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
4967         Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
4968         first patch to Mono! ;-)
4969
4970 2002-11-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4971
4972         * XmlNode.cs:
4973         (AppendChild): readded refChild != null condition before throwing
4974         "cannot insert this node in this position" exception. There's probably
4975         a better solution. Fixes #34191.
4976         (RemoveAll): changed following Atsushi instructions.
4977         
4978
4979 2002-11-13  Duncan Mak  <duncan@ximian.com>
4980
4981         * XmlElement.cs (IsEmpty): A temporary check-in to keep gtk-sharp
4982         compiling.
4983
4984 2002-11-14  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4985
4986         * XmlDocument.cs : unified all constructors, added ConventionalParser,
4987                 implemented CloneNode() and CreateEntityReference(),
4988         * XmlEntityReference.cs : set_Value, WriteContentTo, WriteTo
4989                 set BaseURI to MonoTODO
4990         * XmlNode.cs : implemented PrependChild, modified ConstructDOM,
4991                 bugfix InsertAfter (incorrect prepending) and InsertBefore
4992                 (more than one DocumentElements hadn't caused errors)
4993         * XmlTextReader.cs : unified all constructors,
4994                 added internal SetReaderContext(), SetReaderFragment()
4995                 bugfix (syntax check of PUBLIC / getting internal subset)
4996
4997 2002-11-13  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4998
4999         XmlAttribute.cs : set_InnerText, set_InnerXml, some check for set_Prefix
5000         XmlAttributeCollection.cs : (indexer) this[localName, namespaceURI]
5001         XmlCharacterData.cs : exchanged Data and Value
5002                 (for processing events and inheritance)
5003         XmlDocumentFragment.cs : set_InnerXml
5004         XmlSignificantWhitespace.cs : set_Value
5005         XmlTextReader.cs : ReadAttributeValue
5006
5007 2002-11-04  Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
5008
5009         XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement'
5010
5011 2002-11-03  Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
5012
5013         * XmlAttributeCollection.cs : checks owner element.
5014                 implemented CopyTo, InsertAfter, InsertBefore, Prepend,
5015                 Remove, RemoveAt, SetNamedItem.
5016                 removed some logics that sets 'Parent' (that should be null)
5017         * XmlDocument.cs : set_InnerXml, [PreserveWhitespace(incomplete)]
5018         * XmlDocumentFragment.cs : get_InnerXml, WriteContentTo, WriteTo
5019         * XmlElement.cs : implemented WriteTo, set_InnerText.
5020                 Fixed WriteTo() to add xmlns:* attributes when
5021                 writer.LookupPrefix() returned mismatching.
5022         * XmlNamedNodeMap.cs : compare not only name but localname and nsuri.
5023                 Removing different prefixes for the same uri now runs correct.
5024                 added SetNamedItem(XmlNode node, int position_to_insert).
5025         * XmlNode.cs : ConstructDOM (logically) creates XmlEntityReference,
5026                 XmlWhitespace, and XmlSignificantWhitespace
5027
5028 2002-10-31  Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
5029
5030         * XmlDocument.cs : implemented CreateDocumentFragment()
5031         * XmlElement.cs, XmlLinkedNode.cs :
5032                 moved LastLinkedChild from XmlElement to XmlLinkedNode.
5033         * XmlEntityReference.cs : must throw NotImplementedException.
5034         * XmlNode.cs :
5035               + implemented InsertBefore() and then implemented InsertAfter()
5036                 and modified AppendChild() to call it.
5037               + added logic to check ReadOnly, parent document equivalence,
5038                 and inserting any 'content' before/after DocumentElement.
5039               + implemented Clone() [it is equals to CloneNode() by MS doc.]
5040               + added logic in RemoveChild() to check parent of oldChild.
5041               + fixed ConstructNamespaceManager() to internal only.
5042
5043 2002-10-29  Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
5044
5045         * XmlAttribute.cs : add internal 'IsDefault' property
5046                             (equals to !Specified)
5047         * XmlImplementation.cs : added 'internalNameTable' property.
5048         * XmlDocument.cs :
5049             + now allows "" for 'standalone' in CreateXmlDeclaration.
5050             + implemented 'Implementation' property and constructor with it.
5051             + added logic for appending name table (but still no use)
5052             + implemented property 'DocumentType'
5053               (but without internalSubset parsing. wait for next update.)
5054         * XmlNode.cs :
5055             + modified AppendChild() and RemoveChild() to support fragment.
5056             + modified AppendChild() to remove newChild from its parent
5057               when newChild is already in the other place.
5058             + modified RemoveChild() to set parentNode null.
5059             + modified ConstructDOM() to create DocumentType,
5060               and fixed access modifier ('internal protected' to 'internal')
5061         * XmlLinkedNode.cs : fixed 'NextSibling' to return null
5062                 when its parent is null.
5063         * XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
5064                 property to enable AppendChild() for this class.
5065         * XmlTextReader.cs : appended private publicId and systemId fields.
5066
5067 2002-10-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5068
5069         * XmlTextReader.cs: make it work when the underlying Stream is not
5070         'seekable'.
5071
5072 2002-10-26  Piers Haken <piersh@friskit.com>
5073
5074         * XmlNode.cs: add virtual property XPathNodeType
5075         * XmlAttribute.cs:
5076         * XmlComment.cs:
5077         * XmlDocument.cs:
5078         * XmlElement.cs::
5079         * XmlProcessingInstruction.cs:
5080         * XmlSignificantWhitespace.cs:
5081         * XmlText.cs:
5082         * XmlWhitespace.cs: implement XPathNodeType property
5083         * XmlDocumentNavigator.cs: use XPathNodeType property instead of switch
5084
5085 2002-10-26  Piers Haken <piersh@friskit.com>
5086
5087         * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
5088
5089 2002-10-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5090
5091         * XmlTextReader.cs: don't increment depth for entity references.
5092
5093 2002-10-22  Tim Haynes <thaynes@openlinksw.com>
5094
5095         * - Fixed the duplication of xmlns:xx = yy when serializing the
5096         XML for serialization
5097         
5098         Fixed the unnecessary parsing/serializing when adding assemblies
5099         for serialization 
5100
5101         Avoided setting the XmlNode.InnerXml property
5102         (as it's not implemented) 
5103
5104         Fixed the usage/implementation of
5105         XmlElement.GetElementsByTagName()
5106         
5107 2002-10-21  Duncan Mak  <duncan@ximian.com>
5108
5109         * XmlDocument.cs:
5110         * XmlElement.cs:
5111         * XmlNode.cs:
5112         * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
5113         Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
5114
5115 2002-10-18  Duncan Mak  <duncan@ximian.com>
5116
5117         * XmlDocument.cs: Applied a patch by Atsushi Enomoto
5118         <ginga@kit.hi-ho.ne.jp>.
5119
5120 2002-10-12  A.Enomoto <ginga@kit.hi-ho.ne.jp>
5121
5122         * XmlDocument.cs (ImportNode): Implemented
5123
5124 2002-10-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5125
5126         * XmlDocument.cs: one more Load method implemented.
5127         * XmlTextReader.cs: Depth now works.
5128
5129 2002-09-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5130
5131         * XmlConvert.cs: IsInvalid is now internal.
5132         * XmlNamespaceManager.cs: implemented RemoveNamespace
5133         * XmlTextReader.cs: return BaseURI and Encoding from the parser.
5134         * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
5135
5136 2002-09-19  Matt Hunter <mahunter@tconl.com>
5137
5138         * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
5139         * XmlAttributeCollection.cs: Implemented Append (XmlAttribute) 
5140           
5141 2002-09-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5142
5143         * XmlConvert.cs: finished implementation.
5144         * XmlTextReader.cs: fixed #30239.
5145         * XmlTextWriter.cs: fixed #30240.
5146
5147 2002-09-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5148
5149         * XmlTextReader.cs: line and position begin with 1.
5150
5151 2002-09-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5152
5153         * XmlException.cs: added a new internal constructor for IXmlLineInfo
5154         and output line and position info in Message.
5155
5156         * XmlReader.cs: implemented missing bits.
5157
5158 2002-09-12      Piers Haken <piersh@friksit.com>
5159
5160         * XmlDocumentNavigator.cs: implement MoveToId()
5161
5162 2002-09-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5163
5164         * XmlTextWriter.cs: fixed bug #29886.
5165
5166 2002-08-26  Ravi Pratap  <ravi@ximian.com>
5167
5168
5169         * XmlAttribute.cs (InnerText): Implement getting this property.
5170
5171         * XmlNode.cs (InnerText): Ensure that we append only values of
5172         text nodes.
5173
5174 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5175
5176         * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
5177         that allowed compiling this.
5178         [ FIXME: filed bug #29435. mcs should have failed on this ]
5179
5180 2002-08-25  Tim Coleman <tim@timcoleman.com>
5181         * XmlNode.cs:
5182                 Change CreateNavigator to not be virtual.
5183         * XmlElement.cs:
5184                 Add set_Prefix and InnerText accessors.
5185         * XmlEntityReference.cs:
5186                 Add set_Value accessor.
5187         * XmlTextWriter.cs:
5188                 Make objects which should be private private.
5189         * XmlWriter.cs:
5190                 Remove WriteStartElementInternal abstract definition.
5191         * XmlValidatingReader.cs:
5192                 New stubs added.
5193
5194 2002-08-22  Jason Diamond <jason@injektilo.org>
5195
5196         * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
5197         and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
5198
5199 2002-08-22  Jason Diamond <jason@injektilo.org>
5200
5201         * XmlElement.cs: Correction to previous GetElementsByTagName patch
5202         courtesy of Matt Hunter <xrkune@tconl.com>.
5203
5204 2002-08-22  Jason Diamond <jason@injektilo.org>
5205
5206         * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
5207         qualified GetElementsByTagName courtesy of Matt Hunter 
5208         <xrkune@tconl.com>.
5209
5210 2002-08-19  Jason Diamond <jason@injektilo.org>
5211
5212         * XmlDocument.cs, XmlElement.cs: Added implementation of 
5213         GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
5214
5215 2002-08-16  Jason Diamond <jason@injektilo.org>
5216
5217         * XmlElement.cs: Fixed writing out qualified elements courtesy of
5218         Marcus Bürgel <marcus.buergel@gmx.de>.
5219
5220 2002-08-13  Tim Coleman <tim@timcoleman.com>
5221         * XmlTextWriter.cs:
5222                 Partial implementation of WriteQualifiedName ().
5223
5224 2002-08-07  Kral Ferch <kral_ferch@hotmail.com>
5225         * XmlCharacterData.cs:  Implemented AppendData(), DeleteData(),
5226                 InsertData(), and ReplaceData().  These methods fire the
5227                 NodeChanging and NodeChanged events.
5228                 
5229         * XmlDocument.cs:  Fixed bugs in onNodeChanged() and onNodeChanging().
5230         
5231         * XmlNode.cs:  AppendChild() fires NodeInserting and NodeInserted events.
5232                 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
5233         
5234 2002-08-03  Tim Coleman <tim@timcoleman.com>
5235         * XmlNamespaceManager.cs:
5236                 .Net allows the empty namespace to be redefined
5237                 at a later point, but the current implementation
5238                 did not.  This fixes a hashtable conflict.
5239
5240 2002-07-26  Tim Coleman <tim@timcoleman.com>
5241         * XmlTextWriter.cs:
5242                 When given a textwriter, check to see if it has a
5243                 null encoding. This was being done for other inputs
5244                 than a textwriter.
5245
5246 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
5247
5248         * XmlTextReader.cs: rough line/column support.
5249
5250 2002-07-23  Duncan Mak  <duncan@ximian.com>
5251
5252         * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
5253         (string, string []) is particularly strange.
5254
5255         * XmlException.cs: Remember to call the base serialization
5256         constructor.
5257
5258         * XmlNodeReader.cs: Keep a new variable to store the Depth. 
5259
5260 2002-07-14  Jason Diamond  <jason@injektilo.org>
5261
5262         * XmlAttribute.cs: Removed ownerElement field since we can reuse 
5263         parentNode field.
5264
5265         * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
5266         if the current node is an attribute.
5267
5268         * XmlElement.cs: SetAttributeNode now sets the new attribute's
5269         owner element.
5270
5271 2002-07-12  Jason Diamond  <jason@injektilo.org>
5272
5273         * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
5274         creating an element, use String.Empty instead.
5275
5276 2002-07-12      Piers Haken <piersh@friksit.com>
5277
5278         * XmlAttributeCollection.cs: implement some ItemOf indexers
5279         * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
5280         * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
5281
5282 2002-07-06  Ajay kumar Dwivedi <adwiv@yahoo.com>
5283
5284
5285 2002-10-26  Piers Haken <piersh@friskit.com>
5286
5287         * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
5288
5289 2002-10-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5290
5291         * XmlTextReader.cs: don't increment depth for entity references.
5292
5293 2002-10-22  Tim Haynes <thaynes@openlinksw.com>
5294
5295         * - Fixed the duplication of xmlns:xx = yy when serializing the
5296         XML for serialization
5297         
5298         Fixed the unnecessary parsing/serializing when adding assemblies
5299         for serialization 
5300
5301         Avoided setting the XmlNode.InnerXml property
5302         (as it's not implemented) 
5303
5304         Fixed the usage/implementation of
5305         XmlElement.GetElementsByTagName()
5306         
5307 2002-10-21  Duncan Mak  <duncan@ximian.com>
5308
5309         * XmlDocument.cs:
5310         * XmlElement.cs:
5311         * XmlNode.cs:
5312         * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
5313         Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
5314
5315 2002-10-18  Duncan Mak  <duncan@ximian.com>
5316
5317         * XmlDocument.cs: Applied a patch by Atsushi Enomoto
5318         <ginga@kit.hi-ho.ne.jp>.
5319
5320 2002-10-12  A.Enomoto <ginga@kit.hi-ho.ne.jp>
5321
5322         * XmlDocument.cs (ImportNode): Implemented
5323
5324 2002-10-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5325
5326         * XmlDocument.cs: one more Load method implemented.
5327         * XmlTextReader.cs: Depth now works.
5328
5329 2002-09-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5330
5331         * XmlConvert.cs: IsInvalid is now internal.
5332         * XmlNamespaceManager.cs: implemented RemoveNamespace
5333         * XmlTextReader.cs: return BaseURI and Encoding from the parser.
5334         * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
5335
5336 2002-09-19  Matt Hunter <mahunter@tconl.com>
5337
5338         * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
5339         * XmlAttributeCollection.cs: Implemented Append (XmlAttribute) 
5340           
5341 2002-09-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5342
5343         * XmlConvert.cs: finished implementation.
5344         * XmlTextReader.cs: fixed #30239.
5345         * XmlTextWriter.cs: fixed #30240.
5346
5347 2002-09-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5348
5349         * XmlTextReader.cs: line and position begin with 1.
5350
5351 2002-09-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5352
5353         * XmlException.cs: added a new internal constructor for IXmlLineInfo
5354         and output line and position info in Message.
5355
5356         * XmlReader.cs: implemented missing bits.
5357
5358 2002-09-12      Piers Haken <piersh@friksit.com>
5359
5360         * XmlDocumentNavigator.cs: implement MoveToId()
5361
5362 2002-09-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5363
5364         * XmlTextWriter.cs: fixed bug #29886.
5365
5366 2002-08-26  Ravi Pratap  <ravi@ximian.com>
5367
5368
5369         * XmlAttribute.cs (InnerText): Implement getting this property.
5370
5371         * XmlNode.cs (InnerText): Ensure that we append only values of
5372         text nodes.
5373
5374 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5375
5376         * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
5377         that allowed compiling this.
5378         [ FIXME: filed bug #29435. mcs should have failed on this ]
5379
5380 2002-08-25  Tim Coleman <tim@timcoleman.com>
5381         * XmlNode.cs:
5382                 Change CreateNavigator to not be virtual.
5383         * XmlElement.cs:
5384                 Add set_Prefix and InnerText accessors.
5385         * XmlEntityReference.cs:
5386                 Add set_Value accessor.
5387         * XmlTextWriter.cs:
5388                 Make objects which should be private private.
5389         * XmlWriter.cs:
5390                 Remove WriteStartElementInternal abstract definition.
5391         * XmlValidatingReader.cs:
5392                 New stubs added.
5393
5394 2002-08-22  Jason Diamond <jason@injektilo.org>
5395
5396         * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
5397         and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
5398
5399 2002-08-22  Jason Diamond <jason@injektilo.org>
5400
5401         * XmlElement.cs: Correction to previous GetElementsByTagName patch
5402         courtesy of Matt Hunter <xrkune@tconl.com>.
5403
5404 2002-08-22  Jason Diamond <jason@injektilo.org>
5405
5406         * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
5407         qualified GetElementsByTagName courtesy of Matt Hunter 
5408         <xrkune@tconl.com>.
5409
5410 2002-08-19  Jason Diamond <jason@injektilo.org>
5411
5412         * XmlDocument.cs, XmlElement.cs: Added implementation of 
5413         GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
5414
5415 2002-08-16  Jason Diamond <jason@injektilo.org>
5416
5417         * XmlElement.cs: Fixed writing out qualified elements courtesy of
5418         Marcus Bürgel <marcus.buergel@gmx.de>.
5419
5420 2002-08-13  Tim Coleman <tim@timcoleman.com>
5421         * XmlTextWriter.cs:
5422                 Partial implementation of WriteQualifiedName ().
5423
5424 2002-08-07  Kral Ferch <kral_ferch@hotmail.com>
5425         * XmlCharacterData.cs:  Implemented AppendData(), DeleteData(),
5426                 InsertData(), and ReplaceData().  These methods fire the
5427                 NodeChanging and NodeChanged events.
5428                 
5429         * XmlDocument.cs:  Fixed bugs in onNodeChanged() and onNodeChanging().
5430         
5431         * XmlNode.cs:  AppendChild() fires NodeInserting and NodeInserted events.
5432                 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
5433         
5434 2002-08-03  Tim Coleman <tim@timcoleman.com>
5435         * XmlNamespaceManager.cs:
5436                 .Net allows the empty namespace to be redefined
5437                 at a later point, but the current implementation
5438                 did not.  This fixes a hashtable conflict.
5439
5440 2002-07-26  Tim Coleman <tim@timcoleman.com>
5441         * XmlTextWriter.cs:
5442                 When given a textwriter, check to see if it has a
5443                 null encoding. This was being done for other inputs
5444                 than a textwriter.
5445
5446 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
5447
5448         * XmlTextReader.cs: rough line/column support.
5449
5450 2002-07-23  Duncan Mak  <duncan@ximian.com>
5451
5452         * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
5453         (string, string []) is particularly strange.
5454
5455         * XmlException.cs: Remember to call the base serialization
5456         constructor.
5457
5458         * XmlNodeReader.cs: Keep a new variable to store the Depth. 
5459
5460 2002-07-14  Jason Diamond  <jason@injektilo.org>
5461
5462         * XmlAttribute.cs: Removed ownerElement field since we can reuse 
5463         parentNode field.
5464
5465         * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
5466         if the current node is an attribute.
5467
5468         * XmlElement.cs: SetAttributeNode now sets the new attribute's
5469         owner element.
5470
5471 2002-07-12  Jason Diamond  <jason@injektilo.org>
5472
5473         * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
5474         creating an element, use String.Empty instead.
5475
5476 2002-07-12      Piers Haken <piersh@friksit.com>
5477
5478         * XmlAttributeCollection.cs: implement some ItemOf indexers
5479         * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
5480         * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
5481
5482 2002-07-06  Ajay kumar Dwivedi <adwiv@yahoo.com>
5483
5484         * XmlTextWriter: Fixed Indentation. IndentationOverridden should
5485                 not be set when inside a attribute.
5486
5487 2002-07-06  Ajay kumar Dwivedi <adwiv@yahoo.com>
5488
5489         * XmlTextWriter: In WriteStartElement, if namespace is null and 
5490                 prefix is null|empty do not write out xmlns=""
5491         
5492         * XmlWriter: WriteStartElement calls the virtual method with null
5493                 argument instead of empty string.
5494
5495 2002-07-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
5496
5497         * XmlTextReader.cs: implemented .ctor (Stream).
5498
5499 2002-06-26  Duncan Mak  <duncan@ximian.com>
5500
5501         * XmlNodeReader.cs: Implementation of most of the properties, and
5502         some of the related methods. 
5503
5504 2002-06-23  Piers Haken <piersh@friskit.com>
5505         
5506         * XmlDocumentNavigator.cs: implement Clone()
5507         * XmlElement.cs: remove bogus unimplemented override of InnerText
5508         * XmlNode.cs: implment SelectNodes/SelectSingleNode
5509         * XmlNodeArrayList.cs: new support class for SelectNodes
5510
5511 2002-06-21  Ajay kumar Dwivedi <adwiv@yahoo.com>
5512         
5513         * XmlQualifiedName: Name and Namespaces are never null. If null is passed
5514                 to the constructor, set them to empty strings.
5515                 Fixed the Operators.
5516         
5517 2002-06-18  Ajay kumar Dwivedi <adwiv@yahoo.com>
5518         
5519         * XmlTextReader.cs: HasLineInfo returns false instead of throwing an
5520         Exception.
5521
5522 2002-06-14  Duncan Mak  <duncan@ximian.com>
5523
5524         * XmlConvert.cs: Added CLSCompliant attributes to methods.
5525         
5526 2002-06-12  Duncan Mak  <duncan@ximian.com>
5527
5528         * XmlCharacterData.cs (Value): Throw an ArgumentException in the
5529         set block if the node is read-only.
5530
5531 2002-06-10  Ajay kumar Dwivedi <adwiv@yahoo.com>
5532         * XmlConstruct.cs : New Internal class with Helper methods for
5533         Checking XmlConstructs
5534         * XmlConvert.cs: Implemented most of the methods
5535
5536 2002-06-08  Duncan Mak  <duncan@ximian.com>     
5537
5538         * XmlDocument.cs (Load):
5539         Added bits to Load (string) for BaseURI support.
5540
5541         * XmlAttribute.cs (BaseURI): 
5542         * XmlDocument.cs (BaseURI): 
5543         * XmlEntity.cs (BaseURI): Implemented.
5544
5545 2002-05-27  Jason Diamond  <jason@injektilo.org>
5546
5547         * XmlDocumentNavigator.cs: Added file to directory.
5548
5549         * XmlNode.cs (CreateNavigator): Implemented.
5550         (InnerText): Implemented.
5551
5552         * XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
5553         throwing exception.
5554         (Load(XmlReader)): Allow for namespace qualified attributes.
5555
5556         * XmlElement.cs: Implemented GetAttribute(string, string) and both 
5557         GetAttributeNode overloads.
5558         (SetAttributeNode(XmlAttribute)): Implemented.
5559
5560         * XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
5561         and RemoveNamedItem(string, string).
5562
5563         * XmlLinkedNode.cs (PreviousSibling): Implemented.
5564
5565         * XmlTextReader.cs: Added code to maintain the order of attributes as 
5566         they're parsed. XML doesn't require this but Microsoft's parser does it and
5567         matching them makes testing easier so now we have it, too.
5568
5569 2002-05-26  Miguel de Icaza  <miguel@ximian.com>
5570
5571         * XmlDocument.cs: Implement the Save methods.
5572
5573 2002-05-08  Mike Kestner  <mkestner@speakeasy.net>
5574
5575         * XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
5576
5577 2002-04-28  Duncan Mak  <duncan@ximian.com>
5578
5579         * XmlSignificantWhitespace.cs (Value):
5580         * XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
5581         block. Added new private method, IsValidWhitespaceChar, for
5582         checking.
5583
5584 2002-04-16  Duncan Mak  <duncan@ximian.com>
5585
5586         * XmlParserContext.cs (NameTable): Fixed a typo in the set block.
5587
5588 2002-04-12  Duncan Mak  <duncan@ximian.com>
5589
5590         * XmlAttribute.cs (Prefix): Added preliminary code for set block,
5591         added comment on work that needs to be done here. A new MonoTODO item. 
5592
5593         * XmlDocument.cs (ctor): Corrected constructor signature, changed
5594         parameter from 'NameTable' to 'XmlNameTable'.
5595
5596         * XmlDocumentFragment.cs (InnerXml): Added missing set block.
5597
5598         * XmlCaseOrder.cs: Moved to System.Xml.XPath.
5599
5600 2002-04-10  Duncan Mak  <duncan@ximian.com>
5601
5602         * XmlNodeReader.cs: Initial stubs for the class.
5603
5604 2002-04-08  Kral Ferch  <kral_ferch@hotmail.com>
5605
5606         * XmlAttributes.cs: InnerXml getter, WriteContentTo, and WriteTo
5607         implementations.
5608         
5609         * XmlDeclaration.cs: WriteTo implementation.
5610         
5611         * XmlDocument.cs: InnerXml getter implementation.
5612         
5613         * XmlElement.cs: InnerXml getter implementation.
5614
5615         * XmlNode.cs: Removed MonoTODO attrib on OuterXml.
5616         
5617         * XmlSignificantWhitespace.cs: WriteTo implementation.
5618         
5619         * XmlText.cs: WriteContentTo and WriteTo implementation.
5620         
5621         * XmlTextWriter.cs: WriteRaw implementation.
5622         
5623         * XmlWhitespace.cs: WriteContentTo and WriteTo implementations.
5624
5625 2002-04-05  Kral Ferch  <kral_ferch@hotmail.com>
5626
5627         * XmlAttributes.cs: Added reminder MonoTODO to set NamespaceURI
5628         if prefix in constructor is one of the default ones.
5629         
5630         * XmlCharacterData.cs: Returns String.Empty for Value and Data
5631         even when constructed with null.
5632         
5633         * XmlDeclaration.cs: Value doesn't put encoding or standalone
5634         in if they are empty.
5635         
5636         * XmlDocument.cs: Implemented CreateNode methods and this caused
5637         the changes in the other files in this checkin.
5638         
5639         * XmlProcessingInstruction.cs: Returns String.Empty for Value and Data
5640         even when constructed with null.
5641         
5642         * XmlWhitespace.cs: Changed Value 'get' to return Data.
5643
5644 2002-04-01  Kral Ferch  <kral_ferch@hotmail.com>
5645
5646         * XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
5647         
5648 2002-03-31  Kral Ferch  <kral_ferch@hotmail.com>
5649
5650         * XmlTextWriter.cs: Impls for LookupPrefix, WriteBase64,
5651         and WriteCharEntity.
5652         
5653         * XmlWrite.cs:  Fixed bug where attribute namespace decl
5654         was pushing a scope onto the namespace manager when it shouldn't
5655         have been.
5656         
5657 2002-03-31  Kral Ferch  <kral_ferch@hotmail.com>
5658
5659         * XmlTextWriter.cs: Some tweaks for WriteAttibuteString
5660         in different states (no open start element, in WriteState.Content mode).
5661         
5662 2002-03-29  Kral Ferch  <kral_ferch@hotmail.com>
5663
5664         * XmlTextWriter.cs: XmlLang and XmlSpace properties
5665         and WriteWhitespace.
5666         
5667         * XmlTextWriterOpenElement.cs: scope support for XmlLang
5668         and XmlSpace.
5669
5670 2002-03-29  Kral Ferch  <kral_ferch@hotmail.com>
5671
5672         * XmlTextWriter.cs: Working on Attribute methods.
5673         
5674         * XmlWriter.cs: Working on Attribute methods.
5675
5676 2002-03-28  Duncan Mak  <duncan@ximian.com>
5677
5678         * XmlDocument.cs (CreateWhitespace):
5679         (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
5680         method.
5681
5682         * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
5683
5684 2002-03-26  Duncan Mak  <duncan@ximian.com>
5685
5686         * XmlDocument.cs (CreateDocumentType): Implemented.
5687
5688         * XmlNode.cs (Value): Implemented.
5689
5690         * XmlProcessingInstruction.cs (InnerText): Implemented. It works just
5691         like XmlCharacterData.
5692
5693         * XmlDeclaration.cs (CloneNode): 
5694         * XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
5695         arguments.
5696
5697         * XmlCharacterData.cs (InnerText): Implemented. Funny that the
5698         docs say it is the "The concatenated values of the node and all
5699         the children of the node.". I wrote some test programs and
5700         couldn't get any of the derived nodes to AppendChild. For now,
5701         InnerText == Data == Value.
5702         (Substring): Fixed typo.
5703
5704         * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
5705
5706         * XmlImplementation.cs (CreateDocument): Implemented.
5707
5708 2002-03-25  Duncan Mak  <duncan@ximian.com>
5709
5710         * XmlDeclaration.cs: Rewrote the class, fixed formatting, added
5711         missing properties (InnerText, Value).
5712         
5713         * XmlDocument.cs (CreateXmlDeclaration): Implemented.
5714
5715 2002-03-23  Kral Ferch <kral_ferch@hotmail.com>
5716
5717         * XmlTextWriter.cs: Impls for BaseStream and
5718         Namespaces and WriteState.
5719         
5720         * XmlWriter.cs: WriteState and WriteStartElementInternal.
5721
5722 2002-03-23  Kral Ferch <kral_ferch@hotmail.com>
5723
5724         * XmlNodeListChildren.cs: made class internal
5725         instead of public.  Shouldn't be visible outside
5726         of System.Xml.
5727         
5728         * XmlTextWriter.cs: Implementations for Formatting,
5729         IndentChar, Indenting, QuoteChar, WriteStartDocument(standalone).
5730         Suppresses encoding on xml declaration if null stream passed in.
5731         Formats output including suppressing indentation for elements in
5732         mixed content mode.
5733         
5734         * XmlTextWriterOpenElement.cs: Initial checkin.
5735         XmlTextWriter uses stack of these objects to track
5736         state.
5737         
5738 2002-03-22  Mike Kestner  <mkestner@speakeasy.net>
5739
5740         * XmlElement.cs: impl HasAttribute(string name).
5741
5742 2002-03-22  Duncan Mak  <duncan@ximian.com>
5743
5744         * XmlElement.cs: Reformatted.
5745         (CloneNode) Corrected.
5746
5747         * XmlDocument.cs (CreateWhitespace):
5748         (CreateSignificantWhitespace): Implemented.
5749
5750         * XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
5751         true, because Attributes have ChildNodes.
5752
5753 2002-03-21  Kral Ferch <kral_ferch@hotmail.com>
5754
5755         * XmlTextWriter.cs: WriteStartDocument tracks state, writes out
5756         xml declaration along with encoding.  WriteEndElement throws
5757         exception if no WriteStartElement exists.
5758
5759 2002-03-20  Duncan Mak  <duncan@ximian.com>
5760
5761         * XmlEntityReference.cs (CloneNode): Implemented.
5762
5763         * XmlException.cs (Message): Implemented. We need to cache the
5764         message string because SystemException doesn't expose 'message'
5765         from Exception.
5766
5767         * XmlText.cs (Value): Added in the missing Value property.
5768
5769 2002-03-20  Duncan Mak  <duncan@ximian.com>     
5770
5771         * XmlAttribute.cs (CloneNode): Implemented.
5772
5773         * XmlDocumentFragment.cs (CloneNode): Implemented.
5774
5775         * XmlElement.cs (CloneNode): Implemented.
5776
5777 2002-03-19  Duncan Mak  <duncan@ximian.com>
5778
5779         * XmlNotation.cs: Added to CVS.
5780
5781         * XmlAttribute.cs (CloneNode): First crack at the CloneNode method.
5782
5783         * XmlCDataSection.cs (CloneNode): Implemented.
5784
5785         * XmlDocumentFragment.cs: Reformatted and added the missing properties
5786         (InnerXml, OwnerDocument, ParentNode).
5787         (CloneNode): Implemented.
5788
5789         * XmlSignificantWhitespace.cs (CloneNode): Implemented.
5790         (Value) Implemented the 'get' property.
5791
5792         * XmlWhitespace.cs (Module): implemented.
5793
5794 2002-03-19  Jason Diamond <jason@injektilo.org>
5795
5796         * XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
5797         in the prefix.
5798
5799 2002-03-18  Jason Diamond <jason@injektilo.org>
5800
5801         * XmlTextReader.cs: Don't restore properties after reading last
5802         attribute on an element.
5803
5804         * XmlDocument.cs: Move back to element after reading attributes
5805         so that IsEmptyElement test succeeds.
5806
5807 2002-03-18  Kral Ferch <kral_ferch@hotmail.com>
5808
5809         * XmlNamespaceManager.cs: Implemented LookupPrefix.
5810         
5811         * XmlTextWriter.cs: Implemented namespace and prefix support.
5812
5813 2002-03-18  Kral Ferch <kral_ferch@hotmail.com>
5814
5815         * XmlTextReader.cs: Restores properties after
5816         reading last attribute on an element.
5817         
5818         * XmlNode.cs: AppendChild sets the parent
5819         on the child.
5820
5821 2002-03-17  Kral Ferch  <kral_ferch@hotmail.com>
5822
5823         * XmlCDataSection.cs: Formatting, Implementation for WriteTo.
5824
5825         * XmlComment.cs: Implementations for WriteTo and WriteContentTo.
5826         
5827         * XmlElement.cs: Fixed bug in WriteTo.
5828         
5829         * XmlProcessingInstruction.cs: Formatting.
5830         
5831         * XmlTextWriter.cs: Implementations for Close, WriteCData, WriteComment,
5832         fixes for WriteEndElement, WriteProcessingInstruction.
5833
5834 2002-03-17  Kral Ferch  <kral_ferch@hotmail.com>
5835
5836         * XmlDocument.cs: Implementations for WriteTo() and WriteContentTo(),
5837         had Load() add PIs to the document, moved onXXX methods to alphabetical
5838         order in the file.
5839         
5840         * XmlElement.cs: Implementations for WriteTo() and WriteContentTo().
5841         
5842         * XmlNode.cs: Implementations for InnerXml Get and OuterXml.
5843         
5844         * XmlProcessingInstruction.cs: Implementations for WriteTo() and
5845         WriteContentTo().
5846         
5847         * XmlTextWriter.cs: Implementations for WriteEndElement,
5848         WriteProcessingInstruction, WriteStartElement, and WriteString.
5849         
5850         * XmlWriter.cs: Implemented WriteStartElement() methods.
5851
5852 2002-03-15  Duncan Mak  <duncan@ximian.com>
5853
5854         * XmlEntity.cs: Added to CVS. Need to implement BaseURI and
5855         InnerText once I know what they do.
5856
5857         * XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
5858         that we can properly chain constructors.
5859         (CloneNode): implemented.
5860         (WriteContentTo): Removed MonoTODO attribute as this method has no
5861         effect in this class.
5862
5863         * XmlProcessingInstruction.cs (Value): Added the missing Set
5864         block.
5865         (InnerText): Added in, but not implemented.
5866
5867 2002-03-14  Kral Ferch  <kral_ferch@hotmail.com>
5868
5869         * XmlTextWriter.cs: implemented constructors and 
5870         WriteCData and WriteComment.
5871
5872 2002-03-14  Duncan Mak  <duncan@ximian.com>
5873
5874         * XmlDocument.cs: Moved the NodeChanged EventHandler to its own
5875         file, and updated the callbacks to reflect the change.
5876         (XmlDocument): Added the NameTable constructor.
5877         (NameTable): Also the NameTable property.
5878
5879         * XmlNodeChangedEventHandler.cs: Added, replacing the version that
5880         was in XmlDocument.cs. It has two arguments now (object,
5881         EventArgs) , instead of one (object).
5882
5883 2002-03-14  Kral Ferch  <kral_ferch@hotmail.com>
5884
5885         * XmlWriter.cs: Formatting.
5886         
5887         * XmlTextWriter.cs: Initial checkin.
5888         
5889 2002-03-14  Duncan Mak  <duncan@ximian.com>
5890
5891         * Validation.cs: Removed, replaced by ValidationType.cs.
5892
5893         * ValidationType.cs: Added.
5894
5895 2002-03-13  Duncan Mak  <duncan@ximian.com>
5896
5897         * XmlException.cs: Made it [Serializable], implemented good ol'
5898         GetObjectData, and the serialization constructor.
5899
5900         * XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
5901         (SetNamedItem): Reverted (added back in) the patch with the
5902         ReadOnly checks. "Don't doubt yourself, my son... you were right!"
5903
5904         * XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
5905         (GetNamedItem (string, string)): implemented.
5906         (RemoveNamedItem): implemented.
5907         (SetNamedItem): implemented.
5908
5909 2002-03-12  Kral Ferch  <kral_ferch@hotmail.com>
5910
5911         * XmlAttribute.cs: Moved a method from amongst properties down to
5912         it's alphabetical position in the methods section.
5913         
5914         * XmlNode.cs: Passes in 'this' to XmlNodeList constructor instead of
5915         last linked child.  Set XmlNode base class to return false for IsReadOnly().
5916         Implemented GetEnumerator() and RemoveChild().
5917         
5918         * XmlNodeListChildren.cs: Now stores the parent instead of the last child.
5919         This is to support the behavior that the Enumerator doesn't become invalid
5920         when changes to the children occur.  Flushed out rest of implementation for
5921         MoveNext, Current, and Reset.
5922
5923 2002-03-12  Duncan Mak  <duncan@ximian.com>
5924
5925         * XmlCharacterData.cs: Reformatted the properties for better readability.
5926
5927         * XmlLinkedNode.cs: Removed the awful boxy comments.
5928
5929         * XmlNamedNodeMap.cs (Count):
5930         (Item): Implemented. Tests will be coming.
5931
5932         * XmlEntityReference.cs: 
5933         * XmlSignificantWhitespace.cs: Implemented these classes except for
5934         the Clone, WriteContentTo and WriteTo methods. Will have to
5935         investigate into these later.
5936
5937 2002-03-11  Duncan Mak  <duncan@ximian.com>
5938
5939         * IHasXmlNode.cs: Added to CVS.
5940
5941 2002-03-08  Jason Diamond <jason@injektilo.org>
5942
5943         * XmlParserContext.cs: Added missing constructors and missing Encoding 
5944         property.
5945
5946         * XmlTextReader.cs: Start using the XmlParserContext class.
5947
5948 2002-03-08  Jason Diamond <jason@injektilo.org>
5949
5950         * XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
5951
5952 2002-03-08  Mike Kestner  <mkestner@speakeasy.net>
5953
5954         * XmlNode.cs (Item): Implemented both indexers.
5955
5956 2002-03-08  Jason Diamond  <jason@injektilo.org>
5957
5958         * DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
5959         XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
5960
5961 2002-03-08  Jason Diamond  <jason@injektilo.org>
5962
5963         * XmlAttribute.cs: Attribute nodes are supposed to store their values
5964         as child nodes so updated to reflect that.
5965
5966         * XmlDocument.cs, XmlElement.cs, XmlNode.cs: Moved code that was
5967         duplicated in XmlDocument and XmlElement into XmlNode so that it
5968         wouldn't have to be duplicated in XmlAttribute, too.
5969
5970 2002-03-08  Kral Ferch <kral_ferch@hotmail.com>
5971
5972         * XmlNodeList.cs, XmlDocument.cs, XmlLinkedNode.cs,
5973         XmlNode.cs: Formatting.
5974         
5975         * XmlNodeListChildren.cs: Implementation of XmlNodeList
5976         for XmlNode.ChildNodes property.
5977         
5978         * XmlNodeListAsArrayList.cs: Removed file.  Using different
5979         data structure (circular list) in XmlNode so this file
5980         is no longer valid.
5981         
5982         * XmlDocument.cs, XmlElement.cs: New ChildNodes tests found
5983         bug in setter property of LastLinkedChild so fixed it.
5984         
5985 2002-03-06  Jason Diamond  <jason@injektilo.org>
5986
5987         * XmlInputSource.cs, XmlNames_1_0.cs, XmlParse.cs: Removed files.
5988         We already have a parser in XmlTextReader.
5989
5990         * XmlException.cs: Removed constructor accepting XmlInputSource.
5991
5992 2002-03-06  Kral Ferch <kral_ferch@hotmail.com>
5993
5994         * XmlNode.cs: Rewrote this class from scratch with
5995         MonoToDo attribs and NotImplementedExceptions.  Now defines an
5996         internal LastLinkedNode property to aid the new implementation.
5997         XmlNodes only have ref to owner doc and parent nodes now.
5998         
5999         * XmlLinkedNode.cs: Added NextLinkedSibling internal property
6000         and ref to next sibling to support walking our circular child
6001         node list.
6002         
6003         * XmlDocument.cs: Added ref to last child node and overrides
6004         XmlNode's internal LastLinkedChild property to support walking
6005         our circular child node list.
6006         
6007 2002-03-02  Kral Ferch <kral_ferch@hotmail.com>
6008
6009         * XmlProcessingInstructions.cs: Class was empty.  Implemented
6010         constructor, properties, and CloneNode() method.  Put in
6011         MonoToDo attrib for remaining methods.
6012
6013         * XmlComment.cs: Reformatted and put in MonoToDo attribs.
6014         Got rid of helper methods and fields since they were no
6015         longer needed.
6016
6017         * XmlLinkedNode.cs: Reformatted and put in MonoToDo attribs.
6018
6019         * XmlDocument.cs: Added code to Load(XmlReader) to create XmlComment,
6020         XmlCDataSection, and XmlProcessingInstruction nodes. Implemented
6021         Createxxx() methods for those three node types.
6022
6023 2002-03-02  Jason Diamond <jason@injektilo.org>
6024
6025         * XmlDocument.cs: Implemented the remaining CreateElement and
6026         CreateAttribute methods.
6027
6028         * XmlAttribute.cs: Re-implemented.
6029
6030         * XmlElement.cs: Set owner element on attributes. Reformatted.
6031
6032 2002-03-02  Jason Diamond <jason@injektilo.org>
6033
6034         * XmlTextReader.cs: Implemented MoveToNextAttribute().
6035
6036         * XmlDocument.cs: Reformatted. Adding missing methods and MonoTODO
6037         attributes. Create attribute nodes while loading. Implemented
6038         Load(string) and CreateTextNode().
6039
6040         * XmlCharacterData.cs, XmlText.cs: Re-implemented.
6041
6042         * XmlCDataSection.cs, XmlComment.cs: Call correct constructor in 
6043         XmlCharacterData.
6044
6045         * XmlNamedNodeMap.cs, XmlAttributeCollection.cs: Stubbed out.
6046
6047 2002-03-02  Mike Kestner <mkestner@speakeasy.net>
6048
6049         * XmlAttribute.cs : Using fix.
6050         * XmlDocument.cs (CreateAttribute(String)): Implement.
6051
6052 2002-03-02  Jason Diamond <jason@injektilo.org>
6053
6054         * XmlNamespaceManager.cs: Atomize prefixes and namespaces strings in 
6055         the name table.
6056
6057 2002-02-28  Jason Diamond <jason@injektilo.org>
6058
6059         * XmlDocument.cs, XmlNode.cs: Initial implementation of LoadXml 
6060         courtesy of Kral Ferch <kral.ferch@hotmail.com>.
6061
6062 2002-02-28  Jason Diamond <jason@injektilo.org>
6063
6064         * XmlException.cs, XmlReader.cs, XmlTextReader.cs: Reformatted, 
6065         added missing members and MonoTODO attributes.
6066         
6067         * XmlTextReader.cs: Throw XmlException instead of System.Exception.
6068
6069 2002-02-27  Jason Diamond <jason@injektilo.org>
6070
6071         * XmlElement.cs: Reformatted, added missing members and MonoTODO 
6072         attributes.
6073
6074 2002-02-26  Duncan Mak  <duncan@ximian.com>
6075
6076         * XmlCDataSection.cs: Initial implementation.
6077
6078         * NameTable.cs: Fixed the whole thing. Wrote a NUnit test to test
6079         it out. This should (hopefully) be correct.
6080
6081 2002-02-26  Jason Diamond <jason@injektilo.org>
6082
6083         * XmlTextReader.cs: Apparently Microsoft's implementation treats
6084         namespace declarations as attributes so we do now, too.
6085
6086         * XmlNamespaceManager.cs: HasNamespace fixed so that it only
6087         checks the current scope.
6088
6089 2002-02-26  Duncan Mak  <duncan@ximian.com>
6090
6091         * XmlDocumentType.cs: Added a few hacks here and there to
6092         temporarily fix the "I broke the build issue".
6093
6094 2002-02-25  Jason Diamond <jason@injektilo.org>
6095
6096         * XmlDocument.cs, XmlElement.cs, XmlNode.xs, XmlNodeList.cs,
6097         XmlNodeListAsArrayList.cs: Multiple fixes necessary to get
6098         simple test to pass. The existing code is really shitty so I'll
6099         probably start writing tests and refactoring before much else 
6100         can get done.
6101
6102 2002-02-25  Duncan Mak  <duncan@ximian.com>
6103
6104         * NameTable.cs: Implemented.
6105
6106         * XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.
6107
6108 2002-02-24  Duncan Mak  <duncan@ximian.com>
6109         
6110         * XmlNodeOrder.cs: Added to CVS.
6111
6112         * XmlQualifiedName.cs: Fixed a warning from Equals ().
6113
6114         * XmlTokenizedType.cs: Added to CVS.
6115
6116         * XmlUrlResolver.cs: Added to CVS with one TODO task.
6117
6118 2002-02-23  Duncan Mak  <duncan@ximian.com>
6119
6120         * XmlQualifiedName.cs: Fixed ToString () and added the operators
6121         (== and !=).
6122
6123 2002-02-23  Jason Diamond <jason@injektilo.org>
6124
6125         * XmlTextReader.cs: Added support for qualified attributes.
6126
6127 2002-02-23  Jason Diamond <jason@injektilo.org>
6128
6129         * XmlNamespaceManager.cs: Initial implementation.
6130         
6131         * XmlTextReader.cs: Added support for NamespaceURI property on
6132         elements.
6133
6134 2002-02-23  Nick Drochak <ndrochak@gol.com>
6135
6136         * ChangeLog: Add the change log to this directory
6137
6138         * XmlQualifiedName.cs: Fixed compile errors so it would build. Still has
6139         MonoTODO's