1 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
4 in get_InnerText(), avoid extraneous StringBuilder creation.
6 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
8 * XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
9 It does not iterate all nodes in advance.
10 * XmlNode.cs : use XmlIteratorNodeList in SelectNodes().
12 2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
14 * XmlWriter.cs : Dispose() is protected.
16 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
18 * XmlNamedNodeMap.cs : lazily create internal ArrayList. Thanks to
19 Joshua Tauberer for the hint.
21 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
23 * XmlConvert.cs : ToString(TimeSpan) should return valid duration
24 for TimeSpan.Zero, rather than "P". Fixed bug #77350
26 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
28 * XmlNameEntryCache.cs XmlNameEntry.cs :
29 Made name entry fields as not read-only. Added Update() to reset
30 members. Its semantics of Equals() is changed.
31 Now entry cache is based on Hashtable rather than ArrayList.
32 It saves heavy iteration in ArrayList.
34 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
36 * XmlNameEntryCache.cs XmlNameEntry.cs XmlDocument.cs :
37 Add Hash field to find name entry quickly.
38 In XmlNameEntryCache make use of name table (it is totally
41 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
43 * XmlConvert.cs : handle Ticks. Fixed bug #77252.
45 2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
47 * XmlTextWriter.cs : Fixed bug #77082.
48 When the state was Start, after WriteProcessingInstruction() and
49 WriteWhitespace() change it to Prolog.
50 After WriteDocType() set state to WriteState.Element.
52 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
54 * XmlTextWriter.cs : Do not local duplicate of automatically-created
55 prefixes (i.e. check local autocreated prefixes other than
56 namespaces from ancestors). Fixed bug #77086 and #77087.
58 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
60 * XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
61 ArgumentException in WriteNmTokenInternal().
63 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
65 * XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
66 such invalid "xml" prefix which is being mapped to different
67 namespace URI than the predefined one.
68 Removed comment that does not make sense.
69 * XmlNamespaceManager.cs : IsValidDeclaration() could be private.
72 2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
74 * DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an
75 attribute is #IMPLIED.
77 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
79 * XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
80 ReadSubtree() for non-element content since they are not allowed
81 in ReadSubtree() (but allowed here).
83 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
85 * XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
86 nodes as target string nodes as well as other text nodes.
88 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
90 * XmlValidatingReader.cs : ReadTypedValue() was not working with
91 non-XmlSchemaDatatype types.
93 2006-01-05 Gert Driesen <drieseng@users.sourceforge.net>
95 * XmlTextWriter.cs: Modified WriteWhitespace to throw ArgumentException
96 if value is null or zero-length string. Modified WriteNmToken to throw
97 ArgumentException if name is null or zero-length string. Cosmetic
98 change to WriteStringInternal.
99 * XmlElement.cs: In 2.0 profile, do not throw ArgumentNullException
100 if new value for Prefix is null.
102 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
104 * XmlTextWriter.cs : when namespaceURI is String.Empty, Prefix
105 should be just ignored (it is likely to happen that DOM nodes
106 with empty namespace URI are specified non-empty prefix by
107 users, which had better be just ignored). Fixed bug #77095.
109 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
111 * XmlElement.cs : patch for Prefix property by Vorobiev Maksim.
112 - null should cause ArgumentNullException.
113 - "" should not raise an error.
114 - throws ArgumentException when it is readonly.
116 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
118 * XmlTextWriter.cs : When xml:space or xml:lang attribute was
119 directly written without an element, it caused ArgumentOutOfRange.
122 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
124 * XmlTextWriter.cs : (WriteStartAttribute) set prefix as "xmlns" when
125 namespaceURI is that of xmlns attributes. Fixed bug #77083.
127 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
129 * DTDObjectModel.cs : (CreateXsdParticle) element particle was
130 missing occurence indicators.
132 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
134 * DTDObjectModel.cs : some fixes on GetXmlSchema()
135 - make generated schema cleaner.
136 - enumeration was missing for attribute type.
137 * XmlTextReader.cs, XmlTextReader2.cs : added tiny notes for dtd2xsd.
139 2005-12-15 Konstantin Triger <kostat@mainsoft.com>
141 * XmlTextWriter.cs: allow null string in WriteCData.
143 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
145 * XmlNode.cs : (GetNamespaceOfPrefix) return const xml/xmlns URIs
148 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
150 * XmlDocumentNavigator.cs : added UnderlyingObject as to behave as
153 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
155 * XmlNode.cs : under 2.0 xml/xmlns are treated as special cases in
156 GetNamespaceOfPrefix()/GetPrefixOfNamespace() (but it still does not
157 implement IXmlNamespaceResolver, bummer).
159 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
161 * XmlDocument.cs : changed some exception types.
162 * XmlDocumentNavigator.cs : added 2.0 SchemaInfo.
164 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
166 * XmlTextReader.cs : 1.x build fix.
168 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
170 * XmlTextReader.cs : when XmlReader.Create() creates this instance,
171 don't expect strict text declaration. Check SkipTextDeclaration()
174 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
176 * XmlReader.cs : fixed several misconception in MoveToNextSibling().
177 It should check its ReadState to avoid infinite loop.
179 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
181 * XmlException.cs : added another .ctor() overload that takes both
182 IXmlLineInfo and innerException.
183 * XmlQualifiedName.cs : added Parse() overload that takes XmlReader
184 (since XmlReader is not IXmlNamespaceResolver anymore).
185 * XmlReader.cs : made several fixes on 2.0 ReadContentAs(),
186 ReadElementContentAs() and all of its variants.
188 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
190 * XmlInputStream.cs :
191 Added Encoding property on NonBlockingStreamReader
193 set Encoding property when it proceeds to xml declaration.
195 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
197 * XmlReader.cs : ReadToDescendant() should work when its ReadState is
200 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
202 * XmlChar.cs : removed incorrect comment.
203 * XmlReader.cs : Create() clones XmlReaderSettings (if supplied).
204 For wrapped XmlReader, check ConformanceLevel to be consistent.
205 * XmlTextReader.cs, XmlTextReader2.cs : added get_Conformance for
206 internal use. Removed unused fields.
207 * XmlInputStream.cs : updated NonBlockingStreamReader to the latest
208 StreamReader (it is almost a copy).
210 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
212 * XmlTextReader.cs : avoid Char.IsSurrogate() and do it inside
213 PeekChar(), which improves notable performance.
215 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
217 * XmlReaderSettings.cs : Schemas will be created only when it is
220 2005-12-08 Andrew Skiba <andrews@mainsoft.com>
222 * IXmlNamespaceResolver.cs: delete TARGET_JVM,
223 no need to mangle the name
225 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
227 * Driver.cs, Profiler.cs, XmlQualifiedNameTable.cs :
230 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
232 * XmlReaderSettings.cs : thanks to idiotic MS design,
233 AllowXmlAttributes is turned on by default.
235 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
237 * XmlReaderSettings.cs :
238 set_Schemas() is fixed in 2.0 RTM (it just works).
239 * XmlResolver.cs : throw ArgumentNullException instead of
240 ArgumentException when both base and relative urls are null.
242 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
244 * XmlReaderSettings.cs : ProhibitDtd is set as default.
245 * XmlWriterSettings.cs : no set_OutputMethod.
247 2005-11-30 Konstantin Triger <kostat@mainsoft.com>
249 * IXmlNamespaceResolver.cs: TARGET_JVM namespace change.
251 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
253 * XmlInputStream.cs: fixed Initialize method to be able
254 to read unicode file without BOM. TARGET_JVM only.
256 2005-11-14 Atsushi Enomoto <atsushi@ximian.com>
258 * XmlNodeReader.cs : removed historical one.
260 2005-11-10 Atsushi Enomoto <atsushi@ximian.com>
262 * XmlReader.cs, XmlNode.cs :
263 [DebuggerDisplay] are not worthy of existing.
265 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
267 * XmlTokenizedType.cs, XmlNodeOrder.cs : so those enums happen to
268 have [Serializable] in .NET 1.x, and removed in 2.0 (enums are
269 anyways serializable, so those attributes do not make sense).
271 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
273 * XmlValidatingReader.cs : added CanReadBinaryContent.
274 * XmlTextReader.cs, XmlTextReader2.cs : GetNamespacesInScope() are
275 now both public and private (i.e. hush IsVirtual).
276 * XmlWriterSettings.cs, XmlWriter.cs, XmlTextWriter.cs :
277 NormalizeNewLines vanished.
279 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
281 * XmlReader.cs : MoveToAttribute(int) is virtual in NET_2_0.
283 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
285 * XmlConvert.cs : implemented VerifyTOKEN().
287 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
289 * XmlConvert.cs : VerifyNCName() and VerifyName() throws
290 ArgumentNullException for "".
292 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
294 * XmlReader.cs : dependent XmlSchemaValidationFlags fix.
295 Added ReadElementContentAsObject() and ReadContentAsObject().
296 * XmlReader.cs, XmlTextReader.cs :
297 LookupNamespace(string,bool) is now private.
298 * XmlReader.cs, XmlNode,cs :
301 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
303 * XmlElement.cs, XmlCDataSection.cs, XmlText.cs, XmlWhitespace.cs,
304 XmlSignificantWhitespace.cs : added ParentNode overrides (actually
305 they don't make sense since it just calls base.)
306 * XmlNode.cs, XmlDocument.cs : changed .NET 2.0 CreateNavigator() impl
307 to match signature and skip OwnerDocument check in XmlNode (since
308 it is overriden). Maybe MS does not have ownerDocument as a field and
309 costs too much on OwnerDocument property.
310 Added missing bits in XmlDocument.
312 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
314 * XmlAttribute.cs : added new overrides in 2.0 RTM (this scarcely
315 makes sense without real optimization though).
316 * XmlDocument.cs, XmlElement.cs, XmlNode.cs : avoid ChildNodes and
317 save extra XmlNodeList creation cost.
319 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
321 * XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
322 * XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
323 ReadTypedValue() is removed.
324 * XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
325 * XmlWriter.cs : Settings is virtual.
327 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
329 * XmlDocumentNavigator.cs : now MoveToFirst() invokes internal
332 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
334 * XmlTextWriter.cs : oops, so WriteState.Error is NET_2_0 only.
336 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
338 * XmlTextWriter.cs : (Error state check) actually I need to set Error.
340 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
342 * XmlTextWriter.cs : throw InvalidOperationException if any of
343 WriteBlah() methods were invoked at error state.
345 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
347 * XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
348 default namespace was returning "" instead of null. It didn't check
349 empty namespace URI for non-empty prefixes.
351 2005-10-07 Joshua Tauberer <tauberer@for.net>
353 * XmlTextReader.cs: SkipTextDeclaration would not accept processing
354 instructions that began with the string 'xml', e.g. rejecting
357 2005-10-08 Gert Driesen <drieseng@users.sourceforge.net>
359 * XmlAttribute.cs: InnerText and InnerXml do not override getters in
360 NET_2_0. Removed extra CLSCompliant attribute on SchemaInfo.
361 * XmlReaderSettings.cs: Marked sealed.
363 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
365 * XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
366 digits for "second" were not exactly 3. Fixed bug #76328.
368 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
370 * XmlReader.cs : Name is virtual in NET_2_0.
372 2005-10-03 Atsushi Enomoto <atsushi@ximian.com>
374 * XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
375 added supprot for NormalizeNewLines.
376 NewLineOnAttributes is considered only when Indent is true.
378 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
380 * XmlAttribute.cs, XmlDocument.cs : check id table updates when
381 XmlAttribute.set_Value() was invoked. Fixed bug #76311.
383 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
385 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs :
386 XmlReader.Create() with string url argument are not working because
387 of incorrect choice of the .ctor().
389 2005-09-28 Atsushi Enomoto <atsushi@ximian.com>
391 * XmlNodeReaderImpl.cs : when the source node was not a document and
392 it is an empty element, Read() was incorrectly moving to the parent
393 of the source node. Patch by Csaba Halasz. Fixed bug #76260.
395 2005-09-27 Atsushi Enomoto <atsushi@ximian.com>
397 * XmlTextReader.cs : surrogate computation is incorrect. Fixed bug
398 #76247. Patch by Brion Vibber.
400 2005-09-26 Atsushi Enomoto <atsushi@ximian.com>
402 * DTDValidatingReader.cs : Namespace manager was not handled correctly.
403 Now it does the same as XmlTextReader does. Fixed bug #76234.
405 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
407 * XmlNodeChangedEventArgs.cs: Only make ctor publicly available
408 in NET_2_0. Fixed API compatiblity with .NET 1.1.
409 * XmlOutputMethod.cs: Fixed values of enum fields to match MS.NET.
410 Only available in .NET 2.0.
412 2005-09-25 Atsushi Enomoto <atsushi@ximian.com>
414 * XmlReader.cs, XmlReaderSettings.cs, XmlDocument.cs:
415 XmlSchemaValidationFlags updates.
417 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
419 * XmlWriterSettings.cs : true NET_2_0 updates.
421 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
423 * XmlOutputMethod.cs : new file.
424 * XmlWriter.cs, XmlValidatingReader.cs, XmlReaderSettings.cs,
425 XmlUrlResolver.cs, XmlWriterSettings.cs :
426 more NET_2_0 updates.
428 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
430 * XmlNodeReader2.cs, XmlReader.cs,
431 XmlTextReader.cs, XmlTextReader2.cs,
432 XmlNodeChangedEventArgs.cs, XmlElement.cs,
433 XmlNode.cs, XmlDocument.cs :
436 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
438 * XmlTextReader.cs : when there is a heading half of surrogate at the
439 end of read buffer, it didn't treat it as a surrogate.
442 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
444 * XmlTextWriter.cs : for surrogate pair, output character reference
445 as a single character instead of two reference pairs. Fixed bug #76095.
446 Patch by Brion Vibber.
448 2005-08-31 Sebastien Pouliot <sebastien@ximian.com>
450 * XmlDocument.cs: Added an InheritanceDemand for Unrestricted on
451 CreateDocumentType and ReadNode methods.
452 * XmlException.cs: Added a Demand for SerializationFormatter on
453 GetObjectData method.
454 * XmlResolver.cs: Added an InheritanceDemand for Unrestricted on
456 * XmlSecureResolver.cs: Fixed exception when creating evidences with
457 an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy
458 and PermitOnly if the security manager is enabled.
459 * XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
461 * XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on
463 * XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted
466 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
468 * DTDReader.cs : no need to skip text declaration for such entity
469 declaration that has literal entity. It should not expand entities
470 inside ResolveExternalEntityReplacementText().
471 Finally fixed bug #51495.
473 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
475 * XmlTextReader.cs, XmlTextReader2.cs : added internal .ctor() to
476 receive both TextReader, XmlNodeType and BaseURI for entity
477 resolution (though it would be removed later).
478 * XmlParserInput.cs : Now to handle nested PE insertion and correct
479 BaseURI, it internally holds a stack of "input source".
482 Required fixes for XmlParserInput.
483 Handle BaseURI as expected. Added ActualUri for resolved actual
484 source URI (to resolve nested entities). Pass ActualUri to internal
485 XmlTextReader.ctor() in ResolveExternalEntityReplacementText()
486 (well, yes I remember, it is problematic.)
488 Incorrect Base URI handling bug (part of #51495) is fixed.
490 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
492 * DTDReader.cs, XmlParserInput.cs :
493 let's fix #51495. First of all, refactoring.
495 2005-08-04 Atsushi Enomoto <atsushi@ximian.com>
497 * XmlAttribute.cs : When there was only one child in attribute
498 and it was an entity reference, set_Value() tried to set text value
501 2005-08-03 Gert Driesen <drieseng@users.sourceforge.net>
503 * XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
504 * XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to
505 RoundtripKind to match .NET 2.0 Beta 2.
506 * XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
507 in .NET 2.0 Beta 2, and is explicit interface implementation.
508 * XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
510 * XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
512 * XmlValidatingReader.cs: GetNamespacesInScope returns generic
513 IDictionary in .NET 2.0 Beta 2.
514 * IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic
515 IDictionary in .NET 2.0 Beta 2.
516 * XmlNamespaceManager.cs: GetNamespacesInScope returns generic
517 IDictionary in .NET 2.0 Beta 2.
518 * XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic
519 IDictionary in .NET 2.0 Beta 2.
520 * DTDValidatingReader.cs: GetNamespacesInScope returns generic
521 IDictionary in .NET 2.0 Beta 2.
523 2005-07-14 Atsushi Enomoto <atsushi@ximian.com>
525 * XmlTextWriter.cs : In WriteQualifiedName(), when there is open
526 attribute, it calls LookupPrefix() and then if namespace was empty,
527 it resulted in an exception. Fixed bug #75546.
529 2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
531 * XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
532 to ISO 8601 and XSD datatypes 3.2.6.1).
534 2005-06-27 Andrew Skiba <andrews@mainsoft.com>
536 * DTDReader.cs : don't validate entity values, when the entry is
537 redefined so it will be never used. Fixes valid-sa-086 test from W3C
540 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
542 * XmlQueryDialect.cs : removed.
544 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
546 * XmlWriter.cs : added Create(XmlWriter).
547 * XmlValidatingReader.cs : added Read*AsBase64/BinHex().
548 * XmlReaderSettings.cs : added obsolete annoyances to hush corcompare.
550 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
552 * XmlTextReader.cs : use StringBuilder.ToString(int,int) when it does
553 not have a large chunk of data, following Ben's idea.
555 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
557 * XmlTextReader.cs : use StringBuilder to store character values; that
558 saves 40% memory for large chunk of xml. Patch by Gonzalo.
560 2005-06-22 Andrew Skiba <andrews@mainsoft.com>
562 * XmlNode.cs : cosmetic fix - remove unnecessary argument from
563 AppendChildValues function.
565 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
567 * XmlTextReader.cs : normalization is not required to check character
568 validity everywhere except for character reference.
570 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
572 * DTDValidatingReader.cs : removed some extra IsDefault check (with
573 the latse code default attributes are stored in hashtables anyways.)
574 Fixup attribute namespaces _after_ xmlns attributse are filled.
575 The latest change is not good that namespaceURI of a local attribute
576 was incorrectly globally looked up (it should be always "").
578 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
580 * XmlValidatingReader.cs : LookupNamespace() was trying to access to
581 null reference to validatingReader.
582 * DTDValidatingReader.cs : Fixed default xmlns* attribute handling.
583 It used to be valid only at the declaring element.
585 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
587 * DTDValidatingReader.cs : further text node fixes.
588 - Cut out validation code from Text node case.
589 - Now it does not use error-prone case transition but uses
590 DocumentFragment 'vacant room' and fixed incorrect transition from
592 - CDATA should be validated the same as Text is.
594 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
596 * DTDValidatingReader.cs : whitespace nodes were incorrectly rejected
597 inside non-mixed content model.
599 2005-06-09 Andrew Skiba <andrews@mainsoft.com>
601 * XmlConvert.cs : add TARGET_JVM for roundtrip bug
603 2005-06-06 Atsushi Enomoto <atsushi@ximian.com>
605 * XmlEntityReference.cs, XmlNode.cs : protected api fix.
607 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
609 * XmlEntityReference.cs, XmlNode.cs : For entity references, BaseURI
610 resolution should be different from that of parent since they might
611 differ. Patch by Andrew Skiba.
613 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
616 make sure to close parser input before parser stack pop.
617 * DTDValidatingReader.cs : ditto.
618 * DTDObjectModel.cs : Fixed another incorrect null BaseURI check.
620 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
622 * DTDValidatingReader.cs : Last BaseURI exposed this hidden bug via
625 2005-05-30 Atsushi Enomoto <atsushi@ximian.com>
627 * DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
628 BaseURI which results in incorrect URI resolution.
630 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
632 * DTDObjectModel.cs : For simple type restriction creation it failed
633 when there is no enumerations (largely failed).
635 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
637 * XmlImplementation.cs : added new NET_2_0 ctor.
638 Let's check corcompare:-/
640 2005-05-11 Atsushi Enomoto <atsushi@ximian.com>
642 * DTDValidatingReader.cs : namespace storing was stupid.
644 2005-05-10 Atsushi Enomoto <atsushi@ximian.com>
646 * DTDValidatingReader.cs : since namespace declarations might be
647 resolved differently due to entity handling, it holds its own set
648 of declared namespaces. NamespaceURI and LookupNamespace() use it.
650 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
652 * XmlReader.cs : added ReadElementContentAsLong().
653 * XmlWriter.cs : removed some obsolete WriteValue() overloads.
655 IXmlNamespaceResolver.cs : removed deprecated 2.0 bits.
656 * XQueryConvert.cs : obsolete (yeah, now XQuery should be hidden).
658 2005-05-06 Atsushi Enomoto <atsushi@ximian.com>
660 * XmlInputStream.cs : Now XmlStreamReader uses non-blocking TextReader
661 that is mostly copied from StreamReader. It should fix bug #74161.
663 2005-05-05 Atsushi Enomoto <atsushi@ximian.com>
665 * XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
666 XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
667 DTDValidatingReader.cs : Removed most of "atomizedName" related
668 stuff that are obsoleted in 2.0 beta2.
669 * XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.
671 2005-05-04 Andrew Skiba <andrews@mainsoft.com>
673 * IXmlNamespaceResolver.cs : mangle the interface method names when
674 compiling for TARGET_JVM
676 2005-03-30 Atsushi Enomoto <atsushi@ximian.com>
678 * XmlUrlResolver.cs : just return connected Stream instead of fully
679 downloaded memory cache. Fix by Konstantin Triger.
681 2005-03-24 Atsushi Enomoto <atsushi@ximian.com>
683 * XmlWriter.cs : WriteQualifiedName() should check namespace validity
684 (whether it is in scope or not).
685 * XmlTextWriter.cs : When WriteQualifiedName() is invoked inside
686 attribute and no matching namespace declaration, create prefix
687 on demand. Code reused from WriteStartAttribute().
689 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
691 * XmlValidatingReader.cs : create schema set on demand.
693 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
698 DTDValidatingReader.cs : removed/commented out those warned code.
700 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
702 * XmlDocumentNavigator.cs : overriden IsDescendant (default
703 implementation extraneously clones).
705 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
707 * DTDValidatingReader.cs : When expanding entities and there is a
708 sequence of text nodes, its value was not returned.
709 * XmlTextReader.cs : better invalid char error report for EOF.
711 2005-03-09 Andrew Skiba <andrews@mainsoft.com>
713 * XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
714 surrogate calculations. This fixes bug 73513.
716 2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
718 * XmlParserInput.cs : silly mixed line endings :(
720 2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
722 * XmlTextWriter.cs : namespace declaration check for those which starts
723 with 'x' 'm' 'l' should not be done here (it might be 'declared'
725 * XmlNamespaceManager.cs : error message for "'xml' prefix for
726 different namespace" is incorrect.
728 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
730 * XmlDocument.cs : ugh, so I introduced extraneous reader.Read() in
731 ReadNode() for EntityReference and it resulted in unexpected skip.
732 * DTDValidatingReader.cs : On EndEntity, LocalName and Name should
733 return the name of entity. Removed unused entityReaderNameStack.
735 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
737 * DTDValidatingReader.cs : reverted one change in r40985. Entity stack
738 is nothing to do with ReadAttributeValue().
740 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
742 * DTDValidatingReader.cs : When there was actual attribute in source
743 XmlReader, MoveToAttribute(i) did not move source reader as expected.
745 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
747 * XmlDocument.cs : In ReadNode(), on EntityReference node, when
748 XmlReader can resolve entity, it expands entity and apppend
749 children into the entity reference. Patch by Konstantin Triger.
751 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
753 * XmlTextWriter.cs : For duplicating namespace mapping, it should
754 create another prefix without throwing an exception.
756 2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
758 * XmlTextWriter.cs : LookupPrefix() should not return those prefix
759 that is overriden by another xmlns declaration.
761 2005-02-26 Atsushi Enomoto <atsushi@ximian.com>
763 * XmlEntity.cs : it was not returning SYSTEM ID when there is no
765 * XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
766 get_NodeType() resulted in loop.
768 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
770 * XmlComment.cs, XmlNode.cs, XmlText.cs, XmlProcessingInstruction.cs,
771 XmlEntityReference.cs, XmlSignificantWhitespace.cs, XmlAttribute.cs,
772 XmlElement.cs, XmlEntity.cs, XmlCDataSection.cs :
773 For those nodes that are created by Clone(), IsReadOnly is false.
774 Patch by Konstantin Triger.
776 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
778 * XmlDocumentNavigator.cs : iteratedNames array could be fixed and
779 performance got improved. Patch by Konstantin Triger.
781 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
783 * XmlAttribute.cs : MS does not reject non-NCName prefix. Patch by
786 2005-02-24 Atsushi Enomoto <atsushi@ximian.com>
788 * XmlTextWriter.cs : WriteString() should be valid when
789 WriteStartDocument() was not called.
791 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
793 * XmlNamespaceManager.cs : IsValidDeclaration was giving useless error
796 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
798 * XmlDocumentNavigator.cs : it should virtually expand EntityReference,
799 so refactored to handle both entity references and top level children.
801 2005-02-22 Atsushi Enomoto <atsushi@ximian.com>
803 * XmlTextReader.cs : XmlParserContext was not properly popped on
804 the expected timing and thus had lost BaseURI, XmlSpace and XmlLang.
805 * XmlInputStream.cs : XmlTextReader does not allow invalid utf-8
808 2005-02-21 Atsushi Enomoto <atsushi@ximian.com>
810 * DTDValidatingReader.cs : It should not skip whitespace and
811 significant whitespace nodes unless it is expanding entities.
812 * XmlDocumentNavigator.cs : Fixed NodeType that was returning
813 incorrect type when there is a sequence of text/cdata/space nodes.
815 2005-02-18 Atsushi Enomoto <atsushi@ximian.com>
817 * XmlNamespaceManager.cs : Prefix "xml" is bound to the fixed
818 namespace "http://www.w3.org/XML/1998/namespace", but it is not
819 vice versa (i.e. we can use other prefixes for this namespace URI).
821 2005-02-17 Atsushi Enomoto <atsushi@ximian.com>
823 * XmlNode.cs : It does not have to iterate children to find argument
824 node. Fixed exception type to ArgumentException. Patch by Andrew
827 2005-02-16 Atsushi Enomoto <atsushi@ximian.com>
829 * XmlAttribute.cs : just use InnerText for Value. Patch by Andrew
831 * XmlConvert.cs : Handle null and empty strings for EncodeName(),
832 EncodeLocalName() and EncodeNmToken(). Patch by Andrew Skiba.
833 * NameTable.cs : usually tail of namespaces are rather different than
834 head of them. Patch by Andrew Skiba.
835 * XmlUrlResolver.cs : missing %20 handling. Patch by Andrew Skiba.
837 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
839 * XmlAttribute.cs : For default attributes, WriteTo() writes nothing
841 * DTDValidatingReader.cs : reduced indentation using Linus trick
842 (it was too deep in nest).
844 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
846 * DTDValidatingReader.cs : Namespaces and prefixes are not properly
847 handled (it incorrectly assumed DTD definitions and thus always
848 assumed empty namespace/prefixes).
850 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
852 * DTDValidatingReader.cs : element name stack might be empty when the
853 input XmlReader contains fragments. Patch by Andrew Skiba.
855 2005-01-25 Martin Baulig <martin@ximian.com>
857 * XmlNode.cs (XmlNode.SchemaInfo): Mark this as not CLS-compliant
860 * XmlReaderSettings.cs (XmlReaderSettings.XmlResolver): Mark this
861 as not CLS-compliant to avoid a CS3025.
863 2005-01-18 Atsushi Enomoto <atsushi@ximian.com>
867 XmlAttributeCollection.cs :
868 Now reuse parentNode field for XmlAttribute.OwnerElement and
869 reduce class allocation size.
871 New class that represents a name triplet.
872 XmlNameEntryCache.cs :
873 New type to cache name entries.
876 Replace name strings with name entry and save class allocation size.
878 Add name entry cache field to document and reuse name entries that
879 are already allocated.
881 2005-01-17 Atsushi Enomoto <atsushi@ximian.com>
883 * XmlNode.cs, XmlAttribute.cs : reverted the previous patch. It broke
886 2005-01-15 Ben Maurer <bmaurer@ximian.com>
888 * XmlNode.cs (InnerText, AppendChildValues): Don't allocate a
889 string in the case where nothing needs to be appended.
891 * XmlAttribute.cs (BuildChildValue): Start out the string with
892 `null' not `String.Empty'. String.Concat (null, blah) == blah,
893 pointerwise. ie, there is no allocation. This makes it so that
894 getting the value of an attribute is faster for the fast case.
896 2005-01-13 Atsushi Enomoto <atsushi@ximian.com>
898 * XmlResolver.cs : throw ArgumentException in ResolveUri().
900 2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
902 * XmlTextWriter.cs : WriteComment() was outputting extraneous EOL.
904 2004-12-26 Atsushi Enomoto <atsushi@ximian.com>
906 * XmlReader.cs : ReadElementContentAsBinHex() was calling ..AsBase64().
907 * XmlValidatingReader.cs : In set_EntityHandling(), set that property
908 of DTDValidatingReader.
910 XmlNodeReaderImpl.cs : added simplified implementation that splits
911 entity handling and anything else.
912 * XQueryConvert.cs : implemented ShouldCheckValueFacets().
913 Use Convert class instead of simple casts (check range).
914 * XmlReaderSettings.cs : added SetSchemas() for XPathNavigator.
916 2004-12-22 Atsushi Enomoto <atsushi@ximian.com>
918 * XmlParserContext.cs : all the string properties must not be set as
919 null. Thanks to Joshua.
922 DTDReader.cs : XmlResolver.ResolveUri() may return null.
924 2004-12-17 Atsushi Enomoto <atsushi@ximian.com>
926 * XmlReaderBinarySupport.cs : added support class for base64/binhex
927 reading that mostly automates those reader support.
928 * XmlReader.cs : added CanReadBinaryContent, CanReadValueChunk,
929 ReadContentAsBase64(), ReadElementContentAsBase64(),
930 ReadContentAsBinHex(), ReadElementContentAsBinHex() and
932 * XmlTextReader.cs : Now ReadBase64() and ReadBinHex() implementations
933 are moved to XmlReaderBinarySupport. Added CanReadBinaryContent and
934 CanReadValueChunk overrides. Call Binary.Reset() to enable them.
935 * XmlTextReader2.cs : added CanReadBinaryContent, CanReadValueChunk.
936 Added ReadContentAsBase64(), ReadElementContentAsBase64(),
937 ReadContentAsBinHex(), ReadElementContentAsBinHex() (just because
938 they are overriden in MS.NET).
939 * XmlNodeReader.cs : added CanReadBinaryContent and CanReadValueChunk.
940 Call Binary.Reset() to enable them.
942 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
945 Added DateTime related methods with serialization mode.
947 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
949 * XmlReader.cs : added MoveToFollowing().
952 XmlAttribute.cs : added SchemaInfo support.
953 * XmlDocument.cs : added Schemas and Validate().
954 ReadNode() now copies xmlReader's SchemaInfo.
955 * XmlNodeReader.cs : ditto (just reflects node's SchemaInfo).
957 2004-12-15 Atsushi Enomoto <atsushi@ximian.com>
960 Create() should assure NameTable!=null on creating XmlTextReader.
961 Now use XmlSchemaValidatingReader for all xsd validation.
962 * XmlTextReader2.cs :
963 Don't use input reader's Settings. It is null.
964 * XmlReaderSettings.cs : added XmlResolver.
966 2004-12-14 Atsushi Enomoto <atsushi@ximian.com>
968 * XmlReaderSettings.cs : XsdValidate and DtdValidate are now
970 * XmlReader.cs : In Create(), use XmlSchemaValidatingReader for xsd
973 2004-12-12 Zoltan Varga <vargaz@freemail.hu>
975 * XmlTextReader.cs: Work around a compiler bug in csc 2.0 beta 1.
977 2004-12-09 Atsushi Enomoto <atsushi@ximian.com>
979 * DTDObjectModel.cs : implemented lightweight XmlSchema generator.
981 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
983 * XmlValidatingReader.cs : making smarter relationship between
986 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
988 * XmlException.cs : added SecurityPermissionAttributes.
989 * XmlReaderSettings.cs,
990 XmlReader.cs : added ValidationFlags and removed obsolete ones.
992 2004-12-06 Atsushi Enomoto <atsushi@ximian.com>
994 * XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
995 ns is null, and don't lookup prefix for empty namespace.
997 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
999 * XmlTextReader.cs: don't use \0 as buffer terminator.
1000 * XmlInputStream.cs: s/Array.Copy/Buffer.BlockCopy/.
1002 2004-11-30 Atsushi Enomoto <atsushi@ximian.com>
1004 * DTDReader.cs : Consideration on parameter entity was missing for
1005 attribute default value. Fixed bug #70008.
1007 2004-11-26 Atsushi Enomoto <atsushi@ximian.com>
1009 * XmlReader.cs : not fixage, just explicitly formatted code a bit.
1012 XmlAttributeCollection.cs,
1019 XmlDocument.cs : warning removal.
1021 2004-11-25 Atsushi Enomoto <atsushi@ximian.com>
1023 * XmlQualifiedNameTable.cs : oops, it was not implemented.
1025 2004-11-24 Atsushi Enomoto <atsushi@ximian.com>
1027 * XmlQualifiedName.cs : in 2.0 it is [Serializable].
1028 * XmlTextReader.cs : removed unused local variable.
1029 * XmlTextWriter.cs : Improved some exception messages.
1030 moved some private fields into #if NET_2_0.
1031 * XmlValidatingReader.cs : rename specifiedResolver to
1032 resolverSpecified and use it in internal get_Resolver().
1033 Added [Obsolete] for ReadTypedValue() whose base is obsoleted.
1035 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
1037 * XmlTextReader.cs : Now attribute normalization is handled on Read(),
1038 not on get_Value. This caused a problem when we use
1039 XmlValidatingReader that value is not always normalized expectedly.
1041 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
1043 * XmlReader.cs : removed old ReadValueAsXXX() and added new
1044 ReadContentAsXXX() and ReadElementContentAsXXX().
1045 * XmlTextReader.cs : removed old ReadValueAsXXX() (no overrides now).
1046 * XmlTextWriter.cs : added indentation on Comment nodes.
1047 * XmlDateTimeSerializationMode.cs : updated.
1048 * XmlResolver.cs : added 2.0 NameTable field.
1049 * ValidationType.cs : added ObsoleteAttributes on some members.
1051 2004-11-18 Atsushi Enomoto <atsushi@ximian.com>
1053 * XmlParserContext.cs : the fix was not checked in :(
1055 2004-11-17 Atsushi Enomoto <atsushi@ximian.com>
1057 * XQueryConvert.cs : moved from System.Xml.Query.
1059 2004-11-14 Atsushi Enomoto <atsushi@ximian.com>
1061 * XmlWriter.cs : after WriteAttributes(), argument XmlReader must
1062 move to element. This fixes bug #69350.
1064 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
1066 * XmlParserContext.cs : PushScope() was accessing list out of range.
1068 2004-11-09 Atsushi Enomoto <atsushi@ximian.com>
1070 * DTDValidatingReader.cs, XmlTextReader.cs :
1071 needed more changes wrt XmlException.
1073 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1075 * DTDObjectModel.cs,
1081 Added support for 2.0 XmlException.SourceUri property. Improved
1082 exception handling to contain BaseURI everywhere in the parser.
1084 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1086 * XmlTextReader2.cs : added. It is used to serve public API, plus
1087 entity handling support.
1089 * DTDObjectModel.cs,
1090 DTDValidatingReader.cs,
1092 XmlParserContext.cs,
1094 Implemented XmlTextReader.EntityHandling and ResolveEntity(). To
1095 implement them, XmlTextReader in 2.0 itself is in XmlTextReader2.cs
1096 and XmlTextReader.cs contains Mono.Xml2.XmlTextReader which is the
1097 same as 1.x XmlTextReader. XmlTextReader2 switches entity reader and
1098 source reader, and never handles tokenization.
1099 The reason for "Mono.Xml2" is to avoid large changes in constructor.f
1101 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1103 * XmlAttribute.cs, XmlElement.cs : get_Name should consider name table.
1104 * XmlDocument.cs : use NameTable in Load() and LoadXml().
1105 * XmlReader.cs : In Create(), use NameTable in XmlReaderSettings.
1107 2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
1109 * XmlDocumentNavigator.cs : create rarely-used ArrayList later. This
1110 significantly improves XmlDocument-based XPath performance.
1112 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1114 * XmlTextReader.cs : Manually expanded some of AppendValueChar() and
1115 XmlChar.IsWhitespace() which are on critical points on performance
1116 (marked as FIXME, but it depends on JIT).
1118 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1120 * XmlTextReader.cs : Search xml:* attributes more efficiently.
1122 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1124 * XmlTextReader.cs : Reduced NameTable.Add() for prefixed names. First,
1125 ReadName() now returns atomized LocalName and Prefix. Second, to
1126 avoid extraneous split, SetProperties() now takes prefix and
1127 localName that might be given from ReadName(). Third, removed
1128 FillNames(). This optimizes "namespace-aware and prefixed document"
1129 parsing 10-20% faster.
1131 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1133 * XmlTextReader.cs :
1134 With related to AddNamespace(), there was extra string.StartsWith()
1135 calls. Now AttributeTokenInfo.FillNames() is splitted into
1136 FillPrefixAndXmlns() and FillNamespace(), and AddNamespace() is done
1137 at FillPrefixAndXmlns().
1139 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1141 * XmlTextReader.cs :
1142 Reduces LookupNamespace() call in FillNames(). This improves 6-7%
1143 speedup in some scenario.
1144 Code refactory; Removed unused code. AddAttribute() is used only for
1145 DTD, so renamed to AddDtdAttribute(). For PUBLIC and SYSTEM ids,
1146 FillNames() is not required. Two SetProperties() are ambiguous, so
1147 renamed one (that takes TokenInfo) as SetTokenProperties().
1149 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1151 * XmlParserContext.cs : rewrote; especially to avoid XmlSpace boxing.
1153 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1155 * XmlTextReader.cs : LookupNamespace() don't have to be called in
1156 ReadStartTag() to check prefix, since NamespaceURI is filled in
1157 FillNames(). 10% performance up by avoiding this extra check.
1159 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1161 * XmlValidatingReader.cs : fixed incorrect recursion between
1162 indexer and GetAttribute().
1164 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1166 * DTDReader.cs, DTDValidatingReader.cs, XmlTextReader.cs :
1167 When XmlTextReader is created with NodeType Element or Attribute,
1168 skip possible text declaration (that might be used for resolving
1169 entities) that specifies text encoding. With this fix, bug #61274
1170 must be regarded as fixed.
1172 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1174 * XmlNodeReader.cs : Reimplemented ResolveEntity(). It does not use
1175 XmlTextReader trick anymore. XmlNodeReader itself is used instead.
1177 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1179 * XmlNodeReader.cs : for NET_1_0 ReadInnerXml(), just use
1180 XmlReader.ReadInnerXmlInternal(). It should work fine.
1181 Ditto for ReadOuterXml().
1183 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1185 * XmlNodeReader.cs : removed unused/unreachable code. Simplify
1188 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1190 * XmlDocument.cs, XmlNodeReader.cs, XmlTextReader.cs,
1191 XmlValidatingReader.cs : Those readers could just implement internal
1192 interface IHasXmlParserContext.
1193 * XmlTextReader.cs, XmlValidatingReader.cs : this[] disappeared in 2.0.
1194 (XmlReader has them as virtual.)
1195 * XmlReader.cs : ReadAsObject() disappeared.
1196 * XmlWriter.cs : WriteFromObject() disappeared.
1198 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1200 * XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
1201 * XmlNode.cs : dustclean.
1203 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1205 * XmlDocument.cs : use XPathEditableDocument again.
1206 * XmlNode.cs : To be compatible with XPathEditableDocument, it should
1207 not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.
1209 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1211 * XmlChar.cs, XmlConstructs.cs :
1212 Switched again, for reducing per-process memory consumption.
1213 * XmlInputStream.cs :
1214 Just 64 bytes of buffer would be enough, for example like
1215 <?xml version="1.0" encoding="iso-8859-15" standalone="yes" ?>
1217 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1219 * IXmlDataEvidence.cs : disappeared.
1220 * XmlConvertDateTimeSerializationMode.cs : incorrect filename. removed.
1221 * XmlDateTimeSerializationMode.cs : added
1222 * NewLineHandling.cs : added
1223 * IXmlNamespaceResolver.cs, XmlNamespaceManager.cs :
1224 now 'atomizedNames' is obsolete.
1225 * XmlReaderSettings.cs, XmlWriterSettings.cs :
1226 Should not be sealed. Should not be ICloneable.
1228 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1230 * XmlDocument.cs : XPathEditableDocument looks broken. Just reverted
1231 to fix 2.0 corcompare.
1233 2004-10-26 Atsushi Enomoto <atsushi@ximian.com>
1235 * XmlTextReader.cs : Don't create attribute Value string on Read()
1236 (i.e. create string when get_Value() is invoked.) This optimizes
1237 some kind of XmlTextReader usage significantly such as Skip().
1239 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
1241 * XmlConvertDateTimeSerializationMode.cs : added.
1242 * XmlConvertDateTimeOption.cs : removed.
1244 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
1247 For net_2_0, CreateNavigator() returns editable XPathNavigator.
1248 * XmlReader.cs, XmlTextReader.cs, XmlValidatingReader.cs :
1249 They do not implement IXmlDataEvidence anymore.
1251 2004-10-18 Atsushi Enomoto <atsushi@ximian.com>
1253 * XmlTextReader.cs :
1254 Fixed CheckCharacters setter that always set false.
1255 CheckCharacters check is also required for ReadText(). This fixes
1258 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
1260 * XmlTextReader.cs : Inside DTD, '<' character inside XML comment
1261 is regatded as invalid. This fixes bug #68410. (Error message was
1264 2004-10-14 Atsushi Enomoto <atsushi@ximian.com>
1266 * XmlWriter.cs : CreateTextWriter() is private.
1268 2004-10-09 Atsushi Enomoto <atsushi@ximian.com>
1270 * XmlNodeReader.cs : LookupPrefix() was only after 2.0.
1272 2004-10-08 Atsushi Enomoto <atsushi@ximian.com>
1274 * XmlNamespaceManager.cs : GetNamespacesInScope() caused
1275 IndexOutOfRangeException (miscounted indexes).
1277 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
1279 * XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
1280 For attribute nodes, it should not use WriteSubtree() which does not
1281 support attribute nodes.
1283 2004-09-20 Gert Driesen <drieseng@users.sourceforge.net>
1285 * XmlValidatingReader.cs: Added deprecation message.
1287 2004-09-14 Atsushi Enomoto <atsushi@ximian.com>
1289 * XmlTextWriter.cs : Close() should not Flush() when the output is
1290 already closed. bug #65918 is fixed.
1292 2004-09-12 Atsushi Enomoto <atsushi@ximian.com>
1294 * XmlTextWriter.cs : CloseOutput must be true by default.
1296 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
1298 * XmlWriter.cs, XmlTextWriter.cs, XmlWriterSettings.cs :
1299 Implemented CheckCharacters and CloseOutput support.
1301 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
1303 * XmlReader.cs : evidence is always provided.
1304 * XmlWriter.cs, XmlTextWriter.cs :
1305 added support for ConformanceLevel and OmitXmlDeclaration.
1307 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
1309 * XmlTextReader.cs : Console.WriteLine() injected :(
1310 * XmlTextWriter.cs : It it partly supports XmlWriterSettings.
1311 * XmlWriter.cs : implemented Create().
1312 * XmlWriterSettings.cs : removed EncodeXmlBinary (deprecated).
1314 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1316 * XmlFactory.cs : removed (obsolete).
1318 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1320 * XmlNamespaceManager.cs : GetNamespacesInScope() ignored default
1321 namespace when scope is .ExcludeXml or .All.
1322 * XmlReader.cs : Implemented ValueType, SchemaInfo, ReadAsObject().
1323 Fixed ReadTypedValue() to call ReadValueAs().
1325 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1327 * XmlNamespaceManager.cs : Fixed GetNamespacesInScope() that returned
1328 inconsistent namespace pairs.
1330 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1332 * XmlReader.cs, XmlTextReader.cs :
1333 Added NET_2_0 CheckCharacters support.
1335 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
1337 * XmlNode.cs : GetEnumerator() does not have to create ChildNodes
1338 every time. Removed unused StringBuilder field.
1340 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
1342 * XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
1343 to read more (and might result in an error).
1345 2004-09-03 Atsushi Enomoto <atsushi@ximian.com>
1347 * XmlTextReader.cs : When Normalization is true, CRLF and CR should
1348 be converted to single LF. This should fix part of bug #62076.
1350 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
1352 * XmlWriter.cs : implemented WriteValue(object) for known types.
1354 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
1356 * XmlElement.cs : XmlAttributeCollection doesn't have to be created
1357 every time until the actual use. This sometimes optimizes
1358 attribute-less XML performance siginificantly.
1360 2004-08-27 Atsushi Enomoto <atsushi@ximian.com>
1362 * XmlAttribute.cs : some property getters threw NullReferenceException
1363 when the attribute is not added to an element.
1364 * XmlNode.cs : When a node is not appended to another node, BaseURI
1365 is empty. Bug #64120 is fixed.
1367 2004-08-26 Atsushi Enomoto <atsushi@ximian.com>
1369 * XmlTextWriter.cs : In CheckState(), don't create indentation string
1370 at every time. WriteIndent() now handles the indentation without
1373 2004-08-23 Atsushi Enomoto <atsushi@ximian.com>
1375 * XmlReader.cs, XmlTextReader.cs, XmlWriter.cs :
1376 eliminate MS.Internal.Xml.* classes.
1378 2004-08-21 Atsushi Enomoto <atsushi@ximian.com>
1380 * XmlElement.cs : set_InnerText was removing children incompletely.
1381 This fixes bug #63574.
1383 2004-08-20 Atsushi Enomoto <atsushi@ximian.com>
1385 * XmlTextReader.cs : Fixed EOF not to return true when it is just
1386 closed. Element and EndElement location is now adjusted to be the
1387 same as MS.NET does. This fixes bug #63505 and #63507.
1388 ResetState() now throws InvalidOperationException() as MS.NET does.
1390 * WriteState.cs : added missing 2_0 enumeration.
1391 * XmlReader.cs : ReadTypedValue() is virtual.
1392 * XmlValidatingReader.cs : ReadTypedValue() is override under 2_0.
1394 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
1396 * XmlValidatingReader.cs : Replaced XmlSchemaCollection with
1397 XmlSchemaSet. Added Settings property override
1399 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
1401 * DTDReader.cs : Replacing XmlSchemaDatatype .FromName(string) with
1402 .FromName(string, string) [going to remove former one; it is not
1403 good to support xdt:blah datatypes].
1405 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
1407 * DTDValidatingReader.cs,
1408 XmlValidatingReader.cs : implemented IXmlNamespaceResolver.
1409 * XmlNamespaceManager.cs,
1410 XmlNodeReader.cs : implemented GetNamespacesInScope().
1412 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
1414 * XmlCharacterData.cs,
1416 XmlNodeChangedEventArgs.cs :
1417 Implemented XmlNodeChangedEventArgs.OldValue and .NewValue.
1419 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
1421 * XmlWriter.cs : implemented settings-less Create().
1422 * XmlWriterSettings.cs : added some comments.
1424 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
1426 * XmlWriter.cs : implemented WriteNode(XPathNavigator, bool)
1427 incompletely, using XPathNavigator.ReadSubtree().
1429 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
1431 * XmlReader.cs : Implemented new 2.0 virtual members that used to be
1432 abstract in 1.x. Implemented ReadSubtree().
1434 2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
1436 * XmlTextReader.cs: Stop parsing when a null character is found.
1438 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
1440 * XmlReader.cs : Implemented missing MoveToNextSibling() and
1442 * XmlTextReader.cs : Added missing ReadValueAs() override (hmm...
1443 are they really worth overriding?)
1445 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
1447 * XmlWriter.cs : Added new WriteStartAttribute(string).
1449 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
1451 * XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
1452 * XmlQualifiedName.cs : Added internal static Parse().
1453 * XmlReader.cs : use XmlQualifiedName.Parse().
1454 * XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
1455 * XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
1456 Implemented 2.0 virtual methods that used to be abstract in 1.x.
1458 2004-07-26 Atsushi Enomoto <atsushi@ximian.com>
1460 * XmlReader.cs : Implemented ReadValueAsXxx() except for
1462 * XmlTextReader.cs : implemented them as well, just invoking
1463 base.ReadValueAsXxx ().
1464 * XmlWriter.cs : implemented some WriteValue() methods.
1466 2004-07-21 Atsushi Enomoto <atsushi@ximian.com>
1468 * XmlConvert.cs : added internal ToBinHexString() (BTW according to
1469 MSDN documentation it should be public).
1470 * XmlReader.cs : fixed one incorrect Create() overload. Added
1471 LookupNamespace (string, bool) (public for 2.0, internal for 1.x).
1472 * XmlTextReader.cs : Mostly implemented IXmlNamespaceResolver
1473 interface. Fixed HasLineInfo() access modifier on 2.0.
1474 * XmlNodeReader.cs : Mostly implemented IXmlNamespaceResolver
1475 interface. Wrote common namespace node lookup method and rewrote
1476 existing LookupNamespace().
1477 * XmlValidatingReader.cs : Fixed 2.0 IXmlLineInfo members' signatures.
1479 2004-07-20 Atsushi Enomoto <atsushi@ximian.com>
1481 * XmlNode.cs : When the argument node being inserted is the existing
1482 document element, it should not result in an error (since it should
1483 be first removed from document, thus no error should happen).
1485 2004-07-16 Atsushi Enomoto <atsushi@ximian.com>
1487 * XmlTextReader.cs : Fixed several problems on ReadBase64();
1488 Whitespaces should be ignored, and '=' was not skipped correctly.
1489 It caused "unexpected end of document" error at immediate close tag.
1491 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
1493 * Added MonoFIXAttribute.cs
1495 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
1497 * XmlWriter.cs : Added Create() stubs.
1498 * XmlWriterSettings.cs : Added missing property setters.
1499 * XmlValidatingReader.cs : added internal schemas setter.
1500 * XmlTextReader.cs : added internal XmlReaderSettings property setter.
1501 * XmlReader.cs : Halfly implemented Create().
1502 * DTDValidatingReader.cs : author information was missing.
1504 2004-07-11 Atsushi Enomoto <atsushi@ximian.com>
1506 * XmlConvertDateTimeOption.cs : it is NET_2_0.
1507 * IXmlNamespaceResolver.cs,
1508 XmlNamespaceScope.cs : Compile it in .net 1.1 (as internal).
1509 * XmlNamespaceManager.cs : Implement IXmlNamespaceResolver.
1511 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
1513 * XmlConvertDateTimeOption.cs : Forgot to change the content...
1515 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
1517 * ConformanceLevel.cs : Fixed integer value.
1518 * Added XmlConvertDateTimeOption.cs.
1519 * Removed XmlItemView.cs and XmlItemViewCollection.cs.
1521 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
1523 * IXmlNamespaceResolver.cs :
1524 Fixed return value of GetNamespacesInScope().
1525 * IXmlDataEvidence.cs,
1528 XmlValidatingReader.cs : fixed Evidence (it is not array anymore).
1530 Implemented virtual indexers, QuoteChar, and Dispose() (2.0 stuff).
1532 In net_2_0, indexers vanished from XmlNodeReader.
1533 In net_2_0, overriden QuoteChar vanished.
1534 * XmlReaderSettings.cs : set_NameTable is missing.
1535 * XmlTextReader.cs : Implemented ProhibitDtd.
1537 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
1539 * XmlAttributeCollection.cs : In .net 2.0, it became sealed class.
1540 * IXmlDataEvidence.cs : not "Evidences" but "Evidence".
1541 * XmlInputStream.cs : new csc rejected implicit int->char cast.
1542 * XmlNamespaceManager.cs : In net_2_0, LookupNamespace(string) and
1543 LookupPrefix(string) does not require argument string as atomized.
1544 Added HasNamespace (string, bool).
1545 * XmlReader.cs : Added Settings and SchemaInfo properties.
1546 * XmlReaderSettings.cs : Added NameTable. Throw XmlException when
1547 attempt to set Schemas.
1548 * XmlTextReader.cs : Fixed "Evidences" to "Evidence". new csc rejected
1549 implicit int->char cast.
1550 * XmlValidatingReader.cs : Fixed "Evidences" to "Evidence".
1552 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
1555 Close XmlReader only when it is created. This fixes bug #60809.
1557 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
1559 * DTDObjectModel.cs, DTDReader.cs, XmlConvert.cs, XmlDocument.cs,
1560 XmlException.cs, XmlParserInput.cs, XmlTextReader.cs,
1561 XmlTextWriter.cs : Globalization.
1562 * XmlNode.cs : Fixed error message that confused node type.
1564 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
1566 * XmlDocumentNavigator.cs : MoveToNext() should skip concatenating
1567 text/cdata/whitespace nodes.
1569 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
1571 * XmlInputStream.cs : Fixed encoding detection detected in xslt
1572 standalone tests. Removed extraneous code.
1574 2004-06-13 Atsushi Enomoto <atsushi@ximian.com>
1576 * XmlTextReader.cs : Character range check is always done. It is only
1577 character references for which check is not done when Normalization
1579 A bit more kind error message for multiple document element error.
1580 * XmlTextWriter.cs : Check if character is valid and entitize when
1583 2004-06-09 Atsushi Enomoto <atsushi@ximian.com>
1585 * XmlNamespaceManager.cs : The error message was improper.
1588 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1590 * XmlInputStream.cs: Initialize reads a larger buffer now when trying
1591 to guess the encoding.
1593 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
1595 * NameTable.cs : Fixed incorrect hash computation. Thanks to Ben.
1596 * XmlTextWriter.cs : Fixed remaining LookupNamespace() atom problem
1597 shown in xslt standalone tests.
1599 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
1601 * XmlTextWriter.cs : Improved indenting. For children of a mixed
1602 content element, it won't be indented.
1604 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
1606 * DTDObjectModel.cs,
1607 XmlDocument.cs : Close stream always.
1608 * XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
1609 * XmlTextReader.cs : Namespace check was not done. Some tests depends
1610 on this failure and to be fixed.
1612 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
1614 * XmlNamespaceManagre.cs : Fixed LookupNamespace() and LookupPrefix().
1615 They require that names are *already* atomized.
1617 XmlTextWriter.cs : use safe overload of LookupXXX().
1619 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
1621 * XmlTextReader.cs : Fixed version mismatch; ProhibitDtd should be
1624 2004-05-29 Gert Driesen (drieseng@users.sourceforge.net)
1626 * XmlTextReader.cs: Added ProhibitDtd property for NET 1.1 to match
1627 public API in MS.NET 1.1
1629 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1631 * XmlDocument.cs : Save() should indent only when PreserveWhitespace
1632 is false. Fixed bug #59155.
1633 Modified comment lines a bit.
1635 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1637 * XmlTextWriter.cs : WriteRaw() looks to proceed WriteState to Prolog
1638 (if it is Start). Fixed bug #59154.
1640 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
1642 * XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
1643 and don't bork against <foo></foo>. Also mofidied this method to skip
1644 <foo/>. Fixed bug #59142.
1645 Modified some comments on the code (FIXME->LAMESPEC et al).
1647 2004-05-24 Atsushi Enomoto <atsushi@ximian.com>
1649 * DTDReader.cs : When sequential PE references exist, the reader only
1650 expands the first one and in some cases the parser complaints the
1651 content (such like expecting name character but found '%').
1652 This fixes bug #58818.
1654 2004-05-23 Atsushi Enomoto <atsushi@ximian.com>
1656 * XmlNode.cs : RemoveChild() should check null argument.
1657 Normalize() was broken in some cases.
1659 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
1661 * ConformanceLevel.cs : added.
1663 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
1665 * XmlNodeChangedEventArgs.cs : the last patch looks true
1666 ONLY AFTER .NET 2.0.
1668 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
1670 * XmlReaderSettings.cs, XmlWriterSettings.cs : NET_2_0 were missed.
1672 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
1676 XmlItemViewCollection.cs,
1677 XmlReaderSettings.cs,
1678 XmlWriterSettings.cs : added new .NET 2.0 classes.
1680 * AsyncXmlTextWriter.cs,
1681 IXPathChangeNavigator.cs,
1684 XmlChangeFilters.cs,
1686 XmlNodeChangeType.cs,
1687 XPathChangeNavigator.cs,
1689 XPathDocument2ChangedEventAction.cs,
1690 XPathDocument2ChangedEventHandler.cs,
1692 XPathNavigator2.cs : removed. (They are only in .NET 1.2)
1694 * XmlWriter.cs : added new NET_2_0 WriteElementString().
1696 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
1698 * XmlNodeChangedEventArgs.cs : not properly inherited from EventArgs.
1700 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
1702 * XmlConvert.cs : Fixed ToString(TimeSpan) that didn't handle Hour
1703 correctly. This fixes bug #57786.
1705 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
1707 * XmlValidatingReader.cs : explicitly mark as MonoTODO for XDR (not
1710 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
1712 * DTDObjectModel.cs,
1718 XmlUrlResolver.cs : removed reference to Mono.Xml.
1719 Made Mono.Xml.* classes internal.
1720 * XmlDocument.cs : output xml declaration for TextWriter output in Save()
1721 * XmlElement.cs : Name character check should be done in .ctor().
1722 * XmlNamespaceManager.cs : Removed dangerous internal .ctor()
1724 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
1726 * XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
1727 node can be it as well) and added check for Attributes existence
1728 in GetAttribute() and MoveTo*Attribute().
1730 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
1732 * XmlTextWriter.cs : comment not in the content state is indented.
1733 This fixes bug #58247.
1735 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
1737 * XmlTextWriter.cs: In WriteStartAttribute, when the prefix is xmlns and
1738 the name is empty, convert it to a xmlns attribute.
1740 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
1742 * XmlTextReader.cs : don't use NET_1_0.
1744 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
1746 * XmlComment.cs. XmlProcessingInstruction.cs : missing commits.
1748 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
1750 W3C DOM compliant read-only check support (buggy part in MS.NET).
1753 XmlCharacterData.cs,
1757 XmlSignificantWhitespace.cs,
1759 : CloneNode() - set read-only when copied node is read-only.
1760 Check IsReadOnly on attempt to modify value.
1762 XmlEntityReference.cs : Set descendant nodes read-only.
1763 * XmlAttributeCollection.cs,
1765 : Fixed incompatible exception type.
1766 * XmlEntityReference.cs : CloneNode() should not pass an empty string
1768 * XmlEntityReference.cs,
1769 XmlProcessingInstruction.cs : Check XML name validity.
1770 * XmlText.cs : CloneNode() does not have to check children.
1772 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
1774 * XmlDeclaration.cs : More strict check on InnerText and Value.
1776 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
1778 * DTDReader.cs, XmlConvert.cs, XmlDeclaration.cs, XmlImplementation.cs,
1779 XmlNode.cs : Culture independency fix.
1781 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
1783 * XmlEntityReference.cs : Added XPathNodeType (just for workaround).
1784 This should really fix bug #57248.
1786 2004-04-20 Atsushi Enomoto <atsushi@ximian.com>
1788 * XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
1789 only an EntityReference (not navigatable) child. Bug #57248 fixed.
1790 * XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
1791 instead of WriteAttributes() only for MS.NET behavior compatibility.
1792 This change makes SgmlReader usable (due to SgmlReader bug).
1794 2004-04-10 Atsushi Enomoto <atsushi@ximian.com>
1796 * XmlParserContext.cs : Fixed .ctor() not to reference null namespace
1797 manager. This fixes bug #56770.
1799 2004-04-06 Atsushi Enomoto <atsushi@ximian.com>
1801 * DTDReader.cs : In ProcessDTDSubset(), 1)error message was
1802 generated with incorrect stream character, 2)entity nest check
1803 should not depend on line info which might not be supplied, 3)
1804 empty PE should be skipped.
1805 * XmlParserInput.cs : use index for StringBuilder instead of calling
1806 Remove() many times. This highly optimizes DTD parser.
1808 * XmlAttribute.cs : removed commented code.
1809 * XmlEntity.cs : removed unused field.
1811 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
1813 * DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList
1814 only when they are required.
1816 XmlParserInput.cs : raw tag string now don't have to be kept, while
1817 it cost so much. Removed unused code. 20% to 30% memory got saved.
1818 * XmlNotation.cs : removed unused code.
1819 * XmlTextReader.cs : Removed unused code. ReadString() now uses
1820 XmlReader's internal method. Fixed BaseURI to be conformant with
1821 W3C XML InfoSet and (subsequently) xml:base specification (i.e.
1822 reflect xml:base attribute correctly).
1824 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
1826 * XmlAttribute.cs : get_Value should return all children's value.
1827 * XmlCharacterData.cs : DOM's substring does not raise an error when
1828 startIndex + count exceeds the length of Data.
1829 * XmlNamedNodeMap.cs : SetNamedItem() returns the new child when it
1830 does not replace another named item.
1831 * XmlElement.cs : with related to the XmlNamedNodeMap change,
1832 SetAttributeNode() is required to fix as to return null when it does
1833 not replace existing attribute.
1835 2004-03-31 Atsushi Enomoto <atsushi@ximian.com>
1837 * XmlDocumentNavigator.cs : When this instance is created from xmlns
1838 attributes, it should be Namespace node.
1840 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
1842 * XmlReader.cs : ReadInnerXml() should progress reader when it is on
1843 an empty element. This fixes bug #56064.
1845 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
1847 * DTDReader.cs : In some places sequential parameter entity was
1848 incorrectly skipped (and caused invalid result).
1850 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
1852 * XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
1853 namespace nodes which has the same name as already-iterated nodes.
1854 Also xmlns='' should not be selected, and once it appeared, default
1855 namespace should not be selected anymore.
1857 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
1859 * XmlCharacterData.cs : ReplaceData() should reject negative integer
1860 value for count argument.
1861 * XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
1862 On RemoveNamedItem(), default attribute value should be restored.
1864 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
1866 * XmlAttributeCollection.cs : Remove() should throw an exception when
1867 target attribute is not included in the collection.
1868 * XmlDocument.cs : ImportNode() should reject null node.
1869 * XmlNode.cs : Fixed type of exception for invalid insertion.
1870 It should throw an exception not only when the owner document of the
1871 reference element is different but its parent element is different.
1872 Some error message improvement.
1874 2004-03-21 Atsushi Enomoto <atsushi@ximian.com>
1876 * XmlReader.cs : ReadInnerXml() incorrectly tried to get output xml.
1877 This fixes bug #55856.
1879 2004-03-20 Atsushi Enomoto <atsushi@ximian.com>
1881 * XmlTextWriter.cs : Fixed indentation on CDATA. This fixes bug #55828.
1883 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
1885 * XmlImplementation.cs : HasFeature() returns true when strVersion
1888 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
1890 * XmlWhitespace.cs : Fixed WriteTo(). Whitespace nodes should be
1891 written regardless of document's PreserveWhitespace.
1893 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
1895 * XmlDocumentNavigator.cs : Value should return concatenated string for
1896 sequential text nodes. Considered detached nodes, the result of
1897 MoveToParent() should be checked.
1899 2004-03-15 Atsushi Enomoto <atsushi@ximian.com>
1901 * XmlReader.cs : ReadInnerXml()/ReadOuterXml() should not bork when
1902 the reader is on EndElement. Patch by Jean-Marc Andre.
1904 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
1906 * XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
1907 to return attribute node. It affects on IHasXmlNode.GetNode() and
1908 SelectNodes()/SelectSingleNode().
1910 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
1912 * XmlImplementation.cs : fixity fix (I need NUnit runnable ;)
1914 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
1916 * XmlImplementation.cs : forgot to commit (renaming internal case)
1918 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
1920 * XmlDocument.cs : Implementation should not return null.
1922 2004-02-25 Atsushi Enomoto <atsushi@ximian.com>
1924 * XmlTextWriterOpenElement.cs : Reset() should reset _all_ fields.
1925 This fixes indentation bug.
1927 2004-02-19 Atsushi Enomoto <atsushi@ximian.com>
1929 * XmlTextWriter.cs : Fixed bugzilla #54554 (incorrent end tag output).
1931 2004-02-16 Atsushi Enomoto <atsushi@ximian.com>
1936 DTDValidatingReader.cs : made classes internal.
1937 * XmlDocument.cs : removed extra FIXMEs.
1938 * XmlNamedNodeMap.cs,
1941 Fixed incorrect method signature.
1943 2004-02-13 Atsushi Enomoto <atsushi@ximian.com>
1945 * DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs :
1946 say goodbye to sys.collections.specialized.
1947 (replaced the classes in that namespace with ArrayList or Hashtable)
1949 2004-02-12 Atsushi Enomoto <atsushi@ximian.com>
1951 * XmlReader.cs : For performance reason, XmlTextReader now uses
1952 base ReadInnerXml() and don't store currentTag array unnecessarily.
1953 * XmlTextReader.cs :
1954 - Fixed GetAttribute(int) that might cause index out of range.
1955 - Now it consumes the text reader by reading blocks, as MS.NET does.
1956 Modified GetRemainder(), PeekChar(), ReadChar() and so on.
1957 - Now it doesn't create Value string for linked nodes, unless it
1958 is actually required.
1959 - some code refactory.
1961 2004-02-11 Atsushi Enomoto <atsushi@ximian.com>
1963 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs :
1964 Reduced creation of openlElement. It also saves much memory.
1966 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
1968 * XmlNode.cs : ChildNodes should not create XmlNodeListChildren
1969 every time. This fix heavily improved performance.
1971 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
1973 * XmlAttributeCollection.cs : set owner element as parent on removal
1974 events (though they are not "parent" in infoset or dom context)
1975 * XmlElement.cs : Don't remove attributes twice (raises extraneous
1977 * XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
1978 Added NET_2_0 members.
1980 2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
1982 * DTDObjectModel.cs : Limit external entity reference from DTD by 256.
1983 foreach elimination. DTDParameterEntityDeclaration should set Root.
1984 Compute attribute default value without raising an error.
1985 (for non-error reporting reader)
1986 * DTDReader.cs : Fixes for the above fixes. foreach elimination.
1987 * DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
1988 XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
1989 XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
1990 XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
1991 XmlText.cs : foreach elimination.
1992 * XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
1993 foreach elimination. Removed unnecesary methods.
1994 * XmlTextReader.cs : code format refactory. Optimized some methods.
1995 foreach elimination. Replaced Stack with string array.
1996 Replaced StringBuilder with char array. Removed unnecessary methods.
1998 2004-02-06 Atsushi Enomoto <atsushi@ximian.com>
2000 * DTDValidatingReader.cs : Fixed MoveToElement() that causes incorrect
2001 IsDefault and Depth.
2002 * XmlAttribute.cs : Fixed .ctor(). Omit more namespace check when
2003 checkNamespace = false.
2004 * XmlNamedNodeMap.cs : Fixed SetNamedItem() to raise events.
2005 * XmlAttributeCollection.cs : Reimplemented InsertAfter to use
2006 InsertBefore() (similar to XmlNode).
2007 * XmlDocument.cs : Added internal .ctor(). Reimplemented ReadNode()
2008 as recursive, to make event order compatible.
2009 * XmlDocumentType.cs : Use SetNamedItem() (to raise events).
2010 * XmlElement.cs : Some refactory. Fixed SetAttributeNode() with
2011 string name to block prefixed name.
2012 * XmlEntity.cs : Don't raise events on setting contents.
2013 * XmlNode.cs : Some refactory. Added raiseEvent argument to internal
2015 * XmlEntityReference.cs : related fix for XmlNode change.
2016 * XmlTextReader.cs : When the reader is on "attributes" of xmldecl or
2017 doctype, Depth 1 lower than usual attribute. Split large function.
2019 2004-02-05 Atsushi Enomoto <atsushi@ximian.com>
2021 * XmlConvert.cs : ToSingle() and ToDouble() should be culture
2022 independent. Patch by Rodolfo Campero.
2024 2004-02-04 Atsushi Enomoto <atsushi@ximian.com>
2026 * DTDObjectModel.cs : Never expand entity on ScanEntityValue().
2027 * DTDValidatingReader.cs : XmlDeclaration node requires attributes
2031 XmlDocumentFragment.cs,
2037 Added namespace checking flag (required for such xml readers
2038 that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
2039 * XmlDocumentType.cs,
2041 XmlEntityReference.cs : The children of Entity and EntityReference
2042 became correct. They now holds parsed nodes, but it is only when
2043 they are appended to the document.
2044 * XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
2045 boolean checkNodeType argument. This method also tries to create
2046 Entity's and EntityReference's child nodes. Also added internal
2047 RemoveChild() with boolean checkNodeType argument.
2048 * XmlNodeReader.cs : Quick hack for ResolveEntity() that became
2049 broken with these changes. use InnerXml as input to entityReader.
2050 * XmlTextReader.cs : XmlDeclaration's value LocalName should be the
2051 same as Name. The names of DTD's pseudo attributes should be empty.
2052 Fixed DTD node's Depth (was regarded as attribute value's depth).
2054 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2056 * XmlTextReader.cs, DTDReader.cs : fixity fix ;)
2058 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2060 * ChangeLog : Fixed incorrect description that should be written for
2061 DTDValidatingReader.cs but written for DTDReader.cs.
2062 * DTDValidatingReader.cs : Fixes described in the last DTDReader fix.
2065 XmlConstructs.cs : Made XmlChar and XmlConstructs equivalent and
2066 replaced XmlChar with XmlConstruts, renaming "XmlChar" to
2067 "XmlCharCompact" and "XmlConstructs" to "XmlChar".
2068 (XmlChar will be used for compact framework.)
2069 * DTDReader.cs, XmlParserInput.cs, XmlTextReader.cs :
2070 XmlChar related changes. Support for surrogate pair.
2071 It cannot use TextReader's peek anymore (for surrogate pair).
2072 Character range check for PI value, attribute value, text
2073 * XmlTextWriter.cs : Change openElements from Stack to ArrayList.
2074 (It calls ToArray() every time.)
2076 2004-02-03 Alon Gazit <along@mainsoft.com>
2077 * XmlNamedNodeMap - now Item(int index) returns null for nodeList.Count
2078 instead of throwing ArgumentOutOfRangeException.
2080 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2082 * XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
2083 predefined entity names.
2084 * DTDObjectModel.cs : DTDxxxCollection now derives from
2085 - DTDCollectionBase that derives from DictionaryBase.
2086 - "Literal value" and "replacement text" are handled differently.
2087 - Throw XmlException when external entity could not be resolved.
2088 - Return ReplacementText for EntityValue.
2090 - Support IXmlLineInfo.
2091 - Fixed IGNORE section handling to be more strict.
2092 - Compute replacement text on reading entity declarations.
2093 - Don't expand char references before getting literal entity value.
2094 - Check not allowed parameter entity inside internal subset.
2095 * DTDValidatingReader.cs :
2096 - Added ValidateWhitespaceNode() to check whitespace's Validity
2097 Constraints on external elementdecl and standalone document.
2098 - When invalid data against its datatype was found, don't throw
2100 - Other code refactory.
2101 * XmlTextReader.cs :
2102 - Check for invalid Text pattern "]]>" should not depend on line
2103 info since it might not be supported.
2104 - Check referenced character's validity (WFC).
2106 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
2108 * DTDReader.cs : Added Normalization. Parameter Entity declaration
2109 should block invalid characters. (GEDecl should be fixed as well.)
2110 * XmlConstruct.cs : Should allow surrogate chars.
2111 * XmlNotation.cs : When prefix is empty (i.e. almost all cases)
2112 Name should not add ':'. Patch by Boris Kirzner.
2113 * XmlTextReader.cs : Modified private ReadCharacterReference() to
2114 return the character (or -1 when should not return anything).
2115 Now Text character reference are checked their character range.
2116 Set DTDReader.Normalization as well as the reader itself.
2118 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
2120 * DTDReader.cs : Make sure that parameter entities are not allowed
2121 inside internal subset unless it appears as a markupdecl.
2122 * DTDValidatingReader.cs : ENTITY or ENTITIES type attributes must have
2123 a value that indicates *unparsed* entity (i.e. NDATA required).
2125 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
2127 * XmlTextWriter.cs : quick performance fix.
2128 Reduced memoty allocation (e.g. 12% when writing XMLSchema.xsd.)
2130 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
2132 * DTDObjectModel.cs :
2133 - DTDNode's BaseURI should not always refer to that of DTD's.
2134 - Use absolute URI's .ToString() instead of AbsolutePath.
2135 * DTDReader.cs : Throw XmlException for illegal character references.
2136 * DTDValidatingReader.cs :
2137 - Share XmlResolver when the actual reader is XmlTextReader.
2138 (MS's XmlValidatingReader and XmlTextReader do this.)
2139 - Added its own EntityHandling property.
2140 * XmlValidatingReader.cs : Share XmlResolver with XmlTextReader.
2142 XmlTextReader.cs : Added new NET_2_0 members.
2143 * XmlElement.cs : Removed extra lines (caused by XmlTextWriter bugs).
2144 * XmlEntityReference.cs : Forgot to add, the real fix by Boris.
2146 2004-01-23 Atsushi Enomoto <atsushi@ximian.com>
2148 * XmlWriter.cs, XmlTextWriter.cs :
2149 Several namespace related fixes.
2150 - Current element's NamespaceURI should be immediately available
2151 after the call of WriteStartElement() for LookupPrefix(), so
2152 AddMissingElementXmlns() only affects on output. This is
2153 now identified by shouldCheckElementXmlns field.
2154 - Attribute's overraped xmlns should be ignored for LookupPrefix(),
2155 Especially, when the owner element is written with the default
2156 namespace. HOWEVER, the attribute should be *written*. This is
2157 identified by shouldAddSavedNsToManager field.
2158 - In AddMissingElementXmlns(), non-empty prefix namespace was not
2159 checked user-written attributes.
2160 - XmlWriter.WriteAttributeString() never supplies namespace URI for
2161 xmlns attributes for other versions than NET_1_0. Instead, added
2162 ns check logic in WriteStartAttribute() only with NET_1_0.
2163 - WriteEndAttribute() should reject zero-length namespace for
2164 non-default xmlns declarations.
2165 - LookupPrefix() should reject argument null and empty.
2167 (added 2004-01-24 : forgot to mention more)
2168 - WriteAttributeString() w/o namespace should supply null, not ""
2169 - Added .NET 1.2 members.
2170 - Regard any name with "xml" prefix as in "namespace for XML".
2172 2004-01-22 Atsushi Enomoto <atsushi@ximian.com>
2174 * XmlElement.cs : Reverted previous fix since it broke monodoc web
2177 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
2179 * XmlNode.cs : When adding a node to child list, it should reject its
2180 ancestors. Patch by Boris Kirzner.
2181 * XmlNodeReader.cs : Related fix to the fix above. It should not move
2182 to children of XmlEntityReference nodes.
2183 * XmlTextWriter.cs : FixedWriteStartElement() not to write default
2184 namespace when ns is null (while ns is "", it writes default ns).
2185 * XmlElement.cs : Fixed WriteTo() to call WriteStartElement(localName)
2186 when NamespaceURI is an empty string.
2188 2004-01-14 Atsushi Enomoto <atsushi@ximian.com>
2190 * XmlAttribute.cs : when set a value, it is no longer default
2191 (even if the value is the same as default value).
2192 * XmlAttributeCollection.cs : Remove() should recover default attribute
2193 value to default, not specified value.
2194 Patch by Boris Kirzner (modified a bit)
2195 * XmlDocument.cs : Reference to undeclared entity is not allowed in
2196 Load(), while allowed in ReadNode(). Added such distinguishing logic.
2198 2004-01-13 Atsushi Enomoto <atsushi@ximian.com>
2200 * XmlValidatingReader.cs : Throw exception only in case of errors.
2201 Added NET_2_0 Evidences property.
2203 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
2205 * XmlElement.cs : Fixed .ctor(). Default attribute was not treated as
2206 Specified = false. Patch by Boris Kirzner.
2208 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
2210 * XmlException.cs : Fixed incorrect .ctor signature.
2211 * XmlParserInput.cs : Fixed in sync with the above fix.
2213 2004-01-08 Atsushi Enomoto <atsushi@ximian.com>
2215 * XmlAttribute.cs, XmlElement.cs :
2216 Fixed incorrect protected .ctor modification.
2218 2004-01-08 Nick Drochak <ndrochak@ieee.org>
2220 * DTDValidatingReader.cs: Removed unused variable
2222 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2224 * XmlNamespaceManager.cs : Implemented .NET 1.2 methods that take
2225 atomizedNames argument.
2226 * XmlTextReader.cs : Use new namespace manager methods.
2227 Reduced NameTable.Add().
2228 * DTDObjectModel.cs : fixed incorrectly commented-out line.
2230 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2232 * XmlAttribute.cs, XmlDocument.cs, XmlElement.cs :
2233 set_Prefix should atomize to name table.
2234 Avoided extraneous atomization attempt a bit.
2236 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2238 * DTDObjectModel.cs, DTDReader.cs, XmlSecureResolver.cs :
2239 avoiding obvious exception.
2240 * DTDReader.cs, XmlTextReader.cs : Some optimization.
2241 Avoided extraneous PeekChar() and reduced name string creation.
2243 2004-01-05 David Sheldon <dave-mono@earth.li>
2245 * XmlTextReader.cs: Fixed constructors taking string url to not
2246 loose the absolute part of the path.
2248 2004-01-04 Atsushi Enomoto <atsushi@ximian.com>
2250 * XmlDocument.cs : Fixed Load() to set XmlResolver correctly. Patch
2251 by Benjamin Jemlich.
2252 Assure closing XmlTextReader which are internally used.
2254 2004-01-03 Atsushi Enomoto <atsushi@ximian.com>
2256 * XmlTextWriter.cs : trivial character-case fix
2257 * XmlUrlResolver.cs : It downloads network stream content at
2258 GetEntity() call. You can try like below:
2259 for (int i=0;i<100;i++) u.GetEntity(url, null, typeof(Stream));
2261 2003-12-23 Atsushi Enomoto <atsushi@ximian.com>
2263 * XmlNamedNodeMap.cs : Fixed internal SetNamedItem(node, pos) to set
2264 replacing node correctly. This fixes bug #52453.
2266 2003-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2268 * XmlDocument.cs, XmlElement.cs, XmlNode.cs :
2269 GetElementsByTagName() - Fixed bugzilla #52419, refactored,
2270 and moved private implementation methods to XmlNode class.
2272 2003-12-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2274 * XmlTextWriter.cs :
2275 Element's namespace should be escaped as usual attribute.
2277 2003-12-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2279 * XmlTextWriter.cs : Indentation between xmldecl and doctype.
2280 * DTDValidatingReader.cs : AttList null reference fix.
2282 2003-12-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2284 * DTDValidatingReader.cs : Validity check and entity expansion were
2286 * DTDObjectModel.cs, DTDReader.cs, XmlInputStream.cs :
2287 Going to remove XmlInputStream. XmlStreamReader might be replacable.
2289 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2291 * XPathDocument2ChangedEventHandler.cs : fixed incorrect argument.
2292 * Moved UpdateEventHandler.cs and XmlUpdateEventArgs.cs to sqlxml.
2294 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2296 * XmlTextReader.cs : BaseURI was broken. This fixes bug #52098.
2298 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2300 * XmlUrlResolver.cs : GetEntity() does not return direct network stream
2301 that may hold up connection. Now it reads up all the content stream.
2303 2003-12-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2305 * XmlAttributeCollection.cs,
2306 XmlElement.cs : Fixed bug #51415.
2307 When adding attribute to an element using Attributes, it failed.
2309 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2311 * XmlDocument.cs : Fixed ReadNode() to call AppendChild() to document
2312 after setting all attribute nodes. Modified ReadNode() to handle
2313 Depth comparison and error handling (!= to <). It allows MS's
2314 SgmlReader bug that returns incorrect Depth.
2316 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2318 * XmlDocumentNavigator.cs : Fixed MoveToNextAttribute (and
2319 MoveToNextNamespace) that might result in NullReferenceException.
2320 patch by Sanjay Gupta. This fixed bug #51941 (and possibly #51415)
2322 2003-12-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2324 * XmlUrlResolver.cs : Update with recent System.Uri change. This fixes
2325 bugzilla #51808 (patch by Jeroen Zwartepoorte, a bit modified).
2327 2003-12-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2329 * XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
2330 * XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
2331 This may fix bug #51415.
2333 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2335 * XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".
2337 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2339 * XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
2340 shouldn't expect non-empty element content. This will fix bug #48287.
2342 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2344 * XmlTextWriter.cs : When element's namespace should be overwritten by
2345 one of its attribute, if exist as such. This fixes bug #51305.
2347 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2349 * DTDValidatingReader.cs : Fixed ReadContent() which may result in
2350 invalid additional Text node.
2352 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2354 * XmlTextWriter.cs :
2355 On WriteProcessingInstruction(), ArgumentException() is expected ;-)
2357 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2359 * XmlTextWriter.cs :
2360 WriteProcessingInstruction() should check name validity.
2361 AddMissingElementXmlns() should allow namespace emission even if it
2362 is identical to existing one.
2364 2003-11-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2366 * XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.
2368 2003-11-20 Eran Domb <erand@mainsoft.com>
2370 * XmlTextWriter.cs (WriteStartAttribute) : Check if the ket already exists in the newAttributeNamespaces table
2371 before trying to add it to the table.
2373 2003-11-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2375 * DTDValidatingReader.cs : Replaced entity should not treat whitespaces
2377 * XmlNode.cs : Removed extraneous MonoTODOs.
2379 2003-11-17 Jackson Harper <jackson@ximian.com>
2381 * XPathEditor.cs: .net 1.2 only
2383 2003-11-17 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2385 * AsyncXmlTextWriter.cs, IXPathChangeNavigator.cs, IXPathEditor.cs,
2386 IXPathNavigator.cs, IXmlDataEvidence.cs, IXmlNamespaceResolver.cs,
2387 UpdateEventHandler.cs, XPathChangeNavigator.cs, XPathDocument2.cs,
2388 XPathDocument2ChangedEventAction.cs,
2389 XPathDocument2ChangedEventHandler.cs, XPathEditor.cs,
2390 XPathNavigator2.cs, XmlChangeFilters.cs, XmlInfoItemType.cs,
2391 XmlNamespaceScope.cs, XmlNodeChangeType.cs, XmlQualifiedNameTable,cs,
2392 XmlQueryDialect.cs, XmlUpdateEventArgs.cs
2393 : Added .NET 1.2 classes (for convenience of ObjectSpaces stubbing).
2395 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2397 * XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
2398 to skip XmlEntityReference.
2399 * XmlTextWriter.cs : Fixed AddMissingElements() and
2400 WriteStartAttribute() not to emit extraneous xmlns.
2402 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2404 * XmlTextWriter.cs : Skip multiple xmlns when element and any of
2405 attributes have the same xmlns values.
2406 WriteEndElement() allows open attribute (calles WriteEndAttribute()).
2407 Indentation should be inserted between ">" and "</xxx>" .
2409 2003-11-02 Pedro MartÃnez Juliá <yoros@wanadoo.es>
2411 * XmlConvert.cs: Only parse INF/-INF/NaN. Other Infinty or NAN
2412 numbers are parsed with the respective ::Parse method.
2414 2003-11-01 Pedro MartÃnez Juliá <yoros@wanadoo.es>
2416 * XmlConvert.cs: Revert my last change. INF and -INF must be
2417 processed here because Double::Parse and Single::Parse doesn't
2418 understand anything of parsing [-]INF.
2420 2003-11-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2422 * XmlDocument.cs : Save(Stream) should not close the stream.
2424 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2426 * DTDReader.cs, DTDValidatingReader.cs, XmlInputStream.cs,
2427 XmlTextReader.cs : More cleanup.
2428 * XmlDocument.cs : Removed CheckName(). Code cleanup.
2429 * XmlElement.cs : .ctor() now adds default attributes (if required).
2430 * XmlAttribute.cs, XmlElement.cs, XmlEntity.cs, XmlEntityReference.cs,
2431 XmlNotation.cs : Now uses OwnerDocument's NameTable.
2433 2003-10-25 Pedro MartÃnez Juliá <yoros@wanadoo.es>
2435 * XmlConvert.cs: Support for the sign in double and single. The
2436 processing of the infinites and nan numbers are more complex than
2437 comparing to "INF" so we must let Double::Parse and Single::Parse
2440 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2442 * DTDValidatingReader.cs : Now it handles whitespace entity as
2444 * XmlConvert.cs : As to NIST testcases, exponential support on single
2445 and double floating point numbers.
2446 * XmlValidatingReader.cs : If it IsDefault, then line number and line
2449 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2454 XmlWriter.cs : Fixed incorrect access modifier.
2455 * XmlTextWriter.cs : Imported state variable from XmlWriter.
2456 * DTDValidatingReader.cs : Removed extraneous MonoTODO.
2457 * XmlConvert.cs : Implemented ToTimeSpan().
2458 Modified ToDateTime() to reuse the same array.
2460 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2462 * XmlAttributeCollection.cs : Fixed synchronization stuff.
2463 * XmlConvert.cs : Added two FromBinHexString() methods.
2464 * XmlTextReader.cs : Modified to use one of the above method.
2465 * XmlValidatingReader.cs : XsdValidatingReader.XmlResolver will be
2466 disabled (in the next commit), so resolver won' be set to it.
2467 Attempt to validate against XDR now throws NotSupportedException.
2469 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2471 * XmlChar.cs : added WhitespaceChars, used in common.
2476 XmlTextWriter.cs : String.Trim()
2477 * XmlConvert.cs : shifted XmlConstructs to XmlChar.
2478 * XmlTextReader.cs : Implemented Normalization.
2480 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2482 * XmlNode.cs : GetPrefixOfNamespace() also contained a bug similar to
2483 GetNamespaceOfPrefix() fixed at 2003-10-13.
2484 * XmlTextReader.cs : ReadBase64() should keep incomplete base64 block
2485 which remained by previous call of this method.
2486 * XmlUrlResolver.cs : Added assertion for file Uri path's absoluteness.
2487 * XmlValidatingReader.cs : Notice about intention of XDR won't be
2488 supported (at least in Mono 1.0).
2490 2003-10-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2492 * XmlDocument.cs : CloneNode() does not copy PreserveWhitespace.
2493 * XmlWriter.cs : Calling WriteNode() with XmlReader whose state is
2494 XmlDeclaration now calls WriteProcessingInstruction(). This fixes
2495 testcase XmlWriterTests.WriteNodeFullDocument().
2496 * XmlTextWriter.cs : Added LAMESPEC comments related to above.
2498 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2500 * XmlDocument.cs : Fixed bugzilla #49607. Save() outputs XML
2501 declaration even though there is no XmlDeclaration child.
2502 * XmlTextReader.cs : Fixed Init() so that ResetState() should work.
2504 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2506 * XmlTextWriter.cs : Implemented WriteSurrogateCharEntity().
2507 Reverted my recent extraneous check in WriteStartAttribute().
2509 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2511 * XmlNode.cs : GetNamespaceOfPrefix() should check Attributes existence.
2512 And it should throw ArgumentNullException.
2514 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2516 * XmlAttribute.cs : Fixed InnerText that did not removed its content
2517 if there is two or more children.
2518 * XmlNode.cs : XmlNode.cs : Fixed bugzilla #49580 (1)to return "",
2519 (2)not to compare NodeType for detached nodes, (3)optimization to
2520 compare element's prefix.
2521 * XmlSecureResolver.cs : Removed extraneous members.
2523 2003-10-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2525 * Added DTDReader.cs. It is almost importation of XmlTextReader.
2526 * DTDObjectModel.cs :
2527 - More .NET-ism. Properties took place of fields.
2528 - Imported PE set from XmlTextReader. Added location info.
2529 - Added DTDEntityBase common to PE and GE.
2530 - More correct text declaration handling with new XmlTextReader.
2531 * DTDValidatingReader.cs :
2532 - Now uses entity resolving XmlTextReader to validate attributes
2533 correctly. Implemented standalone
2534 - Standalone and default related validity constraints check.
2535 * XmlImplementation.cs: Implemented HasFeature().
2536 * XmlNode.cs : Implemented Supports().
2537 * XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
2538 * XmlParserInput.cs : Removed extraneous members.
2539 * XmlTextReader.cs :
2540 - All DTD related functionality now goes to DTDReader.cs
2541 - It became old simple TextReader input style.
2542 - Implemented GetRemainder().
2543 - Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
2544 additional new private method ReadUntilEndTag().
2545 - Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
2546 ReadXmlDeclaration() now became simple.
2547 - More strict entity reference check at SetEntityReferenceProperty()
2548 - Removed extraneous members.
2549 * XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.
2551 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2553 * XmlTextReader.cs: when we get an unexpected EOF in ReadContent, set
2554 the state before throwing the exception if depth > 0.
2556 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2558 * XmlAttribute.cs : Removed extraneous MonoTODO.
2559 * XmlTextWriter.cs : Implemented WriteBinHex() and WriteChars().
2560 WriteStartElement() and WriteStartAttribute() should ignore Prefix
2561 if namespace uri is not specified.
2563 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2565 * XmlDocumentFragment.cs,
2567 XmlEntityReference.cs : Removed extraneous MonoTODO.
2568 * XmlNode.cs : Implemented Normalize().
2569 * XmlNodeReader.cs :
2570 - AttributeCount and HasAttributes should return its owner element's
2571 value, to be consistent with XmlTextReader.
2572 - Fixed Depth to reflect correct attribute/attribute-value iteration.
2573 - simplified ownerElement and HasValue.
2574 - Prefix won't return null.
2575 - MoveToElement() should also work against attribute value nodes.
2576 * XmlTextReader.cs : MoveToElement() should return false if it is
2577 positioned at element itself.
2579 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2581 * XmlTextReader.cs : Improved SignificantWhitespace handling.
2583 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2585 * XmlSecureResolver.cs : Implemented basic feature.
2587 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2589 * XmlUrlResolver.cs : Should work with null type argument.
2591 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
2593 * XmlTextWriter.cs : An attribute can require a prefix for the default
2594 namespace, so we need to store the prefix as well as the namespace.
2596 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2598 * DTDValidatingReader.cs : Simplified to use
2599 XmlSchemaUtil.GetParserContext().
2600 * XmlValidatingReader.cs : ValidationType.Auto should always use
2601 XsdValidatingReader because xsi:schemaLocation might be used.
2603 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2605 * XmlTextReader.cs : Attribute value token properties were incorrectly
2606 set by the linked node.
2608 2003-09-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2610 * XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
2611 considers such case that target node was not adapted to the document.
2612 * XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
2613 * XmlTextWriter.cs : use 'as' instead of 'try..catch'.
2615 2003-09-25 Ben Maurer <bmaurer@users.sourceforge.net>
2617 * XmlNode.cs (XPathNodeType): Give more useful debugging message.
2618 * XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
2621 2003-09-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2623 * XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
2624 recovery was still not enough. Fixed GrowScopes() (incorrect index).
2626 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2628 * XmlTextReader.cs :
2629 - Fix for bugzilla #48337 (containing Ben's advice on that).
2630 - Added internal XmlTokenInfo classes. Nodes are now handled as token
2631 objects (linked node, attributes and attribute values). Most of the
2632 node state properties and iterating methods are changed to refer to
2633 the token classes (except for value builder availability). Removed
2634 fields which are never used. CompileDTDSubset() is changed in
2635 reflection to nodeType field removal.
2636 - Fixed Depth that should vary in moving between attributes and/or
2637 reading attribute values.
2638 - LineNumber and LinePosition now returns more correct location.
2639 - Fixed Value that should still return true if its value is an empty
2640 attribute value string.
2641 - EntityValue is checked WFC constraints even thoug it is not used.
2642 - All .ctor() now initializes ReadState as Initial.
2643 - Read() should be available for attribute value constructor.
2644 * XmlAttribute.cs : set_InnerXml() now calls reader's Read().
2646 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2648 * XmlNamespaceManager.cs: PopScope() must retain those namespaces which
2649 are added in the scope before PushScope() was called.
2651 2003-09-20 Ben Maurer <bmaurer@users.sourceforge.net>
2653 * XmlNamespaceManager.cs: Rewrote. Uses arrays, rather than linked
2654 lists and removes uses of Hashtable. Results in huge speed gains.
2656 2003-09-19 Ben Maurer <bmaurer@users.sourceforge.net>
2658 * XmlConvert.cs: NaN.ToString () != INF.
2660 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
2662 * XmlTextWriter.cs: Attributes that have a namespace must be always
2665 2003-09-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2667 * XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
2669 * XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
2670 Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
2671 add Namespaces immediately, but adds at AddMissingElementXmlns so
2672 that we don't have to have extra check than namespaceManager's
2673 LookupPrefix(). 2) Removed writtenAttributes for performance reason
2674 since it is no more required.
2676 2003-09-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2678 * XmlDocument.cs : patch by Jonathan Hogg. Fixed CreateAttribute()
2679 that handled xmlns attributes inproperly.
2681 2003-09-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2683 * XmlNamespaceManager.cs : GetEnumerator() should return all of the
2684 available pairs (of prefix and namespace).
2685 * XmlQualifiedName.cs : Quick fix for NullReferenceException in case
2686 of name (or ns) is null. (The description of the immediate previous
2687 changes will be inserted below.)
2688 * XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
2689 * XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
2690 will release resources it had allocated.
2692 2003-09-01 Ben Maurer <bmaurer@users.sourceforge.net>
2694 * XmlDocument.cs (Save): use the encoding of the document, if
2697 2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2699 * XmlValidatingReader.cs : Implemented SchemaType. Added support for
2700 ValidationType.Schema. Added support for XmlResolver. Fixed
2701 ReadTypedValue() not to consume EndElement.
2703 2003-08-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2705 * XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
2707 * XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
2708 Commented out Console.Error.WriteLine().
2709 * XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
2710 escape and unescape for relative URI string.
2712 2003-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
2714 * XmlParserContext.cs: Make each context inherit next.
2716 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
2718 * XmlChar.cs (IsWhitespace): Spare enumerator allocation.
2719 * XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
2720 fat, use low-fat loops instead. Even better, call the function
2721 inside XmlChar for code reuse.
2722 * HighWaterStack.cs (added): New class that acts like a Stack, but
2723 helps with memory allocation.
2724 * XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
2726 * XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
2727 use a variable that stores the position in the ArrayList.
2729 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
2731 * XmlTextWriter.cs: Begin diet. String.Format has too much
2732 saturated fat, lets replace with the fat-free .Write ()
2733 calls. Effects best seen when Paolo's StreamWriter patch is
2736 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2738 * XmlNodeReader.cs : Fixed ReadAttributeValue() that might result in
2739 vanishing current node.
2741 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2743 * DTDValidatingReader.cs : Added SchemaType.
2744 Read() Assures to return to element.
2745 * DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
2746 * XmlReader.cs : ReadString() should be virtual in NET_1_1.
2747 * XmlTextReader.cs : 1) Depth should consider Attribute and its values.
2748 Introduced insideAttribute field to support them.
2749 2) ReadAttributeValue() should consider empty string.
2750 * XmlValidatingReader.cs :
2751 Fixed several properties which premised as if it was already read.
2752 Encoding and Namespaces now throws NotSupportedException for other
2754 Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
2756 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2758 * XmlInputStream.cs : Reverted CanSeek as to return false anyway.
2760 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2762 * DTDObjectModel.cs : added XmlResolver related members. Added
2763 invalid entity recursion logic. Added encodingdecl check on textdecl.
2764 * DTDValidatingReader.cs : It now implements IHasXmlParserContext.
2765 * XmlChar.cs : IsPubidChar() should not allow TAB(	).
2766 * XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
2767 to receive DTDObjectModel to support other than XmlTextReader.
2768 2) Most of its public member is now based on DTDObjectModel.
2769 * XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
2770 2) ReadNode() now considers XmlParserContext's DTDObjectModel for
2771 other than XmlTextReader (such as XmlValidatingReader).
2772 * XmlNode.cs : code cleanup only.
2773 * XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
2774 * XmlTextReader.cs : 1) Illegal entity reference check logic was moved
2775 from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
2776 change on ReadEntityReference(). 3) ReadAttribute() now checks
2777 reference to external entity reference. 4) Added textdecl encoding
2778 check. 5) DTDObjectModel fields are now set correctly. 6) added
2779 PERef markup nest check. 7) If PEDecl was not found, it might be WFC
2780 violation, not only be VC violation. 8) ReadEntityDecl() now receives
2781 its declared entity itself, and this method checks IsInternalSubset.
2782 * XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
2783 2) ValidationType.None should be the same as Auto, not DTD (in the
2784 future it should keep xml schema's default values).
2786 Pending Stuff in XmlTextReader which breaks some NUnit tests;
2787 1) SetEntityReferenceProperies() has check for illegal references.
2788 2) ReadAttribute(bool) has similar check for illegal references.
2790 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2792 * DTDAutomata.cs : Fixed (modified or added) TryEndElement() of choice,
2793 sequence and oneOrMore. Fixed DTDChoiceAutomata.TryStartElement().
2795 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2797 * XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
2798 and supplied SkipWhitespace() as they needed. It broke monodoc.
2799 Fixed ReadEntityValueDecl() to get correct value.
2801 2003-08-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2803 * XmlInputStream.cs :
2804 Fixed Initialize() that might result in incorrect buffer.
2805 CanRead and Position should consider buffer (especially when the
2807 CanSeek should use stream's CanSeek.
2809 * XmlChar.cs : added GetPredefinedEntity().
2810 * DTDObjectModel.cs :
2811 - Modified ComputeDefaultValue() to use it.
2812 - Fixed NormalizedDefaultValue not to expect parsed value as string.
2813 - ResolveExternalEntity now detects invalid standalone specification.
2814 - DTDParameterEntityDeclaration.Value is now changed to property and
2815 keep its resolved value of literal value of external value using
2816 new Resolve (XmlResolver) method (called only by XmlTextReader).
2817 * DTDValidatingReader.cs :
2818 - It now handles entity-expanded Whitespace and SignificantWhitespace
2819 correctly. Does not raise unexpected text not allowed error.
2820 - Fixed MoveToAttribute()s to move internal reader correctly, and
2821 should be able to move in other cases than on element node.
2822 - On Read()ing document type and ResolveEntity(), it now sets
2823 XmlResolver on text reader.
2824 - On ID constraints check and type verification, it now uses
2825 normalized attribute or its tokenized value(s).
2826 - Fixed ValidateAttributes() to add default values when
2827 ValidationType is Auto.
2828 * XmlParserContext.cs : added internal Dtd setter.
2829 * XmlParserInput.cs :
2830 InsertParameterEntityBuffer() should add surrounding whitespaces.
2831 Removed unused code block.
2832 * XmlTextReader.cs :
2833 - Modified ReadReference(), ReadAttribute() and Dereference() to use
2834 XmlChar.GetPredefinedEntity().
2835 - When returning entity reference, it checks extity declaration
2836 existence in certain conditions.
2837 - ReadAttribute() now skips general entity replacement on reading
2839 - ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
2840 - ReadXmlDeclaration() holds isStandalone, which might be used in
2841 entity reference's well-formedness check.
2842 - internal 'DTD' now uses XmlParserContext.Dtd.
2843 - isInternalSubset was meaningless. Now uses input stack's Count.
2844 - Added some required SkipWhitespace().
2845 - Several parameter entity handling changes. Added GetPEValue(name).
2846 TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
2847 now uses its Resolve() when it was external PE. Now it uses value
2848 buffer instead of currentTag, to efficiently read (included) PE.
2849 CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
2850 ImportAsPERef() simply inserts the value to currentInput.
2851 ReadEntityDecl() also uses value buffer. Removed non-used methods.
2852 - Default attributes are now stored in normalized form.
2853 - Dereference() now considers non-expanding predefined entities.
2854 * XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
2855 is more correctly supported.
2857 * XmlAttributeCollection.cs :
2858 When removing default attribute, it immediately inserts the attribute.
2859 RemoveAll() should consider default (not-removable) attributes.
2861 Should have its default XmlResolver. Added Internal Resolver.
2862 Some Load() should use its XmlResolver.
2863 ImportNode() should copy its children in node level, not value level.
2864 It also have to consider not to copy default attribute on importing
2866 * XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
2868 XmlDocumentFragment.cs.
2869 XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
2870 * XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
2871 ResolveEntity() uses XmlResolver on entityReader.
2873 2003-08-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2875 * DTDObjectModel.cs :
2876 - Added validation error check (and AddError(), Errors).
2877 - Fixed ComputeDefaultValue() to handle various references correctly.
2878 - DTDEntityDeclaration.EntityValue became property, and added
2879 LiteralEntityValue. The new one holds resolved value.
2880 Added ResolveExternalEntity(). It now required root in .ctor().
2881 * DTDValidatingReader.cs :
2882 - Now it handles namespaced attributes (as input to xsd validator).
2883 - Added XmlResolver property as usual XmlReader.
2884 - Added currentEntityHandling field so that it can stand changing
2885 XmlValidatingReader's EntityHandling dynamically.
2886 - FilterNormalization() now requires name for getting datatypes and
2887 can stand for non-current attribute normalization.
2888 - Splitted ReadContent() from Read() that can be called recursively
2889 when expanding entities.
2890 - Now handles Entity not found error *after* resolution of entities,
2892 - Read()ing DTD checks its Errors and raises validation error events.
2893 In some situations, DTD parsing may detect VC error, not WFC error.
2894 It also strictly checks NData existence.
2895 - Handling of entity-resolved text is a bit changed and Read()ing
2896 element, endElement, cdata now changed to switch collecting text
2898 - content type ANY should allow texts.
2899 - Added enumerated attribute validity check.
2900 - Added Name/Names creation rule check for ID/IDREF/IDREFS.
2901 - Added entity existence check for ENTITY/ENTITIES attributes.
2902 - Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
2903 - Fixed to remove extraneous #REQUIRED check.
2904 - Contributing default attribute is now only applied to the case
2905 ValidationType is DTD or None.
2906 - ResolveEntity() now handles external entities.
2907 Added Mono.Xml.IXmlParserContext interface support.
2908 * XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
2909 * XmlTextReader.cs :
2910 - Fixed ReadAttributeValue() to reset returnEntityReference.
2911 - Added bool MaybeTextDecl only for ResolveEntity().
2912 - Fixed ReadWhitespace(). In fact its value is considered even if it
2913 is in the end of the XML.
2914 - Fixed ReadXmlDeclaration(). Now skips text declaration.
2915 - CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
2916 - ReadContentSpec() should set OrderType = OR for mixed model.
2917 Fixed to set content element name correctly.
2918 - ImportAsPERef() now skips Text declaration.
2919 - Type of enumerated default attributes shold be string.
2920 - Undeclared PE error is now handled as DTD's VC error, not
2921 XmlTextReader's WFC error.
2922 * XmlValidatingReader.cs : BaseURI should provide that of
2923 original XmlReader's when read was not started yet.
2924 Fixed XmlResolver to delegate to DTDValidatingReader.
2926 * XmlAttributeCollection.cs : Acquiring attList declaration is
2927 insufficient especially in case of lack of elementdecl.
2928 * XmlChar.cs : (Maybe this is compact than XmlConstructs.)
2929 added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
2930 IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
2932 * XmlInputStream.cs : Removed "version" declaration check. It should
2933 be done by XmlTextReader.
2935 * XmlNodeReader.cs : added internal GetInternalParserContext() and now
2936 it can be used in XmlValidatingReader.ResolveEntity().
2937 ResolveEntity() sets XmlTextReader.MaybeTextDecl.
2939 2003-08-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2941 * DTDValidatingReader.cs :
2942 Added full ExpandEntities support for text node and entity reference
2943 node (although require many usage tests). Almost all methods and
2944 properties now have currentTextValue != null check, that field means
2945 that there are cached (entity-resolved) text.
2946 Implemented default attribute aware XmlLang and XmlSpace.
2947 * XmlNodeReader.cs : ResolveEntity() should not require DTD.
2949 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2951 * DTDValidatingReader.cs,
2955 XmlValidatingReader.cs : fixed pragma USE_VERSION_1_0 to NET_1_0.
2957 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2959 * DTDObjectModel.cs : Added BaseURI (but not used yet).
2960 DTDAttListDeclaration.ctro() now requires root dtd object model.
2961 * DTDValidatingReader.cs : Read() now expands EntityReference if
2962 entity handling of validating reader is ExpandEntities.
2966 XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
2967 ReadOuterXml which are modified in MS.NET 1.1.
2968 * XmlConstructs.cs : added int version of IsValid, IsInvalid,
2969 IsContent, IsMarkup and IsNCNameStart.
2970 Fixed int version of IsXXX() to check array index range.
2971 Added IsValidName (string).
2972 * XmlTextReader.cs :
2973 - Read() handles document with non document element as an error.
2974 - ReadText() and ReadCharacterReference() checkes illegal characters.
2975 - ReadEntityReference() checks name validity.
2976 - ReadProcessingInstruction() rejects such name that starts with
2977 "xml" ignoring case, and checks attributes more strictly.
2978 - ReadDeclaration() rejects unrecognized kind of declaration.
2979 - In many places, added "required whitespace" check in DTD markup.
2980 - DTD content model now disallows mixing use of '|' and ','.
2982 2003-08-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2984 * XmlDocumentFragment.cs : I missed to add it in relation to the
2985 previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
2986 * XmlNodeReader.cs : removed some TODO attributes.
2987 * DTDValidatingReader.cs,
2988 XmlValidatingReader.cs : Implemented ResolveEntity().
2990 2003-07-31 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2992 * XmlParserContext.cs,
2994 XmlElement.cs : Added internal Dtd and new internal XmlParserContext
2995 .ctor() that takes DTDObjectModel. And then rewrote classes which
2996 uses DTD information. Changed DocTypeName, InternalSubset, PublicId
2997 and SystemId to use DTDObjectModel.
2998 * DTDObjectModel.cs :
2999 Added DTDObjectModel.InternalSubsetHasPEReference.
3000 Added DTDEntityDeclaration.IsInternalSubset.
3001 * XmlTextReader.cs :
3002 Added internal GetInternalParserContext (to build entity reader).
3003 Added private isIntSubset to check if the DTD subset is internal or
3004 external, which might affect well-formedness constraints.
3005 Changed GenerateDTDObjectModel to return the resulting DTD model.
3007 * XmlEntityReference.cs : implemented BaseURI.
3008 * XmlNodeReader.cs :
3009 - Implemented ResolveEntity() and CanResolveEntity(). In fact
3010 it leads too many changes on almost all methods and properties,
3011 since they now must be aware of entityReader.
3012 - fixed ownerElement that might be used to return from attribute
3013 value to the element through parent attribtues.
3014 - Now changed indexer to call GetAttribute() and moved actual logic
3015 to the matching GetAttribute() methods.
3017 2003-07-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3019 * XmlNode.cs : fixed internal ConstructNamespaceManager() for InnerXml
3020 not to create extraneous xmlns="".
3022 2003-07-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3024 * DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
3025 attribute declaration should be got independently of elementdecl.
3027 Added internal SetDefault() to mark as default.
3028 Removed InnerText implementation that is just the same as XmlNode.
3029 * XmlDocument.cs : id shouldn't be removed from table at 'trying' to
3030 get matching elements. ReadAttributeNode() now sets default mark.
3031 * XmlElement.cs : WriteTo() should ignore default attributes.
3032 * XmlTextWriter.cs : shuold allow valid name char such as digits.
3034 2003-07-27 Piers Haken <piersh@friskit.com>
3036 * XmlQualifiedName.cs : fields should never be null
3038 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3040 * XmlDocumentFragment.cs : added XPathNodeType indicating Root.
3042 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3044 * XmlDocument.cs (GetIdenticalAttribute): restored OwnerElement.IsRooted
3046 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3048 * XmlLinkedNode.cs : added internal IsRooted.
3050 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3052 * DTDValidatingReader.cs :
3053 - Added ID support in ValidateAttributes().
3054 - More refined ReadAttributeValue() support for non-expanding entity
3056 - It should handle LocalName, Name, Prefix, NamespaceURI and Value
3057 correctly when the reader is on each of the value nodes of an
3058 attribute. Now XmlDocument.ReadNode() should work well.
3060 - added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
3061 RemoveIdenticalAttribute()
3062 - Implemented GetElementById().
3063 * XmlAttributeCollection.cs :
3064 - added private ownerDocument property and replaced
3065 ownerElement.OwnerDocument with it.
3066 - Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
3067 It calls XmlDocument.{Add|Remove}IdenticalAttribute().
3068 - Added RemoveIdenticalAttribute() and it is used in Remove().
3069 (I also added AddIdenticalAttribute() but is not used.)
3071 2003-07-26 Duncan Mak <duncan@ximian.com>
3073 * XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
3074 for OwnerElement.IsRooted to fix the build..
3076 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3078 * XmlDocumentType.cs :
3079 modified private DTD to dtd and added internal DTD (the same thing).
3081 Fixed SetAttributeNode() to check if specified attribute is already
3082 set to the other element. In fact it is W3C DOM's specification but
3083 MS.NET 1.0 failed to catch it.
3084 * XmlTextReader.cs :
3085 ReadAttributeValue() should check if the value of the attribute is
3086 already read when the whole value is entity reference.
3087 Also, Name of text nodes should be "", not "#text"
3089 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3091 * XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
3092 with http://www.w3.org/XML/1998/namespace.
3093 * XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
3094 * XmlNode.cs : InnerText should handle CDATA and whitespaces.
3095 * XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
3096 * XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
3097 attributes (as MS.NET does). It isn't good way and I may change it.
3099 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3101 * DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
3102 DTDNotationDeclarationCollection and replaced Hashtables with them.
3103 Added NormalizedDefaultValue property for DTDAttributeDefinition.
3104 * DTDValidatingReader.cs :
3105 - It now reads attribute values into value collection.
3106 - Renamed consumedDefaultAttribute to consumedAttribute, and
3107 inContent to insideContent.
3108 - GetAttribute() should allow reader's other node state than element.
3109 - MoveToNextAttribute() should move when reader is placed other than
3110 the first attribute.
3111 - HandleError() now supports ValidationType.None (i.e. does nothing).
3112 - ValidateAttribute() now collects and resolves attribute value
3113 entity references. (On the other hand, it doesn't support
3114 EntityHandling.ExpandCharEntity.)
3115 - NodeType shouldn't return Attribute after ReadAttributeValue().
3116 Now only Text is supported, but must also support EntityReference.
3117 - Add FilterNormalization() and partially support Normalization.
3119 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3121 * XmlTextReader.cs :
3122 Read() now handles parser context stuff (BaseURI, XmlLang and
3123 XmlSpace) correctly for an empty element.
3124 Normalization property now doesn't throw an error. Will be used soon.
3125 * XmlValidatingReader.cs : added ValidationType.None support (wait for
3126 the next DTDValidatingReader update for "not firing event handler).
3127 * XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
3129 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3131 * DTDValidatingReader.cs :
3132 changed base class to XmlReader and implemented IXmlLineInfo members.
3133 changed .ctor() argument from event handler to validating reader.
3134 Removed some #if ... #else ... #endif blocks.
3135 Added validation event support for Read() using HandleError().
3136 * XmlValidatingReader.cs : added internal OnValidationEvent().
3137 * XmlDocument.cs : ReadNode() now checks reader's state more strictly.
3139 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3141 * XmlUrlResolver.cs : applied BenM's patch for file uri problem
3144 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3146 * DTDValidatingReader.cs :
3147 added DTDObjectModel support for non-XmlTextReader XmlReader
3148 e.g. XmlNodeReader (Read() method).
3150 added internal CreateDocumentType(XmlTextReader) and moved
3151 ReadDoctypeNode() to XmlDocumentType.ImportFromDTD().
3152 * XmlDocumentType.cs :
3153 added internal .ctor(XmlTextReader, document) and ImportFromDTD().
3154 * XmlTextReader.cs :
3155 Renamed useSbForVal (valueBuilderAvailable), valSb (valueBuilder)
3156 and currentSubset (DTD).
3157 Added GenerateDTDObjectModel() (for independent doctype parsing).
3159 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3162 .ctor() should reject xml- or xmlns-prefixed node.
3163 * XmlNamespaceManager.cs :
3164 added some xmlns validity check.
3166 optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
3167 avoiding XmlNamespaceManager creation.
3168 * XmlNodeReader.cs :
3169 doctype node should return PUBLIC and SYSTEM for its indexer,
3170 and Value should be internal subset,
3172 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3174 * DTDObjectModel.cs,
3175 DTDValidatingReader.cs : Completely rewrote attribute handling.
3177 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3180 XmlElement.cs : Fixed CloneNode() for bug #46129.
3181 * XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
3182 String.Format arguments, and basically XmlException.ctor(
3183 IXmlLineInfo, message) seems good idea to use.
3184 * XmlTextReader.cs :
3185 - Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
3186 required non-null context which don't have to exist.
3187 - Added state check. Introduced 'currentState' and 'maybeTextDecl'
3188 (for external entity) and removed hasEnteredDocument. Added
3189 state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
3190 ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
3191 - Replaced throw ReaderError() with throw new XmlException() and
3192 fixed that some error hadn't thrown, only created.
3193 - ResetState() should re-initialize existing private members other
3194 than some specified fields.
3195 - Private AddAttribute() should check if the same-named attribute
3197 * DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
3199 2003-07-09 Lluis Sanchez Gual <lluis@ximian.com>
3201 * XmlTextReader.cs : Implemented ResetState() method.
3203 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3205 * XmlElement.cs : IsEmpty has removed attributes since it incorrectly
3208 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3210 * XmlDocument.cs : Load(string filename) should close its stream.
3211 Small change for the latest DTDObjectModel change.
3212 * XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
3213 changed methods are only related to DTD stuff).
3214 Now uses XmlSchemaDatatype for attribute type definition.
3215 * XmlValidatingReader : initial (limited) support for DTD validation.
3216 It can handle only XmlTextReader.
3217 * DTDObjectModel.cs : changed radically for initial validation support.
3218 * added DTDAutomata.cs and DTDValidatingReader.cs.
3220 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3222 * XmlElement.cs : Removed extraneous xmlns output support (it should
3223 be done by XmlTextWriter).
3224 * XmlNode.cs : InsertBefore() now checks validity of the newChild (and
3225 most of the changes are in fact indentation changes).
3226 * XmlWriter.cs : WriteAttributes() now can write entity references.
3227 WriteNode() now writes xmldecl attributes correctly.
3228 Removed namespaceManager and xmlns check logic, since it should be
3229 done by individual XmlTextWriter.
3230 * XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
3231 written multiple xmlns declarations.
3232 Moved namespaceManager from abstract XmlWriter.
3233 Write{Start|End}Attribute() and WriteString() now checks xmlns
3234 attribute value. (MS.NET holds value only with this write method).
3236 2003-07-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3238 * XmlDocument.cs : removed xmlReader.Close() from Load(XmlReader).
3240 2003-06-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3242 * XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
3243 essentially changed most of the property handling (e.g. removed attribute
3244 enumerator and it now became really cloneable).
3245 * XmlNodeReader.cs : ReadInnerXml() changes its state as error
3246 when the method is called at Initial state.
3248 2003-06-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3250 * XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
3251 as non-empty, and XmlElement's IsEmpty is designed as such.
3252 Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
3254 * XmlNode.cs : Fixed XPathNodeType. It should throw an exception
3255 instead of returning undefined enum value.
3256 Modified some code comments.
3257 * XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
3258 when XmlReader's node is not at empty element or at EndElement.
3259 Fixed XmlDeclaration's standalone check.
3261 2003-06-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3263 * XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
3264 to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
3266 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3268 * XmlInputStream.cs : quick fix for public ctor() BaseURI bug.
3270 2003-06-20 Ben Maurer <bmaurer@users.sourceforge.net>
3272 * XmlTextReader.cs: Reduces memory allocation when the reader is
3273 not queried for some values.
3274 * NameTable.cs: Now uses a custom hashtable to implement. As a
3275 result, when Get (char[], int, int) is called, a string is only
3276 allocated if it is actually a new entry.
3277 (StrEqArray) Compares a string and a char[]
3278 (AddEntry) Adds a new entry to the hashtable
3279 (Entry) Represents a hashtable entry.
3281 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3283 * XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.
3285 2003-06-16 Ben Maurer <bmaurer@users.sourceforge.net>
3286 * XmlUrlResolver.cs: really fixed #44231
3288 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3290 * XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
3291 this method set current node null.
3292 * XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
3293 String.Empty instead of null (expected value).
3296 XmlInputStream.cs : fixed BaseURI problem (bug #44231).
3298 2003-06-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3300 * XmlNodeReader.cs : this [name] and this [name, ns] (and
3301 GetAttribute() methods in turn) returns null instead of String.Empty.
3302 * XmlTextWriter.cs : WriteStartAttribute() should try to use specified
3303 prefix before auto-generating prefixes.
3304 Implemented WriteBase64().
3306 2003-06-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3308 * XmlNodeReader.cs : LookupNamespace () has refered invalid current
3309 node for attributes. Modified to use private "document" property.
3311 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
3313 * XmlTextWriter.cs: when adding an attribute with a namespace, a prefix must be automaticaly
3314 generated, and a namespace declaration must be added.
3315 * XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
3317 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
3319 * XmlAttribute.cs: Accept a null prefix or namespaceURI.
3321 2003-06-10 Duncan Mak <duncan@ximian.com>
3323 * XmlDocumentNavigator.cs (GetNode): Make it implement
3326 2003-06-05 Lluis Sanchez Gual <lluis@ideary.com>
3328 * XmlTextWriter.cs : Fixed bug. After calling for example WriteStartElement ("pref","ln","ns");
3329 a call to LookupPrefix ("pref") when still writting attributes should
3330 return "ns", and it didn't.
3332 2003-06-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3334 * XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
3335 * XmlConvert.cs : fixed VerifyNCName() to check correctly.
3337 2003-06-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3339 * XmlDocumentNavigator.cs : Compute document node one time.
3340 MoveToFirstChild() should move to PIs and comments.
3342 2003-05-30 Miguel de Icaza <miguel@ximian.com>
3344 * XmlReader.cs (ReadStartElement): Improve error message.
3346 2003-05-28 Lluis Sanchez Gual <lluis@ideary.com>
3348 * XmlTextReader.cs : MoveToAttribute methods must set the enumerator to the right
3349 position, since MoveToNextAttribute may be called after it.
3350 SetProperties(): attributes do not "inherit" the namespace.
3351 * XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
3353 2003-05-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3355 * NameTable.cs : Add() sets the given name string interned.
3356 * XmlParserContext.cs : added internal PushScope() and PopScope() to
3357 hold stacks of xml:base, xml:lang and xml:space.
3358 * XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
3359 property for stacked attributes). Renamed Initialize() to Initialize-
3360 Context(). Modified to use XmlParserContext.PushScope()/PopScope().
3362 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
3364 * XmlReader.cs: Little fix to WriteAttributeString()
3366 2003-05-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3368 * XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
3369 XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
3370 XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
3371 XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
3372 Reverted the recent accessibility mistake (5/16).
3373 * XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic
3374 from XmlNode to XmlDocument.
3376 2003-05-18 Lluis Sanchez Gual <lluis@ideary.com>
3378 * XmlQualifiedName.cs : Fixed bug in equality operator.
3380 2003-05-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3382 * XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
3383 any open attributes or elements. WriteWhitespace() checks state and
3384 closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
3385 when it is called inside attribute value.
3386 * XmlException.cs : added .NET 1.1 .ctor.
3387 * added XmlSecureResolver.cs (only stubbing).
3388 * XmlAttribute.cs : set_InnerXml() should remove children.
3391 XmlDocumentFragment.cs,
3392 XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
3393 * XmlNode.cs : RemoveAll() should also remove all attributes.
3394 * XmlTextRader.cs : .ctor() for attribute value reader should add
3395 quotations at initialization, since it requires quote chars.
3396 * XmlWriter.cs : WriteAttributeString() more correct xmlns check.
3398 2003-05-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3400 * changed XPathNodeType modifier to internal *protected* override.
3401 * XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
3402 * XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
3403 * XmlAttributeCollection.cs : removed some incorrect TODO attributes.
3404 * XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
3405 when the argument is "xmlns".
3406 * XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
3407 * XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
3408 * XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
3409 * XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
3410 not to set error state for non-started XmlNodeReader.
3411 * XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
3412 BaseURI support. Fixed Initialize() to handle Attribute correctly.
3413 SetProperty for attribute auto-completes xmlns NSURI.
3414 Attribute and whitespace handling became more correct.
3415 Don't parse external DTD if XmlResolver is null.
3416 * XmlTextWriter.cs : implemented WriteEntityRef().
3417 WriteStartAttribute() checks if ns does not equal to that of xmlns.
3418 * XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
3420 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3422 * XmlConvert.cs : IsInvalid() Now uses XmlConstructs.IsName(Start).
3423 EncodeName() now correctly encodes invalid names.
3424 Result string of ToString(DateTime) contains "fffffff".
3426 2003-04-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3428 * XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
3429 * XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
3431 Fixed this[] to work correctly against XmlDeclarations.
3432 Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
3433 (which may prevent validations etc.)
3436 XmlTextReader.cs : Fixed ReadString() to be compliant with each
3438 * XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
3440 2003-04-27 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3442 * XmlNode.cs: ensure to get a valid Uri in BaseUri when loading the
3443 source document from a file.
3445 2003-04-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3447 * XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
3448 content EntityReference correctly.
3449 * XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
3450 HasAttributes, indexers, MoveTo*Attribute() and Read() ).
3451 Modified Skip() to call Read () explicitly.
3452 * XmlTextReader.cs :
3453 Fixed ReadInnerXml() which ignored EndElement token in certain cases.
3454 Implemented MoveToAttribute (local, ns), and modified GetAttribute()
3455 in relation to this change.
3456 Attributes for XmlDeclaration are now correctly set.
3457 * XmlTextWriter.cs : WriteRaw() is now different from WriteString().
3458 Simplified WriteAttributes() for XmlDeclaration.
3460 2003-04-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3462 * XmlTextReader.cs : fixed ReadInnerXml(). it was inconsistent with
3465 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3467 * XmlDocument.cs : fixed Load() to set baseURI correctly.
3468 * XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
3469 * XmlTextReader.cs :
3470 fixed Depth. When it's on StartElement, Depth was already incremented.
3471 fixed private SaveProperty(), which moved away its saved properties
3472 when MoveToElement was called repeatedly.
3473 * XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
3475 WriteAttributes() refactory (for XMLDecl).
3476 WriteNode() don't Read() when the reader is Initial state, let other
3477 invokation to Read(). In case of Element, it should write entire
3478 element. In case of Attribute, it shouldn't Read().
3479 WriteStartDocument() should omit standalone decl. when there is no
3482 2003-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3484 * XmlReader.cs: reverted last patch. It breaks System.Configuration
3485 because 1. it considers XmlDeclaration as content and 2. always
3486 returns XmlNodeType.None.
3489 2003-04-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3491 * Added missing ChangeLog of 4/4/2003.
3492 * XmlTextWriter.cs : patch by Erik. fixed WriteQualifiedName.
3493 (write prefix instead of ns.)
3494 * XmlInputStream.cs : file access mode fix (FileAccess.Read was missing)
3495 * XmlTextReader.cs : modified to call Read() instead of ReadContent().
3496 (It may be required for decorated reader such as XmlValidatingReader.)
3497 Changed Read() error message for mismatch end tag.
3498 * XmlDocument.cs : (ReadNode) friendly message for mismatch EndElement.
3499 * XmlReader.cs : Corrected misinterpreted MoveToContent() method.
3501 2003-04-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3503 * XmlDocument.cs : Load() now closes the given XmlReader.
3504 Don't allow creation of XmlTextReader for Doctype. (workaround.)
3505 * XmlInputStream.cs : It now closes its internal stream explicitly.
3506 * XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
3507 * XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
3508 * XmlParserInput.cs : added Close() method.
3509 * XmlReader.cs : MoveToContent() should (1) not Read in case of empty
3510 element, and (2) MoveToElement() in case of attribute.
3511 * XmlTextReader.cs : Close() now actually closes source TextReaders.
3513 2003-03-26 Duncan Mak <duncan@ximian.com>
3515 * XmlTextWriter.cs (Write): A patch from Atsushi to fix
3516 prematurely ending the write, or something like that. It was
3517 causing us to chop off the end of the document when we're trying
3518 to generate XML Schemas.
3520 2003-03-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3522 * XmlTextReader.cs : implemented ReadString().
3523 fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
3524 null reference exception when context is null.
3525 * XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
3526 fixed Read() - when positioned at EndElement, it didn't progress.
3527 fixed HasAttribute - it didn't return false in all cases.
3528 fixed Name and LocalName - only limited type of nodes return names.
3529 fixed AttributeCount - in some cases it threw null ref exception.
3531 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3533 * XmlTextWriter.cs : WriteStartDocument doesn't set hasRoot=true, then
3534 WriteEndDocument without root element now raises an error correctly.
3535 * XmlDocumentNavigator.cs : (MoveToFirstChild) fixed bugzilla #36672.
3536 implemented BaseURI, NameTable, XmlLang, GetAttributes, GetNamespace,
3539 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3541 * XmlElement.cs : RemoveAttribute now don't throws when specified
3542 attribute does not exist.
3544 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3546 * XmlNode.cs : add descriptions for some node type error.
3548 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3550 * XmlNodeArrayList.cs, XmlNodeListChildren.cs : bugzilla #39920 fix.
3552 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3554 * XmlDeclaration.cs : quick fix, not to use regex for set_Value.
3556 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3558 * XmlTextReader.cs : Fixed wrong notationdecl SYSTEM id read.
3559 * XmlInputStream.cs : Should allow versionless input stream entity.
3561 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3563 * added XmlParserInput.cs for multi xml document sources.
3564 * added DTDObjectModel.cs (maybe temporary).
3565 * XmlTextReader.cs :
3566 + fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
3567 + Some members such as LineNumber, ReadChar now uses XmlParserInput.
3568 + added support for Namespaces (namespace-ignorant parse available).
3569 + added support for XmlResolver.
3570 + replace SetReaderContext()/SetReaderFragment() with Initialize().
3571 + use NameTable in CreateNameString.
3572 + fixed ReadCData(). Now reads "]]]>" correctly.
3573 + support for DTD parse.
3574 + Read() now throws an error when it reached EOF while Depth > 0.
3576 XmlDocumentFragment.cs,
3577 XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
3578 * XmlDocument.cs : ReadNode() now reads DocumentType.
3579 * XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
3581 XmlNotation.cs : added override LastLinkedChild (for doctype node).
3582 * XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
3583 * XmlElement.cs : bugfix for node removal of set_InnerXml.
3584 * XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
3585 (to append child XmlEntity into XmlDocumentType correctly.)
3586 * XmlInputStream.cs : fixed to access file with FileAccess.Read.
3588 2003-03-15 Duncan Mak <duncan@ximian.com>
3590 * XmlElement.cs (Name): Only append prefix + ':' when prefix is
3591 neither String.Empty nor null. Thanks to Simon Guindon for
3592 reporting the bug and Jackson for fixing this bug with me.
3594 2003-03-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3596 * XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
3597 * XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
3598 fixed ReadNode(), it should call reader.Read() only on Initial state.
3599 * XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
3600 and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
3601 System.Net.WebClient directly.
3602 * XmlParserContext.cs : baseURI never be null.
3603 * XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
3604 * XmlUrlResolver.cs : namespace change for XmlInputStream.
3606 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
3608 * XmlTextReader.cs: When throwing a ReaderException, show what
3609 character was the culprit
3611 2003-03-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3613 * XmlDocumentFragment.cs, XmlElement.cs :
3614 modified InnerXml (fragment type from Element to DocumentFragment).
3616 * XmlElement.cs : fixed WriteTo() ns check.
3617 * XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
3618 * XmlNode.cs : fixed ConstructNamespaceManager().
3620 * XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
3621 IsPubid with an int arg.
3622 * XmlReader.cs : changed to use XmlChar.cs (its role is as same as
3624 * XmlTextReader.cs :
3625 improved error messages with line info.
3626 / checking matching start and end tags.
3627 / prevents the apperance of multiple root elements. (patch by Erik)
3628 fixed and refactored ReadInnerXml() and ReadOuterXml()
3629 changed to use XmlChar.cs.
3631 * XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
3632 (It will help c14n implementation.)
3633 / blocks multiple attribute output with element node.
3635 2003-02-28 Alan Tam <Tam@SiuLung.com>
3637 * XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
3638 methods to make them compatible with the XML Schema Spec from W3C
3639 ToString(TimeSpan) is still outstanding
3641 2003-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3644 (Load (string)): hack to workaround some issues with Uri.Parse. Once
3645 Parse is fixed, remove the hack.
3647 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3649 * XmlQualifiedName.cs : fixed GetHashCode() to avoid null reference
3650 * XmlTextReader.cs : fixed ReadAttributeValue() to handle
3651 entity reference, and some refactory.
3653 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3655 * XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.
3657 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3659 * XmlInputStream.cs : added (also contains internal XmlStreamReader).
3660 * XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
3661 and can read non-UTF-8 stream.
3662 * XmlTextReader.cs : related to above stream fix.
3663 * XmlUrlResolver.cs : implemented GetEntity ().
3665 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3667 * XmlTextWriter.cs: implemented WriteRaw (char[], int, int).
3669 2003-02-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3671 * XmlTextReader.cs : implemented QuoteChar.
3673 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3675 * XmlNode.cs : implemented ReplaceChild.
3676 removed DocElem checking at InsertBefore.
3677 * XmlNodeReader.cs : fixed ReadString and Read for correct node info.
3678 * XmlText.cs : implemented CloneNode and SplitText.
3680 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3682 * XmlCharacterData.cs: added XPathNodeType property.
3684 2003-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3686 * XmlTextWriter.cs: throw an exception if WriteEndDocument is
3687 called without a prior call to WriteStartDocument.
3689 2003-01-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3691 * XmlNodeReader.cs : several fix to get more compatible with MS.NET.
3693 2003-01-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3695 * XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
3696 null when no matching uri.
3697 * XmlElement.cs : removed unnecessary xmlns output.
3698 * XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
3699 * XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
3700 along with the change above, and moved timing of 'xmlns' output
3701 to CloseStartElement.
3702 * XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
3704 2003-01-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3706 * XmlWriter.cs: modified WriteStartElement (see test for detail).
3709 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
3711 * XmlDocument.cs: Added CheckName () method to check names validity.
3713 2003-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3716 (ReadOuterXml): use Depth property which return elementDepth, not depth.
3718 2003-01-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3720 * XmlElement.cs : (by ville) XmlElement.set_InnerText event bugfix.
3721 * XmlTextReader.cs : some fix for ReadOuterXml().
3723 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3725 * XmlTextReader.cs : bugfix for attributes related to creation of
3726 XmlAttribute *node*.
3728 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3730 * XmlTextReader.cs : bugfix for attribute values which have entity
3733 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
3735 * XmlDocument.cs: XmlTextWriter.Formatting == Indented when
3736 calling Save () -methods.
3738 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3740 * XmlNodeReader.cs : primitive reading implementation.
3742 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3744 * XmlElement.cs : quick fix for the incomplete patch of #35308 below.
3746 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3748 * XmlDocument.cs : removed inconsistent line-feed output.
3749 * XmlElement.cs, XmlTextWriter.cs :
3750 fixed for bugzilla 35308 (default ns output)
3751 * XmlWhitespace.cs : limited output only when preserving whitespace.
3753 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3755 * XmlAttribute.cs, XmlDocument.cs, XmlTextReader.cs:
3756 Implemented XmlTextReader.ReadAttributeValue().
3757 Added internal ReadAttributeNodeValue().
3758 Fixed XmlAttribute.InnerXml to use these methods.
3760 * XmlDocument.cs, XmlDocumentFragment.cs, XmlElement.cs, XmlNode.cs:
3761 Implemented XmlDocument.ReadNode() and removed ConstructDOM().
3762 Other changes are replacing them.
3764 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3766 * XmlDocument.cs: patch by Ville (fixed default PreserveWhitespace)
3768 2002-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3770 * XmlElement.cs, XmlTextWriter.cs, XmlWriter.cs:
3771 patch by JD Conley <jconley@winfessor.com>.
3772 (Fix for xmlns attribute output.)
3774 2002-12-05 Ville Palo <vi64p@koti.soon.fi>
3776 * XmlQualifiedName.cs: Little fix to ToString () -method
3778 2002-12-04 Tim Haynes <thaynes@openlinksw.com>
3780 * class/System.XML/System.Xml/XmlElement.cs: Made more refined
3781 checks on attributeNode to fix 32262.
3783 2002-12-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3785 * XmlDocument.cs (CreateNavigator(XmlNode)) : reverted
3786 * XmlTextWriter.cs (WriteStartElementInternal):
3787 fixed when default namespace was specified, all descendants
3788 fail to omit the default namespace declarations.
3791 XmlNode.cs (internal XmlLang/XmlSpace) : implemented(defined)
3793 XmlDocumentFragment.cs,
3794 XmlElement.cs (set_InnerXml): now uses XmlLang/XmlSpace
3795 * XmlElement.cs (set_IsEmpty) : implemented
3796 (WriteTo) : removed my improper indenting (Writer already done)
3797 * XmlNode.cs (BaseURI) : fixed if ParentNode is null, NullPointerEx
3798 (ConstructDOM) : implemented when xmlReader isn't XmlTextReader
3799 ...and renamed XmlDocument.ConventionalParser to ReusableReader ;-)
3801 2002-12-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3803 * XmlNode.cs (RemoveChild):
3804 bugfixed when XmlNode is Document OwnerDocument is null
3805 * XmlDeclaration.cs (Value):
3806 bugfixed regular expression pattern.
3807 * XmlDocument.cs (CreateNavigator): bugfixed access modifier.
3809 2002-11-24 Duncan Mak <duncan@ximian.com>
3811 * XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
3812 Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
3813 first patch to Mono! ;-)
3815 2002-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3818 (AppendChild): readded refChild != null condition before throwing
3819 "cannot insert this node in this position" exception. There's probably
3820 a better solution. Fixes #34191.
3821 (RemoveAll): changed following Atsushi instructions.
3824 2002-11-13 Duncan Mak <duncan@ximian.com>
3826 * XmlElement.cs (IsEmpty): A temporary check-in to keep gtk-sharp
3829 2002-11-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3831 * XmlDocument.cs : unified all constructors, added ConventionalParser,
3832 implemented CloneNode() and CreateEntityReference(),
3833 * XmlEntityReference.cs : set_Value, WriteContentTo, WriteTo
3834 set BaseURI to MonoTODO
3835 * XmlNode.cs : implemented PrependChild, modified ConstructDOM,
3836 bugfix InsertAfter (incorrect prepending) and InsertBefore
3837 (more than one DocumentElements hadn't caused errors)
3838 * XmlTextReader.cs : unified all constructors,
3839 added internal SetReaderContext(), SetReaderFragment()
3840 bugfix (syntax check of PUBLIC / getting internal subset)
3842 2002-11-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3844 XmlAttribute.cs : set_InnerText, set_InnerXml, some check for set_Prefix
3845 XmlAttributeCollection.cs : (indexer) this[localName, namespaceURI]
3846 XmlCharacterData.cs : exchanged Data and Value
3847 (for processing events and inheritance)
3848 XmlDocumentFragment.cs : set_InnerXml
3849 XmlSignificantWhitespace.cs : set_Value
3850 XmlTextReader.cs : ReadAttributeValue
3852 2002-11-04 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
3854 XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement'
3856 2002-11-03 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
3858 * XmlAttributeCollection.cs : checks owner element.
3859 implemented CopyTo, InsertAfter, InsertBefore, Prepend,
3860 Remove, RemoveAt, SetNamedItem.
3861 removed some logics that sets 'Parent' (that should be null)
3862 * XmlDocument.cs : set_InnerXml, [PreserveWhitespace(incomplete)]
3863 * XmlDocumentFragment.cs : get_InnerXml, WriteContentTo, WriteTo
3864 * XmlElement.cs : implemented WriteTo, set_InnerText.
3865 Fixed WriteTo() to add xmlns:* attributes when
3866 writer.LookupPrefix() returned mismatching.
3867 * XmlNamedNodeMap.cs : compare not only name but localname and nsuri.
3868 Removing different prefixes for the same uri now runs correct.
3869 added SetNamedItem(XmlNode node, int position_to_insert).
3870 * XmlNode.cs : ConstructDOM (logically) creates XmlEntityReference,
3871 XmlWhitespace, and XmlSignificantWhitespace
3873 2002-10-31 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
3875 * XmlDocument.cs : implemented CreateDocumentFragment()
3876 * XmlElement.cs, XmlLinkedNode.cs :
3877 moved LastLinkedChild from XmlElement to XmlLinkedNode.
3878 * XmlEntityReference.cs : must throw NotImplementedException.
3880 + implemented InsertBefore() and then implemented InsertAfter()
3881 and modified AppendChild() to call it.
3882 + added logic to check ReadOnly, parent document equivalence,
3883 and inserting any 'content' before/after DocumentElement.
3884 + implemented Clone() [it is equals to CloneNode() by MS doc.]
3885 + added logic in RemoveChild() to check parent of oldChild.
3886 + fixed ConstructNamespaceManager() to internal only.
3888 2002-10-29 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
3890 * XmlAttribute.cs : add internal 'IsDefault' property
3891 (equals to !Specified)
3892 * XmlImplementation.cs : added 'internalNameTable' property.
3894 + now allows "" for 'standalone' in CreateXmlDeclaration.
3895 + implemented 'Implementation' property and constructor with it.
3896 + added logic for appending name table (but still no use)
3897 + implemented property 'DocumentType'
3898 (but without internalSubset parsing. wait for next update.)
3900 + modified AppendChild() and RemoveChild() to support fragment.
3901 + modified AppendChild() to remove newChild from its parent
3902 when newChild is already in the other place.
3903 + modified RemoveChild() to set parentNode null.
3904 + modified ConstructDOM() to create DocumentType,
3905 and fixed access modifier ('internal protected' to 'internal')
3906 * XmlLinkedNode.cs : fixed 'NextSibling' to return null
3907 when its parent is null.
3908 * XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
3909 property to enable AppendChild() for this class.
3910 * XmlTextReader.cs : appended private publicId and systemId fields.
3912 2002-10-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3914 * XmlTextReader.cs: make it work when the underlying Stream is not
3917 2002-10-26 Piers Haken <piersh@friskit.com>
3919 * XmlNode.cs: add virtual property XPathNodeType
3924 * XmlProcessingInstruction.cs:
3925 * XmlSignificantWhitespace.cs:
3927 * XmlWhitespace.cs: implement XPathNodeType property
3928 * XmlDocumentNavigator.cs: use XPathNodeType property instead of switch
3930 2002-10-26 Piers Haken <piersh@friskit.com>
3932 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
3934 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3936 * XmlTextReader.cs: don't increment depth for entity references.
3938 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
3940 * - Fixed the duplication of xmlns:xx = yy when serializing the
3941 XML for serialization
3943 Fixed the unnecessary parsing/serializing when adding assemblies
3946 Avoided setting the XmlNode.InnerXml property
3947 (as it's not implemented)
3949 Fixed the usage/implementation of
3950 XmlElement.GetElementsByTagName()
3952 2002-10-21 Duncan Mak <duncan@ximian.com>
3957 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
3958 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
3960 2002-10-18 Duncan Mak <duncan@ximian.com>
3962 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
3963 <ginga@kit.hi-ho.ne.jp>.
3965 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
3967 * XmlDocument.cs (ImportNode): Implemented
3969 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3971 * XmlDocument.cs: one more Load method implemented.
3972 * XmlTextReader.cs: Depth now works.
3974 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3976 * XmlConvert.cs: IsInvalid is now internal.
3977 * XmlNamespaceManager.cs: implemented RemoveNamespace
3978 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
3979 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
3981 2002-09-19 Matt Hunter <mahunter@tconl.com>
3983 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
3984 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
3986 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3988 * XmlConvert.cs: finished implementation.
3989 * XmlTextReader.cs: fixed #30239.
3990 * XmlTextWriter.cs: fixed #30240.
3992 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3994 * XmlTextReader.cs: line and position begin with 1.
3996 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3998 * XmlException.cs: added a new internal constructor for IXmlLineInfo
3999 and output line and position info in Message.
4001 * XmlReader.cs: implemented missing bits.
4003 2002-09-12 Piers Haken <piersh@friksit.com>
4005 * XmlDocumentNavigator.cs: implement MoveToId()
4007 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4009 * XmlTextWriter.cs: fixed bug #29886.
4011 2002-08-26 Ravi Pratap <ravi@ximian.com>
4014 * XmlAttribute.cs (InnerText): Implement getting this property.
4016 * XmlNode.cs (InnerText): Ensure that we append only values of
4019 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4021 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
4022 that allowed compiling this.
4023 [ FIXME: filed bug #29435. mcs should have failed on this ]
4025 2002-08-25 Tim Coleman <tim@timcoleman.com>
4027 Change CreateNavigator to not be virtual.
4029 Add set_Prefix and InnerText accessors.
4030 * XmlEntityReference.cs:
4031 Add set_Value accessor.
4033 Make objects which should be private private.
4035 Remove WriteStartElementInternal abstract definition.
4036 * XmlValidatingReader.cs:
4039 2002-08-22 Jason Diamond <jason@injektilo.org>
4041 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
4042 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
4044 2002-08-22 Jason Diamond <jason@injektilo.org>
4046 * XmlElement.cs: Correction to previous GetElementsByTagName patch
4047 courtesy of Matt Hunter <xrkune@tconl.com>.
4049 2002-08-22 Jason Diamond <jason@injektilo.org>
4051 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
4052 qualified GetElementsByTagName courtesy of Matt Hunter
4055 2002-08-19 Jason Diamond <jason@injektilo.org>
4057 * XmlDocument.cs, XmlElement.cs: Added implementation of
4058 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
4060 2002-08-16 Jason Diamond <jason@injektilo.org>
4062 * XmlElement.cs: Fixed writing out qualified elements courtesy of
4063 Marcus Bürgel <marcus.buergel@gmx.de>.
4065 2002-08-13 Tim Coleman <tim@timcoleman.com>
4067 Partial implementation of WriteQualifiedName ().
4069 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
4070 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
4071 InsertData(), and ReplaceData(). These methods fire the
4072 NodeChanging and NodeChanged events.
4074 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
4076 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
4077 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
4079 2002-08-03 Tim Coleman <tim@timcoleman.com>
4080 * XmlNamespaceManager.cs:
4081 .Net allows the empty namespace to be redefined
4082 at a later point, but the current implementation
4083 did not. This fixes a hashtable conflict.
4085 2002-07-26 Tim Coleman <tim@timcoleman.com>
4087 When given a textwriter, check to see if it has a
4088 null encoding. This was being done for other inputs
4091 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
4093 * XmlTextReader.cs: rough line/column support.
4095 2002-07-23 Duncan Mak <duncan@ximian.com>
4097 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
4098 (string, string []) is particularly strange.
4100 * XmlException.cs: Remember to call the base serialization
4103 * XmlNodeReader.cs: Keep a new variable to store the Depth.
4105 2002-07-14 Jason Diamond <jason@injektilo.org>
4107 * XmlAttribute.cs: Removed ownerElement field since we can reuse
4110 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
4111 if the current node is an attribute.
4113 * XmlElement.cs: SetAttributeNode now sets the new attribute's
4116 2002-07-12 Jason Diamond <jason@injektilo.org>
4118 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
4119 creating an element, use String.Empty instead.
4121 2002-07-12 Piers Haken <piersh@friksit.com>
4123 * XmlAttributeCollection.cs: implement some ItemOf indexers
4124 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
4125 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
4127 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
4130 2002-10-26 Piers Haken <piersh@friskit.com>
4132 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
4134 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4136 * XmlTextReader.cs: don't increment depth for entity references.
4138 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
4140 * - Fixed the duplication of xmlns:xx = yy when serializing the
4141 XML for serialization
4143 Fixed the unnecessary parsing/serializing when adding assemblies
4146 Avoided setting the XmlNode.InnerXml property
4147 (as it's not implemented)
4149 Fixed the usage/implementation of
4150 XmlElement.GetElementsByTagName()
4152 2002-10-21 Duncan Mak <duncan@ximian.com>
4157 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
4158 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
4160 2002-10-18 Duncan Mak <duncan@ximian.com>
4162 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
4163 <ginga@kit.hi-ho.ne.jp>.
4165 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
4167 * XmlDocument.cs (ImportNode): Implemented
4169 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4171 * XmlDocument.cs: one more Load method implemented.
4172 * XmlTextReader.cs: Depth now works.
4174 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4176 * XmlConvert.cs: IsInvalid is now internal.
4177 * XmlNamespaceManager.cs: implemented RemoveNamespace
4178 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
4179 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
4181 2002-09-19 Matt Hunter <mahunter@tconl.com>
4183 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
4184 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
4186 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4188 * XmlConvert.cs: finished implementation.
4189 * XmlTextReader.cs: fixed #30239.
4190 * XmlTextWriter.cs: fixed #30240.
4192 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4194 * XmlTextReader.cs: line and position begin with 1.
4196 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4198 * XmlException.cs: added a new internal constructor for IXmlLineInfo
4199 and output line and position info in Message.
4201 * XmlReader.cs: implemented missing bits.
4203 2002-09-12 Piers Haken <piersh@friksit.com>
4205 * XmlDocumentNavigator.cs: implement MoveToId()
4207 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4209 * XmlTextWriter.cs: fixed bug #29886.
4211 2002-08-26 Ravi Pratap <ravi@ximian.com>
4214 * XmlAttribute.cs (InnerText): Implement getting this property.
4216 * XmlNode.cs (InnerText): Ensure that we append only values of
4219 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4221 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
4222 that allowed compiling this.
4223 [ FIXME: filed bug #29435. mcs should have failed on this ]
4225 2002-08-25 Tim Coleman <tim@timcoleman.com>
4227 Change CreateNavigator to not be virtual.
4229 Add set_Prefix and InnerText accessors.
4230 * XmlEntityReference.cs:
4231 Add set_Value accessor.
4233 Make objects which should be private private.
4235 Remove WriteStartElementInternal abstract definition.
4236 * XmlValidatingReader.cs:
4239 2002-08-22 Jason Diamond <jason@injektilo.org>
4241 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
4242 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
4244 2002-08-22 Jason Diamond <jason@injektilo.org>
4246 * XmlElement.cs: Correction to previous GetElementsByTagName patch
4247 courtesy of Matt Hunter <xrkune@tconl.com>.
4249 2002-08-22 Jason Diamond <jason@injektilo.org>
4251 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
4252 qualified GetElementsByTagName courtesy of Matt Hunter
4255 2002-08-19 Jason Diamond <jason@injektilo.org>
4257 * XmlDocument.cs, XmlElement.cs: Added implementation of
4258 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
4260 2002-08-16 Jason Diamond <jason@injektilo.org>
4262 * XmlElement.cs: Fixed writing out qualified elements courtesy of
4263 Marcus Bürgel <marcus.buergel@gmx.de>.
4265 2002-08-13 Tim Coleman <tim@timcoleman.com>
4267 Partial implementation of WriteQualifiedName ().
4269 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
4270 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
4271 InsertData(), and ReplaceData(). These methods fire the
4272 NodeChanging and NodeChanged events.
4274 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
4276 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
4277 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
4279 2002-08-03 Tim Coleman <tim@timcoleman.com>
4280 * XmlNamespaceManager.cs:
4281 .Net allows the empty namespace to be redefined
4282 at a later point, but the current implementation
4283 did not. This fixes a hashtable conflict.
4285 2002-07-26 Tim Coleman <tim@timcoleman.com>
4287 When given a textwriter, check to see if it has a
4288 null encoding. This was being done for other inputs
4291 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
4293 * XmlTextReader.cs: rough line/column support.
4295 2002-07-23 Duncan Mak <duncan@ximian.com>
4297 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
4298 (string, string []) is particularly strange.
4300 * XmlException.cs: Remember to call the base serialization
4303 * XmlNodeReader.cs: Keep a new variable to store the Depth.
4305 2002-07-14 Jason Diamond <jason@injektilo.org>
4307 * XmlAttribute.cs: Removed ownerElement field since we can reuse
4310 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
4311 if the current node is an attribute.
4313 * XmlElement.cs: SetAttributeNode now sets the new attribute's
4316 2002-07-12 Jason Diamond <jason@injektilo.org>
4318 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
4319 creating an element, use String.Empty instead.
4321 2002-07-12 Piers Haken <piersh@friksit.com>
4323 * XmlAttributeCollection.cs: implement some ItemOf indexers
4324 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
4325 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
4327 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
4329 * XmlTextWriter: Fixed Indentation. IndentationOverridden should
4330 not be set when inside a attribute.
4332 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
4334 * XmlTextWriter: In WriteStartElement, if namespace is null and
4335 prefix is null|empty do not write out xmlns=""
4337 * XmlWriter: WriteStartElement calls the virtual method with null
4338 argument instead of empty string.
4340 2002-07-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4342 * XmlTextReader.cs: implemented .ctor (Stream).
4344 2002-06-26 Duncan Mak <duncan@ximian.com>
4346 * XmlNodeReader.cs: Implementation of most of the properties, and
4347 some of the related methods.
4349 2002-06-23 Piers Haken <piersh@friskit.com>
4351 * XmlDocumentNavigator.cs: implement Clone()
4352 * XmlElement.cs: remove bogus unimplemented override of InnerText
4353 * XmlNode.cs: implment SelectNodes/SelectSingleNode
4354 * XmlNodeArrayList.cs: new support class for SelectNodes
4356 2002-06-21 Ajay kumar Dwivedi <adwiv@yahoo.com>
4358 * XmlQualifiedName: Name and Namespaces are never null. If null is passed
4359 to the constructor, set them to empty strings.
4360 Fixed the Operators.
4362 2002-06-18 Ajay kumar Dwivedi <adwiv@yahoo.com>
4364 * XmlTextReader.cs: HasLineInfo returns false instead of throwing an
4367 2002-06-14 Duncan Mak <duncan@ximian.com>
4369 * XmlConvert.cs: Added CLSCompliant attributes to methods.
4371 2002-06-12 Duncan Mak <duncan@ximian.com>
4373 * XmlCharacterData.cs (Value): Throw an ArgumentException in the
4374 set block if the node is read-only.
4376 2002-06-10 Ajay kumar Dwivedi <adwiv@yahoo.com>
4377 * XmlConstruct.cs : New Internal class with Helper methods for
4378 Checking XmlConstructs
4379 * XmlConvert.cs: Implemented most of the methods
4381 2002-06-08 Duncan Mak <duncan@ximian.com>
4383 * XmlDocument.cs (Load):
4384 Added bits to Load (string) for BaseURI support.
4386 * XmlAttribute.cs (BaseURI):
4387 * XmlDocument.cs (BaseURI):
4388 * XmlEntity.cs (BaseURI): Implemented.
4390 2002-05-27 Jason Diamond <jason@injektilo.org>
4392 * XmlDocumentNavigator.cs: Added file to directory.
4394 * XmlNode.cs (CreateNavigator): Implemented.
4395 (InnerText): Implemented.
4397 * XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
4399 (Load(XmlReader)): Allow for namespace qualified attributes.
4401 * XmlElement.cs: Implemented GetAttribute(string, string) and both
4402 GetAttributeNode overloads.
4403 (SetAttributeNode(XmlAttribute)): Implemented.
4405 * XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
4406 and RemoveNamedItem(string, string).
4408 * XmlLinkedNode.cs (PreviousSibling): Implemented.
4410 * XmlTextReader.cs: Added code to maintain the order of attributes as
4411 they're parsed. XML doesn't require this but Microsoft's parser does it and
4412 matching them makes testing easier so now we have it, too.
4414 2002-05-26 Miguel de Icaza <miguel@ximian.com>
4416 * XmlDocument.cs: Implement the Save methods.
4418 2002-05-08 Mike Kestner <mkestner@speakeasy.net>
4420 * XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
4422 2002-04-28 Duncan Mak <duncan@ximian.com>
4424 * XmlSignificantWhitespace.cs (Value):
4425 * XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
4426 block. Added new private method, IsValidWhitespaceChar, for
4429 2002-04-16 Duncan Mak <duncan@ximian.com>
4431 * XmlParserContext.cs (NameTable): Fixed a typo in the set block.
4433 2002-04-12 Duncan Mak <duncan@ximian.com>
4435 * XmlAttribute.cs (Prefix): Added preliminary code for set block,
4436 added comment on work that needs to be done here. A new MonoTODO item.
4438 * XmlDocument.cs (ctor): Corrected constructor signature, changed
4439 parameter from 'NameTable' to 'XmlNameTable'.
4441 * XmlDocumentFragment.cs (InnerXml): Added missing set block.
4443 * XmlCaseOrder.cs: Moved to System.Xml.XPath.
4445 2002-04-10 Duncan Mak <duncan@ximian.com>
4447 * XmlNodeReader.cs: Initial stubs for the class.
4449 2002-04-08 Kral Ferch <kral_ferch@hotmail.com>
4451 * XmlAttributes.cs: InnerXml getter, WriteContentTo, and WriteTo
4454 * XmlDeclaration.cs: WriteTo implementation.
4456 * XmlDocument.cs: InnerXml getter implementation.
4458 * XmlElement.cs: InnerXml getter implementation.
4460 * XmlNode.cs: Removed MonoTODO attrib on OuterXml.
4462 * XmlSignificantWhitespace.cs: WriteTo implementation.
4464 * XmlText.cs: WriteContentTo and WriteTo implementation.
4466 * XmlTextWriter.cs: WriteRaw implementation.
4468 * XmlWhitespace.cs: WriteContentTo and WriteTo implementations.
4470 2002-04-05 Kral Ferch <kral_ferch@hotmail.com>
4472 * XmlAttributes.cs: Added reminder MonoTODO to set NamespaceURI
4473 if prefix in constructor is one of the default ones.
4475 * XmlCharacterData.cs: Returns String.Empty for Value and Data
4476 even when constructed with null.
4478 * XmlDeclaration.cs: Value doesn't put encoding or standalone
4479 in if they are empty.
4481 * XmlDocument.cs: Implemented CreateNode methods and this caused
4482 the changes in the other files in this checkin.
4484 * XmlProcessingInstruction.cs: Returns String.Empty for Value and Data
4485 even when constructed with null.
4487 * XmlWhitespace.cs: Changed Value 'get' to return Data.
4489 2002-04-01 Kral Ferch <kral_ferch@hotmail.com>
4491 * XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
4493 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
4495 * XmlTextWriter.cs: Impls for LookupPrefix, WriteBase64,
4496 and WriteCharEntity.
4498 * XmlWrite.cs: Fixed bug where attribute namespace decl
4499 was pushing a scope onto the namespace manager when it shouldn't
4502 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
4504 * XmlTextWriter.cs: Some tweaks for WriteAttibuteString
4505 in different states (no open start element, in WriteState.Content mode).
4507 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
4509 * XmlTextWriter.cs: XmlLang and XmlSpace properties
4510 and WriteWhitespace.
4512 * XmlTextWriterOpenElement.cs: scope support for XmlLang
4515 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
4517 * XmlTextWriter.cs: Working on Attribute methods.
4519 * XmlWriter.cs: Working on Attribute methods.
4521 2002-03-28 Duncan Mak <duncan@ximian.com>
4523 * XmlDocument.cs (CreateWhitespace):
4524 (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
4527 * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
4529 2002-03-26 Duncan Mak <duncan@ximian.com>
4531 * XmlDocument.cs (CreateDocumentType): Implemented.
4533 * XmlNode.cs (Value): Implemented.
4535 * XmlProcessingInstruction.cs (InnerText): Implemented. It works just
4536 like XmlCharacterData.
4538 * XmlDeclaration.cs (CloneNode):
4539 * XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
4542 * XmlCharacterData.cs (InnerText): Implemented. Funny that the
4543 docs say it is the "The concatenated values of the node and all
4544 the children of the node.". I wrote some test programs and
4545 couldn't get any of the derived nodes to AppendChild. For now,
4546 InnerText == Data == Value.
4547 (Substring): Fixed typo.
4549 * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
4551 * XmlImplementation.cs (CreateDocument): Implemented.
4553 2002-03-25 Duncan Mak <duncan@ximian.com>
4555 * XmlDeclaration.cs: Rewrote the class, fixed formatting, added
4556 missing properties (InnerText, Value).
4558 * XmlDocument.cs (CreateXmlDeclaration): Implemented.
4560 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
4562 * XmlTextWriter.cs: Impls for BaseStream and
4563 Namespaces and WriteState.
4565 * XmlWriter.cs: WriteState and WriteStartElementInternal.
4567 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
4569 * XmlNodeListChildren.cs: made class internal
4570 instead of public. Shouldn't be visible outside
4573 * XmlTextWriter.cs: Implementations for Formatting,
4574 IndentChar, Indenting, QuoteChar, WriteStartDocument(standalone).
4575 Suppresses encoding on xml declaration if null stream passed in.
4576 Formats output including suppressing indentation for elements in
4579 * XmlTextWriterOpenElement.cs: Initial checkin.
4580 XmlTextWriter uses stack of these objects to track
4583 2002-03-22 Mike Kestner <mkestner@speakeasy.net>
4585 * XmlElement.cs: impl HasAttribute(string name).
4587 2002-03-22 Duncan Mak <duncan@ximian.com>
4589 * XmlElement.cs: Reformatted.
4590 (CloneNode) Corrected.
4592 * XmlDocument.cs (CreateWhitespace):
4593 (CreateSignificantWhitespace): Implemented.
4595 * XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
4596 true, because Attributes have ChildNodes.
4598 2002-03-21 Kral Ferch <kral_ferch@hotmail.com>
4600 * XmlTextWriter.cs: WriteStartDocument tracks state, writes out
4601 xml declaration along with encoding. WriteEndElement throws
4602 exception if no WriteStartElement exists.
4604 2002-03-20 Duncan Mak <duncan@ximian.com>
4606 * XmlEntityReference.cs (CloneNode): Implemented.
4608 * XmlException.cs (Message): Implemented. We need to cache the
4609 message string because SystemException doesn't expose 'message'
4612 * XmlText.cs (Value): Added in the missing Value property.
4614 2002-03-20 Duncan Mak <duncan@ximian.com>
4616 * XmlAttribute.cs (CloneNode): Implemented.
4618 * XmlDocumentFragment.cs (CloneNode): Implemented.
4620 * XmlElement.cs (CloneNode): Implemented.
4622 2002-03-19 Duncan Mak <duncan@ximian.com>
4624 * XmlNotation.cs: Added to CVS.
4626 * XmlAttribute.cs (CloneNode): First crack at the CloneNode method.
4628 * XmlCDataSection.cs (CloneNode): Implemented.
4630 * XmlDocumentFragment.cs: Reformatted and added the missing properties
4631 (InnerXml, OwnerDocument, ParentNode).
4632 (CloneNode): Implemented.
4634 * XmlSignificantWhitespace.cs (CloneNode): Implemented.
4635 (Value) Implemented the 'get' property.
4637 * XmlWhitespace.cs (Module): implemented.
4639 2002-03-19 Jason Diamond <jason@injektilo.org>
4641 * XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
4644 2002-03-18 Jason Diamond <jason@injektilo.org>
4646 * XmlTextReader.cs: Don't restore properties after reading last
4647 attribute on an element.
4649 * XmlDocument.cs: Move back to element after reading attributes
4650 so that IsEmptyElement test succeeds.
4652 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
4654 * XmlNamespaceManager.cs: Implemented LookupPrefix.
4656 * XmlTextWriter.cs: Implemented namespace and prefix support.
4658 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
4660 * XmlTextReader.cs: Restores properties after
4661 reading last attribute on an element.
4663 * XmlNode.cs: AppendChild sets the parent
4666 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
4668 * XmlCDataSection.cs: Formatting, Implementation for WriteTo.
4670 * XmlComment.cs: Implementations for WriteTo and WriteContentTo.
4672 * XmlElement.cs: Fixed bug in WriteTo.
4674 * XmlProcessingInstruction.cs: Formatting.
4676 * XmlTextWriter.cs: Implementations for Close, WriteCData, WriteComment,
4677 fixes for WriteEndElement, WriteProcessingInstruction.
4679 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
4681 * XmlDocument.cs: Implementations for WriteTo() and WriteContentTo(),
4682 had Load() add PIs to the document, moved onXXX methods to alphabetical
4685 * XmlElement.cs: Implementations for WriteTo() and WriteContentTo().
4687 * XmlNode.cs: Implementations for InnerXml Get and OuterXml.
4689 * XmlProcessingInstruction.cs: Implementations for WriteTo() and
4692 * XmlTextWriter.cs: Implementations for WriteEndElement,
4693 WriteProcessingInstruction, WriteStartElement, and WriteString.
4695 * XmlWriter.cs: Implemented WriteStartElement() methods.
4697 2002-03-15 Duncan Mak <duncan@ximian.com>
4699 * XmlEntity.cs: Added to CVS. Need to implement BaseURI and
4700 InnerText once I know what they do.
4702 * XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
4703 that we can properly chain constructors.
4704 (CloneNode): implemented.
4705 (WriteContentTo): Removed MonoTODO attribute as this method has no
4706 effect in this class.
4708 * XmlProcessingInstruction.cs (Value): Added the missing Set
4710 (InnerText): Added in, but not implemented.
4712 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
4714 * XmlTextWriter.cs: implemented constructors and
4715 WriteCData and WriteComment.
4717 2002-03-14 Duncan Mak <duncan@ximian.com>
4719 * XmlDocument.cs: Moved the NodeChanged EventHandler to its own
4720 file, and updated the callbacks to reflect the change.
4721 (XmlDocument): Added the NameTable constructor.
4722 (NameTable): Also the NameTable property.
4724 * XmlNodeChangedEventHandler.cs: Added, replacing the version that
4725 was in XmlDocument.cs. It has two arguments now (object,
4726 EventArgs) , instead of one (object).
4728 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
4730 * XmlWriter.cs: Formatting.
4732 * XmlTextWriter.cs: Initial checkin.
4734 2002-03-14 Duncan Mak <duncan@ximian.com>
4736 * Validation.cs: Removed, replaced by ValidationType.cs.
4738 * ValidationType.cs: Added.
4740 2002-03-13 Duncan Mak <duncan@ximian.com>
4742 * XmlException.cs: Made it [Serializable], implemented good ol'
4743 GetObjectData, and the serialization constructor.
4745 * XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
4746 (SetNamedItem): Reverted (added back in) the patch with the
4747 ReadOnly checks. "Don't doubt yourself, my son... you were right!"
4749 * XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
4750 (GetNamedItem (string, string)): implemented.
4751 (RemoveNamedItem): implemented.
4752 (SetNamedItem): implemented.
4754 2002-03-12 Kral Ferch <kral_ferch@hotmail.com>
4756 * XmlAttribute.cs: Moved a method from amongst properties down to
4757 it's alphabetical position in the methods section.
4759 * XmlNode.cs: Passes in 'this' to XmlNodeList constructor instead of
4760 last linked child. Set XmlNode base class to return false for IsReadOnly().
4761 Implemented GetEnumerator() and RemoveChild().
4763 * XmlNodeListChildren.cs: Now stores the parent instead of the last child.
4764 This is to support the behavior that the Enumerator doesn't become invalid
4765 when changes to the children occur. Flushed out rest of implementation for
4766 MoveNext, Current, and Reset.
4768 2002-03-12 Duncan Mak <duncan@ximian.com>
4770 * XmlCharacterData.cs: Reformatted the properties for better readability.
4772 * XmlLinkedNode.cs: Removed the awful boxy comments.
4774 * XmlNamedNodeMap.cs (Count):
4775 (Item): Implemented. Tests will be coming.
4777 * XmlEntityReference.cs:
4778 * XmlSignificantWhitespace.cs: Implemented these classes except for
4779 the Clone, WriteContentTo and WriteTo methods. Will have to
4780 investigate into these later.
4782 2002-03-11 Duncan Mak <duncan@ximian.com>
4784 * IHasXmlNode.cs: Added to CVS.
4786 2002-03-08 Jason Diamond <jason@injektilo.org>
4788 * XmlParserContext.cs: Added missing constructors and missing Encoding
4791 * XmlTextReader.cs: Start using the XmlParserContext class.
4793 2002-03-08 Jason Diamond <jason@injektilo.org>
4795 * XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
4797 2002-03-08 Mike Kestner <mkestner@speakeasy.net>
4799 * XmlNode.cs (Item): Implemented both indexers.
4801 2002-03-08 Jason Diamond <jason@injektilo.org>
4803 * DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
4804 XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
4806 2002-03-08 Jason Diamond <jason@injektilo.org>
4808 * XmlAttribute.cs: Attribute nodes are supposed to store their values
4809 as child nodes so updated to reflect that.
4811 * XmlDocument.cs, XmlElement.cs, XmlNode.cs: Moved code that was
4812 duplicated in XmlDocument and XmlElement into XmlNode so that it
4813 wouldn't have to be duplicated in XmlAttribute, too.
4815 2002-03-08 Kral Ferch <kral_ferch@hotmail.com>
4817 * XmlNodeList.cs, XmlDocument.cs, XmlLinkedNode.cs,
4818 XmlNode.cs: Formatting.
4820 * XmlNodeListChildren.cs: Implementation of XmlNodeList
4821 for XmlNode.ChildNodes property.
4823 * XmlNodeListAsArrayList.cs: Removed file. Using different
4824 data structure (circular list) in XmlNode so this file
4827 * XmlDocument.cs, XmlElement.cs: New ChildNodes tests found
4828 bug in setter property of LastLinkedChild so fixed it.
4830 2002-03-06 Jason Diamond <jason@injektilo.org>
4832 * XmlInputSource.cs, XmlNames_1_0.cs, XmlParse.cs: Removed files.
4833 We already have a parser in XmlTextReader.
4835 * XmlException.cs: Removed constructor accepting XmlInputSource.
4837 2002-03-06 Kral Ferch <kral_ferch@hotmail.com>
4839 * XmlNode.cs: Rewrote this class from scratch with
4840 MonoToDo attribs and NotImplementedExceptions. Now defines an
4841 internal LastLinkedNode property to aid the new implementation.
4842 XmlNodes only have ref to owner doc and parent nodes now.
4844 * XmlLinkedNode.cs: Added NextLinkedSibling internal property
4845 and ref to next sibling to support walking our circular child
4848 * XmlDocument.cs: Added ref to last child node and overrides
4849 XmlNode's internal LastLinkedChild property to support walking
4850 our circular child node list.
4852 2002-03-02 Kral Ferch <kral_ferch@hotmail.com>
4854 * XmlProcessingInstructions.cs: Class was empty. Implemented
4855 constructor, properties, and CloneNode() method. Put in
4856 MonoToDo attrib for remaining methods.
4858 * XmlComment.cs: Reformatted and put in MonoToDo attribs.
4859 Got rid of helper methods and fields since they were no
4862 * XmlLinkedNode.cs: Reformatted and put in MonoToDo attribs.
4864 * XmlDocument.cs: Added code to Load(XmlReader) to create XmlComment,
4865 XmlCDataSection, and XmlProcessingInstruction nodes. Implemented
4866 Createxxx() methods for those three node types.
4868 2002-03-02 Jason Diamond <jason@injektilo.org>
4870 * XmlDocument.cs: Implemented the remaining CreateElement and
4871 CreateAttribute methods.
4873 * XmlAttribute.cs: Re-implemented.
4875 * XmlElement.cs: Set owner element on attributes. Reformatted.
4877 2002-03-02 Jason Diamond <jason@injektilo.org>
4879 * XmlTextReader.cs: Implemented MoveToNextAttribute().
4881 * XmlDocument.cs: Reformatted. Adding missing methods and MonoTODO
4882 attributes. Create attribute nodes while loading. Implemented
4883 Load(string) and CreateTextNode().
4885 * XmlCharacterData.cs, XmlText.cs: Re-implemented.
4887 * XmlCDataSection.cs, XmlComment.cs: Call correct constructor in
4890 * XmlNamedNodeMap.cs, XmlAttributeCollection.cs: Stubbed out.
4892 2002-03-02 Mike Kestner <mkestner@speakeasy.net>
4894 * XmlAttribute.cs : Using fix.
4895 * XmlDocument.cs (CreateAttribute(String)): Implement.
4897 2002-03-02 Jason Diamond <jason@injektilo.org>
4899 * XmlNamespaceManager.cs: Atomize prefixes and namespaces strings in
4902 2002-02-28 Jason Diamond <jason@injektilo.org>
4904 * XmlDocument.cs, XmlNode.cs: Initial implementation of LoadXml
4905 courtesy of Kral Ferch <kral.ferch@hotmail.com>.
4907 2002-02-28 Jason Diamond <jason@injektilo.org>
4909 * XmlException.cs, XmlReader.cs, XmlTextReader.cs: Reformatted,
4910 added missing members and MonoTODO attributes.
4912 * XmlTextReader.cs: Throw XmlException instead of System.Exception.
4914 2002-02-27 Jason Diamond <jason@injektilo.org>
4916 * XmlElement.cs: Reformatted, added missing members and MonoTODO
4919 2002-02-26 Duncan Mak <duncan@ximian.com>
4921 * XmlCDataSection.cs: Initial implementation.
4923 * NameTable.cs: Fixed the whole thing. Wrote a NUnit test to test
4924 it out. This should (hopefully) be correct.
4926 2002-02-26 Jason Diamond <jason@injektilo.org>
4928 * XmlTextReader.cs: Apparently Microsoft's implementation treats
4929 namespace declarations as attributes so we do now, too.
4931 * XmlNamespaceManager.cs: HasNamespace fixed so that it only
4932 checks the current scope.
4934 2002-02-26 Duncan Mak <duncan@ximian.com>
4936 * XmlDocumentType.cs: Added a few hacks here and there to
4937 temporarily fix the "I broke the build issue".
4939 2002-02-25 Jason Diamond <jason@injektilo.org>
4941 * XmlDocument.cs, XmlElement.cs, XmlNode.xs, XmlNodeList.cs,
4942 XmlNodeListAsArrayList.cs: Multiple fixes necessary to get
4943 simple test to pass. The existing code is really shitty so I'll
4944 probably start writing tests and refactoring before much else
4947 2002-02-25 Duncan Mak <duncan@ximian.com>
4949 * NameTable.cs: Implemented.
4951 * XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.
4953 2002-02-24 Duncan Mak <duncan@ximian.com>
4955 * XmlNodeOrder.cs: Added to CVS.
4957 * XmlQualifiedName.cs: Fixed a warning from Equals ().
4959 * XmlTokenizedType.cs: Added to CVS.
4961 * XmlUrlResolver.cs: Added to CVS with one TODO task.
4963 2002-02-23 Duncan Mak <duncan@ximian.com>
4965 * XmlQualifiedName.cs: Fixed ToString () and added the operators
4968 2002-02-23 Jason Diamond <jason@injektilo.org>
4970 * XmlTextReader.cs: Added support for qualified attributes.
4972 2002-02-23 Jason Diamond <jason@injektilo.org>
4974 * XmlNamespaceManager.cs: Initial implementation.
4976 * XmlTextReader.cs: Added support for NamespaceURI property on
4979 2002-02-23 Nick Drochak <ndrochak@gol.com>
4981 * ChangeLog: Add the change log to this directory
4983 * XmlQualifiedName.cs: Fixed compile errors so it would build. Still has