1 2010-01-15 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlConvert.cs : Do not ignore ticks which are less than a
4 millisecond. Remove trailing zeros for milliseconds and ticks.
6 2010-01-15 Atsushi Enomoto <atsushi@ximian.com>
8 * XmlConvert.cs : trim spaces when parsing TimeSpan.
10 2010-01-15 Atsushi Enomoto <atsushi@ximian.com>
12 * XmlConvert.cs : shorten format string patterns.
14 2010-01-15 Atsushi Enomoto <atsushi@ximian.com>
16 * XmlConvert.cs : DateTimeOffset parse is sloppy.
18 2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
20 * XmlConvert.cs : handle Infinity and -Infinity here due to the
23 2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
25 * XmlConvert.cs : ToSingle(string) should do the same as ToDouble().
27 2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
29 * XmlConvert.cs : ToDouble(string) should handle NaN, INF and -INF
30 with whitespace allowed.
32 2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
34 * XmlConvert.cs : ToDouble(string) and ToIntXX(string) allows
37 2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
39 * XmlConvert.cs : ToString(DateTimeOffset) does not emit extra
42 2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
44 * XmlConvert.cs : fix some cosmetic compatibility bugs:
45 ArgumentException -> FormatException.
47 2010-01-12 Atsushi Enomoto <atsushi@ximian.com>
49 * XmlWriter.cs : handle a corner case for empty string handling
50 difference between XmlTextWriter and XmlWriter.Create().
52 2009-11-27 Atsushi Enomoto <atsushi@ximian.com>
54 * NamespaceHandling.cs, XmlWriterSettings.cs, XmlTextWriter2.cs:
55 implement NamespaceHandling support for Moonlight.
57 2009-11-17 Atsushi Enomoto <atsushi@ximian.com>
59 * XmlConvert.cs : fix DateTimeOffset roundtrip by giving format
60 strings in refined order. Patch by Santa Marta, at:
61 http://irc.gimite.net/channel/mono-jp/archive/20091105
62 ( http://smdn.invisiblefulmoon.net/misc/forum/programming/#n10 )
64 2009-11-13 Andreia Gaita <avidigal@novell.com>
66 * XmlNamespaceManager.cs: XmlReader.Read calls LookupNamespace via
67 the internal sig, which skips any overrides that might exist on
68 subclasses, so redirect all calls to the public call to make sure
69 all overrides are called as well.
70 Make AddNamespace, HasNamespace and RemoveNamespace private.
72 2009-11-11 Atsushi Enomoto <atsushi@ximian.com>
74 * XmlDocument.cs, XmlElement.cs, XmlAttribute.cs,
75 XmlAttributeCollection.cs :
76 when CreateElement() and/or CreateAttribute() are overriden,
77 use overriden method. Otherwise, use internal optimal ones.
80 2009-11-11 Atsushi Enomoto <atsushi@ximian.com>
82 * XmlNodeReaderImpl.cs : when the reader is at attribute value,
83 MoveToNextAttribute() incorrectly moved to the first attribute.
86 2009-10-23 Andreia Gaita <avidigal@novell.com>
88 * XmlConvert.cs: make ToUri static, fixes #548918 (moon)
90 2009-10-05 Atsushi Enomoto <atsushi@ximian.com>
92 * XmlConvert.cs : fix wrong ToDateTimeOffset loop, based on the
93 patch by David Mitchell.
95 2009-09-15 Atsushi Enomoto <atsushi@ximian.com>
97 * XmlAttributeCollection.cs : removed duplicate ID attribute check
98 here as this behavior not specifically defined by W3C DOM Level 2
99 specification. Fixed bug #508296.
101 2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
103 * XmlTextReader.cs : there still was use of bogus
104 XmlParserContext.NameTable.
106 2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
108 * XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed
109 as long as the URI is correct. Fixed bug #514015.
111 2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
113 * XmlInputStream.cs : cosmetic exception type change. Patch by
114 Hib Eris. Fixed bug #523971.
116 2009-05-27 Sebastien Pouliot <sebastien@ximian.com>
118 * XmlReaderSettings.cs: Set prohibitDtd when changing the value
119 of DtdProcessing. Will fix a few Moonlight DRT tests
121 2009-05-19 Atsushi Enomoto <atsushi@ximian.com>
123 * XmlConvert.cs : no reason not to report invalid input string for
126 2009-04-28 Sebastien Pouliot <sebastien@ximian.com>
128 * XmlTextReader.cs (InitializeContext): Under NET_2_1 do not give
129 a second change using Path.GetFullPath. (GetStreamFromUrl) Add
130 extra validations that would be missed in NET_2_1
132 2009-04-28 Sebastien Pouliot <sebastien@ximian.com>
134 * XmlReaderSettings.cs: Add MaxCharactersInDocument property for
136 * XmlUrlResolver.cs: Cleanup #ifdef NET_2_1 inside this file
137 since this is not used anymore in Moonlight
139 2009-04-28 Sebastien Pouliot <sebastien@ximian.com>
141 * XmlXapResolver.cs: Remove dependency on XmlUrlResolver. Small
142 fixes wrt new unit tests (inside moon-unit).
144 2009-04-28 Sebastien Pouliot <sebastien@ximian.com>
146 * XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
147 method for NET_2_1 profile.
149 2009-04-22 Atsushi Enomoto <atsushi@ximian.com>
151 * XmlQualifiedName.cs : added Parse() overload that is used for
154 2009-04-22 Atsushi Enomoto <atsushi@ximian.com>
156 * XmlAttributeCollection.cs : when the node to be inserted has owner
157 element _but_ is identical to that of this collection, do not
158 reject it to raise an error. Fixed bug #496022.
160 2009-03-25 Geoff Norton <gnorton@novell.com>
162 * XmlTextReader.cs: Create the uri as relativeorabsolute.
164 2009-03-18 Atsushi Enomoto <atsushi@ximian.com>
166 * XmlReader.cs : handle DateTimeOffset in typed reader methods.
168 2009-03-17 Atsushi Enomoto <atsushi@ximian.com>
170 * XmlTextWriter2.cs : some weird TextWriter has null Encoding.
173 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
175 * XmlParserContext.cs : .NET has weird nametable initialization.
178 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
180 * XmlReader.cs : (ReadToFollowing) check LocalName, not Name.
183 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
185 * DTDRreader.cs : read up all DTD stream so that we don't have to
186 see bugs like #469317 many times.
188 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
190 * XmlReaderBinarySupport.cs : ReadContentsAsBase64() could skip
191 EndElement at the next XmlReader.Read(). Fixed bug #480066.
193 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
195 * XmlTextWriter2.cs : only bogus v1 XmlTextWriter ignores null
196 namespace for conflict check. Fixed bug #479725.
198 2009-03-13 Atsushi Enomoto <atsushi@ximian.com>
200 * XmlConvert.cs : added ToUri() (extraneous in 2.0; used only from
201 2.1 S.X.Serialization.dll in MS SDK).
203 2009-03-02 Chris Toshok <toshok@ximian.com>
205 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
206 EntityResolvingXmlReader.cs: 2.1 has HasValue.
209 2009-02-27 Atsushi Enomoto <atsushi@ximian.com>
211 * XmlReader.cs : do not try to read at non-readable state in
214 2009-02-23 Alan McGovern <amcgovern@novell.com>
216 * XmlTextReader.cs: Under the SL2 profile, the default resolver
219 2009-02-23 Atsushi Enomoto <atsushi@ximian.com>
221 * XmlReader.cs : ReadContentAsXxx() should not advance XmlReader
222 when it is on attribute *value* text.
224 2009-02-10 Atsushi Enomoto <atsushi@ximian.com>
226 * XmlTextWriter2.cs : similar fix in WriteStartElement() to
227 previous change. Fixed bug #474091.
229 2009-02-09 Atsushi Enomoto <atsushi@ximian.com>
231 * XmlElementTest.cs: SetAttribute(name,value) should identify value
232 change for existing node, from new node insertion.
235 2009-02-06 Atsushi Enomoto <atsushi@ximian.com>
237 * XmlTextWriter2.cs : in WriteStartAttribute(), fill namespace in
238 case it is null and the prefix has matching ns. Fixed bug #472634.
240 2009-01-30 Atsushi Enomoto <atsushi@ximian.com>
242 * DTDValidatingReader2.cs, EntityResolvingXmlReader.cs : simplify
243 parsercontext provision.
244 * XmlValidatingReader.cs : expand parser context provision to
245 non-dtdvalidating readers.
247 2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
249 * XmlXapResolver.cs : fix assembly qualified names,
250 and give detailed errors.
251 * XmlResolver.cs : in 2.1 do not resolve relative Uri
254 2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
256 * XmlXapResolver.cs : new in 2.1.
257 * XmlReaderSettings.cs : use above.
259 2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
261 * XmlDocumentNavigator.cs : in some corner cases an attribute
262 may have null OwnerElement. Fixed bug #458245.
264 2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
266 * XmlReaderBinarySupport.cs : do not hang in the middle of reading
267 byte chunk at some node types. Fixed bug #464229.
269 2009-01-14 Sebastien Pouliot <sebastien@ximian.com>
271 * NamespaceHandling.cs: New. Enum for Silverlight 2. Microsoft's
272 System.Xml.Linq.dll (often bundled in XAP files) needs it (or we
273 throw a TypeLoadException).
274 * XmlWriterSettings.cs: Add SL2 specific NamespaceHandling property
276 2009-01-08 Atsushi Enomoto <atsushi@ximian.com>
278 * XmlReader.cs : ReadContentAsString() does not reject non-elements.
279 ReadElementContentAsString() rejects non-content nodes.
281 2008-12-19 Atsushi Enomoto <atsushi@ximian.com>
283 * XmlNamespaceManager.cs : namespace lookup failed for non-atomic
284 string in 1.1 profile. Fixed 1.0 part of #379139.
286 2008-12-18 Atsushi Enomoto <atsushi@ximian.com>
288 * DTDValidatingReader.cs : remove unused file.
290 2008-11-04 Atsushi Enomoto <atsushi@ximian.com>
292 * XmlTextReader.cs : simply call ClearValueBuffer() on each Read().
294 2008-10-02 Atsushi Enomoto <atsushi@ximian.com>
296 * XmlDocumentNavigator.cs : added some overriden methods (to be
299 2008-09-24 Atsushi Enomoto <atsushi@ximian.com>
301 * XmlDocument.cs : it returns non-null Schemas by default (and
302 returns non-empty set after being set null).
304 2008-09-17 Atsushi Enomoto <atsushi@ximian.com>
306 * XmlReader.cs : detailed error location in ReadSubtree().
308 2008-09-17 Atsushi Enomoto <atsushi@ximian.com>
310 * XmlReader.cs : ReadSubtree() is valid only on an element.
312 2008-09-10 Atsushi Enomoto <atsushi@ximian.com>
314 * XmlDocument.cs, XmlDocumentNavigator.cs :
315 reduce navigator fields.
317 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
319 * EnityResolvingXmlReader.cs:
322 * XmlTextReader2.cs: re-enable ResolveEntity for 2.1
324 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
326 * XmlReaderSettings.cs: adding DtdProcessing and
327 MaxCharactersFromEntities properties for 2.1
329 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
331 * DtdProcessing: adding this enum on the 2.1 build
333 2008-08-05 Jb Evain <jbevain@novell.com>
335 * XmlConvert.cs (ToChar): add a specific SL2 version.
337 2008-07-28 Atsushi Enomoto <atsushi@ximian.com>
339 * XmlNamespaceManager.cs : check null arg.
340 * XmlTextReader.cs : fixed bug #412657; now we populate nametable
341 and namespace manager in case they are null in parser context, and
342 use them instead of the members in the parser context.
344 2008-06-11 Atsushi Enomoto <atsushi@ximian.com>
346 * XmlConvert.cs : fixed bug #397934. Utc mode accepts more formats.
348 2008-06-11 Atsushi Enomoto <atsushi@ximian.com>
350 * XmlConvert.cs : no need for TARGET_JVM.
352 2008-06-09 Atsushi Enomoto <atsushi@ximian.com>
354 * XmlTextReader.cs : when Normalized is true, '<' after \r which
355 comes after text node was incorrectly consumed as a text content.
358 2008-06-05 Atsushi Enomoto <atsushi@ximian.com>
360 * XmlConvert.cs : now we can use roundtrip format for float/double.
363 2008-06-04 Atsushi Enomoto <atsushi@ximian.com>
365 * XmlTextReader2.cs : added FIXME comment which won't fix, that
366 I have noticed during fixing bug #378239.
368 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
370 * XmlReader.cs : some Create() overloads with baseUri argument did
371 not set baseUri correctly. Fixed bug #392385.
373 2008-05-07 Atsushi Enomoto <atsushi@ximian.com>
375 * XmlReader.cs : force CloseInput to every XmlReader that is created
376 from url (I mean, every internal XmlReader instance).
378 2008-04-17 Atsushi Enomoto <atsushi@ximian.com>
380 * XmlAttributeCollection.cs : check attribute identity only if the
381 source node is in the document tree. Fixed bug #380720.
383 2008-02-19 Atsushi Enomoto <atsushi@ximian.com>
385 * XmlParserContext.cs : .net does not populate XmlNamespaceManager
387 * XmlDocument.cs : so, always create one here.
389 2008-01-25 Atsushi Enomoto <atsushi@ximian.com>
391 * XmlReader.cs : MoveToNextSibling() should check EOF (as Skip() does
392 not). Fixed bug #347768.
394 2008-01-15 Atsushi Enomoto <atsushi@ximian.com>
396 * XmlParserContext.cs : do not pass invalid URI to XmlTextReader#ctor
397 even as a dummy. Fixed bug #353654.
399 2007-12-17 Atsushi Enomoto <atsushi@ximian.com>
401 * XmlConvert.cs : added NET_3_5 members.
403 2007-12-06 Atsushi Enomoto <atsushi@ximian.com>
405 * XmlUrlResolver.cs : in net_2_0, use Uri.IsAbsoluteUri to filter
408 2007-11-09 Atsushi Enomoto <atsushi@ximian.com>
410 * XmlConvert.cs : ToDateTime(XmlDateTimeSerializationMode) should
411 allow more strings than existing one. Fixed bug #339004.
413 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
415 * XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
416 not Parse(). Use 'K' for roundtrip format.
418 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
420 * XmlTextWriter2.cs : making <del>silly</del>funky MS compatibility
421 change in WriteStartAttribute() to call WriteEndAttribute() if an
424 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
426 * XmlTextWriter2.cs : I could make previous change only in 2.0 mode.
428 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
430 * XmlTextWriter2.cs : When it is at Error state, do not try to close
431 attributes and elements at Close(). They will result in further
432 error and rather hide the actual issue when disposed.
434 2007-09-28 Atsushi Enomoto <atsushi@ximian.com>
436 * XmlWriter.cs : it is now documented that WriteNode(XPathNavigator)
437 ignores attributes and namespace decls, so do that.
438 * XQueryConvert.cs : removed extra stuff that are not in use.
440 2007-09-27 Atsushi Enomoto <atsushi@ximian.com>
442 * XmlWriter.cs : implemented WriteValue(object) based on
443 MSDN "Writing Typed Data" with some fix.
444 http://msdn2.microsoft.com/en-us/library/bft97s8e(VS.80).aspx
445 * XmlTextWriter.cs : state check is extraneous. It caused unexpected
446 rejection of empty namespace URI.
448 2007-08-13 Atsushi Enomoto <atsushi@ximian.com>
450 * XmlTextWriter2.cs : fix extraneous indentation which is put after
453 2007-08-09 Jb Evain <jbevain@novell.com>
455 * XmlTextReader.cs: Avoid using 2.0 only feature in 2.1.
457 2007-08-09 Jb Evain <jbevain@novell.com>
459 * XmlConvert.cs: use 2.1 available overloads of Parse.
461 2007-08-09 Jb Evain <jbevain@novell.com>
463 * XmlInputStream.cs: there's no ASCII encoding in 2.1.
465 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
467 * XmlReader.cs XmlNodeReader2.cs XmlTextReader.cs XmlTextReader2.cs
468 XmlNodeReaderImpl.cs EntityResolvingXmlReader.cs :
469 The previous attempt was wrong. Those internal-virtualized ones
470 could be used in System.Xml.Core classes and outside the assembly
471 any derived XmlReaders would have thrown throw Exception.
472 Now I marked them as nonexistent-in-2.1 or privatized.
473 * XmlWriter.cs : actually only this class is affected (if there
474 were DOM or XSD they would have been affected as well).
476 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
478 * XmlReader.cs : HasValue, ReadAttributeValue() and ResolveEntity()
479 do not exist in 2.1 profile. Hiding abstract stuff seems to cause
480 some issues at run time, so they are ifdef-ed out from 2.1.
481 * XmlNodeReader2.cs DTDValidatingReader2.cs XmlTextReader.cs
482 XmlTextReader2.cs XmlNodeReaderImpl.cs DTDValidatingReader.cs
483 EntityResolvingXmlReader.cs : hence the change above.
485 2007-08-04 Jb Evain <jbevain@novell.com>
487 * XmlUrlResolver.cs: remove code duplication in 2.1.
489 2007-08-04 Jb Evain <jbevain@novell.com>
491 * XmlTextReader.cs, XmlConvert.cs, XmlReaderBinarySupport.cs:
492 Use the available constructor for the 2.1 profile.
494 2007-08-03 Atsushi Enomoto <atsushi@ximian.com>
496 * DTDObjectModel.cs : in 2.0 and especially 2.1 profiles, use
497 our own DictionaryBase-like generic type. It is to reduce
498 dependency on DictionaryBase which does not exist in 2.1 mscorlib.
499 (included in 2.0 as well so that we do not skip NUnit tests so far)
501 2007-08-03 Atsushi Enomoto <atsushi@ximian.com>
503 * XmlResolver.cs, XmlUrlResolver.cs, XmlSecureResolver.cs :
504 remove ICredential in NET_2_1 (they have to be explicitly removed
505 outside tuner work as ICredentials does not exist in 2.1 profile).
506 We cannot use WebRequest in 2.1 as well, so remove dependency on
507 it in GetEntity() (and added MonoTODO for non-file URLs).
509 2007-07-12 Atsushi Enomoto <atsushi@ximian.com>
511 * XmlWriter.cs : in WriteNode(XPathNavigator,bool), default namespace
512 is broken. Fixed bug #82051.
514 2007-07-11 Atsushi Enomoto <atsushi@ximian.com>
516 * XmlReader.cs : looks like I introduced extra Settings check at
517 r69383. Fixed bug #82062.
519 2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
521 * DTDValidatingReader2.cs :
522 we can remove NET_2_1 from this unused code in SL.
524 2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
526 * DTDAutomata.cs DTDObjectModel.cs DTDReader.cs
527 DTDValidatingReader2.cs XmlException.cs XmlReader.cs
528 XmlReaderSettings.cs XmlWriter.cs :
529 Make System.Xml.Core.dll build easier, using NET_2_1.
531 DTD support is simply cut at this stage (as it largely depends on
532 sys.xml.schema stuff).
534 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
536 * XmlTextReader.cs: Expose ProhibitDtd on 1.0 profile too.
538 2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
540 * XmlNode.cs : InnerText is settable on XmlDocumentFragment (silly,
541 but since XmlDocumentFragment does not override this property
542 it must be handled here).
544 2007-06-11 Atsushi Enomoto <atsushi@ximian.com>
546 * XmlTextReader.cs : ReadStartElement() has bogus error message.
548 2007-05-31 Atsushi Enomoto <atsushi@ximian.com>
550 * XmlTextWriter2.cs :
551 NewLineOnAttributes indentation fix, for bug #81770.
553 2007-05-25 Atsushi Enomoto <atsushi@ximian.com>
555 * XQueryConvert.cs : removed unused methods. They will prevent
556 System.Xml.Core.dll implementation.
558 2007-05-15 Konstantin Triger <kostat@mainsoft.com>
560 * XmlWriter.cs, XmlTextWriter2.cs: ensure the file
561 is closed in XmlWriter.Create(filename).
563 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
565 * XmlConvert.cs : MinValue and MaxValue, same for ToDateTime().
567 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
569 * XmlConvert.cs : MinValue and MaxValue are unchanged by the
570 serialization mode (unlike DateTime.ToString()).
572 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
574 * XmlConvert.cs : in 2.0, use F instead of f in dateTime formatting.
576 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
578 * XmlReader.cs : fixed wrong depth comparison in ReadToNextSibling().
579 Fixed bug #81451, by Eric Mercier.
581 2007-04-03 Atsushi Enomoto <atsushi@ximian.com>
583 * XmlTextReader.cs : character ']' inside DTD comment caused parser
584 error. Fixed bug #81294.
586 2007-03-05 Atsushi Enomoto <atsushi@ximian.com>
588 * XmlReader.cs : when Create() returns customized XmlTextReader, set
589 EntityHandling.ExpandEntities. Fixed bug #81000.
591 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
593 * XmlTextReader.cs, XmlTextReader2.cs : Reset() should work now.
596 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
598 * DTDValidatingReader2.cs, XmlTextReader.cs, XmlNodeReaderImpl.cs:
599 Read() silently returns false when it is closed. Fixed bug #80848.
601 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
603 * XmlReader.cs : ReadElementContentAsString() and all relevant methods
604 didn't consume empty element correctly.
606 2006-12-20 Atsushi Enomoto <atsushi@ximian.com>
608 * XmlNode.cs : (InsertBefore) when newChild == refChild, do nothing
609 except for node type check. Fixed bug #80331.
611 2006-12-19 Atsushi Enomoto <atsushi@ximian.com>
613 * XmlTextReader.cs : Fixed ReadChars() to consume child elements,
614 including such cases that it breaks tags in the middle of multiple
615 ReadChars() calls. Fixed bug #80308.
617 2006-12-19 Atsushi Enomoto <atsushi@ximian.com>
619 * XmlTextReader.cs : ReadChars() does not have to store characters,
620 so avoid extra storing. Patch by Csaba Halasz, fixed bug #80306.
622 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
624 * XmlNode.cs : InnerText was returning comment text when there was
625 only a Comment node. Fixed bug #80233.
627 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
629 * XmlReader.cs : Create() with string url was not returning validating
632 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
634 * DTDValidatingReader2.cs : when an attribute declaration is missing
635 in the corresponding attlist declaration, it caused NRE.
638 2006-12-11 Atsushi Enomoto <atsushi@ximian.com>
640 * XmlDocument.cs : call overriden CreateAttribute() when loading from
643 2006-12-05 Atsushi Enomoto <atsushi@ximian.com>
645 * XmlReader.cs : new 2.0 MoveToAttribute(int) failed to move to the
646 final attribute in an element.
648 2006-12-05 Atsushi Enomoto <atsushi@ximian.com>
650 * XmlNode.cs : GetPrefixOfNamespace() was not correctly searching
651 ancestors' namespaces.
653 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
655 * XmlTextWriter2.cs : fixed some relationship between
656 ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
657 See new tests more details.
658 * XmlWriter.cs : it could reuse XmlTextWriter.ctor(TextWriter,
659 XmlWriterSettings). It also resulted in dropping several internal
660 members in XmlTextWriter.
662 2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
664 * XmlReaderSettings.cs : in copy constructor, copy (dispatch)
665 validation event as well. Add OnValidationError() to be invoked
666 by other internal stuff to raise the validation event.
668 2006-11-13 Michael Meeks <michael.meeks@novell.com>
670 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs:
671 pass the XmlResolver through to the GetStream impl.
673 2006-10-30 Atsushi Enomoto <atsushi@ximian.com>
675 * XmlTextReader2.cs : if DTD does not exist, do not try to resolve
676 entity from null DTD (caused NRE). Fixed bug #79620.
678 2006-10-27 Atsushi Enomoto <atsushi@ximian.com>
680 * DTDReader.cs : some parameter entity expansions were not done.
683 2006-09-27 Atsushi Enomoto <atsushi@ximian.com>
685 * XmlTextWriter2.cs : null arg check.
687 2006-09-26 Atsushi Enomoto <atsushi@ximian.com>
689 * XmlDeclaration.cs :
690 Removed bogus return statement in Value. Fixed bug #79496.
692 2006-09-21 Atsushi Enomoto <atsushi@ximian.com>
694 * XmlNameEntryCache.cs : It should expand temporary buffer even at
695 initial state. Fixed bug #79468.
697 2006-09-19 Atsushi Enomoto <atsushi@ximian.com>
699 * XmlElement.cs : for non-atomized names, alter null prefix with "".
702 2006-09-04 Atsushi Enomoto <atsushi@ximian.com>
704 * XmlReader.cs : ReadContentAsString() and its family should allow
705 attribute node. Fixed bug #79268.
707 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
709 * XmlTextWriter2.cs : expect atomized names only when it is
710 appropriate. Fixed bug #79047.
712 2006-08-26 Atsushi Enomoto <atsushi@ximian.com>
714 * XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
715 so that it could fill default and fixed attributes. This ends up
716 to fix bug #79163 (it fills fixed "xmlns" attribute and thus
717 the node's namespace URI becomes that of glade-2.0).
719 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
721 * XmlEntity.cs, XmlEntityReference.cs, XmlNode.cs :
722 create entity content only when its children is being accessed.
723 It results differently when there is no actual reference in the
724 document - an invalid entity value (when it is used to create
725 child nodes) is ignored unless a code tries to access the Value
726 of an XmlEntity. Fixed bug #79091
727 * DTDReader.cs : the fix above uncovered another bug (ibm66n03.xml).
728 Check illegal reference name in literal entity value.
730 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
732 * XmlTextReader.cs, XmlTextReader2.cs, DTDReader.cs :
733 (ResolveExternalEntityReplacementText) need to skip text
734 declaration in external entities. To make it possible internalize
735 SkipTextDeclaration() in XmlTextReader(2). Fixed bug #79090.
737 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
739 * XmlTextReader2.cs : Check recursive entity reference.
740 Fixed bug #79085. It makes W3C standalone tests on NET_2_0 working.
742 2006-08-14 Atsushi Enomoto <atsushi@ximian.com>
744 * XmlTextReader.cs : When a whitespace node comes after a text
745 declaration in XML external entity (i.e. .ctor() with
746 XmlNodeType.Element), it contained extra value character ('<').
748 2006-08-10 Atsushi Enomoto <atsushi@ximian.com>
750 * XmlTextWriter2.cs : more indentation fixes. Now I believe it is
751 almost MS compat, but it won't help poor Mike.
753 2006-08-07 Atsushi Enomoto <atsushi@ximian.com>
755 * XmlTextWriter2.cs : WriteBinHex() is allowed at Attribute state.
758 2006-07-28 Atsushi Enomoto <atsushi@ximian.com>
760 * XmlTextWriter2.cs : fixed some indentation bugs: comments and PIs
761 should not cause indentation override like text, cdata and
763 Fixed some error messages on node kind.
764 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs : removed old code.
765 (I don't want to remove old great code but it confused mike today.)
767 2006-07-26 Atsushi Enomoto <atsushi@ximian.com>
770 For DTD validator, call to SetSchemas() makes no sense.
771 * XmlValidatingReader.cs : now it internally holds old
772 XmlSchemaCollection instead of new XmlSchemaSet, to make
773 XmlSchemaSet.SchemaCollection unneccessary.
774 Removed SetSchemas() since it is now extraneous because of the
775 XmlReaderChange above.
777 2006-07-25 Atsushi Enomoto <atsushi@ximian.com>
779 * XmlConvert.cs : TimeSpan conversion for TimeSpan.MinValue was
782 2006-07-19 Atsushi Enomoto <atsushi@ximian.com>
784 * XmlReader.cs : In Create(), support validation flags for DTD.
785 * DTDValidatingReader2.cs : when NET_2_0 and ProcessIdentityConstraints
786 is false, skip ID validation.
788 2006-06-26 Atsushi Enomoto <atsushi@ximian.com>
790 * XmlReader.cs : when Create() received string url, it should set
791 XmlTextReader2.CloseInput always true. Fixed bug #78706.
793 2006-06-08 Atsushi Enomoto <atsushi@ximian.com>
795 * XmlTextWriter2.cs : if an attribute being written has the same
796 non-empty namespace URI as current default namespace, its prefix
797 should be written. Fixed bug #78598.
799 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
801 * XmlAttribute.cs : (WriteTo) when the namespace URI is empty,
802 always use empty string for prefix.
804 2006-04-27 Geoff Norton <gnorton@customerdna.com>
806 * XmlDocument.cs: Move back to the element after
807 reading an attribute. This mimics Microsofts behaviour.
809 2006-04-21 Atsushi Enomoto <atsushi@ximian.com>
811 * XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
812 rejected after writing some content. I totally disagree on that
813 it should be allowed, but here is the fix.
815 2006-04-14 Atsushi Enomoto <atsushi@ximian.com>
817 * XmlReader.cs : ReadElementContentAsObject() incorrectly rejected
818 the argument type System.Object.
820 2006-04-10 Atsushi Enomoto <atsushi@ximian.com>
822 * XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
823 and root nodes instead of dispatching to ReadSubtree().
825 2006-04-06 Atsushi Enomoto <atsushi@ximian.com>
827 * XmlReader.cs : ReadElementContentAsXXX() did not consume empty
830 2006-04-05 Atsushi Enomoto <atsushi@ximian.com>
832 * XmlWriter.cs : Create(StringBuilder,XmlWriterSettings) was missing
833 settings argument to pass another .ctor().
834 * XmlWriterSettings.cs : set_NewLineChars() should reject null.
836 2006-04-03 Boris Kirzner <borisk@mainsoft.com>
837 * XmlException.cs: fix .net soap serialization compatibility.
839 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
841 * XmlNameEntry.cs XmlNameEntryCache.cs :
842 Added atomization support for prefixed names.
843 Inspired by Joshua Tauberer's patch.
844 * XmlElement.cs XmlAttribute.cs : use above.
846 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
848 * XmlReader.cs : in XmlReader.Create() ValidationType Auto and XDR
849 are simply ignored (it was found on running NvdlValidatingReader
852 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
854 * DTDValidatingReader.cs : avoid NullReferenceException. Input
855 XmlReader might not be IHasXmlParserContext.
857 2006-03-08 Atsushi Enomoto <atsushi@ximian.com>
859 * XmlReader.cs: ReadContentAsXXX() just stops at start element,
860 without rejecting it as an error.
861 ReadElementContentAsXXX() rejects child element nodes.
863 2006-02-28 Atsushi Enomoto <atsushi@ximian.com>
865 * XmlElement.cs : (WriteTo) use IsEmpty to determine which to use:
866 WriteEndElement() and WriteFullEndElement(). Fixed sys.security
869 2006-02-24 Atsushi Enomoto <atsushi@ximian.com>
871 * XmlTextWriter2.cs :
872 WriteRaw() has stupid second arg. Fixed bug #77623.
873 WriteString() should raise an error when it is called immediately
874 after WriteStartDocument().
876 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
878 * XmlTextWriter2.cs : WriteChars() should allow Attribute state.
880 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
882 * XmlChar.cs : (IndexOfInvalidChar) fixed surrogate pairs handling.
883 They were always regarded as invalid.
884 * XmlTextWriter2.cs : seems like MS XmlTextWriter outputs invalid
885 characters as character references. It totally does not make sense
886 but corcompare depended on that behavior.
888 This "compatibility" fix causes 10% or more performance loss!!!
890 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
892 * XmlTextWriter2.cs : (WriteStartAtribute) more == removal.
893 * XmlNode.cs : (get_InnerText) reduce extra StringBuilder creation.
895 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
897 * XmlTextWriter2.cs : (WriteStartAttribute) reduced string == string.
899 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
901 * XmlDocument.cs : (ReadNodeCore) not public.
903 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
905 * XmlTextWriter2.cs : (CloseStartElement)
906 Avoid ArrayList.Clear() and culture-sensitive Contains().
908 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
910 * XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
911 which discards "overriden" namespaces.
912 * XmlTextWriter2.cs : fresh implementation.
913 - The source structure is simplified and cleaner.
914 - When outputting escaped string, output directly to TextWriter.
915 - roughly 20% performance improvement.
917 (Also fixed previous perf. evaluation excess in ChangeLog.)
919 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
921 * XmlElement.cs : (WriteTo) make use of HasAttributes. Remove extra
922 check. 5% speed improvement.
924 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
926 * DTDValidatingReader2.cs : added Source XmlReader property for
927 XsdValidatingReader use (see XsdValidatingReader change as well).
929 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
931 * EntityResolvingXmlReader.cs, XmlNodeReader2.cs, XmlTextReader2.cs :
932 in get_NodeType() entity reader existence check is faster.
933 * DTDValidatingReader2.cs : IsDefault could be avoided.
935 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
937 * XmlNodeReaderImpl.cs : optimized Depth.
939 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
941 * XmlValidatingReader.cs : reducing layered ReadState invocation
942 results in 10% speed up.
944 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
946 * XmlNodeReaderImpl.cs : Reimplemented Read(). Points are:
947 - reduced call to NextSibling which is very unlikely to be inlined
948 - reorganized conditioning to avoid extra check
949 - added description on each returning branch.
950 - And then, removed unused code.
951 It is 1.5x faster than before.
953 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
955 * XmlElement.cs : NextSibling could be effectively computed using
956 LastLinkedChild, beyond previous XmlLinkedNode optimization.
958 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
960 * XmlLinkedNode.cs : In NextSibling, use LastChild directly.
961 It improves NextSibling performance in bulky document.
963 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
965 * XmlNodeReaderImpl.cs : do not compute ownerLinkedNode, just store
966 it in Read(). Simply use state field in EOF. They result in 20%
967 perf. boost. Expanding EOF also improved performance by 2-3%
968 (mono --optimize=inline might work in the later stage).
970 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
972 * DTDValidatingReader2.cs : more refactoring. Split ReadContent()
973 into some methods. Reduced some extra MoveToElement().
975 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
977 * DTDValidatingReader2.cs : more refactoring. Removed and simplified
978 some error check. String += would be enough for entity-reference-
979 mixed attributes which rarely happen, so simplify the code.
980 Added comments on how the fields are used.
982 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
984 * DTDValidatingReader2.cs : attribute node simplification. It now
985 stores attribute node slots, including default attributes for
988 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
990 * DTDValidatingReader2.cs, EntityResolvingXmlReader.cs :
991 new files for refactoring DTD validating reader. As the first stage,
992 it splits entity handling process from DTD validation step.
994 (DTDValidatingReader.cs will be removed at some stage).
996 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
998 * DTDObjectModel.cs : entity resolution method will be used in
999 the next DTD validating reader in 1.x.
1001 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
1003 * IHasXmlChildNode.cs :
1004 New internal interface to hold LastLinkedChild.
1005 * XmlNodeListChildren.cs XmlEntity.cs XmlElement.cs XmlAttribute.cs
1006 XmlLinkedNode.cs XmlEntityReference.cs XmlNode.cs
1007 XmlDocumentFragment.cs XmlDocument.cs : use it. It minimizes memory
1008 consumption in XmlText, XmlWhitespace, XmlComment etc.
1010 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
1012 * XmlChar.cs : added IndexOfNonWhitespace() and IndexOfInvalid() (not
1014 * NewLineHandling.cs : prepared to be used internally in 1.x.
1016 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
1018 * XmlDocument.cs XmlTextReader.cs : in ReadNode(), we can avoid
1019 extraneous whitespace node creation for XmlTextReader by setting
1020 WhitespaceHandling.Significant when PreserveWhitespace is false.
1022 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
1024 * XmlTextReader.cs : atomize whitespace values. It effectively saves
1025 memory consumption when an input XML is indented.
1027 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
1029 * XmlTextReader.cs : When "Significant" is assigned to
1030 WhitespaceHandling, it should ignore non-significant whitespaces.
1032 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
1034 * XmlWriter.cs : (WriteElementString and WriteAttributeString)
1035 Skip empty string output.
1037 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
1039 * XmlTextWriter.cs : WriteRaw("") is not simply ignored but process
1040 state check and closes open tag.
1042 2006-02-11 Atsushi Enomoto <atsushi@ximian.com>
1044 * XmlTextReader.cs :
1045 Avoid extra AppendValueChar() in ReadWhitespace().
1047 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
1049 * XmlTextReader.cs : ReadTextReader() is now assured to have current
1050 node content, except for Text, CDATA and Comment. ReadName() does
1051 not use nameBuffer and reuse peekChars.
1053 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
1055 * XmlTextReader.cs : eliminated currentTagBuffer. XmlDeclaration is
1056 now once read as PI and then re-parsed from Value. DTD internal
1057 subset is now parsed as usual "value".
1059 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
1061 * XmlTextReader.cs : Expect() could be written inline and it could
1062 provide better information. ReadEndTag() could use Expect() instead
1063 of costy ReadName().
1065 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
1067 * XmlTextReader.cs : on ReadEndTag() we can avoid NameTable.Add().
1068 Store name, local name and prefix in the stack instead of just name
1069 and reuse them for EndElement.
1071 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
1073 * XmlDocumentNavigator.cs : make use of HasAttributes (avoid possible
1074 XmlAttributeCollection creation).
1076 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
1078 * XmlTextReader.cs : no need to call Clear() for each attribute value.
1080 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
1082 * XmlDocument.cs : reverted most of the previous changes. It somehow
1083 broke System.Data tests.
1085 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
1087 * XmlDocument.cs, XmlAttribute.cs, XmlElement.cs : Avoid unnecessary
1088 name checks in CreateElement() and CreateAttribute().
1089 get_DocumentType() could be stopped when the iterated child node
1090 is the document element.
1091 * XmlNode.cs : removed commented lines.
1092 * XmlNameEntry.cs : hash code for a name entry is mostly identical by
1093 its local name, so avoid extraneous GetHashCode() especially on
1096 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
1098 * XmlReader.cs : ReadOuterXml() returns meaingful value only for
1099 element and attribute. ReadInnerXml() does not have to create
1100 XmlTextWriter for empty elements.
1102 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
1104 * XmlNodeReader2.cs XmlException.cs XmlReader.cs XmlTextReader.cs
1105 XmlWriter.cs XmlTextWriter.cs XmlValidatingReader.cs
1106 XmlNodeReaderImpl.cs DTDValidatingReader.cs XmlSecureResolver.cs:
1107 cleaning up obsolete NET_1_0 code.
1109 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
1111 * XmlTextWriter.cs : avoid case-insensitive String.Compare().
1112 Use array for openElements rather than ArrayList.
1114 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
1116 * XmlElement.cs, XmlAttribute.cs :
1117 Avoid ChildNodes.Count and use FirstChild/NextSibling.
1119 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
1121 * XmlNode.cs, XmlIteratorNodeList.cs :
1122 Now we can enable XmlIteratorNodeList again (mcs, incorrectly
1123 removing nodes in the node list, was fixed).
1125 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
1127 * XmlDocument.cs : in ReadNode() to consume element node, switched
1128 to MoveToAttribute(int) since MoveToNextAttribute() was somehow
1129 not working fine. It is needed to avoid Sys.Data test breakage
1130 and anything else should be fixed indeed.
1132 Fri Jan 27 20:39:48 CET 2006 Paolo Molaro <lupus@ximian.com>
1134 * XmlTextReader.cs, XmlChar.cs: more tweaks and speedups.
1136 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1138 * XmlTextReader.cs : optimization patch by Paolo.
1139 Fast path optimization in PeekChar().
1140 Avoid double-evaluation of PeekChar() and ReadChar() by new
1143 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1145 * XmlNode.cs : disabled XmlIteratorNodeList optimization. It caused
1146 some kind of regression under mcs/tests/xml-025.cs.
1148 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1150 * XmlAttributeCollection.cs :
1151 Replaced all Nodes.Count with Count (it could avoid extraneous
1152 ArrayList creation in XmlNamedNodeMap). ID attribute adjustment
1153 was extraneously done against all attribute nodes and thus there
1154 was a plenty of call to Value.
1155 * XmlNamedNodeMap.cs : added comment on SetNamedItem() W3C spec
1158 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1164 Added internal AppendChild() override that omites node type
1165 checking, and used it in many places.
1167 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1169 * XmlDocument.cs : optimized ReadAttributeNode() to not call
1170 MoveToAttribute() unneccesarily (call it only when ReadNode() is
1171 called on an attribute node).
1173 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1176 in get_InnerText(), avoid extraneous StringBuilder creation.
1178 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1180 * XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
1181 It does not iterate all nodes in advance.
1182 * XmlNode.cs : use XmlIteratorNodeList in SelectNodes().
1184 2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
1186 * XmlWriter.cs : Dispose() is protected.
1188 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
1190 * XmlNamedNodeMap.cs : lazily create internal ArrayList. Thanks to
1191 Joshua Tauberer for the hint.
1193 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
1195 * XmlConvert.cs : ToString(TimeSpan) should return valid duration
1196 for TimeSpan.Zero, rather than "P". Fixed bug #77350
1198 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
1200 * XmlNameEntryCache.cs XmlNameEntry.cs :
1201 Made name entry fields as not read-only. Added Update() to reset
1202 members. Its semantics of Equals() is changed.
1203 Now entry cache is based on Hashtable rather than ArrayList.
1204 It saves heavy iteration in ArrayList.
1206 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
1208 * XmlNameEntryCache.cs XmlNameEntry.cs XmlDocument.cs :
1209 Add Hash field to find name entry quickly.
1210 In XmlNameEntryCache make use of name table (it is totally
1211 unused there though).
1213 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
1215 * XmlConvert.cs : handle Ticks. Fixed bug #77252.
1217 2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
1219 * XmlTextWriter.cs : Fixed bug #77082.
1220 When the state was Start, after WriteProcessingInstruction() and
1221 WriteWhitespace() change it to Prolog.
1222 After WriteDocType() set state to WriteState.Element.
1224 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
1226 * XmlTextWriter.cs : Do not local duplicate of automatically-created
1227 prefixes (i.e. check local autocreated prefixes other than
1228 namespaces from ancestors). Fixed bug #77086 and #77087.
1230 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
1232 * XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
1233 ArgumentException in WriteNmTokenInternal().
1235 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
1237 * XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
1238 such invalid "xml" prefix which is being mapped to different
1239 namespace URI than the predefined one.
1240 Removed comment that does not make sense.
1241 * XmlNamespaceManager.cs : IsValidDeclaration() could be private.
1242 Added some comments.
1244 2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
1246 * DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an
1247 attribute is #IMPLIED.
1249 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
1251 * XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
1252 ReadSubtree() for non-element content since they are not allowed
1253 in ReadSubtree() (but allowed here).
1255 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
1257 * XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
1258 nodes as target string nodes as well as other text nodes.
1260 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
1262 * XmlValidatingReader.cs : ReadTypedValue() was not working with
1263 non-XmlSchemaDatatype types.
1265 2006-01-05 Gert Driesen <drieseng@users.sourceforge.net>
1267 * XmlTextWriter.cs: Modified WriteWhitespace to throw ArgumentException
1268 if value is null or zero-length string. Modified WriteNmToken to throw
1269 ArgumentException if name is null or zero-length string. Cosmetic
1270 change to WriteStringInternal.
1271 * XmlElement.cs: In 2.0 profile, do not throw ArgumentNullException
1272 if new value for Prefix is null.
1274 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
1276 * XmlTextWriter.cs : when namespaceURI is String.Empty, Prefix
1277 should be just ignored (it is likely to happen that DOM nodes
1278 with empty namespace URI are specified non-empty prefix by
1279 users, which had better be just ignored). Fixed bug #77095.
1281 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
1283 * XmlElement.cs : patch for Prefix property by Vorobiev Maksim.
1284 - null should cause ArgumentNullException.
1285 - "" should not raise an error.
1286 - throws ArgumentException when it is readonly.
1288 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
1290 * XmlTextWriter.cs : When xml:space or xml:lang attribute was
1291 directly written without an element, it caused ArgumentOutOfRange.
1294 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
1296 * XmlTextWriter.cs : (WriteStartAttribute) set prefix as "xmlns" when
1297 namespaceURI is that of xmlns attributes. Fixed bug #77083.
1299 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
1301 * DTDObjectModel.cs : (CreateXsdParticle) element particle was
1302 missing occurence indicators.
1304 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
1306 * DTDObjectModel.cs : some fixes on GetXmlSchema()
1307 - make generated schema cleaner.
1308 - enumeration was missing for attribute type.
1309 * XmlTextReader.cs, XmlTextReader2.cs : added tiny notes for dtd2xsd.
1311 2005-12-15 Konstantin Triger <kostat@mainsoft.com>
1313 * XmlTextWriter.cs: allow null string in WriteCData.
1315 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1317 * XmlNode.cs : (GetNamespaceOfPrefix) return const xml/xmlns URIs
1320 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1322 * XmlDocumentNavigator.cs : added UnderlyingObject as to behave as
1325 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1327 * XmlNode.cs : under 2.0 xml/xmlns are treated as special cases in
1328 GetNamespaceOfPrefix()/GetPrefixOfNamespace() (but it still does not
1329 implement IXmlNamespaceResolver, bummer).
1331 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1333 * XmlDocument.cs : changed some exception types.
1334 * XmlDocumentNavigator.cs : added 2.0 SchemaInfo.
1336 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
1338 * XmlTextReader.cs : 1.x build fix.
1340 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
1342 * XmlTextReader.cs : when XmlReader.Create() creates this instance,
1343 don't expect strict text declaration. Check SkipTextDeclaration()
1346 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
1348 * XmlReader.cs : fixed several misconception in MoveToNextSibling().
1349 It should check its ReadState to avoid infinite loop.
1351 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
1353 * XmlException.cs : added another .ctor() overload that takes both
1354 IXmlLineInfo and innerException.
1355 * XmlQualifiedName.cs : added Parse() overload that takes XmlReader
1356 (since XmlReader is not IXmlNamespaceResolver anymore).
1357 * XmlReader.cs : made several fixes on 2.0 ReadContentAs(),
1358 ReadElementContentAs() and all of its variants.
1360 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
1362 * XmlInputStream.cs :
1363 Added Encoding property on NonBlockingStreamReader
1364 * XmlTextReader.cs :
1365 set Encoding property when it proceeds to xml declaration.
1367 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
1369 * XmlReader.cs : ReadToDescendant() should work when its ReadState is
1372 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
1374 * XmlChar.cs : removed incorrect comment.
1375 * XmlReader.cs : Create() clones XmlReaderSettings (if supplied).
1376 For wrapped XmlReader, check ConformanceLevel to be consistent.
1377 * XmlTextReader.cs, XmlTextReader2.cs : added get_Conformance for
1378 internal use. Removed unused fields.
1379 * XmlInputStream.cs : updated NonBlockingStreamReader to the latest
1380 StreamReader (it is almost a copy).
1382 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1384 * XmlTextReader.cs : avoid Char.IsSurrogate() and do it inside
1385 PeekChar(), which improves notable performance.
1387 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1389 * XmlReaderSettings.cs : Schemas will be created only when it is
1392 2005-12-08 Andrew Skiba <andrews@mainsoft.com>
1394 * IXmlNamespaceResolver.cs: delete TARGET_JVM,
1395 no need to mangle the name
1397 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1399 * Driver.cs, Profiler.cs, XmlQualifiedNameTable.cs :
1402 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1404 * XmlReaderSettings.cs : thanks to idiotic MS design,
1405 AllowXmlAttributes is turned on by default.
1407 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1409 * XmlReaderSettings.cs :
1410 set_Schemas() is fixed in 2.0 RTM (it just works).
1411 * XmlResolver.cs : throw ArgumentNullException instead of
1412 ArgumentException when both base and relative urls are null.
1414 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1416 * XmlReaderSettings.cs : ProhibitDtd is set as default.
1417 * XmlWriterSettings.cs : no set_OutputMethod.
1419 2005-11-30 Konstantin Triger <kostat@mainsoft.com>
1421 * IXmlNamespaceResolver.cs: TARGET_JVM namespace change.
1423 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1425 * XmlInputStream.cs: fixed Initialize method to be able
1426 to read unicode file without BOM. TARGET_JVM only.
1428 2005-11-14 Atsushi Enomoto <atsushi@ximian.com>
1430 * XmlNodeReader.cs : removed historical one.
1432 2005-11-10 Atsushi Enomoto <atsushi@ximian.com>
1434 * XmlReader.cs, XmlNode.cs :
1435 [DebuggerDisplay] are not worthy of existing.
1437 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1439 * XmlTokenizedType.cs, XmlNodeOrder.cs : so those enums happen to
1440 have [Serializable] in .NET 1.x, and removed in 2.0 (enums are
1441 anyways serializable, so those attributes do not make sense).
1443 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1445 * XmlValidatingReader.cs : added CanReadBinaryContent.
1446 * XmlTextReader.cs, XmlTextReader2.cs : GetNamespacesInScope() are
1447 now both public and private (i.e. hush IsVirtual).
1448 * XmlWriterSettings.cs, XmlWriter.cs, XmlTextWriter.cs :
1449 NormalizeNewLines vanished.
1451 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1453 * XmlReader.cs : MoveToAttribute(int) is virtual in NET_2_0.
1455 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1457 * XmlConvert.cs : implemented VerifyTOKEN().
1459 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1461 * XmlConvert.cs : VerifyNCName() and VerifyName() throws
1462 ArgumentNullException for "".
1464 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1466 * XmlReader.cs : dependent XmlSchemaValidationFlags fix.
1467 Added ReadElementContentAsObject() and ReadContentAsObject().
1468 * XmlReader.cs, XmlTextReader.cs :
1469 LookupNamespace(string,bool) is now private.
1470 * XmlReader.cs, XmlNode,cs :
1473 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1475 * XmlElement.cs, XmlCDataSection.cs, XmlText.cs, XmlWhitespace.cs,
1476 XmlSignificantWhitespace.cs : added ParentNode overrides (actually
1477 they don't make sense since it just calls base.)
1478 * XmlNode.cs, XmlDocument.cs : changed .NET 2.0 CreateNavigator() impl
1479 to match signature and skip OwnerDocument check in XmlNode (since
1480 it is overriden). Maybe MS does not have ownerDocument as a field and
1481 costs too much on OwnerDocument property.
1482 Added missing bits in XmlDocument.
1484 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1486 * XmlAttribute.cs : added new overrides in 2.0 RTM (this scarcely
1487 makes sense without real optimization though).
1488 * XmlDocument.cs, XmlElement.cs, XmlNode.cs : avoid ChildNodes and
1489 save extra XmlNodeList creation cost.
1491 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1493 * XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
1494 * XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
1495 ReadTypedValue() is removed.
1496 * XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
1497 * XmlWriter.cs : Settings is virtual.
1499 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1501 * XmlDocumentNavigator.cs : now MoveToFirst() invokes internal
1504 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1506 * XmlTextWriter.cs : oops, so WriteState.Error is NET_2_0 only.
1508 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1510 * XmlTextWriter.cs : (Error state check) actually I need to set Error.
1512 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1514 * XmlTextWriter.cs : throw InvalidOperationException if any of
1515 WriteBlah() methods were invoked at error state.
1517 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1519 * XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
1520 default namespace was returning "" instead of null. It didn't check
1521 empty namespace URI for non-empty prefixes.
1523 2005-10-07 Joshua Tauberer <tauberer@for.net>
1525 * XmlTextReader.cs: SkipTextDeclaration would not accept processing
1526 instructions that began with the string 'xml', e.g. rejecting
1529 2005-10-08 Gert Driesen <drieseng@users.sourceforge.net>
1531 * XmlAttribute.cs: InnerText and InnerXml do not override getters in
1532 NET_2_0. Removed extra CLSCompliant attribute on SchemaInfo.
1533 * XmlReaderSettings.cs: Marked sealed.
1535 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
1537 * XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
1538 digits for "second" were not exactly 3. Fixed bug #76328.
1540 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
1542 * XmlReader.cs : Name is virtual in NET_2_0.
1544 2005-10-03 Atsushi Enomoto <atsushi@ximian.com>
1546 * XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
1547 added supprot for NormalizeNewLines.
1548 NewLineOnAttributes is considered only when Indent is true.
1550 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
1552 * XmlAttribute.cs, XmlDocument.cs : check id table updates when
1553 XmlAttribute.set_Value() was invoked. Fixed bug #76311.
1555 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
1557 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs :
1558 XmlReader.Create() with string url argument are not working because
1559 of incorrect choice of the .ctor().
1561 2005-09-28 Atsushi Enomoto <atsushi@ximian.com>
1563 * XmlNodeReaderImpl.cs : when the source node was not a document and
1564 it is an empty element, Read() was incorrectly moving to the parent
1565 of the source node. Patch by Csaba Halasz. Fixed bug #76260.
1567 2005-09-27 Atsushi Enomoto <atsushi@ximian.com>
1569 * XmlTextReader.cs : surrogate computation is incorrect. Fixed bug
1570 #76247. Patch by Brion Vibber.
1572 2005-09-26 Atsushi Enomoto <atsushi@ximian.com>
1574 * DTDValidatingReader.cs : Namespace manager was not handled correctly.
1575 Now it does the same as XmlTextReader does. Fixed bug #76234.
1577 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
1579 * XmlNodeChangedEventArgs.cs: Only make ctor publicly available
1580 in NET_2_0. Fixed API compatiblity with .NET 1.1.
1581 * XmlOutputMethod.cs: Fixed values of enum fields to match MS.NET.
1582 Only available in .NET 2.0.
1584 2005-09-25 Atsushi Enomoto <atsushi@ximian.com>
1586 * XmlReader.cs, XmlReaderSettings.cs, XmlDocument.cs:
1587 XmlSchemaValidationFlags updates.
1589 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1591 * XmlWriterSettings.cs : true NET_2_0 updates.
1593 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1595 * XmlOutputMethod.cs : new file.
1596 * XmlWriter.cs, XmlValidatingReader.cs, XmlReaderSettings.cs,
1597 XmlUrlResolver.cs, XmlWriterSettings.cs :
1598 more NET_2_0 updates.
1600 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1602 * XmlNodeReader2.cs, XmlReader.cs,
1603 XmlTextReader.cs, XmlTextReader2.cs,
1604 XmlNodeChangedEventArgs.cs, XmlElement.cs,
1605 XmlNode.cs, XmlDocument.cs :
1606 updated NET_2_0 API.
1608 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
1610 * XmlTextReader.cs : when there is a heading half of surrogate at the
1611 end of read buffer, it didn't treat it as a surrogate.
1614 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
1616 * XmlTextWriter.cs : for surrogate pair, output character reference
1617 as a single character instead of two reference pairs. Fixed bug #76095.
1618 Patch by Brion Vibber.
1620 2005-08-31 Sebastien Pouliot <sebastien@ximian.com>
1622 * XmlDocument.cs: Added an InheritanceDemand for Unrestricted on
1623 CreateDocumentType and ReadNode methods.
1624 * XmlException.cs: Added a Demand for SerializationFormatter on
1625 GetObjectData method.
1626 * XmlResolver.cs: Added an InheritanceDemand for Unrestricted on
1628 * XmlSecureResolver.cs: Fixed exception when creating evidences with
1629 an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy
1630 and PermitOnly if the security manager is enabled.
1631 * XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
1633 * XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on
1635 * XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted
1638 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1640 * DTDReader.cs : no need to skip text declaration for such entity
1641 declaration that has literal entity. It should not expand entities
1642 inside ResolveExternalEntityReplacementText().
1643 Finally fixed bug #51495.
1645 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1647 * XmlTextReader.cs, XmlTextReader2.cs : added internal .ctor() to
1648 receive both TextReader, XmlNodeType and BaseURI for entity
1649 resolution (though it would be removed later).
1650 * XmlParserInput.cs : Now to handle nested PE insertion and correct
1651 BaseURI, it internally holds a stack of "input source".
1652 * DTDObjectModel.cs,
1654 Required fixes for XmlParserInput.
1655 Handle BaseURI as expected. Added ActualUri for resolved actual
1656 source URI (to resolve nested entities). Pass ActualUri to internal
1657 XmlTextReader.ctor() in ResolveExternalEntityReplacementText()
1658 (well, yes I remember, it is problematic.)
1660 Incorrect Base URI handling bug (part of #51495) is fixed.
1662 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1664 * DTDReader.cs, XmlParserInput.cs :
1665 let's fix #51495. First of all, refactoring.
1667 2005-08-04 Atsushi Enomoto <atsushi@ximian.com>
1669 * XmlAttribute.cs : When there was only one child in attribute
1670 and it was an entity reference, set_Value() tried to set text value
1673 2005-08-03 Gert Driesen <drieseng@users.sourceforge.net>
1675 * XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
1676 * XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to
1677 RoundtripKind to match .NET 2.0 Beta 2.
1678 * XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
1679 in .NET 2.0 Beta 2, and is explicit interface implementation.
1680 * XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
1682 * XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
1684 * XmlValidatingReader.cs: GetNamespacesInScope returns generic
1685 IDictionary in .NET 2.0 Beta 2.
1686 * IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic
1687 IDictionary in .NET 2.0 Beta 2.
1688 * XmlNamespaceManager.cs: GetNamespacesInScope returns generic
1689 IDictionary in .NET 2.0 Beta 2.
1690 * XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic
1691 IDictionary in .NET 2.0 Beta 2.
1692 * DTDValidatingReader.cs: GetNamespacesInScope returns generic
1693 IDictionary in .NET 2.0 Beta 2.
1695 2005-07-14 Atsushi Enomoto <atsushi@ximian.com>
1697 * XmlTextWriter.cs : In WriteQualifiedName(), when there is open
1698 attribute, it calls LookupPrefix() and then if namespace was empty,
1699 it resulted in an exception. Fixed bug #75546.
1701 2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
1703 * XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
1704 to ISO 8601 and XSD datatypes 3.2.6.1).
1706 2005-06-27 Andrew Skiba <andrews@mainsoft.com>
1708 * DTDReader.cs : don't validate entity values, when the entry is
1709 redefined so it will be never used. Fixes valid-sa-086 test from W3C
1712 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1714 * XmlQueryDialect.cs : removed.
1716 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1718 * XmlWriter.cs : added Create(XmlWriter).
1719 * XmlValidatingReader.cs : added Read*AsBase64/BinHex().
1720 * XmlReaderSettings.cs : added obsolete annoyances to hush corcompare.
1722 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1724 * XmlTextReader.cs : use StringBuilder.ToString(int,int) when it does
1725 not have a large chunk of data, following Ben's idea.
1727 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1729 * XmlTextReader.cs : use StringBuilder to store character values; that
1730 saves 40% memory for large chunk of xml. Patch by Gonzalo.
1732 2005-06-22 Andrew Skiba <andrews@mainsoft.com>
1734 * XmlNode.cs : cosmetic fix - remove unnecessary argument from
1735 AppendChildValues function.
1737 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1739 * XmlTextReader.cs : normalization is not required to check character
1740 validity everywhere except for character reference.
1742 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1744 * DTDValidatingReader.cs : removed some extra IsDefault check (with
1745 the latse code default attributes are stored in hashtables anyways.)
1746 Fixup attribute namespaces _after_ xmlns attributse are filled.
1747 The latest change is not good that namespaceURI of a local attribute
1748 was incorrectly globally looked up (it should be always "").
1750 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1752 * XmlValidatingReader.cs : LookupNamespace() was trying to access to
1753 null reference to validatingReader.
1754 * DTDValidatingReader.cs : Fixed default xmlns* attribute handling.
1755 It used to be valid only at the declaring element.
1757 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1759 * DTDValidatingReader.cs : further text node fixes.
1760 - Cut out validation code from Text node case.
1761 - Now it does not use error-prone case transition but uses
1762 DocumentFragment 'vacant room' and fixed incorrect transition from
1764 - CDATA should be validated the same as Text is.
1766 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1768 * DTDValidatingReader.cs : whitespace nodes were incorrectly rejected
1769 inside non-mixed content model.
1771 2005-06-09 Andrew Skiba <andrews@mainsoft.com>
1773 * XmlConvert.cs : add TARGET_JVM for roundtrip bug
1775 2005-06-06 Atsushi Enomoto <atsushi@ximian.com>
1777 * XmlEntityReference.cs, XmlNode.cs : protected api fix.
1779 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
1781 * XmlEntityReference.cs, XmlNode.cs : For entity references, BaseURI
1782 resolution should be different from that of parent since they might
1783 differ. Patch by Andrew Skiba.
1785 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1788 make sure to close parser input before parser stack pop.
1789 * DTDValidatingReader.cs : ditto.
1790 * DTDObjectModel.cs : Fixed another incorrect null BaseURI check.
1792 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1794 * DTDValidatingReader.cs : Last BaseURI exposed this hidden bug via
1797 2005-05-30 Atsushi Enomoto <atsushi@ximian.com>
1799 * DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
1800 BaseURI which results in incorrect URI resolution.
1802 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1804 * DTDObjectModel.cs : For simple type restriction creation it failed
1805 when there is no enumerations (largely failed).
1807 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1809 * XmlImplementation.cs : added new NET_2_0 ctor.
1810 Let's check corcompare:-/
1812 2005-05-11 Atsushi Enomoto <atsushi@ximian.com>
1814 * DTDValidatingReader.cs : namespace storing was stupid.
1816 2005-05-10 Atsushi Enomoto <atsushi@ximian.com>
1818 * DTDValidatingReader.cs : since namespace declarations might be
1819 resolved differently due to entity handling, it holds its own set
1820 of declared namespaces. NamespaceURI and LookupNamespace() use it.
1822 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
1824 * XmlReader.cs : added ReadElementContentAsLong().
1825 * XmlWriter.cs : removed some obsolete WriteValue() overloads.
1827 IXmlNamespaceResolver.cs : removed deprecated 2.0 bits.
1828 * XQueryConvert.cs : obsolete (yeah, now XQuery should be hidden).
1830 2005-05-06 Atsushi Enomoto <atsushi@ximian.com>
1832 * XmlInputStream.cs : Now XmlStreamReader uses non-blocking TextReader
1833 that is mostly copied from StreamReader. It should fix bug #74161.
1835 2005-05-05 Atsushi Enomoto <atsushi@ximian.com>
1837 * XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
1838 XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
1839 DTDValidatingReader.cs : Removed most of "atomizedName" related
1840 stuff that are obsoleted in 2.0 beta2.
1841 * XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.
1843 2005-05-04 Andrew Skiba <andrews@mainsoft.com>
1845 * IXmlNamespaceResolver.cs : mangle the interface method names when
1846 compiling for TARGET_JVM
1848 2005-03-30 Atsushi Enomoto <atsushi@ximian.com>
1850 * XmlUrlResolver.cs : just return connected Stream instead of fully
1851 downloaded memory cache. Fix by Konstantin Triger.
1853 2005-03-24 Atsushi Enomoto <atsushi@ximian.com>
1855 * XmlWriter.cs : WriteQualifiedName() should check namespace validity
1856 (whether it is in scope or not).
1857 * XmlTextWriter.cs : When WriteQualifiedName() is invoked inside
1858 attribute and no matching namespace declaration, create prefix
1859 on demand. Code reused from WriteStartAttribute().
1861 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1863 * XmlValidatingReader.cs : create schema set on demand.
1865 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1867 * XmlParserInput.cs,
1870 DTDValidatingReader.cs : removed/commented out those warned code.
1872 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1874 * XmlDocumentNavigator.cs : overriden IsDescendant (default
1875 implementation extraneously clones).
1877 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1879 * DTDValidatingReader.cs : When expanding entities and there is a
1880 sequence of text nodes, its value was not returned.
1881 * XmlTextReader.cs : better invalid char error report for EOF.
1883 2005-03-09 Andrew Skiba <andrews@mainsoft.com>
1885 * XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
1886 surrogate calculations. This fixes bug 73513.
1888 2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
1890 * XmlParserInput.cs : silly mixed line endings :(
1892 2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
1894 * XmlTextWriter.cs : namespace declaration check for those which starts
1895 with 'x' 'm' 'l' should not be done here (it might be 'declared'
1897 * XmlNamespaceManager.cs : error message for "'xml' prefix for
1898 different namespace" is incorrect.
1900 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1902 * XmlDocument.cs : ugh, so I introduced extraneous reader.Read() in
1903 ReadNode() for EntityReference and it resulted in unexpected skip.
1904 * DTDValidatingReader.cs : On EndEntity, LocalName and Name should
1905 return the name of entity. Removed unused entityReaderNameStack.
1907 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1909 * DTDValidatingReader.cs : reverted one change in r40985. Entity stack
1910 is nothing to do with ReadAttributeValue().
1912 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1914 * DTDValidatingReader.cs : When there was actual attribute in source
1915 XmlReader, MoveToAttribute(i) did not move source reader as expected.
1917 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1919 * XmlDocument.cs : In ReadNode(), on EntityReference node, when
1920 XmlReader can resolve entity, it expands entity and apppend
1921 children into the entity reference. Patch by Konstantin Triger.
1923 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1925 * XmlTextWriter.cs : For duplicating namespace mapping, it should
1926 create another prefix without throwing an exception.
1928 2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
1930 * XmlTextWriter.cs : LookupPrefix() should not return those prefix
1931 that is overriden by another xmlns declaration.
1933 2005-02-26 Atsushi Enomoto <atsushi@ximian.com>
1935 * XmlEntity.cs : it was not returning SYSTEM ID when there is no
1937 * XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
1938 get_NodeType() resulted in loop.
1940 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1942 * XmlComment.cs, XmlNode.cs, XmlText.cs, XmlProcessingInstruction.cs,
1943 XmlEntityReference.cs, XmlSignificantWhitespace.cs, XmlAttribute.cs,
1944 XmlElement.cs, XmlEntity.cs, XmlCDataSection.cs :
1945 For those nodes that are created by Clone(), IsReadOnly is false.
1946 Patch by Konstantin Triger.
1948 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1950 * XmlDocumentNavigator.cs : iteratedNames array could be fixed and
1951 performance got improved. Patch by Konstantin Triger.
1953 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1955 * XmlAttribute.cs : MS does not reject non-NCName prefix. Patch by
1958 2005-02-24 Atsushi Enomoto <atsushi@ximian.com>
1960 * XmlTextWriter.cs : WriteString() should be valid when
1961 WriteStartDocument() was not called.
1963 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1965 * XmlNamespaceManager.cs : IsValidDeclaration was giving useless error
1968 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1970 * XmlDocumentNavigator.cs : it should virtually expand EntityReference,
1971 so refactored to handle both entity references and top level children.
1973 2005-02-22 Atsushi Enomoto <atsushi@ximian.com>
1975 * XmlTextReader.cs : XmlParserContext was not properly popped on
1976 the expected timing and thus had lost BaseURI, XmlSpace and XmlLang.
1977 * XmlInputStream.cs : XmlTextReader does not allow invalid utf-8
1980 2005-02-21 Atsushi Enomoto <atsushi@ximian.com>
1982 * DTDValidatingReader.cs : It should not skip whitespace and
1983 significant whitespace nodes unless it is expanding entities.
1984 * XmlDocumentNavigator.cs : Fixed NodeType that was returning
1985 incorrect type when there is a sequence of text/cdata/space nodes.
1987 2005-02-18 Atsushi Enomoto <atsushi@ximian.com>
1989 * XmlNamespaceManager.cs : Prefix "xml" is bound to the fixed
1990 namespace "http://www.w3.org/XML/1998/namespace", but it is not
1991 vice versa (i.e. we can use other prefixes for this namespace URI).
1993 2005-02-17 Atsushi Enomoto <atsushi@ximian.com>
1995 * XmlNode.cs : It does not have to iterate children to find argument
1996 node. Fixed exception type to ArgumentException. Patch by Andrew
1999 2005-02-16 Atsushi Enomoto <atsushi@ximian.com>
2001 * XmlAttribute.cs : just use InnerText for Value. Patch by Andrew
2003 * XmlConvert.cs : Handle null and empty strings for EncodeName(),
2004 EncodeLocalName() and EncodeNmToken(). Patch by Andrew Skiba.
2005 * NameTable.cs : usually tail of namespaces are rather different than
2006 head of them. Patch by Andrew Skiba.
2007 * XmlUrlResolver.cs : missing %20 handling. Patch by Andrew Skiba.
2009 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
2011 * XmlAttribute.cs : For default attributes, WriteTo() writes nothing
2013 * DTDValidatingReader.cs : reduced indentation using Linus trick
2014 (it was too deep in nest).
2016 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
2018 * DTDValidatingReader.cs : Namespaces and prefixes are not properly
2019 handled (it incorrectly assumed DTD definitions and thus always
2020 assumed empty namespace/prefixes).
2022 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
2024 * DTDValidatingReader.cs : element name stack might be empty when the
2025 input XmlReader contains fragments. Patch by Andrew Skiba.
2027 2005-01-25 Martin Baulig <martin@ximian.com>
2029 * XmlNode.cs (XmlNode.SchemaInfo): Mark this as not CLS-compliant
2032 * XmlReaderSettings.cs (XmlReaderSettings.XmlResolver): Mark this
2033 as not CLS-compliant to avoid a CS3025.
2035 2005-01-18 Atsushi Enomoto <atsushi@ximian.com>
2039 XmlAttributeCollection.cs :
2040 Now reuse parentNode field for XmlAttribute.OwnerElement and
2041 reduce class allocation size.
2043 New class that represents a name triplet.
2044 XmlNameEntryCache.cs :
2045 New type to cache name entries.
2048 Replace name strings with name entry and save class allocation size.
2050 Add name entry cache field to document and reuse name entries that
2051 are already allocated.
2053 2005-01-17 Atsushi Enomoto <atsushi@ximian.com>
2055 * XmlNode.cs, XmlAttribute.cs : reverted the previous patch. It broke
2056 several nunit tests.
2058 2005-01-15 Ben Maurer <bmaurer@ximian.com>
2060 * XmlNode.cs (InnerText, AppendChildValues): Don't allocate a
2061 string in the case where nothing needs to be appended.
2063 * XmlAttribute.cs (BuildChildValue): Start out the string with
2064 `null' not `String.Empty'. String.Concat (null, blah) == blah,
2065 pointerwise. ie, there is no allocation. This makes it so that
2066 getting the value of an attribute is faster for the fast case.
2068 2005-01-13 Atsushi Enomoto <atsushi@ximian.com>
2070 * XmlResolver.cs : throw ArgumentException in ResolveUri().
2072 2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
2074 * XmlTextWriter.cs : WriteComment() was outputting extraneous EOL.
2076 2004-12-26 Atsushi Enomoto <atsushi@ximian.com>
2078 * XmlReader.cs : ReadElementContentAsBinHex() was calling ..AsBase64().
2079 * XmlValidatingReader.cs : In set_EntityHandling(), set that property
2080 of DTDValidatingReader.
2081 * XmlNodeReader2.cs,
2082 XmlNodeReaderImpl.cs : added simplified implementation that splits
2083 entity handling and anything else.
2084 * XQueryConvert.cs : implemented ShouldCheckValueFacets().
2085 Use Convert class instead of simple casts (check range).
2086 * XmlReaderSettings.cs : added SetSchemas() for XPathNavigator.
2088 2004-12-22 Atsushi Enomoto <atsushi@ximian.com>
2090 * XmlParserContext.cs : all the string properties must not be set as
2091 null. Thanks to Joshua.
2094 DTDReader.cs : XmlResolver.ResolveUri() may return null.
2096 2004-12-17 Atsushi Enomoto <atsushi@ximian.com>
2098 * XmlReaderBinarySupport.cs : added support class for base64/binhex
2099 reading that mostly automates those reader support.
2100 * XmlReader.cs : added CanReadBinaryContent, CanReadValueChunk,
2101 ReadContentAsBase64(), ReadElementContentAsBase64(),
2102 ReadContentAsBinHex(), ReadElementContentAsBinHex() and
2104 * XmlTextReader.cs : Now ReadBase64() and ReadBinHex() implementations
2105 are moved to XmlReaderBinarySupport. Added CanReadBinaryContent and
2106 CanReadValueChunk overrides. Call Binary.Reset() to enable them.
2107 * XmlTextReader2.cs : added CanReadBinaryContent, CanReadValueChunk.
2108 Added ReadContentAsBase64(), ReadElementContentAsBase64(),
2109 ReadContentAsBinHex(), ReadElementContentAsBinHex() (just because
2110 they are overriden in MS.NET).
2111 * XmlNodeReader.cs : added CanReadBinaryContent and CanReadValueChunk.
2112 Call Binary.Reset() to enable them.
2114 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
2117 Added DateTime related methods with serialization mode.
2119 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
2121 * XmlReader.cs : added MoveToFollowing().
2124 XmlAttribute.cs : added SchemaInfo support.
2125 * XmlDocument.cs : added Schemas and Validate().
2126 ReadNode() now copies xmlReader's SchemaInfo.
2127 * XmlNodeReader.cs : ditto (just reflects node's SchemaInfo).
2129 2004-12-15 Atsushi Enomoto <atsushi@ximian.com>
2132 Create() should assure NameTable!=null on creating XmlTextReader.
2133 Now use XmlSchemaValidatingReader for all xsd validation.
2134 * XmlTextReader2.cs :
2135 Don't use input reader's Settings. It is null.
2136 * XmlReaderSettings.cs : added XmlResolver.
2138 2004-12-14 Atsushi Enomoto <atsushi@ximian.com>
2140 * XmlReaderSettings.cs : XsdValidate and DtdValidate are now
2142 * XmlReader.cs : In Create(), use XmlSchemaValidatingReader for xsd
2145 2004-12-12 Zoltan Varga <vargaz@freemail.hu>
2147 * XmlTextReader.cs: Work around a compiler bug in csc 2.0 beta 1.
2149 2004-12-09 Atsushi Enomoto <atsushi@ximian.com>
2151 * DTDObjectModel.cs : implemented lightweight XmlSchema generator.
2153 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
2155 * XmlValidatingReader.cs : making smarter relationship between
2156 XsdValidatingReader.
2158 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
2160 * XmlException.cs : added SecurityPermissionAttributes.
2161 * XmlReaderSettings.cs,
2162 XmlReader.cs : added ValidationFlags and removed obsolete ones.
2164 2004-12-06 Atsushi Enomoto <atsushi@ximian.com>
2166 * XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
2167 ns is null, and don't lookup prefix for empty namespace.
2169 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2171 * XmlTextReader.cs: don't use \0 as buffer terminator.
2172 * XmlInputStream.cs: s/Array.Copy/Buffer.BlockCopy/.
2174 2004-11-30 Atsushi Enomoto <atsushi@ximian.com>
2176 * DTDReader.cs : Consideration on parameter entity was missing for
2177 attribute default value. Fixed bug #70008.
2179 2004-11-26 Atsushi Enomoto <atsushi@ximian.com>
2181 * XmlReader.cs : not fixage, just explicitly formatted code a bit.
2184 XmlAttributeCollection.cs,
2191 XmlDocument.cs : warning removal.
2193 2004-11-25 Atsushi Enomoto <atsushi@ximian.com>
2195 * XmlQualifiedNameTable.cs : oops, it was not implemented.
2197 2004-11-24 Atsushi Enomoto <atsushi@ximian.com>
2199 * XmlQualifiedName.cs : in 2.0 it is [Serializable].
2200 * XmlTextReader.cs : removed unused local variable.
2201 * XmlTextWriter.cs : Improved some exception messages.
2202 moved some private fields into #if NET_2_0.
2203 * XmlValidatingReader.cs : rename specifiedResolver to
2204 resolverSpecified and use it in internal get_Resolver().
2205 Added [Obsolete] for ReadTypedValue() whose base is obsoleted.
2207 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
2209 * XmlTextReader.cs : Now attribute normalization is handled on Read(),
2210 not on get_Value. This caused a problem when we use
2211 XmlValidatingReader that value is not always normalized expectedly.
2213 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
2215 * XmlReader.cs : removed old ReadValueAsXXX() and added new
2216 ReadContentAsXXX() and ReadElementContentAsXXX().
2217 * XmlTextReader.cs : removed old ReadValueAsXXX() (no overrides now).
2218 * XmlTextWriter.cs : added indentation on Comment nodes.
2219 * XmlDateTimeSerializationMode.cs : updated.
2220 * XmlResolver.cs : added 2.0 NameTable field.
2221 * ValidationType.cs : added ObsoleteAttributes on some members.
2223 2004-11-18 Atsushi Enomoto <atsushi@ximian.com>
2225 * XmlParserContext.cs : the fix was not checked in :(
2227 2004-11-17 Atsushi Enomoto <atsushi@ximian.com>
2229 * XQueryConvert.cs : moved from System.Xml.Query.
2231 2004-11-14 Atsushi Enomoto <atsushi@ximian.com>
2233 * XmlWriter.cs : after WriteAttributes(), argument XmlReader must
2234 move to element. This fixes bug #69350.
2236 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
2238 * XmlParserContext.cs : PushScope() was accessing list out of range.
2240 2004-11-09 Atsushi Enomoto <atsushi@ximian.com>
2242 * DTDValidatingReader.cs, XmlTextReader.cs :
2243 needed more changes wrt XmlException.
2245 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
2247 * DTDObjectModel.cs,
2253 Added support for 2.0 XmlException.SourceUri property. Improved
2254 exception handling to contain BaseURI everywhere in the parser.
2256 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
2258 * XmlTextReader2.cs : added. It is used to serve public API, plus
2259 entity handling support.
2261 * DTDObjectModel.cs,
2262 DTDValidatingReader.cs,
2264 XmlParserContext.cs,
2266 Implemented XmlTextReader.EntityHandling and ResolveEntity(). To
2267 implement them, XmlTextReader in 2.0 itself is in XmlTextReader2.cs
2268 and XmlTextReader.cs contains Mono.Xml2.XmlTextReader which is the
2269 same as 1.x XmlTextReader. XmlTextReader2 switches entity reader and
2270 source reader, and never handles tokenization.
2271 The reason for "Mono.Xml2" is to avoid large changes in constructor.f
2273 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
2275 * XmlAttribute.cs, XmlElement.cs : get_Name should consider name table.
2276 * XmlDocument.cs : use NameTable in Load() and LoadXml().
2277 * XmlReader.cs : In Create(), use NameTable in XmlReaderSettings.
2279 2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
2281 * XmlDocumentNavigator.cs : create rarely-used ArrayList later. This
2282 significantly improves XmlDocument-based XPath performance.
2284 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
2286 * XmlTextReader.cs : Manually expanded some of AppendValueChar() and
2287 XmlChar.IsWhitespace() which are on critical points on performance
2288 (marked as FIXME, but it depends on JIT).
2290 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
2292 * XmlTextReader.cs : Search xml:* attributes more efficiently.
2294 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
2296 * XmlTextReader.cs : Reduced NameTable.Add() for prefixed names. First,
2297 ReadName() now returns atomized LocalName and Prefix. Second, to
2298 avoid extraneous split, SetProperties() now takes prefix and
2299 localName that might be given from ReadName(). Third, removed
2300 FillNames(). This optimizes "namespace-aware and prefixed document"
2301 parsing 10-20% faster.
2303 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2305 * XmlTextReader.cs :
2306 With related to AddNamespace(), there was extra string.StartsWith()
2307 calls. Now AttributeTokenInfo.FillNames() is splitted into
2308 FillPrefixAndXmlns() and FillNamespace(), and AddNamespace() is done
2309 at FillPrefixAndXmlns().
2311 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2313 * XmlTextReader.cs :
2314 Reduces LookupNamespace() call in FillNames(). This improves 6-7%
2315 speedup in some scenario.
2316 Code refactory; Removed unused code. AddAttribute() is used only for
2317 DTD, so renamed to AddDtdAttribute(). For PUBLIC and SYSTEM ids,
2318 FillNames() is not required. Two SetProperties() are ambiguous, so
2319 renamed one (that takes TokenInfo) as SetTokenProperties().
2321 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2323 * XmlParserContext.cs : rewrote; especially to avoid XmlSpace boxing.
2325 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2327 * XmlTextReader.cs : LookupNamespace() don't have to be called in
2328 ReadStartTag() to check prefix, since NamespaceURI is filled in
2329 FillNames(). 10% performance up by avoiding this extra check.
2331 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2333 * XmlValidatingReader.cs : fixed incorrect recursion between
2334 indexer and GetAttribute().
2336 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2338 * DTDReader.cs, DTDValidatingReader.cs, XmlTextReader.cs :
2339 When XmlTextReader is created with NodeType Element or Attribute,
2340 skip possible text declaration (that might be used for resolving
2341 entities) that specifies text encoding. With this fix, bug #61274
2342 must be regarded as fixed.
2344 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2346 * XmlNodeReader.cs : Reimplemented ResolveEntity(). It does not use
2347 XmlTextReader trick anymore. XmlNodeReader itself is used instead.
2349 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2351 * XmlNodeReader.cs : for NET_1_0 ReadInnerXml(), just use
2352 XmlReader.ReadInnerXmlInternal(). It should work fine.
2353 Ditto for ReadOuterXml().
2355 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2357 * XmlNodeReader.cs : removed unused/unreachable code. Simplify
2360 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2362 * XmlDocument.cs, XmlNodeReader.cs, XmlTextReader.cs,
2363 XmlValidatingReader.cs : Those readers could just implement internal
2364 interface IHasXmlParserContext.
2365 * XmlTextReader.cs, XmlValidatingReader.cs : this[] disappeared in 2.0.
2366 (XmlReader has them as virtual.)
2367 * XmlReader.cs : ReadAsObject() disappeared.
2368 * XmlWriter.cs : WriteFromObject() disappeared.
2370 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2372 * XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
2373 * XmlNode.cs : dustclean.
2375 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2377 * XmlDocument.cs : use XPathEditableDocument again.
2378 * XmlNode.cs : To be compatible with XPathEditableDocument, it should
2379 not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.
2381 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2383 * XmlChar.cs, XmlConstructs.cs :
2384 Switched again, for reducing per-process memory consumption.
2385 * XmlInputStream.cs :
2386 Just 64 bytes of buffer would be enough, for example like
2387 <?xml version="1.0" encoding="iso-8859-15" standalone="yes" ?>
2389 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2391 * IXmlDataEvidence.cs : disappeared.
2392 * XmlConvertDateTimeSerializationMode.cs : incorrect filename. removed.
2393 * XmlDateTimeSerializationMode.cs : added
2394 * NewLineHandling.cs : added
2395 * IXmlNamespaceResolver.cs, XmlNamespaceManager.cs :
2396 now 'atomizedNames' is obsolete.
2397 * XmlReaderSettings.cs, XmlWriterSettings.cs :
2398 Should not be sealed. Should not be ICloneable.
2400 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2402 * XmlDocument.cs : XPathEditableDocument looks broken. Just reverted
2403 to fix 2.0 corcompare.
2405 2004-10-26 Atsushi Enomoto <atsushi@ximian.com>
2407 * XmlTextReader.cs : Don't create attribute Value string on Read()
2408 (i.e. create string when get_Value() is invoked.) This optimizes
2409 some kind of XmlTextReader usage significantly such as Skip().
2411 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
2413 * XmlConvertDateTimeSerializationMode.cs : added.
2414 * XmlConvertDateTimeOption.cs : removed.
2416 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
2419 For net_2_0, CreateNavigator() returns editable XPathNavigator.
2420 * XmlReader.cs, XmlTextReader.cs, XmlValidatingReader.cs :
2421 They do not implement IXmlDataEvidence anymore.
2423 2004-10-18 Atsushi Enomoto <atsushi@ximian.com>
2425 * XmlTextReader.cs :
2426 Fixed CheckCharacters setter that always set false.
2427 CheckCharacters check is also required for ReadText(). This fixes
2430 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
2432 * XmlTextReader.cs : Inside DTD, '<' character inside XML comment
2433 is regatded as invalid. This fixes bug #68410. (Error message was
2436 2004-10-14 Atsushi Enomoto <atsushi@ximian.com>
2438 * XmlWriter.cs : CreateTextWriter() is private.
2440 2004-10-09 Atsushi Enomoto <atsushi@ximian.com>
2442 * XmlNodeReader.cs : LookupPrefix() was only after 2.0.
2444 2004-10-08 Atsushi Enomoto <atsushi@ximian.com>
2446 * XmlNamespaceManager.cs : GetNamespacesInScope() caused
2447 IndexOutOfRangeException (miscounted indexes).
2449 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
2451 * XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
2452 For attribute nodes, it should not use WriteSubtree() which does not
2453 support attribute nodes.
2455 2004-09-20 Gert Driesen <drieseng@users.sourceforge.net>
2457 * XmlValidatingReader.cs: Added deprecation message.
2459 2004-09-14 Atsushi Enomoto <atsushi@ximian.com>
2461 * XmlTextWriter.cs : Close() should not Flush() when the output is
2462 already closed. bug #65918 is fixed.
2464 2004-09-12 Atsushi Enomoto <atsushi@ximian.com>
2466 * XmlTextWriter.cs : CloseOutput must be true by default.
2468 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2470 * XmlWriter.cs, XmlTextWriter.cs, XmlWriterSettings.cs :
2471 Implemented CheckCharacters and CloseOutput support.
2473 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2475 * XmlReader.cs : evidence is always provided.
2476 * XmlWriter.cs, XmlTextWriter.cs :
2477 added support for ConformanceLevel and OmitXmlDeclaration.
2479 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2481 * XmlTextReader.cs : Console.WriteLine() injected :(
2482 * XmlTextWriter.cs : It it partly supports XmlWriterSettings.
2483 * XmlWriter.cs : implemented Create().
2484 * XmlWriterSettings.cs : removed EncodeXmlBinary (deprecated).
2486 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2488 * XmlFactory.cs : removed (obsolete).
2490 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2492 * XmlNamespaceManager.cs : GetNamespacesInScope() ignored default
2493 namespace when scope is .ExcludeXml or .All.
2494 * XmlReader.cs : Implemented ValueType, SchemaInfo, ReadAsObject().
2495 Fixed ReadTypedValue() to call ReadValueAs().
2497 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2499 * XmlNamespaceManager.cs : Fixed GetNamespacesInScope() that returned
2500 inconsistent namespace pairs.
2502 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2504 * XmlReader.cs, XmlTextReader.cs :
2505 Added NET_2_0 CheckCharacters support.
2507 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
2509 * XmlNode.cs : GetEnumerator() does not have to create ChildNodes
2510 every time. Removed unused StringBuilder field.
2512 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
2514 * XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
2515 to read more (and might result in an error).
2517 2004-09-03 Atsushi Enomoto <atsushi@ximian.com>
2519 * XmlTextReader.cs : When Normalization is true, CRLF and CR should
2520 be converted to single LF. This should fix part of bug #62076.
2522 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
2524 * XmlWriter.cs : implemented WriteValue(object) for known types.
2526 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
2528 * XmlElement.cs : XmlAttributeCollection doesn't have to be created
2529 every time until the actual use. This sometimes optimizes
2530 attribute-less XML performance siginificantly.
2532 2004-08-27 Atsushi Enomoto <atsushi@ximian.com>
2534 * XmlAttribute.cs : some property getters threw NullReferenceException
2535 when the attribute is not added to an element.
2536 * XmlNode.cs : When a node is not appended to another node, BaseURI
2537 is empty. Bug #64120 is fixed.
2539 2004-08-26 Atsushi Enomoto <atsushi@ximian.com>
2541 * XmlTextWriter.cs : In CheckState(), don't create indentation string
2542 at every time. WriteIndent() now handles the indentation without
2545 2004-08-23 Atsushi Enomoto <atsushi@ximian.com>
2547 * XmlReader.cs, XmlTextReader.cs, XmlWriter.cs :
2548 eliminate MS.Internal.Xml.* classes.
2550 2004-08-21 Atsushi Enomoto <atsushi@ximian.com>
2552 * XmlElement.cs : set_InnerText was removing children incompletely.
2553 This fixes bug #63574.
2555 2004-08-20 Atsushi Enomoto <atsushi@ximian.com>
2557 * XmlTextReader.cs : Fixed EOF not to return true when it is just
2558 closed. Element and EndElement location is now adjusted to be the
2559 same as MS.NET does. This fixes bug #63505 and #63507.
2560 ResetState() now throws InvalidOperationException() as MS.NET does.
2562 * WriteState.cs : added missing 2_0 enumeration.
2563 * XmlReader.cs : ReadTypedValue() is virtual.
2564 * XmlValidatingReader.cs : ReadTypedValue() is override under 2_0.
2566 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
2568 * XmlValidatingReader.cs : Replaced XmlSchemaCollection with
2569 XmlSchemaSet. Added Settings property override
2571 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
2573 * DTDReader.cs : Replacing XmlSchemaDatatype .FromName(string) with
2574 .FromName(string, string) [going to remove former one; it is not
2575 good to support xdt:blah datatypes].
2577 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2579 * DTDValidatingReader.cs,
2580 XmlValidatingReader.cs : implemented IXmlNamespaceResolver.
2581 * XmlNamespaceManager.cs,
2582 XmlNodeReader.cs : implemented GetNamespacesInScope().
2584 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2586 * XmlCharacterData.cs,
2588 XmlNodeChangedEventArgs.cs :
2589 Implemented XmlNodeChangedEventArgs.OldValue and .NewValue.
2591 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2593 * XmlWriter.cs : implemented settings-less Create().
2594 * XmlWriterSettings.cs : added some comments.
2596 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
2598 * XmlWriter.cs : implemented WriteNode(XPathNavigator, bool)
2599 incompletely, using XPathNavigator.ReadSubtree().
2601 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
2603 * XmlReader.cs : Implemented new 2.0 virtual members that used to be
2604 abstract in 1.x. Implemented ReadSubtree().
2606 2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
2608 * XmlTextReader.cs: Stop parsing when a null character is found.
2610 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2612 * XmlReader.cs : Implemented missing MoveToNextSibling() and
2614 * XmlTextReader.cs : Added missing ReadValueAs() override (hmm...
2615 are they really worth overriding?)
2617 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2619 * XmlWriter.cs : Added new WriteStartAttribute(string).
2621 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2623 * XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
2624 * XmlQualifiedName.cs : Added internal static Parse().
2625 * XmlReader.cs : use XmlQualifiedName.Parse().
2626 * XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
2627 * XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
2628 Implemented 2.0 virtual methods that used to be abstract in 1.x.
2630 2004-07-26 Atsushi Enomoto <atsushi@ximian.com>
2632 * XmlReader.cs : Implemented ReadValueAsXxx() except for
2634 * XmlTextReader.cs : implemented them as well, just invoking
2635 base.ReadValueAsXxx ().
2636 * XmlWriter.cs : implemented some WriteValue() methods.
2638 2004-07-21 Atsushi Enomoto <atsushi@ximian.com>
2640 * XmlConvert.cs : added internal ToBinHexString() (BTW according to
2641 MSDN documentation it should be public).
2642 * XmlReader.cs : fixed one incorrect Create() overload. Added
2643 LookupNamespace (string, bool) (public for 2.0, internal for 1.x).
2644 * XmlTextReader.cs : Mostly implemented IXmlNamespaceResolver
2645 interface. Fixed HasLineInfo() access modifier on 2.0.
2646 * XmlNodeReader.cs : Mostly implemented IXmlNamespaceResolver
2647 interface. Wrote common namespace node lookup method and rewrote
2648 existing LookupNamespace().
2649 * XmlValidatingReader.cs : Fixed 2.0 IXmlLineInfo members' signatures.
2651 2004-07-20 Atsushi Enomoto <atsushi@ximian.com>
2653 * XmlNode.cs : When the argument node being inserted is the existing
2654 document element, it should not result in an error (since it should
2655 be first removed from document, thus no error should happen).
2657 2004-07-16 Atsushi Enomoto <atsushi@ximian.com>
2659 * XmlTextReader.cs : Fixed several problems on ReadBase64();
2660 Whitespaces should be ignored, and '=' was not skipped correctly.
2661 It caused "unexpected end of document" error at immediate close tag.
2663 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
2665 * Added MonoFIXAttribute.cs
2667 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
2669 * XmlWriter.cs : Added Create() stubs.
2670 * XmlWriterSettings.cs : Added missing property setters.
2671 * XmlValidatingReader.cs : added internal schemas setter.
2672 * XmlTextReader.cs : added internal XmlReaderSettings property setter.
2673 * XmlReader.cs : Halfly implemented Create().
2674 * DTDValidatingReader.cs : author information was missing.
2676 2004-07-11 Atsushi Enomoto <atsushi@ximian.com>
2678 * XmlConvertDateTimeOption.cs : it is NET_2_0.
2679 * IXmlNamespaceResolver.cs,
2680 XmlNamespaceScope.cs : Compile it in .net 1.1 (as internal).
2681 * XmlNamespaceManager.cs : Implement IXmlNamespaceResolver.
2683 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2685 * XmlConvertDateTimeOption.cs : Forgot to change the content...
2687 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2689 * ConformanceLevel.cs : Fixed integer value.
2690 * Added XmlConvertDateTimeOption.cs.
2691 * Removed XmlItemView.cs and XmlItemViewCollection.cs.
2693 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2695 * IXmlNamespaceResolver.cs :
2696 Fixed return value of GetNamespacesInScope().
2697 * IXmlDataEvidence.cs,
2700 XmlValidatingReader.cs : fixed Evidence (it is not array anymore).
2702 Implemented virtual indexers, QuoteChar, and Dispose() (2.0 stuff).
2704 In net_2_0, indexers vanished from XmlNodeReader.
2705 In net_2_0, overriden QuoteChar vanished.
2706 * XmlReaderSettings.cs : set_NameTable is missing.
2707 * XmlTextReader.cs : Implemented ProhibitDtd.
2709 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2711 * XmlAttributeCollection.cs : In .net 2.0, it became sealed class.
2712 * IXmlDataEvidence.cs : not "Evidences" but "Evidence".
2713 * XmlInputStream.cs : new csc rejected implicit int->char cast.
2714 * XmlNamespaceManager.cs : In net_2_0, LookupNamespace(string) and
2715 LookupPrefix(string) does not require argument string as atomized.
2716 Added HasNamespace (string, bool).
2717 * XmlReader.cs : Added Settings and SchemaInfo properties.
2718 * XmlReaderSettings.cs : Added NameTable. Throw XmlException when
2719 attempt to set Schemas.
2720 * XmlTextReader.cs : Fixed "Evidences" to "Evidence". new csc rejected
2721 implicit int->char cast.
2722 * XmlValidatingReader.cs : Fixed "Evidences" to "Evidence".
2724 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
2727 Close XmlReader only when it is created. This fixes bug #60809.
2729 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
2731 * DTDObjectModel.cs, DTDReader.cs, XmlConvert.cs, XmlDocument.cs,
2732 XmlException.cs, XmlParserInput.cs, XmlTextReader.cs,
2733 XmlTextWriter.cs : Globalization.
2734 * XmlNode.cs : Fixed error message that confused node type.
2736 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2738 * XmlDocumentNavigator.cs : MoveToNext() should skip concatenating
2739 text/cdata/whitespace nodes.
2741 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2743 * XmlInputStream.cs : Fixed encoding detection detected in xslt
2744 standalone tests. Removed extraneous code.
2746 2004-06-13 Atsushi Enomoto <atsushi@ximian.com>
2748 * XmlTextReader.cs : Character range check is always done. It is only
2749 character references for which check is not done when Normalization
2751 A bit more kind error message for multiple document element error.
2752 * XmlTextWriter.cs : Check if character is valid and entitize when
2755 2004-06-09 Atsushi Enomoto <atsushi@ximian.com>
2757 * XmlNamespaceManager.cs : The error message was improper.
2760 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2762 * XmlInputStream.cs: Initialize reads a larger buffer now when trying
2763 to guess the encoding.
2765 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2767 * NameTable.cs : Fixed incorrect hash computation. Thanks to Ben.
2768 * XmlTextWriter.cs : Fixed remaining LookupNamespace() atom problem
2769 shown in xslt standalone tests.
2771 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2773 * XmlTextWriter.cs : Improved indenting. For children of a mixed
2774 content element, it won't be indented.
2776 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2778 * DTDObjectModel.cs,
2779 XmlDocument.cs : Close stream always.
2780 * XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
2781 * XmlTextReader.cs : Namespace check was not done. Some tests depends
2782 on this failure and to be fixed.
2784 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2786 * XmlNamespaceManagre.cs : Fixed LookupNamespace() and LookupPrefix().
2787 They require that names are *already* atomized.
2789 XmlTextWriter.cs : use safe overload of LookupXXX().
2791 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
2793 * XmlTextReader.cs : Fixed version mismatch; ProhibitDtd should be
2796 2004-05-29 Gert Driesen (drieseng@users.sourceforge.net)
2798 * XmlTextReader.cs: Added ProhibitDtd property for NET 1.1 to match
2799 public API in MS.NET 1.1
2801 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2803 * XmlDocument.cs : Save() should indent only when PreserveWhitespace
2804 is false. Fixed bug #59155.
2805 Modified comment lines a bit.
2807 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2809 * XmlTextWriter.cs : WriteRaw() looks to proceed WriteState to Prolog
2810 (if it is Start). Fixed bug #59154.
2812 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2814 * XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
2815 and don't bork against <foo></foo>. Also mofidied this method to skip
2816 <foo/>. Fixed bug #59142.
2817 Modified some comments on the code (FIXME->LAMESPEC et al).
2819 2004-05-24 Atsushi Enomoto <atsushi@ximian.com>
2821 * DTDReader.cs : When sequential PE references exist, the reader only
2822 expands the first one and in some cases the parser complaints the
2823 content (such like expecting name character but found '%').
2824 This fixes bug #58818.
2826 2004-05-23 Atsushi Enomoto <atsushi@ximian.com>
2828 * XmlNode.cs : RemoveChild() should check null argument.
2829 Normalize() was broken in some cases.
2831 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2833 * ConformanceLevel.cs : added.
2835 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2837 * XmlNodeChangedEventArgs.cs : the last patch looks true
2838 ONLY AFTER .NET 2.0.
2840 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2842 * XmlReaderSettings.cs, XmlWriterSettings.cs : NET_2_0 were missed.
2844 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2848 XmlItemViewCollection.cs,
2849 XmlReaderSettings.cs,
2850 XmlWriterSettings.cs : added new .NET 2.0 classes.
2852 * AsyncXmlTextWriter.cs,
2853 IXPathChangeNavigator.cs,
2856 XmlChangeFilters.cs,
2858 XmlNodeChangeType.cs,
2859 XPathChangeNavigator.cs,
2861 XPathDocument2ChangedEventAction.cs,
2862 XPathDocument2ChangedEventHandler.cs,
2864 XPathNavigator2.cs : removed. (They are only in .NET 1.2)
2866 * XmlWriter.cs : added new NET_2_0 WriteElementString().
2868 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2870 * XmlNodeChangedEventArgs.cs : not properly inherited from EventArgs.
2872 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2874 * XmlConvert.cs : Fixed ToString(TimeSpan) that didn't handle Hour
2875 correctly. This fixes bug #57786.
2877 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2879 * XmlValidatingReader.cs : explicitly mark as MonoTODO for XDR (not
2882 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2884 * DTDObjectModel.cs,
2890 XmlUrlResolver.cs : removed reference to Mono.Xml.
2891 Made Mono.Xml.* classes internal.
2892 * XmlDocument.cs : output xml declaration for TextWriter output in Save()
2893 * XmlElement.cs : Name character check should be done in .ctor().
2894 * XmlNamespaceManager.cs : Removed dangerous internal .ctor()
2896 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2898 * XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
2899 node can be it as well) and added check for Attributes existence
2900 in GetAttribute() and MoveTo*Attribute().
2902 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2904 * XmlTextWriter.cs : comment not in the content state is indented.
2905 This fixes bug #58247.
2907 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
2909 * XmlTextWriter.cs: In WriteStartAttribute, when the prefix is xmlns and
2910 the name is empty, convert it to a xmlns attribute.
2912 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2914 * XmlTextReader.cs : don't use NET_1_0.
2916 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2918 * XmlComment.cs. XmlProcessingInstruction.cs : missing commits.
2920 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2922 W3C DOM compliant read-only check support (buggy part in MS.NET).
2925 XmlCharacterData.cs,
2929 XmlSignificantWhitespace.cs,
2931 : CloneNode() - set read-only when copied node is read-only.
2932 Check IsReadOnly on attempt to modify value.
2934 XmlEntityReference.cs : Set descendant nodes read-only.
2935 * XmlAttributeCollection.cs,
2937 : Fixed incompatible exception type.
2938 * XmlEntityReference.cs : CloneNode() should not pass an empty string
2940 * XmlEntityReference.cs,
2941 XmlProcessingInstruction.cs : Check XML name validity.
2942 * XmlText.cs : CloneNode() does not have to check children.
2944 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2946 * XmlDeclaration.cs : More strict check on InnerText and Value.
2948 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2950 * DTDReader.cs, XmlConvert.cs, XmlDeclaration.cs, XmlImplementation.cs,
2951 XmlNode.cs : Culture independency fix.
2953 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2955 * XmlEntityReference.cs : Added XPathNodeType (just for workaround).
2956 This should really fix bug #57248.
2958 2004-04-20 Atsushi Enomoto <atsushi@ximian.com>
2960 * XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
2961 only an EntityReference (not navigatable) child. Bug #57248 fixed.
2962 * XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
2963 instead of WriteAttributes() only for MS.NET behavior compatibility.
2964 This change makes SgmlReader usable (due to SgmlReader bug).
2966 2004-04-10 Atsushi Enomoto <atsushi@ximian.com>
2968 * XmlParserContext.cs : Fixed .ctor() not to reference null namespace
2969 manager. This fixes bug #56770.
2971 2004-04-06 Atsushi Enomoto <atsushi@ximian.com>
2973 * DTDReader.cs : In ProcessDTDSubset(), 1)error message was
2974 generated with incorrect stream character, 2)entity nest check
2975 should not depend on line info which might not be supplied, 3)
2976 empty PE should be skipped.
2977 * XmlParserInput.cs : use index for StringBuilder instead of calling
2978 Remove() many times. This highly optimizes DTD parser.
2980 * XmlAttribute.cs : removed commented code.
2981 * XmlEntity.cs : removed unused field.
2983 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2985 * DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList
2986 only when they are required.
2988 XmlParserInput.cs : raw tag string now don't have to be kept, while
2989 it cost so much. Removed unused code. 20% to 30% memory got saved.
2990 * XmlNotation.cs : removed unused code.
2991 * XmlTextReader.cs : Removed unused code. ReadString() now uses
2992 XmlReader's internal method. Fixed BaseURI to be conformant with
2993 W3C XML InfoSet and (subsequently) xml:base specification (i.e.
2994 reflect xml:base attribute correctly).
2996 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2998 * XmlAttribute.cs : get_Value should return all children's value.
2999 * XmlCharacterData.cs : DOM's substring does not raise an error when
3000 startIndex + count exceeds the length of Data.
3001 * XmlNamedNodeMap.cs : SetNamedItem() returns the new child when it
3002 does not replace another named item.
3003 * XmlElement.cs : with related to the XmlNamedNodeMap change,
3004 SetAttributeNode() is required to fix as to return null when it does
3005 not replace existing attribute.
3007 2004-03-31 Atsushi Enomoto <atsushi@ximian.com>
3009 * XmlDocumentNavigator.cs : When this instance is created from xmlns
3010 attributes, it should be Namespace node.
3012 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
3014 * XmlReader.cs : ReadInnerXml() should progress reader when it is on
3015 an empty element. This fixes bug #56064.
3017 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
3019 * DTDReader.cs : In some places sequential parameter entity was
3020 incorrectly skipped (and caused invalid result).
3022 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
3024 * XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
3025 namespace nodes which has the same name as already-iterated nodes.
3026 Also xmlns='' should not be selected, and once it appeared, default
3027 namespace should not be selected anymore.
3029 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
3031 * XmlCharacterData.cs : ReplaceData() should reject negative integer
3032 value for count argument.
3033 * XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
3034 On RemoveNamedItem(), default attribute value should be restored.
3036 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
3038 * XmlAttributeCollection.cs : Remove() should throw an exception when
3039 target attribute is not included in the collection.
3040 * XmlDocument.cs : ImportNode() should reject null node.
3041 * XmlNode.cs : Fixed type of exception for invalid insertion.
3042 It should throw an exception not only when the owner document of the
3043 reference element is different but its parent element is different.
3044 Some error message improvement.
3046 2004-03-21 Atsushi Enomoto <atsushi@ximian.com>
3048 * XmlReader.cs : ReadInnerXml() incorrectly tried to get output xml.
3049 This fixes bug #55856.
3051 2004-03-20 Atsushi Enomoto <atsushi@ximian.com>
3053 * XmlTextWriter.cs : Fixed indentation on CDATA. This fixes bug #55828.
3055 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
3057 * XmlImplementation.cs : HasFeature() returns true when strVersion
3060 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
3062 * XmlWhitespace.cs : Fixed WriteTo(). Whitespace nodes should be
3063 written regardless of document's PreserveWhitespace.
3065 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
3067 * XmlDocumentNavigator.cs : Value should return concatenated string for
3068 sequential text nodes. Considered detached nodes, the result of
3069 MoveToParent() should be checked.
3071 2004-03-15 Atsushi Enomoto <atsushi@ximian.com>
3073 * XmlReader.cs : ReadInnerXml()/ReadOuterXml() should not bork when
3074 the reader is on EndElement. Patch by Jean-Marc Andre.
3076 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
3078 * XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
3079 to return attribute node. It affects on IHasXmlNode.GetNode() and
3080 SelectNodes()/SelectSingleNode().
3082 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
3084 * XmlImplementation.cs : fixity fix (I need NUnit runnable ;)
3086 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
3088 * XmlImplementation.cs : forgot to commit (renaming internal case)
3090 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
3092 * XmlDocument.cs : Implementation should not return null.
3094 2004-02-25 Atsushi Enomoto <atsushi@ximian.com>
3096 * XmlTextWriterOpenElement.cs : Reset() should reset _all_ fields.
3097 This fixes indentation bug.
3099 2004-02-19 Atsushi Enomoto <atsushi@ximian.com>
3101 * XmlTextWriter.cs : Fixed bugzilla #54554 (incorrent end tag output).
3103 2004-02-16 Atsushi Enomoto <atsushi@ximian.com>
3108 DTDValidatingReader.cs : made classes internal.
3109 * XmlDocument.cs : removed extra FIXMEs.
3110 * XmlNamedNodeMap.cs,
3113 Fixed incorrect method signature.
3115 2004-02-13 Atsushi Enomoto <atsushi@ximian.com>
3117 * DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs :
3118 say goodbye to sys.collections.specialized.
3119 (replaced the classes in that namespace with ArrayList or Hashtable)
3121 2004-02-12 Atsushi Enomoto <atsushi@ximian.com>
3123 * XmlReader.cs : For performance reason, XmlTextReader now uses
3124 base ReadInnerXml() and don't store currentTag array unnecessarily.
3125 * XmlTextReader.cs :
3126 - Fixed GetAttribute(int) that might cause index out of range.
3127 - Now it consumes the text reader by reading blocks, as MS.NET does.
3128 Modified GetRemainder(), PeekChar(), ReadChar() and so on.
3129 - Now it doesn't create Value string for linked nodes, unless it
3130 is actually required.
3131 - some code refactory.
3133 2004-02-11 Atsushi Enomoto <atsushi@ximian.com>
3135 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs :
3136 Reduced creation of openlElement. It also saves much memory.
3138 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
3140 * XmlNode.cs : ChildNodes should not create XmlNodeListChildren
3141 every time. This fix heavily improved performance.
3143 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
3145 * XmlAttributeCollection.cs : set owner element as parent on removal
3146 events (though they are not "parent" in infoset or dom context)
3147 * XmlElement.cs : Don't remove attributes twice (raises extraneous
3149 * XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
3150 Added NET_2_0 members.
3152 2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
3154 * DTDObjectModel.cs : Limit external entity reference from DTD by 256.
3155 foreach elimination. DTDParameterEntityDeclaration should set Root.
3156 Compute attribute default value without raising an error.
3157 (for non-error reporting reader)
3158 * DTDReader.cs : Fixes for the above fixes. foreach elimination.
3159 * DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
3160 XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
3161 XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
3162 XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
3163 XmlText.cs : foreach elimination.
3164 * XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
3165 foreach elimination. Removed unnecesary methods.
3166 * XmlTextReader.cs : code format refactory. Optimized some methods.
3167 foreach elimination. Replaced Stack with string array.
3168 Replaced StringBuilder with char array. Removed unnecessary methods.
3170 2004-02-06 Atsushi Enomoto <atsushi@ximian.com>
3172 * DTDValidatingReader.cs : Fixed MoveToElement() that causes incorrect
3173 IsDefault and Depth.
3174 * XmlAttribute.cs : Fixed .ctor(). Omit more namespace check when
3175 checkNamespace = false.
3176 * XmlNamedNodeMap.cs : Fixed SetNamedItem() to raise events.
3177 * XmlAttributeCollection.cs : Reimplemented InsertAfter to use
3178 InsertBefore() (similar to XmlNode).
3179 * XmlDocument.cs : Added internal .ctor(). Reimplemented ReadNode()
3180 as recursive, to make event order compatible.
3181 * XmlDocumentType.cs : Use SetNamedItem() (to raise events).
3182 * XmlElement.cs : Some refactory. Fixed SetAttributeNode() with
3183 string name to block prefixed name.
3184 * XmlEntity.cs : Don't raise events on setting contents.
3185 * XmlNode.cs : Some refactory. Added raiseEvent argument to internal
3187 * XmlEntityReference.cs : related fix for XmlNode change.
3188 * XmlTextReader.cs : When the reader is on "attributes" of xmldecl or
3189 doctype, Depth 1 lower than usual attribute. Split large function.
3191 2004-02-05 Atsushi Enomoto <atsushi@ximian.com>
3193 * XmlConvert.cs : ToSingle() and ToDouble() should be culture
3194 independent. Patch by Rodolfo Campero.
3196 2004-02-04 Atsushi Enomoto <atsushi@ximian.com>
3198 * DTDObjectModel.cs : Never expand entity on ScanEntityValue().
3199 * DTDValidatingReader.cs : XmlDeclaration node requires attributes
3203 XmlDocumentFragment.cs,
3209 Added namespace checking flag (required for such xml readers
3210 that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
3211 * XmlDocumentType.cs,
3213 XmlEntityReference.cs : The children of Entity and EntityReference
3214 became correct. They now holds parsed nodes, but it is only when
3215 they are appended to the document.
3216 * XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
3217 boolean checkNodeType argument. This method also tries to create
3218 Entity's and EntityReference's child nodes. Also added internal
3219 RemoveChild() with boolean checkNodeType argument.
3220 * XmlNodeReader.cs : Quick hack for ResolveEntity() that became
3221 broken with these changes. use InnerXml as input to entityReader.
3222 * XmlTextReader.cs : XmlDeclaration's value LocalName should be the
3223 same as Name. The names of DTD's pseudo attributes should be empty.
3224 Fixed DTD node's Depth (was regarded as attribute value's depth).
3226 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
3228 * XmlTextReader.cs, DTDReader.cs : fixity fix ;)
3230 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
3232 * ChangeLog : Fixed incorrect description that should be written for
3233 DTDValidatingReader.cs but written for DTDReader.cs.
3234 * DTDValidatingReader.cs : Fixes described in the last DTDReader fix.
3237 XmlConstructs.cs : Made XmlChar and XmlConstructs equivalent and
3238 replaced XmlChar with XmlConstruts, renaming "XmlChar" to
3239 "XmlCharCompact" and "XmlConstructs" to "XmlChar".
3240 (XmlChar will be used for compact framework.)
3241 * DTDReader.cs, XmlParserInput.cs, XmlTextReader.cs :
3242 XmlChar related changes. Support for surrogate pair.
3243 It cannot use TextReader's peek anymore (for surrogate pair).
3244 Character range check for PI value, attribute value, text
3245 * XmlTextWriter.cs : Change openElements from Stack to ArrayList.
3246 (It calls ToArray() every time.)
3248 2004-02-03 Alon Gazit <along@mainsoft.com>
3249 * XmlNamedNodeMap - now Item(int index) returns null for nodeList.Count
3250 instead of throwing ArgumentOutOfRangeException.
3252 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
3254 * XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
3255 predefined entity names.
3256 * DTDObjectModel.cs : DTDxxxCollection now derives from
3257 - DTDCollectionBase that derives from DictionaryBase.
3258 - "Literal value" and "replacement text" are handled differently.
3259 - Throw XmlException when external entity could not be resolved.
3260 - Return ReplacementText for EntityValue.
3262 - Support IXmlLineInfo.
3263 - Fixed IGNORE section handling to be more strict.
3264 - Compute replacement text on reading entity declarations.
3265 - Don't expand char references before getting literal entity value.
3266 - Check not allowed parameter entity inside internal subset.
3267 * DTDValidatingReader.cs :
3268 - Added ValidateWhitespaceNode() to check whitespace's Validity
3269 Constraints on external elementdecl and standalone document.
3270 - When invalid data against its datatype was found, don't throw
3272 - Other code refactory.
3273 * XmlTextReader.cs :
3274 - Check for invalid Text pattern "]]>" should not depend on line
3275 info since it might not be supported.
3276 - Check referenced character's validity (WFC).
3278 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
3280 * DTDReader.cs : Added Normalization. Parameter Entity declaration
3281 should block invalid characters. (GEDecl should be fixed as well.)
3282 * XmlConstruct.cs : Should allow surrogate chars.
3283 * XmlNotation.cs : When prefix is empty (i.e. almost all cases)
3284 Name should not add ':'. Patch by Boris Kirzner.
3285 * XmlTextReader.cs : Modified private ReadCharacterReference() to
3286 return the character (or -1 when should not return anything).
3287 Now Text character reference are checked their character range.
3288 Set DTDReader.Normalization as well as the reader itself.
3290 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
3292 * DTDReader.cs : Make sure that parameter entities are not allowed
3293 inside internal subset unless it appears as a markupdecl.
3294 * DTDValidatingReader.cs : ENTITY or ENTITIES type attributes must have
3295 a value that indicates *unparsed* entity (i.e. NDATA required).
3297 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
3299 * XmlTextWriter.cs : quick performance fix.
3300 Reduced memoty allocation (e.g. 12% when writing XMLSchema.xsd.)
3302 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
3304 * DTDObjectModel.cs :
3305 - DTDNode's BaseURI should not always refer to that of DTD's.
3306 - Use absolute URI's .ToString() instead of AbsolutePath.
3307 * DTDReader.cs : Throw XmlException for illegal character references.
3308 * DTDValidatingReader.cs :
3309 - Share XmlResolver when the actual reader is XmlTextReader.
3310 (MS's XmlValidatingReader and XmlTextReader do this.)
3311 - Added its own EntityHandling property.
3312 * XmlValidatingReader.cs : Share XmlResolver with XmlTextReader.
3314 XmlTextReader.cs : Added new NET_2_0 members.
3315 * XmlElement.cs : Removed extra lines (caused by XmlTextWriter bugs).
3316 * XmlEntityReference.cs : Forgot to add, the real fix by Boris.
3318 2004-01-23 Atsushi Enomoto <atsushi@ximian.com>
3320 * XmlWriter.cs, XmlTextWriter.cs :
3321 Several namespace related fixes.
3322 - Current element's NamespaceURI should be immediately available
3323 after the call of WriteStartElement() for LookupPrefix(), so
3324 AddMissingElementXmlns() only affects on output. This is
3325 now identified by shouldCheckElementXmlns field.
3326 - Attribute's overraped xmlns should be ignored for LookupPrefix(),
3327 Especially, when the owner element is written with the default
3328 namespace. HOWEVER, the attribute should be *written*. This is
3329 identified by shouldAddSavedNsToManager field.
3330 - In AddMissingElementXmlns(), non-empty prefix namespace was not
3331 checked user-written attributes.
3332 - XmlWriter.WriteAttributeString() never supplies namespace URI for
3333 xmlns attributes for other versions than NET_1_0. Instead, added
3334 ns check logic in WriteStartAttribute() only with NET_1_0.
3335 - WriteEndAttribute() should reject zero-length namespace for
3336 non-default xmlns declarations.
3337 - LookupPrefix() should reject argument null and empty.
3339 (added 2004-01-24 : forgot to mention more)
3340 - WriteAttributeString() w/o namespace should supply null, not ""
3341 - Added .NET 1.2 members.
3342 - Regard any name with "xml" prefix as in "namespace for XML".
3344 2004-01-22 Atsushi Enomoto <atsushi@ximian.com>
3346 * XmlElement.cs : Reverted previous fix since it broke monodoc web
3349 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
3351 * XmlNode.cs : When adding a node to child list, it should reject its
3352 ancestors. Patch by Boris Kirzner.
3353 * XmlNodeReader.cs : Related fix to the fix above. It should not move
3354 to children of XmlEntityReference nodes.
3355 * XmlTextWriter.cs : FixedWriteStartElement() not to write default
3356 namespace when ns is null (while ns is "", it writes default ns).
3357 * XmlElement.cs : Fixed WriteTo() to call WriteStartElement(localName)
3358 when NamespaceURI is an empty string.
3360 2004-01-14 Atsushi Enomoto <atsushi@ximian.com>
3362 * XmlAttribute.cs : when set a value, it is no longer default
3363 (even if the value is the same as default value).
3364 * XmlAttributeCollection.cs : Remove() should recover default attribute
3365 value to default, not specified value.
3366 Patch by Boris Kirzner (modified a bit)
3367 * XmlDocument.cs : Reference to undeclared entity is not allowed in
3368 Load(), while allowed in ReadNode(). Added such distinguishing logic.
3370 2004-01-13 Atsushi Enomoto <atsushi@ximian.com>
3372 * XmlValidatingReader.cs : Throw exception only in case of errors.
3373 Added NET_2_0 Evidences property.
3375 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
3377 * XmlElement.cs : Fixed .ctor(). Default attribute was not treated as
3378 Specified = false. Patch by Boris Kirzner.
3380 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
3382 * XmlException.cs : Fixed incorrect .ctor signature.
3383 * XmlParserInput.cs : Fixed in sync with the above fix.
3385 2004-01-08 Atsushi Enomoto <atsushi@ximian.com>
3387 * XmlAttribute.cs, XmlElement.cs :
3388 Fixed incorrect protected .ctor modification.
3390 2004-01-08 Nick Drochak <ndrochak@ieee.org>
3392 * DTDValidatingReader.cs: Removed unused variable
3394 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
3396 * XmlNamespaceManager.cs : Implemented .NET 1.2 methods that take
3397 atomizedNames argument.
3398 * XmlTextReader.cs : Use new namespace manager methods.
3399 Reduced NameTable.Add().
3400 * DTDObjectModel.cs : fixed incorrectly commented-out line.
3402 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
3404 * XmlAttribute.cs, XmlDocument.cs, XmlElement.cs :
3405 set_Prefix should atomize to name table.
3406 Avoided extraneous atomization attempt a bit.
3408 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
3410 * DTDObjectModel.cs, DTDReader.cs, XmlSecureResolver.cs :
3411 avoiding obvious exception.
3412 * DTDReader.cs, XmlTextReader.cs : Some optimization.
3413 Avoided extraneous PeekChar() and reduced name string creation.
3415 2004-01-05 David Sheldon <dave-mono@earth.li>
3417 * XmlTextReader.cs: Fixed constructors taking string url to not
3418 loose the absolute part of the path.
3420 2004-01-04 Atsushi Enomoto <atsushi@ximian.com>
3422 * XmlDocument.cs : Fixed Load() to set XmlResolver correctly. Patch
3423 by Benjamin Jemlich.
3424 Assure closing XmlTextReader which are internally used.
3426 2004-01-03 Atsushi Enomoto <atsushi@ximian.com>
3428 * XmlTextWriter.cs : trivial character-case fix
3429 * XmlUrlResolver.cs : It downloads network stream content at
3430 GetEntity() call. You can try like below:
3431 for (int i=0;i<100;i++) u.GetEntity(url, null, typeof(Stream));
3433 2003-12-23 Atsushi Enomoto <atsushi@ximian.com>
3435 * XmlNamedNodeMap.cs : Fixed internal SetNamedItem(node, pos) to set
3436 replacing node correctly. This fixes bug #52453.
3438 2003-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3440 * XmlDocument.cs, XmlElement.cs, XmlNode.cs :
3441 GetElementsByTagName() - Fixed bugzilla #52419, refactored,
3442 and moved private implementation methods to XmlNode class.
3444 2003-12-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3446 * XmlTextWriter.cs :
3447 Element's namespace should be escaped as usual attribute.
3449 2003-12-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3451 * XmlTextWriter.cs : Indentation between xmldecl and doctype.
3452 * DTDValidatingReader.cs : AttList null reference fix.
3454 2003-12-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3456 * DTDValidatingReader.cs : Validity check and entity expansion were
3458 * DTDObjectModel.cs, DTDReader.cs, XmlInputStream.cs :
3459 Going to remove XmlInputStream. XmlStreamReader might be replacable.
3461 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3463 * XPathDocument2ChangedEventHandler.cs : fixed incorrect argument.
3464 * Moved UpdateEventHandler.cs and XmlUpdateEventArgs.cs to sqlxml.
3466 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3468 * XmlTextReader.cs : BaseURI was broken. This fixes bug #52098.
3470 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3472 * XmlUrlResolver.cs : GetEntity() does not return direct network stream
3473 that may hold up connection. Now it reads up all the content stream.
3475 2003-12-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3477 * XmlAttributeCollection.cs,
3478 XmlElement.cs : Fixed bug #51415.
3479 When adding attribute to an element using Attributes, it failed.
3481 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3483 * XmlDocument.cs : Fixed ReadNode() to call AppendChild() to document
3484 after setting all attribute nodes. Modified ReadNode() to handle
3485 Depth comparison and error handling (!= to <). It allows MS's
3486 SgmlReader bug that returns incorrect Depth.
3488 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3490 * XmlDocumentNavigator.cs : Fixed MoveToNextAttribute (and
3491 MoveToNextNamespace) that might result in NullReferenceException.
3492 patch by Sanjay Gupta. This fixed bug #51941 (and possibly #51415)
3494 2003-12-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3496 * XmlUrlResolver.cs : Update with recent System.Uri change. This fixes
3497 bugzilla #51808 (patch by Jeroen Zwartepoorte, a bit modified).
3499 2003-12-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3501 * XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
3502 * XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
3503 This may fix bug #51415.
3505 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3507 * XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".
3509 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3511 * XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
3512 shouldn't expect non-empty element content. This will fix bug #48287.
3514 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3516 * XmlTextWriter.cs : When element's namespace should be overwritten by
3517 one of its attribute, if exist as such. This fixes bug #51305.
3519 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3521 * DTDValidatingReader.cs : Fixed ReadContent() which may result in
3522 invalid additional Text node.
3524 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3526 * XmlTextWriter.cs :
3527 On WriteProcessingInstruction(), ArgumentException() is expected ;-)
3529 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3531 * XmlTextWriter.cs :
3532 WriteProcessingInstruction() should check name validity.
3533 AddMissingElementXmlns() should allow namespace emission even if it
3534 is identical to existing one.
3536 2003-11-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3538 * XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.
3540 2003-11-20 Eran Domb <erand@mainsoft.com>
3542 * XmlTextWriter.cs (WriteStartAttribute) : Check if the ket already exists in the newAttributeNamespaces table
3543 before trying to add it to the table.
3545 2003-11-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3547 * DTDValidatingReader.cs : Replaced entity should not treat whitespaces
3549 * XmlNode.cs : Removed extraneous MonoTODOs.
3551 2003-11-17 Jackson Harper <jackson@ximian.com>
3553 * XPathEditor.cs: .net 1.2 only
3555 2003-11-17 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3557 * AsyncXmlTextWriter.cs, IXPathChangeNavigator.cs, IXPathEditor.cs,
3558 IXPathNavigator.cs, IXmlDataEvidence.cs, IXmlNamespaceResolver.cs,
3559 UpdateEventHandler.cs, XPathChangeNavigator.cs, XPathDocument2.cs,
3560 XPathDocument2ChangedEventAction.cs,
3561 XPathDocument2ChangedEventHandler.cs, XPathEditor.cs,
3562 XPathNavigator2.cs, XmlChangeFilters.cs, XmlInfoItemType.cs,
3563 XmlNamespaceScope.cs, XmlNodeChangeType.cs, XmlQualifiedNameTable,cs,
3564 XmlQueryDialect.cs, XmlUpdateEventArgs.cs
3565 : Added .NET 1.2 classes (for convenience of ObjectSpaces stubbing).
3567 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3569 * XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
3570 to skip XmlEntityReference.
3571 * XmlTextWriter.cs : Fixed AddMissingElements() and
3572 WriteStartAttribute() not to emit extraneous xmlns.
3574 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3576 * XmlTextWriter.cs : Skip multiple xmlns when element and any of
3577 attributes have the same xmlns values.
3578 WriteEndElement() allows open attribute (calles WriteEndAttribute()).
3579 Indentation should be inserted between ">" and "</xxx>" .
3581 2003-11-02 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3583 * XmlConvert.cs: Only parse INF/-INF/NaN. Other Infinty or NAN
3584 numbers are parsed with the respective ::Parse method.
3586 2003-11-01 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3588 * XmlConvert.cs: Revert my last change. INF and -INF must be
3589 processed here because Double::Parse and Single::Parse doesn't
3590 understand anything of parsing [-]INF.
3592 2003-11-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3594 * XmlDocument.cs : Save(Stream) should not close the stream.
3596 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3598 * DTDReader.cs, DTDValidatingReader.cs, XmlInputStream.cs,
3599 XmlTextReader.cs : More cleanup.
3600 * XmlDocument.cs : Removed CheckName(). Code cleanup.
3601 * XmlElement.cs : .ctor() now adds default attributes (if required).
3602 * XmlAttribute.cs, XmlElement.cs, XmlEntity.cs, XmlEntityReference.cs,
3603 XmlNotation.cs : Now uses OwnerDocument's NameTable.
3605 2003-10-25 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3607 * XmlConvert.cs: Support for the sign in double and single. The
3608 processing of the infinites and nan numbers are more complex than
3609 comparing to "INF" so we must let Double::Parse and Single::Parse
3612 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3614 * DTDValidatingReader.cs : Now it handles whitespace entity as
3616 * XmlConvert.cs : As to NIST testcases, exponential support on single
3617 and double floating point numbers.
3618 * XmlValidatingReader.cs : If it IsDefault, then line number and line
3621 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3626 XmlWriter.cs : Fixed incorrect access modifier.
3627 * XmlTextWriter.cs : Imported state variable from XmlWriter.
3628 * DTDValidatingReader.cs : Removed extraneous MonoTODO.
3629 * XmlConvert.cs : Implemented ToTimeSpan().
3630 Modified ToDateTime() to reuse the same array.
3632 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3634 * XmlAttributeCollection.cs : Fixed synchronization stuff.
3635 * XmlConvert.cs : Added two FromBinHexString() methods.
3636 * XmlTextReader.cs : Modified to use one of the above method.
3637 * XmlValidatingReader.cs : XsdValidatingReader.XmlResolver will be
3638 disabled (in the next commit), so resolver won' be set to it.
3639 Attempt to validate against XDR now throws NotSupportedException.
3641 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3643 * XmlChar.cs : added WhitespaceChars, used in common.
3648 XmlTextWriter.cs : String.Trim()
3649 * XmlConvert.cs : shifted XmlConstructs to XmlChar.
3650 * XmlTextReader.cs : Implemented Normalization.
3652 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3654 * XmlNode.cs : GetPrefixOfNamespace() also contained a bug similar to
3655 GetNamespaceOfPrefix() fixed at 2003-10-13.
3656 * XmlTextReader.cs : ReadBase64() should keep incomplete base64 block
3657 which remained by previous call of this method.
3658 * XmlUrlResolver.cs : Added assertion for file Uri path's absoluteness.
3659 * XmlValidatingReader.cs : Notice about intention of XDR won't be
3660 supported (at least in Mono 1.0).
3662 2003-10-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3664 * XmlDocument.cs : CloneNode() does not copy PreserveWhitespace.
3665 * XmlWriter.cs : Calling WriteNode() with XmlReader whose state is
3666 XmlDeclaration now calls WriteProcessingInstruction(). This fixes
3667 testcase XmlWriterTests.WriteNodeFullDocument().
3668 * XmlTextWriter.cs : Added LAMESPEC comments related to above.
3670 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3672 * XmlDocument.cs : Fixed bugzilla #49607. Save() outputs XML
3673 declaration even though there is no XmlDeclaration child.
3674 * XmlTextReader.cs : Fixed Init() so that ResetState() should work.
3676 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3678 * XmlTextWriter.cs : Implemented WriteSurrogateCharEntity().
3679 Reverted my recent extraneous check in WriteStartAttribute().
3681 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3683 * XmlNode.cs : GetNamespaceOfPrefix() should check Attributes existence.
3684 And it should throw ArgumentNullException.
3686 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3688 * XmlAttribute.cs : Fixed InnerText that did not removed its content
3689 if there is two or more children.
3690 * XmlNode.cs : XmlNode.cs : Fixed bugzilla #49580 (1)to return "",
3691 (2)not to compare NodeType for detached nodes, (3)optimization to
3692 compare element's prefix.
3693 * XmlSecureResolver.cs : Removed extraneous members.
3695 2003-10-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3697 * Added DTDReader.cs. It is almost importation of XmlTextReader.
3698 * DTDObjectModel.cs :
3699 - More .NET-ism. Properties took place of fields.
3700 - Imported PE set from XmlTextReader. Added location info.
3701 - Added DTDEntityBase common to PE and GE.
3702 - More correct text declaration handling with new XmlTextReader.
3703 * DTDValidatingReader.cs :
3704 - Now uses entity resolving XmlTextReader to validate attributes
3705 correctly. Implemented standalone
3706 - Standalone and default related validity constraints check.
3707 * XmlImplementation.cs: Implemented HasFeature().
3708 * XmlNode.cs : Implemented Supports().
3709 * XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
3710 * XmlParserInput.cs : Removed extraneous members.
3711 * XmlTextReader.cs :
3712 - All DTD related functionality now goes to DTDReader.cs
3713 - It became old simple TextReader input style.
3714 - Implemented GetRemainder().
3715 - Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
3716 additional new private method ReadUntilEndTag().
3717 - Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
3718 ReadXmlDeclaration() now became simple.
3719 - More strict entity reference check at SetEntityReferenceProperty()
3720 - Removed extraneous members.
3721 * XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.
3723 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3725 * XmlTextReader.cs: when we get an unexpected EOF in ReadContent, set
3726 the state before throwing the exception if depth > 0.
3728 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3730 * XmlAttribute.cs : Removed extraneous MonoTODO.
3731 * XmlTextWriter.cs : Implemented WriteBinHex() and WriteChars().
3732 WriteStartElement() and WriteStartAttribute() should ignore Prefix
3733 if namespace uri is not specified.
3735 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3737 * XmlDocumentFragment.cs,
3739 XmlEntityReference.cs : Removed extraneous MonoTODO.
3740 * XmlNode.cs : Implemented Normalize().
3741 * XmlNodeReader.cs :
3742 - AttributeCount and HasAttributes should return its owner element's
3743 value, to be consistent with XmlTextReader.
3744 - Fixed Depth to reflect correct attribute/attribute-value iteration.
3745 - simplified ownerElement and HasValue.
3746 - Prefix won't return null.
3747 - MoveToElement() should also work against attribute value nodes.
3748 * XmlTextReader.cs : MoveToElement() should return false if it is
3749 positioned at element itself.
3751 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3753 * XmlTextReader.cs : Improved SignificantWhitespace handling.
3755 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3757 * XmlSecureResolver.cs : Implemented basic feature.
3759 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3761 * XmlUrlResolver.cs : Should work with null type argument.
3763 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
3765 * XmlTextWriter.cs : An attribute can require a prefix for the default
3766 namespace, so we need to store the prefix as well as the namespace.
3768 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3770 * DTDValidatingReader.cs : Simplified to use
3771 XmlSchemaUtil.GetParserContext().
3772 * XmlValidatingReader.cs : ValidationType.Auto should always use
3773 XsdValidatingReader because xsi:schemaLocation might be used.
3775 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3777 * XmlTextReader.cs : Attribute value token properties were incorrectly
3778 set by the linked node.
3780 2003-09-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3782 * XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
3783 considers such case that target node was not adapted to the document.
3784 * XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
3785 * XmlTextWriter.cs : use 'as' instead of 'try..catch'.
3787 2003-09-25 Ben Maurer <bmaurer@users.sourceforge.net>
3789 * XmlNode.cs (XPathNodeType): Give more useful debugging message.
3790 * XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
3793 2003-09-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3795 * XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
3796 recovery was still not enough. Fixed GrowScopes() (incorrect index).
3798 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3800 * XmlTextReader.cs :
3801 - Fix for bugzilla #48337 (containing Ben's advice on that).
3802 - Added internal XmlTokenInfo classes. Nodes are now handled as token
3803 objects (linked node, attributes and attribute values). Most of the
3804 node state properties and iterating methods are changed to refer to
3805 the token classes (except for value builder availability). Removed
3806 fields which are never used. CompileDTDSubset() is changed in
3807 reflection to nodeType field removal.
3808 - Fixed Depth that should vary in moving between attributes and/or
3809 reading attribute values.
3810 - LineNumber and LinePosition now returns more correct location.
3811 - Fixed Value that should still return true if its value is an empty
3812 attribute value string.
3813 - EntityValue is checked WFC constraints even thoug it is not used.
3814 - All .ctor() now initializes ReadState as Initial.
3815 - Read() should be available for attribute value constructor.
3816 * XmlAttribute.cs : set_InnerXml() now calls reader's Read().
3818 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3820 * XmlNamespaceManager.cs: PopScope() must retain those namespaces which
3821 are added in the scope before PushScope() was called.
3823 2003-09-20 Ben Maurer <bmaurer@users.sourceforge.net>
3825 * XmlNamespaceManager.cs: Rewrote. Uses arrays, rather than linked
3826 lists and removes uses of Hashtable. Results in huge speed gains.
3828 2003-09-19 Ben Maurer <bmaurer@users.sourceforge.net>
3830 * XmlConvert.cs: NaN.ToString () != INF.
3832 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
3834 * XmlTextWriter.cs: Attributes that have a namespace must be always
3837 2003-09-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3839 * XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
3841 * XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
3842 Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
3843 add Namespaces immediately, but adds at AddMissingElementXmlns so
3844 that we don't have to have extra check than namespaceManager's
3845 LookupPrefix(). 2) Removed writtenAttributes for performance reason
3846 since it is no more required.
3848 2003-09-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3850 * XmlDocument.cs : patch by Jonathan Hogg. Fixed CreateAttribute()
3851 that handled xmlns attributes inproperly.
3853 2003-09-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3855 * XmlNamespaceManager.cs : GetEnumerator() should return all of the
3856 available pairs (of prefix and namespace).
3857 * XmlQualifiedName.cs : Quick fix for NullReferenceException in case
3858 of name (or ns) is null. (The description of the immediate previous
3859 changes will be inserted below.)
3860 * XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
3861 * XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
3862 will release resources it had allocated.
3864 2003-09-01 Ben Maurer <bmaurer@users.sourceforge.net>
3866 * XmlDocument.cs (Save): use the encoding of the document, if
3869 2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3871 * XmlValidatingReader.cs : Implemented SchemaType. Added support for
3872 ValidationType.Schema. Added support for XmlResolver. Fixed
3873 ReadTypedValue() not to consume EndElement.
3875 2003-08-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3877 * XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
3879 * XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
3880 Commented out Console.Error.WriteLine().
3881 * XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
3882 escape and unescape for relative URI string.
3884 2003-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
3886 * XmlParserContext.cs: Make each context inherit next.
3888 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3890 * XmlChar.cs (IsWhitespace): Spare enumerator allocation.
3891 * XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
3892 fat, use low-fat loops instead. Even better, call the function
3893 inside XmlChar for code reuse.
3894 * HighWaterStack.cs (added): New class that acts like a Stack, but
3895 helps with memory allocation.
3896 * XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
3898 * XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
3899 use a variable that stores the position in the ArrayList.
3901 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3903 * XmlTextWriter.cs: Begin diet. String.Format has too much
3904 saturated fat, lets replace with the fat-free .Write ()
3905 calls. Effects best seen when Paolo's StreamWriter patch is
3908 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3910 * XmlNodeReader.cs : Fixed ReadAttributeValue() that might result in
3911 vanishing current node.
3913 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3915 * DTDValidatingReader.cs : Added SchemaType.
3916 Read() Assures to return to element.
3917 * DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
3918 * XmlReader.cs : ReadString() should be virtual in NET_1_1.
3919 * XmlTextReader.cs : 1) Depth should consider Attribute and its values.
3920 Introduced insideAttribute field to support them.
3921 2) ReadAttributeValue() should consider empty string.
3922 * XmlValidatingReader.cs :
3923 Fixed several properties which premised as if it was already read.
3924 Encoding and Namespaces now throws NotSupportedException for other
3926 Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
3928 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3930 * XmlInputStream.cs : Reverted CanSeek as to return false anyway.
3932 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3934 * DTDObjectModel.cs : added XmlResolver related members. Added
3935 invalid entity recursion logic. Added encodingdecl check on textdecl.
3936 * DTDValidatingReader.cs : It now implements IHasXmlParserContext.
3937 * XmlChar.cs : IsPubidChar() should not allow TAB(	).
3938 * XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
3939 to receive DTDObjectModel to support other than XmlTextReader.
3940 2) Most of its public member is now based on DTDObjectModel.
3941 * XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
3942 2) ReadNode() now considers XmlParserContext's DTDObjectModel for
3943 other than XmlTextReader (such as XmlValidatingReader).
3944 * XmlNode.cs : code cleanup only.
3945 * XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
3946 * XmlTextReader.cs : 1) Illegal entity reference check logic was moved
3947 from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
3948 change on ReadEntityReference(). 3) ReadAttribute() now checks
3949 reference to external entity reference. 4) Added textdecl encoding
3950 check. 5) DTDObjectModel fields are now set correctly. 6) added
3951 PERef markup nest check. 7) If PEDecl was not found, it might be WFC
3952 violation, not only be VC violation. 8) ReadEntityDecl() now receives
3953 its declared entity itself, and this method checks IsInternalSubset.
3954 * XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
3955 2) ValidationType.None should be the same as Auto, not DTD (in the
3956 future it should keep xml schema's default values).
3958 Pending Stuff in XmlTextReader which breaks some NUnit tests;
3959 1) SetEntityReferenceProperies() has check for illegal references.
3960 2) ReadAttribute(bool) has similar check for illegal references.
3962 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3964 * DTDAutomata.cs : Fixed (modified or added) TryEndElement() of choice,
3965 sequence and oneOrMore. Fixed DTDChoiceAutomata.TryStartElement().
3967 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3969 * XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
3970 and supplied SkipWhitespace() as they needed. It broke monodoc.
3971 Fixed ReadEntityValueDecl() to get correct value.
3973 2003-08-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3975 * XmlInputStream.cs :
3976 Fixed Initialize() that might result in incorrect buffer.
3977 CanRead and Position should consider buffer (especially when the
3979 CanSeek should use stream's CanSeek.
3981 * XmlChar.cs : added GetPredefinedEntity().
3982 * DTDObjectModel.cs :
3983 - Modified ComputeDefaultValue() to use it.
3984 - Fixed NormalizedDefaultValue not to expect parsed value as string.
3985 - ResolveExternalEntity now detects invalid standalone specification.
3986 - DTDParameterEntityDeclaration.Value is now changed to property and
3987 keep its resolved value of literal value of external value using
3988 new Resolve (XmlResolver) method (called only by XmlTextReader).
3989 * DTDValidatingReader.cs :
3990 - It now handles entity-expanded Whitespace and SignificantWhitespace
3991 correctly. Does not raise unexpected text not allowed error.
3992 - Fixed MoveToAttribute()s to move internal reader correctly, and
3993 should be able to move in other cases than on element node.
3994 - On Read()ing document type and ResolveEntity(), it now sets
3995 XmlResolver on text reader.
3996 - On ID constraints check and type verification, it now uses
3997 normalized attribute or its tokenized value(s).
3998 - Fixed ValidateAttributes() to add default values when
3999 ValidationType is Auto.
4000 * XmlParserContext.cs : added internal Dtd setter.
4001 * XmlParserInput.cs :
4002 InsertParameterEntityBuffer() should add surrounding whitespaces.
4003 Removed unused code block.
4004 * XmlTextReader.cs :
4005 - Modified ReadReference(), ReadAttribute() and Dereference() to use
4006 XmlChar.GetPredefinedEntity().
4007 - When returning entity reference, it checks extity declaration
4008 existence in certain conditions.
4009 - ReadAttribute() now skips general entity replacement on reading
4011 - ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
4012 - ReadXmlDeclaration() holds isStandalone, which might be used in
4013 entity reference's well-formedness check.
4014 - internal 'DTD' now uses XmlParserContext.Dtd.
4015 - isInternalSubset was meaningless. Now uses input stack's Count.
4016 - Added some required SkipWhitespace().
4017 - Several parameter entity handling changes. Added GetPEValue(name).
4018 TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
4019 now uses its Resolve() when it was external PE. Now it uses value
4020 buffer instead of currentTag, to efficiently read (included) PE.
4021 CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
4022 ImportAsPERef() simply inserts the value to currentInput.
4023 ReadEntityDecl() also uses value buffer. Removed non-used methods.
4024 - Default attributes are now stored in normalized form.
4025 - Dereference() now considers non-expanding predefined entities.
4026 * XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
4027 is more correctly supported.
4029 * XmlAttributeCollection.cs :
4030 When removing default attribute, it immediately inserts the attribute.
4031 RemoveAll() should consider default (not-removable) attributes.
4033 Should have its default XmlResolver. Added Internal Resolver.
4034 Some Load() should use its XmlResolver.
4035 ImportNode() should copy its children in node level, not value level.
4036 It also have to consider not to copy default attribute on importing
4038 * XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
4040 XmlDocumentFragment.cs.
4041 XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
4042 * XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
4043 ResolveEntity() uses XmlResolver on entityReader.
4045 2003-08-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4047 * DTDObjectModel.cs :
4048 - Added validation error check (and AddError(), Errors).
4049 - Fixed ComputeDefaultValue() to handle various references correctly.
4050 - DTDEntityDeclaration.EntityValue became property, and added
4051 LiteralEntityValue. The new one holds resolved value.
4052 Added ResolveExternalEntity(). It now required root in .ctor().
4053 * DTDValidatingReader.cs :
4054 - Now it handles namespaced attributes (as input to xsd validator).
4055 - Added XmlResolver property as usual XmlReader.
4056 - Added currentEntityHandling field so that it can stand changing
4057 XmlValidatingReader's EntityHandling dynamically.
4058 - FilterNormalization() now requires name for getting datatypes and
4059 can stand for non-current attribute normalization.
4060 - Splitted ReadContent() from Read() that can be called recursively
4061 when expanding entities.
4062 - Now handles Entity not found error *after* resolution of entities,
4064 - Read()ing DTD checks its Errors and raises validation error events.
4065 In some situations, DTD parsing may detect VC error, not WFC error.
4066 It also strictly checks NData existence.
4067 - Handling of entity-resolved text is a bit changed and Read()ing
4068 element, endElement, cdata now changed to switch collecting text
4070 - content type ANY should allow texts.
4071 - Added enumerated attribute validity check.
4072 - Added Name/Names creation rule check for ID/IDREF/IDREFS.
4073 - Added entity existence check for ENTITY/ENTITIES attributes.
4074 - Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
4075 - Fixed to remove extraneous #REQUIRED check.
4076 - Contributing default attribute is now only applied to the case
4077 ValidationType is DTD or None.
4078 - ResolveEntity() now handles external entities.
4079 Added Mono.Xml.IXmlParserContext interface support.
4080 * XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
4081 * XmlTextReader.cs :
4082 - Fixed ReadAttributeValue() to reset returnEntityReference.
4083 - Added bool MaybeTextDecl only for ResolveEntity().
4084 - Fixed ReadWhitespace(). In fact its value is considered even if it
4085 is in the end of the XML.
4086 - Fixed ReadXmlDeclaration(). Now skips text declaration.
4087 - CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
4088 - ReadContentSpec() should set OrderType = OR for mixed model.
4089 Fixed to set content element name correctly.
4090 - ImportAsPERef() now skips Text declaration.
4091 - Type of enumerated default attributes shold be string.
4092 - Undeclared PE error is now handled as DTD's VC error, not
4093 XmlTextReader's WFC error.
4094 * XmlValidatingReader.cs : BaseURI should provide that of
4095 original XmlReader's when read was not started yet.
4096 Fixed XmlResolver to delegate to DTDValidatingReader.
4098 * XmlAttributeCollection.cs : Acquiring attList declaration is
4099 insufficient especially in case of lack of elementdecl.
4100 * XmlChar.cs : (Maybe this is compact than XmlConstructs.)
4101 added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
4102 IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
4104 * XmlInputStream.cs : Removed "version" declaration check. It should
4105 be done by XmlTextReader.
4107 * XmlNodeReader.cs : added internal GetInternalParserContext() and now
4108 it can be used in XmlValidatingReader.ResolveEntity().
4109 ResolveEntity() sets XmlTextReader.MaybeTextDecl.
4111 2003-08-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4113 * DTDValidatingReader.cs :
4114 Added full ExpandEntities support for text node and entity reference
4115 node (although require many usage tests). Almost all methods and
4116 properties now have currentTextValue != null check, that field means
4117 that there are cached (entity-resolved) text.
4118 Implemented default attribute aware XmlLang and XmlSpace.
4119 * XmlNodeReader.cs : ResolveEntity() should not require DTD.
4121 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4123 * DTDValidatingReader.cs,
4127 XmlValidatingReader.cs : fixed pragma USE_VERSION_1_0 to NET_1_0.
4129 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4131 * DTDObjectModel.cs : Added BaseURI (but not used yet).
4132 DTDAttListDeclaration.ctro() now requires root dtd object model.
4133 * DTDValidatingReader.cs : Read() now expands EntityReference if
4134 entity handling of validating reader is ExpandEntities.
4138 XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
4139 ReadOuterXml which are modified in MS.NET 1.1.
4140 * XmlConstructs.cs : added int version of IsValid, IsInvalid,
4141 IsContent, IsMarkup and IsNCNameStart.
4142 Fixed int version of IsXXX() to check array index range.
4143 Added IsValidName (string).
4144 * XmlTextReader.cs :
4145 - Read() handles document with non document element as an error.
4146 - ReadText() and ReadCharacterReference() checkes illegal characters.
4147 - ReadEntityReference() checks name validity.
4148 - ReadProcessingInstruction() rejects such name that starts with
4149 "xml" ignoring case, and checks attributes more strictly.
4150 - ReadDeclaration() rejects unrecognized kind of declaration.
4151 - In many places, added "required whitespace" check in DTD markup.
4152 - DTD content model now disallows mixing use of '|' and ','.
4154 2003-08-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4156 * XmlDocumentFragment.cs : I missed to add it in relation to the
4157 previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
4158 * XmlNodeReader.cs : removed some TODO attributes.
4159 * DTDValidatingReader.cs,
4160 XmlValidatingReader.cs : Implemented ResolveEntity().
4162 2003-07-31 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4164 * XmlParserContext.cs,
4166 XmlElement.cs : Added internal Dtd and new internal XmlParserContext
4167 .ctor() that takes DTDObjectModel. And then rewrote classes which
4168 uses DTD information. Changed DocTypeName, InternalSubset, PublicId
4169 and SystemId to use DTDObjectModel.
4170 * DTDObjectModel.cs :
4171 Added DTDObjectModel.InternalSubsetHasPEReference.
4172 Added DTDEntityDeclaration.IsInternalSubset.
4173 * XmlTextReader.cs :
4174 Added internal GetInternalParserContext (to build entity reader).
4175 Added private isIntSubset to check if the DTD subset is internal or
4176 external, which might affect well-formedness constraints.
4177 Changed GenerateDTDObjectModel to return the resulting DTD model.
4179 * XmlEntityReference.cs : implemented BaseURI.
4180 * XmlNodeReader.cs :
4181 - Implemented ResolveEntity() and CanResolveEntity(). In fact
4182 it leads too many changes on almost all methods and properties,
4183 since they now must be aware of entityReader.
4184 - fixed ownerElement that might be used to return from attribute
4185 value to the element through parent attribtues.
4186 - Now changed indexer to call GetAttribute() and moved actual logic
4187 to the matching GetAttribute() methods.
4189 2003-07-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4191 * XmlNode.cs : fixed internal ConstructNamespaceManager() for InnerXml
4192 not to create extraneous xmlns="".
4194 2003-07-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4196 * DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
4197 attribute declaration should be got independently of elementdecl.
4199 Added internal SetDefault() to mark as default.
4200 Removed InnerText implementation that is just the same as XmlNode.
4201 * XmlDocument.cs : id shouldn't be removed from table at 'trying' to
4202 get matching elements. ReadAttributeNode() now sets default mark.
4203 * XmlElement.cs : WriteTo() should ignore default attributes.
4204 * XmlTextWriter.cs : shuold allow valid name char such as digits.
4206 2003-07-27 Piers Haken <piersh@friskit.com>
4208 * XmlQualifiedName.cs : fields should never be null
4210 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4212 * XmlDocumentFragment.cs : added XPathNodeType indicating Root.
4214 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4216 * XmlDocument.cs (GetIdenticalAttribute): restored OwnerElement.IsRooted
4218 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4220 * XmlLinkedNode.cs : added internal IsRooted.
4222 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4224 * DTDValidatingReader.cs :
4225 - Added ID support in ValidateAttributes().
4226 - More refined ReadAttributeValue() support for non-expanding entity
4228 - It should handle LocalName, Name, Prefix, NamespaceURI and Value
4229 correctly when the reader is on each of the value nodes of an
4230 attribute. Now XmlDocument.ReadNode() should work well.
4232 - added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
4233 RemoveIdenticalAttribute()
4234 - Implemented GetElementById().
4235 * XmlAttributeCollection.cs :
4236 - added private ownerDocument property and replaced
4237 ownerElement.OwnerDocument with it.
4238 - Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
4239 It calls XmlDocument.{Add|Remove}IdenticalAttribute().
4240 - Added RemoveIdenticalAttribute() and it is used in Remove().
4241 (I also added AddIdenticalAttribute() but is not used.)
4243 2003-07-26 Duncan Mak <duncan@ximian.com>
4245 * XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
4246 for OwnerElement.IsRooted to fix the build..
4248 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4250 * XmlDocumentType.cs :
4251 modified private DTD to dtd and added internal DTD (the same thing).
4253 Fixed SetAttributeNode() to check if specified attribute is already
4254 set to the other element. In fact it is W3C DOM's specification but
4255 MS.NET 1.0 failed to catch it.
4256 * XmlTextReader.cs :
4257 ReadAttributeValue() should check if the value of the attribute is
4258 already read when the whole value is entity reference.
4259 Also, Name of text nodes should be "", not "#text"
4261 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4263 * XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
4264 with http://www.w3.org/XML/1998/namespace.
4265 * XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
4266 * XmlNode.cs : InnerText should handle CDATA and whitespaces.
4267 * XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
4268 * XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
4269 attributes (as MS.NET does). It isn't good way and I may change it.
4271 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4273 * DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
4274 DTDNotationDeclarationCollection and replaced Hashtables with them.
4275 Added NormalizedDefaultValue property for DTDAttributeDefinition.
4276 * DTDValidatingReader.cs :
4277 - It now reads attribute values into value collection.
4278 - Renamed consumedDefaultAttribute to consumedAttribute, and
4279 inContent to insideContent.
4280 - GetAttribute() should allow reader's other node state than element.
4281 - MoveToNextAttribute() should move when reader is placed other than
4282 the first attribute.
4283 - HandleError() now supports ValidationType.None (i.e. does nothing).
4284 - ValidateAttribute() now collects and resolves attribute value
4285 entity references. (On the other hand, it doesn't support
4286 EntityHandling.ExpandCharEntity.)
4287 - NodeType shouldn't return Attribute after ReadAttributeValue().
4288 Now only Text is supported, but must also support EntityReference.
4289 - Add FilterNormalization() and partially support Normalization.
4291 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4293 * XmlTextReader.cs :
4294 Read() now handles parser context stuff (BaseURI, XmlLang and
4295 XmlSpace) correctly for an empty element.
4296 Normalization property now doesn't throw an error. Will be used soon.
4297 * XmlValidatingReader.cs : added ValidationType.None support (wait for
4298 the next DTDValidatingReader update for "not firing event handler).
4299 * XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
4301 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4303 * DTDValidatingReader.cs :
4304 changed base class to XmlReader and implemented IXmlLineInfo members.
4305 changed .ctor() argument from event handler to validating reader.
4306 Removed some #if ... #else ... #endif blocks.
4307 Added validation event support for Read() using HandleError().
4308 * XmlValidatingReader.cs : added internal OnValidationEvent().
4309 * XmlDocument.cs : ReadNode() now checks reader's state more strictly.
4311 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4313 * XmlUrlResolver.cs : applied BenM's patch for file uri problem
4316 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4318 * DTDValidatingReader.cs :
4319 added DTDObjectModel support for non-XmlTextReader XmlReader
4320 e.g. XmlNodeReader (Read() method).
4322 added internal CreateDocumentType(XmlTextReader) and moved
4323 ReadDoctypeNode() to XmlDocumentType.ImportFromDTD().
4324 * XmlDocumentType.cs :
4325 added internal .ctor(XmlTextReader, document) and ImportFromDTD().
4326 * XmlTextReader.cs :
4327 Renamed useSbForVal (valueBuilderAvailable), valSb (valueBuilder)
4328 and currentSubset (DTD).
4329 Added GenerateDTDObjectModel() (for independent doctype parsing).
4331 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4334 .ctor() should reject xml- or xmlns-prefixed node.
4335 * XmlNamespaceManager.cs :
4336 added some xmlns validity check.
4338 optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
4339 avoiding XmlNamespaceManager creation.
4340 * XmlNodeReader.cs :
4341 doctype node should return PUBLIC and SYSTEM for its indexer,
4342 and Value should be internal subset,
4344 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4346 * DTDObjectModel.cs,
4347 DTDValidatingReader.cs : Completely rewrote attribute handling.
4349 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4352 XmlElement.cs : Fixed CloneNode() for bug #46129.
4353 * XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
4354 String.Format arguments, and basically XmlException.ctor(
4355 IXmlLineInfo, message) seems good idea to use.
4356 * XmlTextReader.cs :
4357 - Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
4358 required non-null context which don't have to exist.
4359 - Added state check. Introduced 'currentState' and 'maybeTextDecl'
4360 (for external entity) and removed hasEnteredDocument. Added
4361 state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
4362 ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
4363 - Replaced throw ReaderError() with throw new XmlException() and
4364 fixed that some error hadn't thrown, only created.
4365 - ResetState() should re-initialize existing private members other
4366 than some specified fields.
4367 - Private AddAttribute() should check if the same-named attribute
4369 * DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
4371 2003-07-09 Lluis Sanchez Gual <lluis@ximian.com>
4373 * XmlTextReader.cs : Implemented ResetState() method.
4375 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4377 * XmlElement.cs : IsEmpty has removed attributes since it incorrectly
4380 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4382 * XmlDocument.cs : Load(string filename) should close its stream.
4383 Small change for the latest DTDObjectModel change.
4384 * XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
4385 changed methods are only related to DTD stuff).
4386 Now uses XmlSchemaDatatype for attribute type definition.
4387 * XmlValidatingReader : initial (limited) support for DTD validation.
4388 It can handle only XmlTextReader.
4389 * DTDObjectModel.cs : changed radically for initial validation support.
4390 * added DTDAutomata.cs and DTDValidatingReader.cs.
4392 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4394 * XmlElement.cs : Removed extraneous xmlns output support (it should
4395 be done by XmlTextWriter).
4396 * XmlNode.cs : InsertBefore() now checks validity of the newChild (and
4397 most of the changes are in fact indentation changes).
4398 * XmlWriter.cs : WriteAttributes() now can write entity references.
4399 WriteNode() now writes xmldecl attributes correctly.
4400 Removed namespaceManager and xmlns check logic, since it should be
4401 done by individual XmlTextWriter.
4402 * XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
4403 written multiple xmlns declarations.
4404 Moved namespaceManager from abstract XmlWriter.
4405 Write{Start|End}Attribute() and WriteString() now checks xmlns
4406 attribute value. (MS.NET holds value only with this write method).
4408 2003-07-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4410 * XmlDocument.cs : removed xmlReader.Close() from Load(XmlReader).
4412 2003-06-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4414 * XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
4415 essentially changed most of the property handling (e.g. removed attribute
4416 enumerator and it now became really cloneable).
4417 * XmlNodeReader.cs : ReadInnerXml() changes its state as error
4418 when the method is called at Initial state.
4420 2003-06-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4422 * XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
4423 as non-empty, and XmlElement's IsEmpty is designed as such.
4424 Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
4426 * XmlNode.cs : Fixed XPathNodeType. It should throw an exception
4427 instead of returning undefined enum value.
4428 Modified some code comments.
4429 * XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
4430 when XmlReader's node is not at empty element or at EndElement.
4431 Fixed XmlDeclaration's standalone check.
4433 2003-06-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4435 * XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
4436 to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
4438 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4440 * XmlInputStream.cs : quick fix for public ctor() BaseURI bug.
4442 2003-06-20 Ben Maurer <bmaurer@users.sourceforge.net>
4444 * XmlTextReader.cs: Reduces memory allocation when the reader is
4445 not queried for some values.
4446 * NameTable.cs: Now uses a custom hashtable to implement. As a
4447 result, when Get (char[], int, int) is called, a string is only
4448 allocated if it is actually a new entry.
4449 (StrEqArray) Compares a string and a char[]
4450 (AddEntry) Adds a new entry to the hashtable
4451 (Entry) Represents a hashtable entry.
4453 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4455 * XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.
4457 2003-06-16 Ben Maurer <bmaurer@users.sourceforge.net>
4458 * XmlUrlResolver.cs: really fixed #44231
4460 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4462 * XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
4463 this method set current node null.
4464 * XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
4465 String.Empty instead of null (expected value).
4468 XmlInputStream.cs : fixed BaseURI problem (bug #44231).
4470 2003-06-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4472 * XmlNodeReader.cs : this [name] and this [name, ns] (and
4473 GetAttribute() methods in turn) returns null instead of String.Empty.
4474 * XmlTextWriter.cs : WriteStartAttribute() should try to use specified
4475 prefix before auto-generating prefixes.
4476 Implemented WriteBase64().
4478 2003-06-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4480 * XmlNodeReader.cs : LookupNamespace () has refered invalid current
4481 node for attributes. Modified to use private "document" property.
4483 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
4485 * XmlTextWriter.cs: when adding an attribute with a namespace, a prefix must be automaticaly
4486 generated, and a namespace declaration must be added.
4487 * XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
4489 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
4491 * XmlAttribute.cs: Accept a null prefix or namespaceURI.
4493 2003-06-10 Duncan Mak <duncan@ximian.com>
4495 * XmlDocumentNavigator.cs (GetNode): Make it implement
4498 2003-06-05 Lluis Sanchez Gual <lluis@ideary.com>
4500 * XmlTextWriter.cs : Fixed bug. After calling for example WriteStartElement ("pref","ln","ns");
4501 a call to LookupPrefix ("pref") when still writting attributes should
4502 return "ns", and it didn't.
4504 2003-06-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4506 * XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
4507 * XmlConvert.cs : fixed VerifyNCName() to check correctly.
4509 2003-06-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4511 * XmlDocumentNavigator.cs : Compute document node one time.
4512 MoveToFirstChild() should move to PIs and comments.
4514 2003-05-30 Miguel de Icaza <miguel@ximian.com>
4516 * XmlReader.cs (ReadStartElement): Improve error message.
4518 2003-05-28 Lluis Sanchez Gual <lluis@ideary.com>
4520 * XmlTextReader.cs : MoveToAttribute methods must set the enumerator to the right
4521 position, since MoveToNextAttribute may be called after it.
4522 SetProperties(): attributes do not "inherit" the namespace.
4523 * XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
4525 2003-05-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4527 * NameTable.cs : Add() sets the given name string interned.
4528 * XmlParserContext.cs : added internal PushScope() and PopScope() to
4529 hold stacks of xml:base, xml:lang and xml:space.
4530 * XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
4531 property for stacked attributes). Renamed Initialize() to Initialize-
4532 Context(). Modified to use XmlParserContext.PushScope()/PopScope().
4534 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
4536 * XmlReader.cs: Little fix to WriteAttributeString()
4538 2003-05-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4540 * XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
4541 XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
4542 XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
4543 XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
4544 Reverted the recent accessibility mistake (5/16).
4545 * XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic
4546 from XmlNode to XmlDocument.
4548 2003-05-18 Lluis Sanchez Gual <lluis@ideary.com>
4550 * XmlQualifiedName.cs : Fixed bug in equality operator.
4552 2003-05-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4554 * XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
4555 any open attributes or elements. WriteWhitespace() checks state and
4556 closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
4557 when it is called inside attribute value.
4558 * XmlException.cs : added .NET 1.1 .ctor.
4559 * added XmlSecureResolver.cs (only stubbing).
4560 * XmlAttribute.cs : set_InnerXml() should remove children.
4563 XmlDocumentFragment.cs,
4564 XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
4565 * XmlNode.cs : RemoveAll() should also remove all attributes.
4566 * XmlTextRader.cs : .ctor() for attribute value reader should add
4567 quotations at initialization, since it requires quote chars.
4568 * XmlWriter.cs : WriteAttributeString() more correct xmlns check.
4570 2003-05-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4572 * changed XPathNodeType modifier to internal *protected* override.
4573 * XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
4574 * XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
4575 * XmlAttributeCollection.cs : removed some incorrect TODO attributes.
4576 * XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
4577 when the argument is "xmlns".
4578 * XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
4579 * XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
4580 * XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
4581 * XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
4582 not to set error state for non-started XmlNodeReader.
4583 * XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
4584 BaseURI support. Fixed Initialize() to handle Attribute correctly.
4585 SetProperty for attribute auto-completes xmlns NSURI.
4586 Attribute and whitespace handling became more correct.
4587 Don't parse external DTD if XmlResolver is null.
4588 * XmlTextWriter.cs : implemented WriteEntityRef().
4589 WriteStartAttribute() checks if ns does not equal to that of xmlns.
4590 * XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
4592 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4594 * XmlConvert.cs : IsInvalid() Now uses XmlConstructs.IsName(Start).
4595 EncodeName() now correctly encodes invalid names.
4596 Result string of ToString(DateTime) contains "fffffff".
4598 2003-04-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4600 * XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
4601 * XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
4603 Fixed this[] to work correctly against XmlDeclarations.
4604 Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
4605 (which may prevent validations etc.)
4608 XmlTextReader.cs : Fixed ReadString() to be compliant with each
4610 * XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
4612 2003-04-27 Pedro MartÃnez Juliá <yoros@wanadoo.es>
4614 * XmlNode.cs: ensure to get a valid Uri in BaseUri when loading the
4615 source document from a file.
4617 2003-04-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4619 * XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
4620 content EntityReference correctly.
4621 * XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
4622 HasAttributes, indexers, MoveTo*Attribute() and Read() ).
4623 Modified Skip() to call Read () explicitly.
4624 * XmlTextReader.cs :
4625 Fixed ReadInnerXml() which ignored EndElement token in certain cases.
4626 Implemented MoveToAttribute (local, ns), and modified GetAttribute()
4627 in relation to this change.
4628 Attributes for XmlDeclaration are now correctly set.
4629 * XmlTextWriter.cs : WriteRaw() is now different from WriteString().
4630 Simplified WriteAttributes() for XmlDeclaration.
4632 2003-04-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4634 * XmlTextReader.cs : fixed ReadInnerXml(). it was inconsistent with
4637 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4639 * XmlDocument.cs : fixed Load() to set baseURI correctly.
4640 * XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
4641 * XmlTextReader.cs :
4642 fixed Depth. When it's on StartElement, Depth was already incremented.
4643 fixed private SaveProperty(), which moved away its saved properties
4644 when MoveToElement was called repeatedly.
4645 * XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
4647 WriteAttributes() refactory (for XMLDecl).
4648 WriteNode() don't Read() when the reader is Initial state, let other
4649 invokation to Read(). In case of Element, it should write entire
4650 element. In case of Attribute, it shouldn't Read().
4651 WriteStartDocument() should omit standalone decl. when there is no
4654 2003-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4656 * XmlReader.cs: reverted last patch. It breaks System.Configuration
4657 because 1. it considers XmlDeclaration as content and 2. always
4658 returns XmlNodeType.None.
4661 2003-04-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4663 * Added missing ChangeLog of 4/4/2003.
4664 * XmlTextWriter.cs : patch by Erik. fixed WriteQualifiedName.
4665 (write prefix instead of ns.)
4666 * XmlInputStream.cs : file access mode fix (FileAccess.Read was missing)
4667 * XmlTextReader.cs : modified to call Read() instead of ReadContent().
4668 (It may be required for decorated reader such as XmlValidatingReader.)
4669 Changed Read() error message for mismatch end tag.
4670 * XmlDocument.cs : (ReadNode) friendly message for mismatch EndElement.
4671 * XmlReader.cs : Corrected misinterpreted MoveToContent() method.
4673 2003-04-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4675 * XmlDocument.cs : Load() now closes the given XmlReader.
4676 Don't allow creation of XmlTextReader for Doctype. (workaround.)
4677 * XmlInputStream.cs : It now closes its internal stream explicitly.
4678 * XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
4679 * XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
4680 * XmlParserInput.cs : added Close() method.
4681 * XmlReader.cs : MoveToContent() should (1) not Read in case of empty
4682 element, and (2) MoveToElement() in case of attribute.
4683 * XmlTextReader.cs : Close() now actually closes source TextReaders.
4685 2003-03-26 Duncan Mak <duncan@ximian.com>
4687 * XmlTextWriter.cs (Write): A patch from Atsushi to fix
4688 prematurely ending the write, or something like that. It was
4689 causing us to chop off the end of the document when we're trying
4690 to generate XML Schemas.
4692 2003-03-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4694 * XmlTextReader.cs : implemented ReadString().
4695 fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
4696 null reference exception when context is null.
4697 * XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
4698 fixed Read() - when positioned at EndElement, it didn't progress.
4699 fixed HasAttribute - it didn't return false in all cases.
4700 fixed Name and LocalName - only limited type of nodes return names.
4701 fixed AttributeCount - in some cases it threw null ref exception.
4703 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4705 * XmlTextWriter.cs : WriteStartDocument doesn't set hasRoot=true, then
4706 WriteEndDocument without root element now raises an error correctly.
4707 * XmlDocumentNavigator.cs : (MoveToFirstChild) fixed bugzilla #36672.
4708 implemented BaseURI, NameTable, XmlLang, GetAttributes, GetNamespace,
4711 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4713 * XmlElement.cs : RemoveAttribute now don't throws when specified
4714 attribute does not exist.
4716 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4718 * XmlNode.cs : add descriptions for some node type error.
4720 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4722 * XmlNodeArrayList.cs, XmlNodeListChildren.cs : bugzilla #39920 fix.
4724 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4726 * XmlDeclaration.cs : quick fix, not to use regex for set_Value.
4728 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4730 * XmlTextReader.cs : Fixed wrong notationdecl SYSTEM id read.
4731 * XmlInputStream.cs : Should allow versionless input stream entity.
4733 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4735 * added XmlParserInput.cs for multi xml document sources.
4736 * added DTDObjectModel.cs (maybe temporary).
4737 * XmlTextReader.cs :
4738 + fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
4739 + Some members such as LineNumber, ReadChar now uses XmlParserInput.
4740 + added support for Namespaces (namespace-ignorant parse available).
4741 + added support for XmlResolver.
4742 + replace SetReaderContext()/SetReaderFragment() with Initialize().
4743 + use NameTable in CreateNameString.
4744 + fixed ReadCData(). Now reads "]]]>" correctly.
4745 + support for DTD parse.
4746 + Read() now throws an error when it reached EOF while Depth > 0.
4748 XmlDocumentFragment.cs,
4749 XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
4750 * XmlDocument.cs : ReadNode() now reads DocumentType.
4751 * XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
4753 XmlNotation.cs : added override LastLinkedChild (for doctype node).
4754 * XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
4755 * XmlElement.cs : bugfix for node removal of set_InnerXml.
4756 * XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
4757 (to append child XmlEntity into XmlDocumentType correctly.)
4758 * XmlInputStream.cs : fixed to access file with FileAccess.Read.
4760 2003-03-15 Duncan Mak <duncan@ximian.com>
4762 * XmlElement.cs (Name): Only append prefix + ':' when prefix is
4763 neither String.Empty nor null. Thanks to Simon Guindon for
4764 reporting the bug and Jackson for fixing this bug with me.
4766 2003-03-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4768 * XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
4769 * XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
4770 fixed ReadNode(), it should call reader.Read() only on Initial state.
4771 * XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
4772 and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
4773 System.Net.WebClient directly.
4774 * XmlParserContext.cs : baseURI never be null.
4775 * XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
4776 * XmlUrlResolver.cs : namespace change for XmlInputStream.
4778 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
4780 * XmlTextReader.cs: When throwing a ReaderException, show what
4781 character was the culprit
4783 2003-03-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4785 * XmlDocumentFragment.cs, XmlElement.cs :
4786 modified InnerXml (fragment type from Element to DocumentFragment).
4788 * XmlElement.cs : fixed WriteTo() ns check.
4789 * XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
4790 * XmlNode.cs : fixed ConstructNamespaceManager().
4792 * XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
4793 IsPubid with an int arg.
4794 * XmlReader.cs : changed to use XmlChar.cs (its role is as same as
4796 * XmlTextReader.cs :
4797 improved error messages with line info.
4798 / checking matching start and end tags.
4799 / prevents the apperance of multiple root elements. (patch by Erik)
4800 fixed and refactored ReadInnerXml() and ReadOuterXml()
4801 changed to use XmlChar.cs.
4803 * XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
4804 (It will help c14n implementation.)
4805 / blocks multiple attribute output with element node.
4807 2003-02-28 Alan Tam <Tam@SiuLung.com>
4809 * XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
4810 methods to make them compatible with the XML Schema Spec from W3C
4811 ToString(TimeSpan) is still outstanding
4813 2003-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4816 (Load (string)): hack to workaround some issues with Uri.Parse. Once
4817 Parse is fixed, remove the hack.
4819 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4821 * XmlQualifiedName.cs : fixed GetHashCode() to avoid null reference
4822 * XmlTextReader.cs : fixed ReadAttributeValue() to handle
4823 entity reference, and some refactory.
4825 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4827 * XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.
4829 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4831 * XmlInputStream.cs : added (also contains internal XmlStreamReader).
4832 * XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
4833 and can read non-UTF-8 stream.
4834 * XmlTextReader.cs : related to above stream fix.
4835 * XmlUrlResolver.cs : implemented GetEntity ().
4837 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4839 * XmlTextWriter.cs: implemented WriteRaw (char[], int, int).
4841 2003-02-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4843 * XmlTextReader.cs : implemented QuoteChar.
4845 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4847 * XmlNode.cs : implemented ReplaceChild.
4848 removed DocElem checking at InsertBefore.
4849 * XmlNodeReader.cs : fixed ReadString and Read for correct node info.
4850 * XmlText.cs : implemented CloneNode and SplitText.
4852 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4854 * XmlCharacterData.cs: added XPathNodeType property.
4856 2003-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4858 * XmlTextWriter.cs: throw an exception if WriteEndDocument is
4859 called without a prior call to WriteStartDocument.
4861 2003-01-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4863 * XmlNodeReader.cs : several fix to get more compatible with MS.NET.
4865 2003-01-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4867 * XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
4868 null when no matching uri.
4869 * XmlElement.cs : removed unnecessary xmlns output.
4870 * XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
4871 * XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
4872 along with the change above, and moved timing of 'xmlns' output
4873 to CloseStartElement.
4874 * XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
4876 2003-01-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4878 * XmlWriter.cs: modified WriteStartElement (see test for detail).
4881 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
4883 * XmlDocument.cs: Added CheckName () method to check names validity.
4885 2003-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4888 (ReadOuterXml): use Depth property which return elementDepth, not depth.
4890 2003-01-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4892 * XmlElement.cs : (by ville) XmlElement.set_InnerText event bugfix.
4893 * XmlTextReader.cs : some fix for ReadOuterXml().
4895 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4897 * XmlTextReader.cs : bugfix for attributes related to creation of
4898 XmlAttribute *node*.
4900 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4902 * XmlTextReader.cs : bugfix for attribute values which have entity
4905 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
4907 * XmlDocument.cs: XmlTextWriter.Formatting == Indented when
4908 calling Save () -methods.
4910 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4912 * XmlNodeReader.cs : primitive reading implementation.
4914 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4916 * XmlElement.cs : quick fix for the incomplete patch of #35308 below.
4918 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4920 * XmlDocument.cs : removed inconsistent line-feed output.
4921 * XmlElement.cs, XmlTextWriter.cs :
4922 fixed for bugzilla 35308 (default ns output)
4923 * XmlWhitespace.cs : limited output only when preserving whitespace.
4925 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4927 * XmlAttribute.cs, XmlDocument.cs, XmlTextReader.cs:
4928 Implemented XmlTextReader.ReadAttributeValue().
4929 Added internal ReadAttributeNodeValue().
4930 Fixed XmlAttribute.InnerXml to use these methods.
4932 * XmlDocument.cs, XmlDocumentFragment.cs, XmlElement.cs, XmlNode.cs:
4933 Implemented XmlDocument.ReadNode() and removed ConstructDOM().
4934 Other changes are replacing them.
4936 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4938 * XmlDocument.cs: patch by Ville (fixed default PreserveWhitespace)
4940 2002-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4942 * XmlElement.cs, XmlTextWriter.cs, XmlWriter.cs:
4943 patch by JD Conley <jconley@winfessor.com>.
4944 (Fix for xmlns attribute output.)
4946 2002-12-05 Ville Palo <vi64p@koti.soon.fi>
4948 * XmlQualifiedName.cs: Little fix to ToString () -method
4950 2002-12-04 Tim Haynes <thaynes@openlinksw.com>
4952 * class/System.XML/System.Xml/XmlElement.cs: Made more refined
4953 checks on attributeNode to fix 32262.
4955 2002-12-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4957 * XmlDocument.cs (CreateNavigator(XmlNode)) : reverted
4958 * XmlTextWriter.cs (WriteStartElementInternal):
4959 fixed when default namespace was specified, all descendants
4960 fail to omit the default namespace declarations.
4963 XmlNode.cs (internal XmlLang/XmlSpace) : implemented(defined)
4965 XmlDocumentFragment.cs,
4966 XmlElement.cs (set_InnerXml): now uses XmlLang/XmlSpace
4967 * XmlElement.cs (set_IsEmpty) : implemented
4968 (WriteTo) : removed my improper indenting (Writer already done)
4969 * XmlNode.cs (BaseURI) : fixed if ParentNode is null, NullPointerEx
4970 (ConstructDOM) : implemented when xmlReader isn't XmlTextReader
4971 ...and renamed XmlDocument.ConventionalParser to ReusableReader ;-)
4973 2002-12-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4975 * XmlNode.cs (RemoveChild):
4976 bugfixed when XmlNode is Document OwnerDocument is null
4977 * XmlDeclaration.cs (Value):
4978 bugfixed regular expression pattern.
4979 * XmlDocument.cs (CreateNavigator): bugfixed access modifier.
4981 2002-11-24 Duncan Mak <duncan@ximian.com>
4983 * XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
4984 Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
4985 first patch to Mono! ;-)
4987 2002-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4990 (AppendChild): readded refChild != null condition before throwing
4991 "cannot insert this node in this position" exception. There's probably
4992 a better solution. Fixes #34191.
4993 (RemoveAll): changed following Atsushi instructions.
4996 2002-11-13 Duncan Mak <duncan@ximian.com>
4998 * XmlElement.cs (IsEmpty): A temporary check-in to keep gtk-sharp
5001 2002-11-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
5003 * XmlDocument.cs : unified all constructors, added ConventionalParser,
5004 implemented CloneNode() and CreateEntityReference(),
5005 * XmlEntityReference.cs : set_Value, WriteContentTo, WriteTo
5006 set BaseURI to MonoTODO
5007 * XmlNode.cs : implemented PrependChild, modified ConstructDOM,
5008 bugfix InsertAfter (incorrect prepending) and InsertBefore
5009 (more than one DocumentElements hadn't caused errors)
5010 * XmlTextReader.cs : unified all constructors,
5011 added internal SetReaderContext(), SetReaderFragment()
5012 bugfix (syntax check of PUBLIC / getting internal subset)
5014 2002-11-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
5016 XmlAttribute.cs : set_InnerText, set_InnerXml, some check for set_Prefix
5017 XmlAttributeCollection.cs : (indexer) this[localName, namespaceURI]
5018 XmlCharacterData.cs : exchanged Data and Value
5019 (for processing events and inheritance)
5020 XmlDocumentFragment.cs : set_InnerXml
5021 XmlSignificantWhitespace.cs : set_Value
5022 XmlTextReader.cs : ReadAttributeValue
5024 2002-11-04 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
5026 XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement'
5028 2002-11-03 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
5030 * XmlAttributeCollection.cs : checks owner element.
5031 implemented CopyTo, InsertAfter, InsertBefore, Prepend,
5032 Remove, RemoveAt, SetNamedItem.
5033 removed some logics that sets 'Parent' (that should be null)
5034 * XmlDocument.cs : set_InnerXml, [PreserveWhitespace(incomplete)]
5035 * XmlDocumentFragment.cs : get_InnerXml, WriteContentTo, WriteTo
5036 * XmlElement.cs : implemented WriteTo, set_InnerText.
5037 Fixed WriteTo() to add xmlns:* attributes when
5038 writer.LookupPrefix() returned mismatching.
5039 * XmlNamedNodeMap.cs : compare not only name but localname and nsuri.
5040 Removing different prefixes for the same uri now runs correct.
5041 added SetNamedItem(XmlNode node, int position_to_insert).
5042 * XmlNode.cs : ConstructDOM (logically) creates XmlEntityReference,
5043 XmlWhitespace, and XmlSignificantWhitespace
5045 2002-10-31 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
5047 * XmlDocument.cs : implemented CreateDocumentFragment()
5048 * XmlElement.cs, XmlLinkedNode.cs :
5049 moved LastLinkedChild from XmlElement to XmlLinkedNode.
5050 * XmlEntityReference.cs : must throw NotImplementedException.
5052 + implemented InsertBefore() and then implemented InsertAfter()
5053 and modified AppendChild() to call it.
5054 + added logic to check ReadOnly, parent document equivalence,
5055 and inserting any 'content' before/after DocumentElement.
5056 + implemented Clone() [it is equals to CloneNode() by MS doc.]
5057 + added logic in RemoveChild() to check parent of oldChild.
5058 + fixed ConstructNamespaceManager() to internal only.
5060 2002-10-29 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
5062 * XmlAttribute.cs : add internal 'IsDefault' property
5063 (equals to !Specified)
5064 * XmlImplementation.cs : added 'internalNameTable' property.
5066 + now allows "" for 'standalone' in CreateXmlDeclaration.
5067 + implemented 'Implementation' property and constructor with it.
5068 + added logic for appending name table (but still no use)
5069 + implemented property 'DocumentType'
5070 (but without internalSubset parsing. wait for next update.)
5072 + modified AppendChild() and RemoveChild() to support fragment.
5073 + modified AppendChild() to remove newChild from its parent
5074 when newChild is already in the other place.
5075 + modified RemoveChild() to set parentNode null.
5076 + modified ConstructDOM() to create DocumentType,
5077 and fixed access modifier ('internal protected' to 'internal')
5078 * XmlLinkedNode.cs : fixed 'NextSibling' to return null
5079 when its parent is null.
5080 * XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
5081 property to enable AppendChild() for this class.
5082 * XmlTextReader.cs : appended private publicId and systemId fields.
5084 2002-10-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5086 * XmlTextReader.cs: make it work when the underlying Stream is not
5089 2002-10-26 Piers Haken <piersh@friskit.com>
5091 * XmlNode.cs: add virtual property XPathNodeType
5096 * XmlProcessingInstruction.cs:
5097 * XmlSignificantWhitespace.cs:
5099 * XmlWhitespace.cs: implement XPathNodeType property
5100 * XmlDocumentNavigator.cs: use XPathNodeType property instead of switch
5102 2002-10-26 Piers Haken <piersh@friskit.com>
5104 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
5106 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5108 * XmlTextReader.cs: don't increment depth for entity references.
5110 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
5112 * - Fixed the duplication of xmlns:xx = yy when serializing the
5113 XML for serialization
5115 Fixed the unnecessary parsing/serializing when adding assemblies
5118 Avoided setting the XmlNode.InnerXml property
5119 (as it's not implemented)
5121 Fixed the usage/implementation of
5122 XmlElement.GetElementsByTagName()
5124 2002-10-21 Duncan Mak <duncan@ximian.com>
5129 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
5130 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
5132 2002-10-18 Duncan Mak <duncan@ximian.com>
5134 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
5135 <ginga@kit.hi-ho.ne.jp>.
5137 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
5139 * XmlDocument.cs (ImportNode): Implemented
5141 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5143 * XmlDocument.cs: one more Load method implemented.
5144 * XmlTextReader.cs: Depth now works.
5146 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5148 * XmlConvert.cs: IsInvalid is now internal.
5149 * XmlNamespaceManager.cs: implemented RemoveNamespace
5150 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
5151 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
5153 2002-09-19 Matt Hunter <mahunter@tconl.com>
5155 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
5156 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
5158 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5160 * XmlConvert.cs: finished implementation.
5161 * XmlTextReader.cs: fixed #30239.
5162 * XmlTextWriter.cs: fixed #30240.
5164 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5166 * XmlTextReader.cs: line and position begin with 1.
5168 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5170 * XmlException.cs: added a new internal constructor for IXmlLineInfo
5171 and output line and position info in Message.
5173 * XmlReader.cs: implemented missing bits.
5175 2002-09-12 Piers Haken <piersh@friksit.com>
5177 * XmlDocumentNavigator.cs: implement MoveToId()
5179 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5181 * XmlTextWriter.cs: fixed bug #29886.
5183 2002-08-26 Ravi Pratap <ravi@ximian.com>
5186 * XmlAttribute.cs (InnerText): Implement getting this property.
5188 * XmlNode.cs (InnerText): Ensure that we append only values of
5191 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5193 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
5194 that allowed compiling this.
5195 [ FIXME: filed bug #29435. mcs should have failed on this ]
5197 2002-08-25 Tim Coleman <tim@timcoleman.com>
5199 Change CreateNavigator to not be virtual.
5201 Add set_Prefix and InnerText accessors.
5202 * XmlEntityReference.cs:
5203 Add set_Value accessor.
5205 Make objects which should be private private.
5207 Remove WriteStartElementInternal abstract definition.
5208 * XmlValidatingReader.cs:
5211 2002-08-22 Jason Diamond <jason@injektilo.org>
5213 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
5214 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
5216 2002-08-22 Jason Diamond <jason@injektilo.org>
5218 * XmlElement.cs: Correction to previous GetElementsByTagName patch
5219 courtesy of Matt Hunter <xrkune@tconl.com>.
5221 2002-08-22 Jason Diamond <jason@injektilo.org>
5223 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
5224 qualified GetElementsByTagName courtesy of Matt Hunter
5227 2002-08-19 Jason Diamond <jason@injektilo.org>
5229 * XmlDocument.cs, XmlElement.cs: Added implementation of
5230 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
5232 2002-08-16 Jason Diamond <jason@injektilo.org>
5234 * XmlElement.cs: Fixed writing out qualified elements courtesy of
5235 Marcus Bürgel <marcus.buergel@gmx.de>.
5237 2002-08-13 Tim Coleman <tim@timcoleman.com>
5239 Partial implementation of WriteQualifiedName ().
5241 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
5242 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
5243 InsertData(), and ReplaceData(). These methods fire the
5244 NodeChanging and NodeChanged events.
5246 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
5248 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
5249 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
5251 2002-08-03 Tim Coleman <tim@timcoleman.com>
5252 * XmlNamespaceManager.cs:
5253 .Net allows the empty namespace to be redefined
5254 at a later point, but the current implementation
5255 did not. This fixes a hashtable conflict.
5257 2002-07-26 Tim Coleman <tim@timcoleman.com>
5259 When given a textwriter, check to see if it has a
5260 null encoding. This was being done for other inputs
5263 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
5265 * XmlTextReader.cs: rough line/column support.
5267 2002-07-23 Duncan Mak <duncan@ximian.com>
5269 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
5270 (string, string []) is particularly strange.
5272 * XmlException.cs: Remember to call the base serialization
5275 * XmlNodeReader.cs: Keep a new variable to store the Depth.
5277 2002-07-14 Jason Diamond <jason@injektilo.org>
5279 * XmlAttribute.cs: Removed ownerElement field since we can reuse
5282 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
5283 if the current node is an attribute.
5285 * XmlElement.cs: SetAttributeNode now sets the new attribute's
5288 2002-07-12 Jason Diamond <jason@injektilo.org>
5290 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
5291 creating an element, use String.Empty instead.
5293 2002-07-12 Piers Haken <piersh@friksit.com>
5295 * XmlAttributeCollection.cs: implement some ItemOf indexers
5296 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
5297 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
5299 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
5302 2002-10-26 Piers Haken <piersh@friskit.com>
5304 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
5306 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5308 * XmlTextReader.cs: don't increment depth for entity references.
5310 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
5312 * - Fixed the duplication of xmlns:xx = yy when serializing the
5313 XML for serialization
5315 Fixed the unnecessary parsing/serializing when adding assemblies
5318 Avoided setting the XmlNode.InnerXml property
5319 (as it's not implemented)
5321 Fixed the usage/implementation of
5322 XmlElement.GetElementsByTagName()
5324 2002-10-21 Duncan Mak <duncan@ximian.com>
5329 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
5330 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
5332 2002-10-18 Duncan Mak <duncan@ximian.com>
5334 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
5335 <ginga@kit.hi-ho.ne.jp>.
5337 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
5339 * XmlDocument.cs (ImportNode): Implemented
5341 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5343 * XmlDocument.cs: one more Load method implemented.
5344 * XmlTextReader.cs: Depth now works.
5346 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5348 * XmlConvert.cs: IsInvalid is now internal.
5349 * XmlNamespaceManager.cs: implemented RemoveNamespace
5350 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
5351 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
5353 2002-09-19 Matt Hunter <mahunter@tconl.com>
5355 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
5356 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
5358 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5360 * XmlConvert.cs: finished implementation.
5361 * XmlTextReader.cs: fixed #30239.
5362 * XmlTextWriter.cs: fixed #30240.
5364 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5366 * XmlTextReader.cs: line and position begin with 1.
5368 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5370 * XmlException.cs: added a new internal constructor for IXmlLineInfo
5371 and output line and position info in Message.
5373 * XmlReader.cs: implemented missing bits.
5375 2002-09-12 Piers Haken <piersh@friksit.com>
5377 * XmlDocumentNavigator.cs: implement MoveToId()
5379 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5381 * XmlTextWriter.cs: fixed bug #29886.
5383 2002-08-26 Ravi Pratap <ravi@ximian.com>
5386 * XmlAttribute.cs (InnerText): Implement getting this property.
5388 * XmlNode.cs (InnerText): Ensure that we append only values of
5391 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5393 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
5394 that allowed compiling this.
5395 [ FIXME: filed bug #29435. mcs should have failed on this ]
5397 2002-08-25 Tim Coleman <tim@timcoleman.com>
5399 Change CreateNavigator to not be virtual.
5401 Add set_Prefix and InnerText accessors.
5402 * XmlEntityReference.cs:
5403 Add set_Value accessor.
5405 Make objects which should be private private.
5407 Remove WriteStartElementInternal abstract definition.
5408 * XmlValidatingReader.cs:
5411 2002-08-22 Jason Diamond <jason@injektilo.org>
5413 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
5414 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
5416 2002-08-22 Jason Diamond <jason@injektilo.org>
5418 * XmlElement.cs: Correction to previous GetElementsByTagName patch
5419 courtesy of Matt Hunter <xrkune@tconl.com>.
5421 2002-08-22 Jason Diamond <jason@injektilo.org>
5423 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
5424 qualified GetElementsByTagName courtesy of Matt Hunter
5427 2002-08-19 Jason Diamond <jason@injektilo.org>
5429 * XmlDocument.cs, XmlElement.cs: Added implementation of
5430 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
5432 2002-08-16 Jason Diamond <jason@injektilo.org>
5434 * XmlElement.cs: Fixed writing out qualified elements courtesy of
5435 Marcus Bürgel <marcus.buergel@gmx.de>.
5437 2002-08-13 Tim Coleman <tim@timcoleman.com>
5439 Partial implementation of WriteQualifiedName ().
5441 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
5442 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
5443 InsertData(), and ReplaceData(). These methods fire the
5444 NodeChanging and NodeChanged events.
5446 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
5448 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
5449 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
5451 2002-08-03 Tim Coleman <tim@timcoleman.com>
5452 * XmlNamespaceManager.cs:
5453 .Net allows the empty namespace to be redefined
5454 at a later point, but the current implementation
5455 did not. This fixes a hashtable conflict.
5457 2002-07-26 Tim Coleman <tim@timcoleman.com>
5459 When given a textwriter, check to see if it has a
5460 null encoding. This was being done for other inputs
5463 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
5465 * XmlTextReader.cs: rough line/column support.
5467 2002-07-23 Duncan Mak <duncan@ximian.com>
5469 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
5470 (string, string []) is particularly strange.
5472 * XmlException.cs: Remember to call the base serialization
5475 * XmlNodeReader.cs: Keep a new variable to store the Depth.
5477 2002-07-14 Jason Diamond <jason@injektilo.org>
5479 * XmlAttribute.cs: Removed ownerElement field since we can reuse
5482 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
5483 if the current node is an attribute.
5485 * XmlElement.cs: SetAttributeNode now sets the new attribute's
5488 2002-07-12 Jason Diamond <jason@injektilo.org>
5490 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
5491 creating an element, use String.Empty instead.
5493 2002-07-12 Piers Haken <piersh@friksit.com>
5495 * XmlAttributeCollection.cs: implement some ItemOf indexers
5496 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
5497 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
5499 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
5501 * XmlTextWriter: Fixed Indentation. IndentationOverridden should
5502 not be set when inside a attribute.
5504 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
5506 * XmlTextWriter: In WriteStartElement, if namespace is null and
5507 prefix is null|empty do not write out xmlns=""
5509 * XmlWriter: WriteStartElement calls the virtual method with null
5510 argument instead of empty string.
5512 2002-07-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5514 * XmlTextReader.cs: implemented .ctor (Stream).
5516 2002-06-26 Duncan Mak <duncan@ximian.com>
5518 * XmlNodeReader.cs: Implementation of most of the properties, and
5519 some of the related methods.
5521 2002-06-23 Piers Haken <piersh@friskit.com>
5523 * XmlDocumentNavigator.cs: implement Clone()
5524 * XmlElement.cs: remove bogus unimplemented override of InnerText
5525 * XmlNode.cs: implment SelectNodes/SelectSingleNode
5526 * XmlNodeArrayList.cs: new support class for SelectNodes
5528 2002-06-21 Ajay kumar Dwivedi <adwiv@yahoo.com>
5530 * XmlQualifiedName: Name and Namespaces are never null. If null is passed
5531 to the constructor, set them to empty strings.
5532 Fixed the Operators.
5534 2002-06-18 Ajay kumar Dwivedi <adwiv@yahoo.com>
5536 * XmlTextReader.cs: HasLineInfo returns false instead of throwing an
5539 2002-06-14 Duncan Mak <duncan@ximian.com>
5541 * XmlConvert.cs: Added CLSCompliant attributes to methods.
5543 2002-06-12 Duncan Mak <duncan@ximian.com>
5545 * XmlCharacterData.cs (Value): Throw an ArgumentException in the
5546 set block if the node is read-only.
5548 2002-06-10 Ajay kumar Dwivedi <adwiv@yahoo.com>
5549 * XmlConstruct.cs : New Internal class with Helper methods for
5550 Checking XmlConstructs
5551 * XmlConvert.cs: Implemented most of the methods
5553 2002-06-08 Duncan Mak <duncan@ximian.com>
5555 * XmlDocument.cs (Load):
5556 Added bits to Load (string) for BaseURI support.
5558 * XmlAttribute.cs (BaseURI):
5559 * XmlDocument.cs (BaseURI):
5560 * XmlEntity.cs (BaseURI): Implemented.
5562 2002-05-27 Jason Diamond <jason@injektilo.org>
5564 * XmlDocumentNavigator.cs: Added file to directory.
5566 * XmlNode.cs (CreateNavigator): Implemented.
5567 (InnerText): Implemented.
5569 * XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
5571 (Load(XmlReader)): Allow for namespace qualified attributes.
5573 * XmlElement.cs: Implemented GetAttribute(string, string) and both
5574 GetAttributeNode overloads.
5575 (SetAttributeNode(XmlAttribute)): Implemented.
5577 * XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
5578 and RemoveNamedItem(string, string).
5580 * XmlLinkedNode.cs (PreviousSibling): Implemented.
5582 * XmlTextReader.cs: Added code to maintain the order of attributes as
5583 they're parsed. XML doesn't require this but Microsoft's parser does it and
5584 matching them makes testing easier so now we have it, too.
5586 2002-05-26 Miguel de Icaza <miguel@ximian.com>
5588 * XmlDocument.cs: Implement the Save methods.
5590 2002-05-08 Mike Kestner <mkestner@speakeasy.net>
5592 * XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
5594 2002-04-28 Duncan Mak <duncan@ximian.com>
5596 * XmlSignificantWhitespace.cs (Value):
5597 * XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
5598 block. Added new private method, IsValidWhitespaceChar, for
5601 2002-04-16 Duncan Mak <duncan@ximian.com>
5603 * XmlParserContext.cs (NameTable): Fixed a typo in the set block.
5605 2002-04-12 Duncan Mak <duncan@ximian.com>
5607 * XmlAttribute.cs (Prefix): Added preliminary code for set block,
5608 added comment on work that needs to be done here. A new MonoTODO item.
5610 * XmlDocument.cs (ctor): Corrected constructor signature, changed
5611 parameter from 'NameTable' to 'XmlNameTable'.
5613 * XmlDocumentFragment.cs (InnerXml): Added missing set block.
5615 * XmlCaseOrder.cs: Moved to System.Xml.XPath.
5617 2002-04-10 Duncan Mak <duncan@ximian.com>
5619 * XmlNodeReader.cs: Initial stubs for the class.
5621 2002-04-08 Kral Ferch <kral_ferch@hotmail.com>
5623 * XmlAttributes.cs: InnerXml getter, WriteContentTo, and WriteTo
5626 * XmlDeclaration.cs: WriteTo implementation.
5628 * XmlDocument.cs: InnerXml getter implementation.
5630 * XmlElement.cs: InnerXml getter implementation.
5632 * XmlNode.cs: Removed MonoTODO attrib on OuterXml.
5634 * XmlSignificantWhitespace.cs: WriteTo implementation.
5636 * XmlText.cs: WriteContentTo and WriteTo implementation.
5638 * XmlTextWriter.cs: WriteRaw implementation.
5640 * XmlWhitespace.cs: WriteContentTo and WriteTo implementations.
5642 2002-04-05 Kral Ferch <kral_ferch@hotmail.com>
5644 * XmlAttributes.cs: Added reminder MonoTODO to set NamespaceURI
5645 if prefix in constructor is one of the default ones.
5647 * XmlCharacterData.cs: Returns String.Empty for Value and Data
5648 even when constructed with null.
5650 * XmlDeclaration.cs: Value doesn't put encoding or standalone
5651 in if they are empty.
5653 * XmlDocument.cs: Implemented CreateNode methods and this caused
5654 the changes in the other files in this checkin.
5656 * XmlProcessingInstruction.cs: Returns String.Empty for Value and Data
5657 even when constructed with null.
5659 * XmlWhitespace.cs: Changed Value 'get' to return Data.
5661 2002-04-01 Kral Ferch <kral_ferch@hotmail.com>
5663 * XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
5665 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
5667 * XmlTextWriter.cs: Impls for LookupPrefix, WriteBase64,
5668 and WriteCharEntity.
5670 * XmlWrite.cs: Fixed bug where attribute namespace decl
5671 was pushing a scope onto the namespace manager when it shouldn't
5674 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
5676 * XmlTextWriter.cs: Some tweaks for WriteAttibuteString
5677 in different states (no open start element, in WriteState.Content mode).
5679 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
5681 * XmlTextWriter.cs: XmlLang and XmlSpace properties
5682 and WriteWhitespace.
5684 * XmlTextWriterOpenElement.cs: scope support for XmlLang
5687 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
5689 * XmlTextWriter.cs: Working on Attribute methods.
5691 * XmlWriter.cs: Working on Attribute methods.
5693 2002-03-28 Duncan Mak <duncan@ximian.com>
5695 * XmlDocument.cs (CreateWhitespace):
5696 (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
5699 * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
5701 2002-03-26 Duncan Mak <duncan@ximian.com>
5703 * XmlDocument.cs (CreateDocumentType): Implemented.
5705 * XmlNode.cs (Value): Implemented.
5707 * XmlProcessingInstruction.cs (InnerText): Implemented. It works just
5708 like XmlCharacterData.
5710 * XmlDeclaration.cs (CloneNode):
5711 * XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
5714 * XmlCharacterData.cs (InnerText): Implemented. Funny that the
5715 docs say it is the "The concatenated values of the node and all
5716 the children of the node.". I wrote some test programs and
5717 couldn't get any of the derived nodes to AppendChild. For now,
5718 InnerText == Data == Value.
5719 (Substring): Fixed typo.
5721 * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
5723 * XmlImplementation.cs (CreateDocument): Implemented.
5725 2002-03-25 Duncan Mak <duncan@ximian.com>
5727 * XmlDeclaration.cs: Rewrote the class, fixed formatting, added
5728 missing properties (InnerText, Value).
5730 * XmlDocument.cs (CreateXmlDeclaration): Implemented.
5732 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5734 * XmlTextWriter.cs: Impls for BaseStream and
5735 Namespaces and WriteState.
5737 * XmlWriter.cs: WriteState and WriteStartElementInternal.
5739 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5741 * XmlNodeListChildren.cs: made class internal
5742 instead of public. Shouldn't be visible outside
5745 * XmlTextWriter.cs: Implementations for Formatting,
5746 IndentChar, Indenting, QuoteChar, WriteStartDocument(standalone).
5747 Suppresses encoding on xml declaration if null stream passed in.
5748 Formats output including suppressing indentation for elements in
5751 * XmlTextWriterOpenElement.cs: Initial checkin.
5752 XmlTextWriter uses stack of these objects to track
5755 2002-03-22 Mike Kestner <mkestner@speakeasy.net>
5757 * XmlElement.cs: impl HasAttribute(string name).
5759 2002-03-22 Duncan Mak <duncan@ximian.com>
5761 * XmlElement.cs: Reformatted.
5762 (CloneNode) Corrected.
5764 * XmlDocument.cs (CreateWhitespace):
5765 (CreateSignificantWhitespace): Implemented.
5767 * XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
5768 true, because Attributes have ChildNodes.
5770 2002-03-21 Kral Ferch <kral_ferch@hotmail.com>
5772 * XmlTextWriter.cs: WriteStartDocument tracks state, writes out
5773 xml declaration along with encoding. WriteEndElement throws
5774 exception if no WriteStartElement exists.
5776 2002-03-20 Duncan Mak <duncan@ximian.com>
5778 * XmlEntityReference.cs (CloneNode): Implemented.
5780 * XmlException.cs (Message): Implemented. We need to cache the
5781 message string because SystemException doesn't expose 'message'
5784 * XmlText.cs (Value): Added in the missing Value property.
5786 2002-03-20 Duncan Mak <duncan@ximian.com>
5788 * XmlAttribute.cs (CloneNode): Implemented.
5790 * XmlDocumentFragment.cs (CloneNode): Implemented.
5792 * XmlElement.cs (CloneNode): Implemented.
5794 2002-03-19 Duncan Mak <duncan@ximian.com>
5796 * XmlNotation.cs: Added to CVS.
5798 * XmlAttribute.cs (CloneNode): First crack at the CloneNode method.
5800 * XmlCDataSection.cs (CloneNode): Implemented.
5802 * XmlDocumentFragment.cs: Reformatted and added the missing properties
5803 (InnerXml, OwnerDocument, ParentNode).
5804 (CloneNode): Implemented.
5806 * XmlSignificantWhitespace.cs (CloneNode): Implemented.
5807 (Value) Implemented the 'get' property.
5809 * XmlWhitespace.cs (Module): implemented.
5811 2002-03-19 Jason Diamond <jason@injektilo.org>
5813 * XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
5816 2002-03-18 Jason Diamond <jason@injektilo.org>
5818 * XmlTextReader.cs: Don't restore properties after reading last
5819 attribute on an element.
5821 * XmlDocument.cs: Move back to element after reading attributes
5822 so that IsEmptyElement test succeeds.
5824 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5826 * XmlNamespaceManager.cs: Implemented LookupPrefix.
5828 * XmlTextWriter.cs: Implemented namespace and prefix support.
5830 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5832 * XmlTextReader.cs: Restores properties after
5833 reading last attribute on an element.
5835 * XmlNode.cs: AppendChild sets the parent
5838 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5840 * XmlCDataSection.cs: Formatting, Implementation for WriteTo.
5842 * XmlComment.cs: Implementations for WriteTo and WriteContentTo.
5844 * XmlElement.cs: Fixed bug in WriteTo.
5846 * XmlProcessingInstruction.cs: Formatting.
5848 * XmlTextWriter.cs: Implementations for Close, WriteCData, WriteComment,
5849 fixes for WriteEndElement, WriteProcessingInstruction.
5851 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5853 * XmlDocument.cs: Implementations for WriteTo() and WriteContentTo(),
5854 had Load() add PIs to the document, moved onXXX methods to alphabetical
5857 * XmlElement.cs: Implementations for WriteTo() and WriteContentTo().
5859 * XmlNode.cs: Implementations for InnerXml Get and OuterXml.
5861 * XmlProcessingInstruction.cs: Implementations for WriteTo() and
5864 * XmlTextWriter.cs: Implementations for WriteEndElement,
5865 WriteProcessingInstruction, WriteStartElement, and WriteString.
5867 * XmlWriter.cs: Implemented WriteStartElement() methods.
5869 2002-03-15 Duncan Mak <duncan@ximian.com>
5871 * XmlEntity.cs: Added to CVS. Need to implement BaseURI and
5872 InnerText once I know what they do.
5874 * XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
5875 that we can properly chain constructors.
5876 (CloneNode): implemented.
5877 (WriteContentTo): Removed MonoTODO attribute as this method has no
5878 effect in this class.
5880 * XmlProcessingInstruction.cs (Value): Added the missing Set
5882 (InnerText): Added in, but not implemented.
5884 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5886 * XmlTextWriter.cs: implemented constructors and
5887 WriteCData and WriteComment.
5889 2002-03-14 Duncan Mak <duncan@ximian.com>
5891 * XmlDocument.cs: Moved the NodeChanged EventHandler to its own
5892 file, and updated the callbacks to reflect the change.
5893 (XmlDocument): Added the NameTable constructor.
5894 (NameTable): Also the NameTable property.
5896 * XmlNodeChangedEventHandler.cs: Added, replacing the version that
5897 was in XmlDocument.cs. It has two arguments now (object,
5898 EventArgs) , instead of one (object).
5900 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5902 * XmlWriter.cs: Formatting.
5904 * XmlTextWriter.cs: Initial checkin.
5906 2002-03-14 Duncan Mak <duncan@ximian.com>
5908 * Validation.cs: Removed, replaced by ValidationType.cs.
5910 * ValidationType.cs: Added.
5912 2002-03-13 Duncan Mak <duncan@ximian.com>
5914 * XmlException.cs: Made it [Serializable], implemented good ol'
5915 GetObjectData, and the serialization constructor.
5917 * XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
5918 (SetNamedItem): Reverted (added back in) the patch with the
5919 ReadOnly checks. "Don't doubt yourself, my son... you were right!"
5921 * XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
5922 (GetNamedItem (string, string)): implemented.
5923 (RemoveNamedItem): implemented.
5924 (SetNamedItem): implemented.
5926 2002-03-12 Kral Ferch <kral_ferch@hotmail.com>
5928 * XmlAttribute.cs: Moved a method from amongst properties down to
5929 it's alphabetical position in the methods section.
5931 * XmlNode.cs: Passes in 'this' to XmlNodeList constructor instead of
5932 last linked child. Set XmlNode base class to return false for IsReadOnly().
5933 Implemented GetEnumerator() and RemoveChild().
5935 * XmlNodeListChildren.cs: Now stores the parent instead of the last child.
5936 This is to support the behavior that the Enumerator doesn't become invalid
5937 when changes to the children occur. Flushed out rest of implementation for
5938 MoveNext, Current, and Reset.
5940 2002-03-12 Duncan Mak <duncan@ximian.com>
5942 * XmlCharacterData.cs: Reformatted the properties for better readability.
5944 * XmlLinkedNode.cs: Removed the awful boxy comments.
5946 * XmlNamedNodeMap.cs (Count):
5947 (Item): Implemented. Tests will be coming.
5949 * XmlEntityReference.cs:
5950 * XmlSignificantWhitespace.cs: Implemented these classes except for
5951 the Clone, WriteContentTo and WriteTo methods. Will have to
5952 investigate into these later.
5954 2002-03-11 Duncan Mak <duncan@ximian.com>
5956 * IHasXmlNode.cs: Added to CVS.
5958 2002-03-08 Jason Diamond <jason@injektilo.org>
5960 * XmlParserContext.cs: Added missing constructors and missing Encoding
5963 * XmlTextReader.cs: Start using the XmlParserContext class.
5965 2002-03-08 Jason Diamond <jason@injektilo.org>
5967 * XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
5969 2002-03-08 Mike Kestner <mkestner@speakeasy.net>
5971 * XmlNode.cs (Item): Implemented both indexers.
5973 2002-03-08 Jason Diamond <jason@injektilo.org>
5975 * DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
5976 XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
5978 2002-03-08 Jason Diamond <jason@injektilo.org>
5980 * XmlAttribute.cs: Attribute nodes are supposed to store their values
5981 as child nodes so updated to reflect that.
5983 * XmlDocument.cs, XmlElement.cs, XmlNode.cs: Moved code that was
5984 duplicated in XmlDocument and XmlElement into XmlNode so that it
5985 wouldn't have to be duplicated in XmlAttribute, too.
5987 2002-03-08 Kral Ferch <kral_ferch@hotmail.com>
5989 * XmlNodeList.cs, XmlDocument.cs, XmlLinkedNode.cs,
5990 XmlNode.cs: Formatting.
5992 * XmlNodeListChildren.cs: Implementation of XmlNodeList
5993 for XmlNode.ChildNodes property.
5995 * XmlNodeListAsArrayList.cs: Removed file. Using different
5996 data structure (circular list) in XmlNode so this file
5999 * XmlDocument.cs, XmlElement.cs: New ChildNodes tests found
6000 bug in setter property of LastLinkedChild so fixed it.
6002 2002-03-06 Jason Diamond <jason@injektilo.org>
6004 * XmlInputSource.cs, XmlNames_1_0.cs, XmlParse.cs: Removed files.
6005 We already have a parser in XmlTextReader.
6007 * XmlException.cs: Removed constructor accepting XmlInputSource.
6009 2002-03-06 Kral Ferch <kral_ferch@hotmail.com>
6011 * XmlNode.cs: Rewrote this class from scratch with
6012 MonoToDo attribs and NotImplementedExceptions. Now defines an
6013 internal LastLinkedNode property to aid the new implementation.
6014 XmlNodes only have ref to owner doc and parent nodes now.
6016 * XmlLinkedNode.cs: Added NextLinkedSibling internal property
6017 and ref to next sibling to support walking our circular child
6020 * XmlDocument.cs: Added ref to last child node and overrides
6021 XmlNode's internal LastLinkedChild property to support walking
6022 our circular child node list.
6024 2002-03-02 Kral Ferch <kral_ferch@hotmail.com>
6026 * XmlProcessingInstructions.cs: Class was empty. Implemented
6027 constructor, properties, and CloneNode() method. Put in
6028 MonoToDo attrib for remaining methods.
6030 * XmlComment.cs: Reformatted and put in MonoToDo attribs.
6031 Got rid of helper methods and fields since they were no
6034 * XmlLinkedNode.cs: Reformatted and put in MonoToDo attribs.
6036 * XmlDocument.cs: Added code to Load(XmlReader) to create XmlComment,
6037 XmlCDataSection, and XmlProcessingInstruction nodes. Implemented
6038 Createxxx() methods for those three node types.
6040 2002-03-02 Jason Diamond <jason@injektilo.org>
6042 * XmlDocument.cs: Implemented the remaining CreateElement and
6043 CreateAttribute methods.
6045 * XmlAttribute.cs: Re-implemented.
6047 * XmlElement.cs: Set owner element on attributes. Reformatted.
6049 2002-03-02 Jason Diamond <jason@injektilo.org>
6051 * XmlTextReader.cs: Implemented MoveToNextAttribute().
6053 * XmlDocument.cs: Reformatted. Adding missing methods and MonoTODO
6054 attributes. Create attribute nodes while loading. Implemented
6055 Load(string) and CreateTextNode().
6057 * XmlCharacterData.cs, XmlText.cs: Re-implemented.
6059 * XmlCDataSection.cs, XmlComment.cs: Call correct constructor in
6062 * XmlNamedNodeMap.cs, XmlAttributeCollection.cs: Stubbed out.
6064 2002-03-02 Mike Kestner <mkestner@speakeasy.net>
6066 * XmlAttribute.cs : Using fix.
6067 * XmlDocument.cs (CreateAttribute(String)): Implement.
6069 2002-03-02 Jason Diamond <jason@injektilo.org>
6071 * XmlNamespaceManager.cs: Atomize prefixes and namespaces strings in
6074 2002-02-28 Jason Diamond <jason@injektilo.org>
6076 * XmlDocument.cs, XmlNode.cs: Initial implementation of LoadXml
6077 courtesy of Kral Ferch <kral.ferch@hotmail.com>.
6079 2002-02-28 Jason Diamond <jason@injektilo.org>
6081 * XmlException.cs, XmlReader.cs, XmlTextReader.cs: Reformatted,
6082 added missing members and MonoTODO attributes.
6084 * XmlTextReader.cs: Throw XmlException instead of System.Exception.
6086 2002-02-27 Jason Diamond <jason@injektilo.org>
6088 * XmlElement.cs: Reformatted, added missing members and MonoTODO
6091 2002-02-26 Duncan Mak <duncan@ximian.com>
6093 * XmlCDataSection.cs: Initial implementation.
6095 * NameTable.cs: Fixed the whole thing. Wrote a NUnit test to test
6096 it out. This should (hopefully) be correct.
6098 2002-02-26 Jason Diamond <jason@injektilo.org>
6100 * XmlTextReader.cs: Apparently Microsoft's implementation treats
6101 namespace declarations as attributes so we do now, too.
6103 * XmlNamespaceManager.cs: HasNamespace fixed so that it only
6104 checks the current scope.
6106 2002-02-26 Duncan Mak <duncan@ximian.com>
6108 * XmlDocumentType.cs: Added a few hacks here and there to
6109 temporarily fix the "I broke the build issue".
6111 2002-02-25 Jason Diamond <jason@injektilo.org>
6113 * XmlDocument.cs, XmlElement.cs, XmlNode.xs, XmlNodeList.cs,
6114 XmlNodeListAsArrayList.cs: Multiple fixes necessary to get
6115 simple test to pass. The existing code is really shitty so I'll
6116 probably start writing tests and refactoring before much else
6119 2002-02-25 Duncan Mak <duncan@ximian.com>
6121 * NameTable.cs: Implemented.
6123 * XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.
6125 2002-02-24 Duncan Mak <duncan@ximian.com>
6127 * XmlNodeOrder.cs: Added to CVS.
6129 * XmlQualifiedName.cs: Fixed a warning from Equals ().
6131 * XmlTokenizedType.cs: Added to CVS.
6133 * XmlUrlResolver.cs: Added to CVS with one TODO task.
6135 2002-02-23 Duncan Mak <duncan@ximian.com>
6137 * XmlQualifiedName.cs: Fixed ToString () and added the operators
6140 2002-02-23 Jason Diamond <jason@injektilo.org>
6142 * XmlTextReader.cs: Added support for qualified attributes.
6144 2002-02-23 Jason Diamond <jason@injektilo.org>
6146 * XmlNamespaceManager.cs: Initial implementation.
6148 * XmlTextReader.cs: Added support for NamespaceURI property on
6151 2002-02-23 Nick Drochak <ndrochak@gol.com>
6153 * ChangeLog: Add the change log to this directory
6155 * XmlQualifiedName.cs: Fixed compile errors so it would build. Still has