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