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