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