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