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