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