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