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