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