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