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