1 2009-05-27 Sebastien Pouliot <sebastien@ximian.com>
3 * XmlReaderSettings.cs: Set prohibitDtd when changing the value
4 of DtdProcessing. Will fix a few Moonlight DRT tests
6 2009-05-19 Atsushi Enomoto <atsushi@ximian.com>
8 * XmlConvert.cs : no reason not to report invalid input string for
11 2009-04-28 Sebastien Pouliot <sebastien@ximian.com>
13 * XmlTextReader.cs (InitializeContext): Under NET_2_1 do not give
14 a second change using Path.GetFullPath. (GetStreamFromUrl) Add
15 extra validations that would be missed in NET_2_1
17 2009-04-28 Sebastien Pouliot <sebastien@ximian.com>
19 * XmlReaderSettings.cs: Add MaxCharactersInDocument property for
21 * XmlUrlResolver.cs: Cleanup #ifdef NET_2_1 inside this file
22 since this is not used anymore in Moonlight
24 2009-04-28 Sebastien Pouliot <sebastien@ximian.com>
26 * XmlXapResolver.cs: Remove dependency on XmlUrlResolver. Small
27 fixes wrt new unit tests (inside moon-unit).
29 2009-04-28 Sebastien Pouliot <sebastien@ximian.com>
31 * XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
32 method for NET_2_1 profile.
34 2009-04-22 Atsushi Enomoto <atsushi@ximian.com>
36 * XmlQualifiedName.cs : added Parse() overload that is used for
39 2009-04-22 Atsushi Enomoto <atsushi@ximian.com>
41 * XmlAttributeCollection.cs : when the node to be inserted has owner
42 element _but_ is identical to that of this collection, do not
43 reject it to raise an error. Fixed bug #496022.
45 2009-03-25 Geoff Norton <gnorton@novell.com>
47 * XmlTextReader.cs: Create the uri as relativeorabsolute.
49 2009-03-18 Atsushi Enomoto <atsushi@ximian.com>
51 * XmlReader.cs : handle DateTimeOffset in typed reader methods.
53 2009-03-17 Atsushi Enomoto <atsushi@ximian.com>
55 * XmlTextWriter2.cs : some weird TextWriter has null Encoding.
58 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
60 * XmlParserContext.cs : .NET has weird nametable initialization.
63 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
65 * XmlReader.cs : (ReadToFollowing) check LocalName, not Name.
68 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
70 * DTDRreader.cs : read up all DTD stream so that we don't have to
71 see bugs like #469317 many times.
73 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
75 * XmlReaderBinarySupport.cs : ReadContentsAsBase64() could skip
76 EndElement at the next XmlReader.Read(). Fixed bug #480066.
78 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
80 * XmlTextWriter2.cs : only bogus v1 XmlTextWriter ignores null
81 namespace for conflict check. Fixed bug #479725.
83 2009-03-13 Atsushi Enomoto <atsushi@ximian.com>
85 * XmlConvert.cs : added ToUri() (extraneous in 2.0; used only from
86 2.1 S.X.Serialization.dll in MS SDK).
88 2009-03-02 Chris Toshok <toshok@ximian.com>
90 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
91 EntityResolvingXmlReader.cs: 2.1 has HasValue.
94 2009-02-27 Atsushi Enomoto <atsushi@ximian.com>
96 * XmlReader.cs : do not try to read at non-readable state in
99 2009-02-23 Alan McGovern <amcgovern@novell.com>
101 * XmlTextReader.cs: Under the SL2 profile, the default resolver
104 2009-02-23 Atsushi Enomoto <atsushi@ximian.com>
106 * XmlReader.cs : ReadContentAsXxx() should not advance XmlReader
107 when it is on attribute *value* text.
109 2009-02-10 Atsushi Enomoto <atsushi@ximian.com>
111 * XmlTextWriter2.cs : similar fix in WriteStartElement() to
112 previous change. Fixed bug #474091.
114 2009-02-09 Atsushi Enomoto <atsushi@ximian.com>
116 * XmlElementTest.cs: SetAttribute(name,value) should identify value
117 change for existing node, from new node insertion.
120 2009-02-06 Atsushi Enomoto <atsushi@ximian.com>
122 * XmlTextWriter2.cs : in WriteStartAttribute(), fill namespace in
123 case it is null and the prefix has matching ns. Fixed bug #472634.
125 2009-01-30 Atsushi Enomoto <atsushi@ximian.com>
127 * DTDValidatingReader2.cs, EntityResolvingXmlReader.cs : simplify
128 parsercontext provision.
129 * XmlValidatingReader.cs : expand parser context provision to
130 non-dtdvalidating readers.
132 2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
134 * XmlXapResolver.cs : fix assembly qualified names,
135 and give detailed errors.
136 * XmlResolver.cs : in 2.1 do not resolve relative Uri
139 2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
141 * XmlXapResolver.cs : new in 2.1.
142 * XmlReaderSettings.cs : use above.
144 2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
146 * XmlDocumentNavigator.cs : in some corner cases an attribute
147 may have null OwnerElement. Fixed bug #458245.
149 2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
151 * XmlReaderBinarySupport.cs : do not hang in the middle of reading
152 byte chunk at some node types. Fixed bug #464229.
154 2009-01-14 Sebastien Pouliot <sebastien@ximian.com>
156 * NamespaceHandling.cs: New. Enum for Silverlight 2. Microsoft's
157 System.Xml.Linq.dll (often bundled in XAP files) needs it (or we
158 throw a TypeLoadException).
159 * XmlWriterSettings.cs: Add SL2 specific NamespaceHandling property
161 2009-01-08 Atsushi Enomoto <atsushi@ximian.com>
163 * XmlReader.cs : ReadContentAsString() does not reject non-elements.
164 ReadElementContentAsString() rejects non-content nodes.
166 2008-12-19 Atsushi Enomoto <atsushi@ximian.com>
168 * XmlNamespaceManager.cs : namespace lookup failed for non-atomic
169 string in 1.1 profile. Fixed 1.0 part of #379139.
171 2008-12-18 Atsushi Enomoto <atsushi@ximian.com>
173 * DTDValidatingReader.cs : remove unused file.
175 2008-11-04 Atsushi Enomoto <atsushi@ximian.com>
177 * XmlTextReader.cs : simply call ClearValueBuffer() on each Read().
179 2008-10-02 Atsushi Enomoto <atsushi@ximian.com>
181 * XmlDocumentNavigator.cs : added some overriden methods (to be
184 2008-09-24 Atsushi Enomoto <atsushi@ximian.com>
186 * XmlDocument.cs : it returns non-null Schemas by default (and
187 returns non-empty set after being set null).
189 2008-09-17 Atsushi Enomoto <atsushi@ximian.com>
191 * XmlReader.cs : detailed error location in ReadSubtree().
193 2008-09-17 Atsushi Enomoto <atsushi@ximian.com>
195 * XmlReader.cs : ReadSubtree() is valid only on an element.
197 2008-09-10 Atsushi Enomoto <atsushi@ximian.com>
199 * XmlDocument.cs, XmlDocumentNavigator.cs :
200 reduce navigator fields.
202 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
204 * EnityResolvingXmlReader.cs:
207 * XmlTextReader2.cs: re-enable ResolveEntity for 2.1
209 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
211 * XmlReaderSettings.cs: adding DtdProcessing and
212 MaxCharactersFromEntities properties for 2.1
214 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
216 * DtdProcessing: adding this enum on the 2.1 build
218 2008-08-05 Jb Evain <jbevain@novell.com>
220 * XmlConvert.cs (ToChar): add a specific SL2 version.
222 2008-07-28 Atsushi Enomoto <atsushi@ximian.com>
224 * XmlNamespaceManager.cs : check null arg.
225 * XmlTextReader.cs : fixed bug #412657; now we populate nametable
226 and namespace manager in case they are null in parser context, and
227 use them instead of the members in the parser context.
229 2008-06-11 Atsushi Enomoto <atsushi@ximian.com>
231 * XmlConvert.cs : fixed bug #397934. Utc mode accepts more formats.
233 2008-06-11 Atsushi Enomoto <atsushi@ximian.com>
235 * XmlConvert.cs : no need for TARGET_JVM.
237 2008-06-09 Atsushi Enomoto <atsushi@ximian.com>
239 * XmlTextReader.cs : when Normalized is true, '<' after \r which
240 comes after text node was incorrectly consumed as a text content.
243 2008-06-05 Atsushi Enomoto <atsushi@ximian.com>
245 * XmlConvert.cs : now we can use roundtrip format for float/double.
248 2008-06-04 Atsushi Enomoto <atsushi@ximian.com>
250 * XmlTextReader2.cs : added FIXME comment which won't fix, that
251 I have noticed during fixing bug #378239.
253 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
255 * XmlReader.cs : some Create() overloads with baseUri argument did
256 not set baseUri correctly. Fixed bug #392385.
258 2008-05-07 Atsushi Enomoto <atsushi@ximian.com>
260 * XmlReader.cs : force CloseInput to every XmlReader that is created
261 from url (I mean, every internal XmlReader instance).
263 2008-04-17 Atsushi Enomoto <atsushi@ximian.com>
265 * XmlAttributeCollection.cs : check attribute identity only if the
266 source node is in the document tree. Fixed bug #380720.
268 2008-02-19 Atsushi Enomoto <atsushi@ximian.com>
270 * XmlParserContext.cs : .net does not populate XmlNamespaceManager
272 * XmlDocument.cs : so, always create one here.
274 2008-01-25 Atsushi Enomoto <atsushi@ximian.com>
276 * XmlReader.cs : MoveToNextSibling() should check EOF (as Skip() does
277 not). Fixed bug #347768.
279 2008-01-15 Atsushi Enomoto <atsushi@ximian.com>
281 * XmlParserContext.cs : do not pass invalid URI to XmlTextReader#ctor
282 even as a dummy. Fixed bug #353654.
284 2007-12-17 Atsushi Enomoto <atsushi@ximian.com>
286 * XmlConvert.cs : added NET_3_5 members.
288 2007-12-06 Atsushi Enomoto <atsushi@ximian.com>
290 * XmlUrlResolver.cs : in net_2_0, use Uri.IsAbsoluteUri to filter
293 2007-11-09 Atsushi Enomoto <atsushi@ximian.com>
295 * XmlConvert.cs : ToDateTime(XmlDateTimeSerializationMode) should
296 allow more strings than existing one. Fixed bug #339004.
298 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
300 * XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
301 not Parse(). Use 'K' for roundtrip format.
303 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
305 * XmlTextWriter2.cs : making <del>silly</del>funky MS compatibility
306 change in WriteStartAttribute() to call WriteEndAttribute() if an
309 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
311 * XmlTextWriter2.cs : I could make previous change only in 2.0 mode.
313 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
315 * XmlTextWriter2.cs : When it is at Error state, do not try to close
316 attributes and elements at Close(). They will result in further
317 error and rather hide the actual issue when disposed.
319 2007-09-28 Atsushi Enomoto <atsushi@ximian.com>
321 * XmlWriter.cs : it is now documented that WriteNode(XPathNavigator)
322 ignores attributes and namespace decls, so do that.
323 * XQueryConvert.cs : removed extra stuff that are not in use.
325 2007-09-27 Atsushi Enomoto <atsushi@ximian.com>
327 * XmlWriter.cs : implemented WriteValue(object) based on
328 MSDN "Writing Typed Data" with some fix.
329 http://msdn2.microsoft.com/en-us/library/bft97s8e(VS.80).aspx
330 * XmlTextWriter.cs : state check is extraneous. It caused unexpected
331 rejection of empty namespace URI.
333 2007-08-13 Atsushi Enomoto <atsushi@ximian.com>
335 * XmlTextWriter2.cs : fix extraneous indentation which is put after
338 2007-08-09 Jb Evain <jbevain@novell.com>
340 * XmlTextReader.cs: Avoid using 2.0 only feature in 2.1.
342 2007-08-09 Jb Evain <jbevain@novell.com>
344 * XmlConvert.cs: use 2.1 available overloads of Parse.
346 2007-08-09 Jb Evain <jbevain@novell.com>
348 * XmlInputStream.cs: there's no ASCII encoding in 2.1.
350 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
352 * XmlReader.cs XmlNodeReader2.cs XmlTextReader.cs XmlTextReader2.cs
353 XmlNodeReaderImpl.cs EntityResolvingXmlReader.cs :
354 The previous attempt was wrong. Those internal-virtualized ones
355 could be used in System.Xml.Core classes and outside the assembly
356 any derived XmlReaders would have thrown throw Exception.
357 Now I marked them as nonexistent-in-2.1 or privatized.
358 * XmlWriter.cs : actually only this class is affected (if there
359 were DOM or XSD they would have been affected as well).
361 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
363 * XmlReader.cs : HasValue, ReadAttributeValue() and ResolveEntity()
364 do not exist in 2.1 profile. Hiding abstract stuff seems to cause
365 some issues at run time, so they are ifdef-ed out from 2.1.
366 * XmlNodeReader2.cs DTDValidatingReader2.cs XmlTextReader.cs
367 XmlTextReader2.cs XmlNodeReaderImpl.cs DTDValidatingReader.cs
368 EntityResolvingXmlReader.cs : hence the change above.
370 2007-08-04 Jb Evain <jbevain@novell.com>
372 * XmlUrlResolver.cs: remove code duplication in 2.1.
374 2007-08-04 Jb Evain <jbevain@novell.com>
376 * XmlTextReader.cs, XmlConvert.cs, XmlReaderBinarySupport.cs:
377 Use the available constructor for the 2.1 profile.
379 2007-08-03 Atsushi Enomoto <atsushi@ximian.com>
381 * DTDObjectModel.cs : in 2.0 and especially 2.1 profiles, use
382 our own DictionaryBase-like generic type. It is to reduce
383 dependency on DictionaryBase which does not exist in 2.1 mscorlib.
384 (included in 2.0 as well so that we do not skip NUnit tests so far)
386 2007-08-03 Atsushi Enomoto <atsushi@ximian.com>
388 * XmlResolver.cs, XmlUrlResolver.cs, XmlSecureResolver.cs :
389 remove ICredential in NET_2_1 (they have to be explicitly removed
390 outside tuner work as ICredentials does not exist in 2.1 profile).
391 We cannot use WebRequest in 2.1 as well, so remove dependency on
392 it in GetEntity() (and added MonoTODO for non-file URLs).
394 2007-07-12 Atsushi Enomoto <atsushi@ximian.com>
396 * XmlWriter.cs : in WriteNode(XPathNavigator,bool), default namespace
397 is broken. Fixed bug #82051.
399 2007-07-11 Atsushi Enomoto <atsushi@ximian.com>
401 * XmlReader.cs : looks like I introduced extra Settings check at
402 r69383. Fixed bug #82062.
404 2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
406 * DTDValidatingReader2.cs :
407 we can remove NET_2_1 from this unused code in SL.
409 2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
411 * DTDAutomata.cs DTDObjectModel.cs DTDReader.cs
412 DTDValidatingReader2.cs XmlException.cs XmlReader.cs
413 XmlReaderSettings.cs XmlWriter.cs :
414 Make System.Xml.Core.dll build easier, using NET_2_1.
416 DTD support is simply cut at this stage (as it largely depends on
417 sys.xml.schema stuff).
419 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
421 * XmlTextReader.cs: Expose ProhibitDtd on 1.0 profile too.
423 2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
425 * XmlNode.cs : InnerText is settable on XmlDocumentFragment (silly,
426 but since XmlDocumentFragment does not override this property
427 it must be handled here).
429 2007-06-11 Atsushi Enomoto <atsushi@ximian.com>
431 * XmlTextReader.cs : ReadStartElement() has bogus error message.
433 2007-05-31 Atsushi Enomoto <atsushi@ximian.com>
435 * XmlTextWriter2.cs :
436 NewLineOnAttributes indentation fix, for bug #81770.
438 2007-05-25 Atsushi Enomoto <atsushi@ximian.com>
440 * XQueryConvert.cs : removed unused methods. They will prevent
441 System.Xml.Core.dll implementation.
443 2007-05-15 Konstantin Triger <kostat@mainsoft.com>
445 * XmlWriter.cs, XmlTextWriter2.cs: ensure the file
446 is closed in XmlWriter.Create(filename).
448 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
450 * XmlConvert.cs : MinValue and MaxValue, same for ToDateTime().
452 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
454 * XmlConvert.cs : MinValue and MaxValue are unchanged by the
455 serialization mode (unlike DateTime.ToString()).
457 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
459 * XmlConvert.cs : in 2.0, use F instead of f in dateTime formatting.
461 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
463 * XmlReader.cs : fixed wrong depth comparison in ReadToNextSibling().
464 Fixed bug #81451, by Eric Mercier.
466 2007-04-03 Atsushi Enomoto <atsushi@ximian.com>
468 * XmlTextReader.cs : character ']' inside DTD comment caused parser
469 error. Fixed bug #81294.
471 2007-03-05 Atsushi Enomoto <atsushi@ximian.com>
473 * XmlReader.cs : when Create() returns customized XmlTextReader, set
474 EntityHandling.ExpandEntities. Fixed bug #81000.
476 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
478 * XmlTextReader.cs, XmlTextReader2.cs : Reset() should work now.
481 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
483 * DTDValidatingReader2.cs, XmlTextReader.cs, XmlNodeReaderImpl.cs:
484 Read() silently returns false when it is closed. Fixed bug #80848.
486 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
488 * XmlReader.cs : ReadElementContentAsString() and all relevant methods
489 didn't consume empty element correctly.
491 2006-12-20 Atsushi Enomoto <atsushi@ximian.com>
493 * XmlNode.cs : (InsertBefore) when newChild == refChild, do nothing
494 except for node type check. Fixed bug #80331.
496 2006-12-19 Atsushi Enomoto <atsushi@ximian.com>
498 * XmlTextReader.cs : Fixed ReadChars() to consume child elements,
499 including such cases that it breaks tags in the middle of multiple
500 ReadChars() calls. Fixed bug #80308.
502 2006-12-19 Atsushi Enomoto <atsushi@ximian.com>
504 * XmlTextReader.cs : ReadChars() does not have to store characters,
505 so avoid extra storing. Patch by Csaba Halasz, fixed bug #80306.
507 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
509 * XmlNode.cs : InnerText was returning comment text when there was
510 only a Comment node. Fixed bug #80233.
512 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
514 * XmlReader.cs : Create() with string url was not returning validating
517 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
519 * DTDValidatingReader2.cs : when an attribute declaration is missing
520 in the corresponding attlist declaration, it caused NRE.
523 2006-12-11 Atsushi Enomoto <atsushi@ximian.com>
525 * XmlDocument.cs : call overriden CreateAttribute() when loading from
528 2006-12-05 Atsushi Enomoto <atsushi@ximian.com>
530 * XmlReader.cs : new 2.0 MoveToAttribute(int) failed to move to the
531 final attribute in an element.
533 2006-12-05 Atsushi Enomoto <atsushi@ximian.com>
535 * XmlNode.cs : GetPrefixOfNamespace() was not correctly searching
536 ancestors' namespaces.
538 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
540 * XmlTextWriter2.cs : fixed some relationship between
541 ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
542 See new tests more details.
543 * XmlWriter.cs : it could reuse XmlTextWriter.ctor(TextWriter,
544 XmlWriterSettings). It also resulted in dropping several internal
545 members in XmlTextWriter.
547 2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
549 * XmlReaderSettings.cs : in copy constructor, copy (dispatch)
550 validation event as well. Add OnValidationError() to be invoked
551 by other internal stuff to raise the validation event.
553 2006-11-13 Michael Meeks <michael.meeks@novell.com>
555 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs:
556 pass the XmlResolver through to the GetStream impl.
558 2006-10-30 Atsushi Enomoto <atsushi@ximian.com>
560 * XmlTextReader2.cs : if DTD does not exist, do not try to resolve
561 entity from null DTD (caused NRE). Fixed bug #79620.
563 2006-10-27 Atsushi Enomoto <atsushi@ximian.com>
565 * DTDReader.cs : some parameter entity expansions were not done.
568 2006-09-27 Atsushi Enomoto <atsushi@ximian.com>
570 * XmlTextWriter2.cs : null arg check.
572 2006-09-26 Atsushi Enomoto <atsushi@ximian.com>
574 * XmlDeclaration.cs :
575 Removed bogus return statement in Value. Fixed bug #79496.
577 2006-09-21 Atsushi Enomoto <atsushi@ximian.com>
579 * XmlNameEntryCache.cs : It should expand temporary buffer even at
580 initial state. Fixed bug #79468.
582 2006-09-19 Atsushi Enomoto <atsushi@ximian.com>
584 * XmlElement.cs : for non-atomized names, alter null prefix with "".
587 2006-09-04 Atsushi Enomoto <atsushi@ximian.com>
589 * XmlReader.cs : ReadContentAsString() and its family should allow
590 attribute node. Fixed bug #79268.
592 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
594 * XmlTextWriter2.cs : expect atomized names only when it is
595 appropriate. Fixed bug #79047.
597 2006-08-26 Atsushi Enomoto <atsushi@ximian.com>
599 * XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
600 so that it could fill default and fixed attributes. This ends up
601 to fix bug #79163 (it fills fixed "xmlns" attribute and thus
602 the node's namespace URI becomes that of glade-2.0).
604 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
606 * XmlEntity.cs, XmlEntityReference.cs, XmlNode.cs :
607 create entity content only when its children is being accessed.
608 It results differently when there is no actual reference in the
609 document - an invalid entity value (when it is used to create
610 child nodes) is ignored unless a code tries to access the Value
611 of an XmlEntity. Fixed bug #79091
612 * DTDReader.cs : the fix above uncovered another bug (ibm66n03.xml).
613 Check illegal reference name in literal entity value.
615 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
617 * XmlTextReader.cs, XmlTextReader2.cs, DTDReader.cs :
618 (ResolveExternalEntityReplacementText) need to skip text
619 declaration in external entities. To make it possible internalize
620 SkipTextDeclaration() in XmlTextReader(2). Fixed bug #79090.
622 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
624 * XmlTextReader2.cs : Check recursive entity reference.
625 Fixed bug #79085. It makes W3C standalone tests on NET_2_0 working.
627 2006-08-14 Atsushi Enomoto <atsushi@ximian.com>
629 * XmlTextReader.cs : When a whitespace node comes after a text
630 declaration in XML external entity (i.e. .ctor() with
631 XmlNodeType.Element), it contained extra value character ('<').
633 2006-08-10 Atsushi Enomoto <atsushi@ximian.com>
635 * XmlTextWriter2.cs : more indentation fixes. Now I believe it is
636 almost MS compat, but it won't help poor Mike.
638 2006-08-07 Atsushi Enomoto <atsushi@ximian.com>
640 * XmlTextWriter2.cs : WriteBinHex() is allowed at Attribute state.
643 2006-07-28 Atsushi Enomoto <atsushi@ximian.com>
645 * XmlTextWriter2.cs : fixed some indentation bugs: comments and PIs
646 should not cause indentation override like text, cdata and
648 Fixed some error messages on node kind.
649 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs : removed old code.
650 (I don't want to remove old great code but it confused mike today.)
652 2006-07-26 Atsushi Enomoto <atsushi@ximian.com>
655 For DTD validator, call to SetSchemas() makes no sense.
656 * XmlValidatingReader.cs : now it internally holds old
657 XmlSchemaCollection instead of new XmlSchemaSet, to make
658 XmlSchemaSet.SchemaCollection unneccessary.
659 Removed SetSchemas() since it is now extraneous because of the
660 XmlReaderChange above.
662 2006-07-25 Atsushi Enomoto <atsushi@ximian.com>
664 * XmlConvert.cs : TimeSpan conversion for TimeSpan.MinValue was
667 2006-07-19 Atsushi Enomoto <atsushi@ximian.com>
669 * XmlReader.cs : In Create(), support validation flags for DTD.
670 * DTDValidatingReader2.cs : when NET_2_0 and ProcessIdentityConstraints
671 is false, skip ID validation.
673 2006-06-26 Atsushi Enomoto <atsushi@ximian.com>
675 * XmlReader.cs : when Create() received string url, it should set
676 XmlTextReader2.CloseInput always true. Fixed bug #78706.
678 2006-06-08 Atsushi Enomoto <atsushi@ximian.com>
680 * XmlTextWriter2.cs : if an attribute being written has the same
681 non-empty namespace URI as current default namespace, its prefix
682 should be written. Fixed bug #78598.
684 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
686 * XmlAttribute.cs : (WriteTo) when the namespace URI is empty,
687 always use empty string for prefix.
689 2006-04-27 Geoff Norton <gnorton@customerdna.com>
691 * XmlDocument.cs: Move back to the element after
692 reading an attribute. This mimics Microsofts behaviour.
694 2006-04-21 Atsushi Enomoto <atsushi@ximian.com>
696 * XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
697 rejected after writing some content. I totally disagree on that
698 it should be allowed, but here is the fix.
700 2006-04-14 Atsushi Enomoto <atsushi@ximian.com>
702 * XmlReader.cs : ReadElementContentAsObject() incorrectly rejected
703 the argument type System.Object.
705 2006-04-10 Atsushi Enomoto <atsushi@ximian.com>
707 * XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
708 and root nodes instead of dispatching to ReadSubtree().
710 2006-04-06 Atsushi Enomoto <atsushi@ximian.com>
712 * XmlReader.cs : ReadElementContentAsXXX() did not consume empty
715 2006-04-05 Atsushi Enomoto <atsushi@ximian.com>
717 * XmlWriter.cs : Create(StringBuilder,XmlWriterSettings) was missing
718 settings argument to pass another .ctor().
719 * XmlWriterSettings.cs : set_NewLineChars() should reject null.
721 2006-04-03 Boris Kirzner <borisk@mainsoft.com>
722 * XmlException.cs: fix .net soap serialization compatibility.
724 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
726 * XmlNameEntry.cs XmlNameEntryCache.cs :
727 Added atomization support for prefixed names.
728 Inspired by Joshua Tauberer's patch.
729 * XmlElement.cs XmlAttribute.cs : use above.
731 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
733 * XmlReader.cs : in XmlReader.Create() ValidationType Auto and XDR
734 are simply ignored (it was found on running NvdlValidatingReader
737 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
739 * DTDValidatingReader.cs : avoid NullReferenceException. Input
740 XmlReader might not be IHasXmlParserContext.
742 2006-03-08 Atsushi Enomoto <atsushi@ximian.com>
744 * XmlReader.cs: ReadContentAsXXX() just stops at start element,
745 without rejecting it as an error.
746 ReadElementContentAsXXX() rejects child element nodes.
748 2006-02-28 Atsushi Enomoto <atsushi@ximian.com>
750 * XmlElement.cs : (WriteTo) use IsEmpty to determine which to use:
751 WriteEndElement() and WriteFullEndElement(). Fixed sys.security
754 2006-02-24 Atsushi Enomoto <atsushi@ximian.com>
756 * XmlTextWriter2.cs :
757 WriteRaw() has stupid second arg. Fixed bug #77623.
758 WriteString() should raise an error when it is called immediately
759 after WriteStartDocument().
761 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
763 * XmlTextWriter2.cs : WriteChars() should allow Attribute state.
765 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
767 * XmlChar.cs : (IndexOfInvalidChar) fixed surrogate pairs handling.
768 They were always regarded as invalid.
769 * XmlTextWriter2.cs : seems like MS XmlTextWriter outputs invalid
770 characters as character references. It totally does not make sense
771 but corcompare depended on that behavior.
773 This "compatibility" fix causes 10% or more performance loss!!!
775 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
777 * XmlTextWriter2.cs : (WriteStartAtribute) more == removal.
778 * XmlNode.cs : (get_InnerText) reduce extra StringBuilder creation.
780 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
782 * XmlTextWriter2.cs : (WriteStartAttribute) reduced string == string.
784 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
786 * XmlDocument.cs : (ReadNodeCore) not public.
788 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
790 * XmlTextWriter2.cs : (CloseStartElement)
791 Avoid ArrayList.Clear() and culture-sensitive Contains().
793 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
795 * XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
796 which discards "overriden" namespaces.
797 * XmlTextWriter2.cs : fresh implementation.
798 - The source structure is simplified and cleaner.
799 - When outputting escaped string, output directly to TextWriter.
800 - roughly 20% performance improvement.
802 (Also fixed previous perf. evaluation excess in ChangeLog.)
804 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
806 * XmlElement.cs : (WriteTo) make use of HasAttributes. Remove extra
807 check. 5% speed improvement.
809 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
811 * DTDValidatingReader2.cs : added Source XmlReader property for
812 XsdValidatingReader use (see XsdValidatingReader change as well).
814 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
816 * EntityResolvingXmlReader.cs, XmlNodeReader2.cs, XmlTextReader2.cs :
817 in get_NodeType() entity reader existence check is faster.
818 * DTDValidatingReader2.cs : IsDefault could be avoided.
820 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
822 * XmlNodeReaderImpl.cs : optimized Depth.
824 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
826 * XmlValidatingReader.cs : reducing layered ReadState invocation
827 results in 10% speed up.
829 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
831 * XmlNodeReaderImpl.cs : Reimplemented Read(). Points are:
832 - reduced call to NextSibling which is very unlikely to be inlined
833 - reorganized conditioning to avoid extra check
834 - added description on each returning branch.
835 - And then, removed unused code.
836 It is 1.5x faster than before.
838 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
840 * XmlElement.cs : NextSibling could be effectively computed using
841 LastLinkedChild, beyond previous XmlLinkedNode optimization.
843 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
845 * XmlLinkedNode.cs : In NextSibling, use LastChild directly.
846 It improves NextSibling performance in bulky document.
848 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
850 * XmlNodeReaderImpl.cs : do not compute ownerLinkedNode, just store
851 it in Read(). Simply use state field in EOF. They result in 20%
852 perf. boost. Expanding EOF also improved performance by 2-3%
853 (mono --optimize=inline might work in the later stage).
855 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
857 * DTDValidatingReader2.cs : more refactoring. Split ReadContent()
858 into some methods. Reduced some extra MoveToElement().
860 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
862 * DTDValidatingReader2.cs : more refactoring. Removed and simplified
863 some error check. String += would be enough for entity-reference-
864 mixed attributes which rarely happen, so simplify the code.
865 Added comments on how the fields are used.
867 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
869 * DTDValidatingReader2.cs : attribute node simplification. It now
870 stores attribute node slots, including default attributes for
873 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
875 * DTDValidatingReader2.cs, EntityResolvingXmlReader.cs :
876 new files for refactoring DTD validating reader. As the first stage,
877 it splits entity handling process from DTD validation step.
879 (DTDValidatingReader.cs will be removed at some stage).
881 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
883 * DTDObjectModel.cs : entity resolution method will be used in
884 the next DTD validating reader in 1.x.
886 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
888 * IHasXmlChildNode.cs :
889 New internal interface to hold LastLinkedChild.
890 * XmlNodeListChildren.cs XmlEntity.cs XmlElement.cs XmlAttribute.cs
891 XmlLinkedNode.cs XmlEntityReference.cs XmlNode.cs
892 XmlDocumentFragment.cs XmlDocument.cs : use it. It minimizes memory
893 consumption in XmlText, XmlWhitespace, XmlComment etc.
895 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
897 * XmlChar.cs : added IndexOfNonWhitespace() and IndexOfInvalid() (not
899 * NewLineHandling.cs : prepared to be used internally in 1.x.
901 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
903 * XmlDocument.cs XmlTextReader.cs : in ReadNode(), we can avoid
904 extraneous whitespace node creation for XmlTextReader by setting
905 WhitespaceHandling.Significant when PreserveWhitespace is false.
907 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
909 * XmlTextReader.cs : atomize whitespace values. It effectively saves
910 memory consumption when an input XML is indented.
912 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
914 * XmlTextReader.cs : When "Significant" is assigned to
915 WhitespaceHandling, it should ignore non-significant whitespaces.
917 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
919 * XmlWriter.cs : (WriteElementString and WriteAttributeString)
920 Skip empty string output.
922 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
924 * XmlTextWriter.cs : WriteRaw("") is not simply ignored but process
925 state check and closes open tag.
927 2006-02-11 Atsushi Enomoto <atsushi@ximian.com>
930 Avoid extra AppendValueChar() in ReadWhitespace().
932 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
934 * XmlTextReader.cs : ReadTextReader() is now assured to have current
935 node content, except for Text, CDATA and Comment. ReadName() does
936 not use nameBuffer and reuse peekChars.
938 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
940 * XmlTextReader.cs : eliminated currentTagBuffer. XmlDeclaration is
941 now once read as PI and then re-parsed from Value. DTD internal
942 subset is now parsed as usual "value".
944 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
946 * XmlTextReader.cs : Expect() could be written inline and it could
947 provide better information. ReadEndTag() could use Expect() instead
950 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
952 * XmlTextReader.cs : on ReadEndTag() we can avoid NameTable.Add().
953 Store name, local name and prefix in the stack instead of just name
954 and reuse them for EndElement.
956 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
958 * XmlDocumentNavigator.cs : make use of HasAttributes (avoid possible
959 XmlAttributeCollection creation).
961 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
963 * XmlTextReader.cs : no need to call Clear() for each attribute value.
965 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
967 * XmlDocument.cs : reverted most of the previous changes. It somehow
968 broke System.Data tests.
970 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
972 * XmlDocument.cs, XmlAttribute.cs, XmlElement.cs : Avoid unnecessary
973 name checks in CreateElement() and CreateAttribute().
974 get_DocumentType() could be stopped when the iterated child node
975 is the document element.
976 * XmlNode.cs : removed commented lines.
977 * XmlNameEntry.cs : hash code for a name entry is mostly identical by
978 its local name, so avoid extraneous GetHashCode() especially on
981 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
983 * XmlReader.cs : ReadOuterXml() returns meaingful value only for
984 element and attribute. ReadInnerXml() does not have to create
985 XmlTextWriter for empty elements.
987 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
989 * XmlNodeReader2.cs XmlException.cs XmlReader.cs XmlTextReader.cs
990 XmlWriter.cs XmlTextWriter.cs XmlValidatingReader.cs
991 XmlNodeReaderImpl.cs DTDValidatingReader.cs XmlSecureResolver.cs:
992 cleaning up obsolete NET_1_0 code.
994 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
996 * XmlTextWriter.cs : avoid case-insensitive String.Compare().
997 Use array for openElements rather than ArrayList.
999 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
1001 * XmlElement.cs, XmlAttribute.cs :
1002 Avoid ChildNodes.Count and use FirstChild/NextSibling.
1004 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
1006 * XmlNode.cs, XmlIteratorNodeList.cs :
1007 Now we can enable XmlIteratorNodeList again (mcs, incorrectly
1008 removing nodes in the node list, was fixed).
1010 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
1012 * XmlDocument.cs : in ReadNode() to consume element node, switched
1013 to MoveToAttribute(int) since MoveToNextAttribute() was somehow
1014 not working fine. It is needed to avoid Sys.Data test breakage
1015 and anything else should be fixed indeed.
1017 Fri Jan 27 20:39:48 CET 2006 Paolo Molaro <lupus@ximian.com>
1019 * XmlTextReader.cs, XmlChar.cs: more tweaks and speedups.
1021 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1023 * XmlTextReader.cs : optimization patch by Paolo.
1024 Fast path optimization in PeekChar().
1025 Avoid double-evaluation of PeekChar() and ReadChar() by new
1028 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1030 * XmlNode.cs : disabled XmlIteratorNodeList optimization. It caused
1031 some kind of regression under mcs/tests/xml-025.cs.
1033 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1035 * XmlAttributeCollection.cs :
1036 Replaced all Nodes.Count with Count (it could avoid extraneous
1037 ArrayList creation in XmlNamedNodeMap). ID attribute adjustment
1038 was extraneously done against all attribute nodes and thus there
1039 was a plenty of call to Value.
1040 * XmlNamedNodeMap.cs : added comment on SetNamedItem() W3C spec
1043 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1049 Added internal AppendChild() override that omites node type
1050 checking, and used it in many places.
1052 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1054 * XmlDocument.cs : optimized ReadAttributeNode() to not call
1055 MoveToAttribute() unneccesarily (call it only when ReadNode() is
1056 called on an attribute node).
1058 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1061 in get_InnerText(), avoid extraneous StringBuilder creation.
1063 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1065 * XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
1066 It does not iterate all nodes in advance.
1067 * XmlNode.cs : use XmlIteratorNodeList in SelectNodes().
1069 2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
1071 * XmlWriter.cs : Dispose() is protected.
1073 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
1075 * XmlNamedNodeMap.cs : lazily create internal ArrayList. Thanks to
1076 Joshua Tauberer for the hint.
1078 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
1080 * XmlConvert.cs : ToString(TimeSpan) should return valid duration
1081 for TimeSpan.Zero, rather than "P". Fixed bug #77350
1083 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
1085 * XmlNameEntryCache.cs XmlNameEntry.cs :
1086 Made name entry fields as not read-only. Added Update() to reset
1087 members. Its semantics of Equals() is changed.
1088 Now entry cache is based on Hashtable rather than ArrayList.
1089 It saves heavy iteration in ArrayList.
1091 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
1093 * XmlNameEntryCache.cs XmlNameEntry.cs XmlDocument.cs :
1094 Add Hash field to find name entry quickly.
1095 In XmlNameEntryCache make use of name table (it is totally
1096 unused there though).
1098 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
1100 * XmlConvert.cs : handle Ticks. Fixed bug #77252.
1102 2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
1104 * XmlTextWriter.cs : Fixed bug #77082.
1105 When the state was Start, after WriteProcessingInstruction() and
1106 WriteWhitespace() change it to Prolog.
1107 After WriteDocType() set state to WriteState.Element.
1109 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
1111 * XmlTextWriter.cs : Do not local duplicate of automatically-created
1112 prefixes (i.e. check local autocreated prefixes other than
1113 namespaces from ancestors). Fixed bug #77086 and #77087.
1115 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
1117 * XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
1118 ArgumentException in WriteNmTokenInternal().
1120 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
1122 * XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
1123 such invalid "xml" prefix which is being mapped to different
1124 namespace URI than the predefined one.
1125 Removed comment that does not make sense.
1126 * XmlNamespaceManager.cs : IsValidDeclaration() could be private.
1127 Added some comments.
1129 2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
1131 * DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an
1132 attribute is #IMPLIED.
1134 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
1136 * XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
1137 ReadSubtree() for non-element content since they are not allowed
1138 in ReadSubtree() (but allowed here).
1140 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
1142 * XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
1143 nodes as target string nodes as well as other text nodes.
1145 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
1147 * XmlValidatingReader.cs : ReadTypedValue() was not working with
1148 non-XmlSchemaDatatype types.
1150 2006-01-05 Gert Driesen <drieseng@users.sourceforge.net>
1152 * XmlTextWriter.cs: Modified WriteWhitespace to throw ArgumentException
1153 if value is null or zero-length string. Modified WriteNmToken to throw
1154 ArgumentException if name is null or zero-length string. Cosmetic
1155 change to WriteStringInternal.
1156 * XmlElement.cs: In 2.0 profile, do not throw ArgumentNullException
1157 if new value for Prefix is null.
1159 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
1161 * XmlTextWriter.cs : when namespaceURI is String.Empty, Prefix
1162 should be just ignored (it is likely to happen that DOM nodes
1163 with empty namespace URI are specified non-empty prefix by
1164 users, which had better be just ignored). Fixed bug #77095.
1166 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
1168 * XmlElement.cs : patch for Prefix property by Vorobiev Maksim.
1169 - null should cause ArgumentNullException.
1170 - "" should not raise an error.
1171 - throws ArgumentException when it is readonly.
1173 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
1175 * XmlTextWriter.cs : When xml:space or xml:lang attribute was
1176 directly written without an element, it caused ArgumentOutOfRange.
1179 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
1181 * XmlTextWriter.cs : (WriteStartAttribute) set prefix as "xmlns" when
1182 namespaceURI is that of xmlns attributes. Fixed bug #77083.
1184 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
1186 * DTDObjectModel.cs : (CreateXsdParticle) element particle was
1187 missing occurence indicators.
1189 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
1191 * DTDObjectModel.cs : some fixes on GetXmlSchema()
1192 - make generated schema cleaner.
1193 - enumeration was missing for attribute type.
1194 * XmlTextReader.cs, XmlTextReader2.cs : added tiny notes for dtd2xsd.
1196 2005-12-15 Konstantin Triger <kostat@mainsoft.com>
1198 * XmlTextWriter.cs: allow null string in WriteCData.
1200 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1202 * XmlNode.cs : (GetNamespaceOfPrefix) return const xml/xmlns URIs
1205 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1207 * XmlDocumentNavigator.cs : added UnderlyingObject as to behave as
1210 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1212 * XmlNode.cs : under 2.0 xml/xmlns are treated as special cases in
1213 GetNamespaceOfPrefix()/GetPrefixOfNamespace() (but it still does not
1214 implement IXmlNamespaceResolver, bummer).
1216 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1218 * XmlDocument.cs : changed some exception types.
1219 * XmlDocumentNavigator.cs : added 2.0 SchemaInfo.
1221 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
1223 * XmlTextReader.cs : 1.x build fix.
1225 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
1227 * XmlTextReader.cs : when XmlReader.Create() creates this instance,
1228 don't expect strict text declaration. Check SkipTextDeclaration()
1231 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
1233 * XmlReader.cs : fixed several misconception in MoveToNextSibling().
1234 It should check its ReadState to avoid infinite loop.
1236 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
1238 * XmlException.cs : added another .ctor() overload that takes both
1239 IXmlLineInfo and innerException.
1240 * XmlQualifiedName.cs : added Parse() overload that takes XmlReader
1241 (since XmlReader is not IXmlNamespaceResolver anymore).
1242 * XmlReader.cs : made several fixes on 2.0 ReadContentAs(),
1243 ReadElementContentAs() and all of its variants.
1245 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
1247 * XmlInputStream.cs :
1248 Added Encoding property on NonBlockingStreamReader
1249 * XmlTextReader.cs :
1250 set Encoding property when it proceeds to xml declaration.
1252 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
1254 * XmlReader.cs : ReadToDescendant() should work when its ReadState is
1257 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
1259 * XmlChar.cs : removed incorrect comment.
1260 * XmlReader.cs : Create() clones XmlReaderSettings (if supplied).
1261 For wrapped XmlReader, check ConformanceLevel to be consistent.
1262 * XmlTextReader.cs, XmlTextReader2.cs : added get_Conformance for
1263 internal use. Removed unused fields.
1264 * XmlInputStream.cs : updated NonBlockingStreamReader to the latest
1265 StreamReader (it is almost a copy).
1267 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1269 * XmlTextReader.cs : avoid Char.IsSurrogate() and do it inside
1270 PeekChar(), which improves notable performance.
1272 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1274 * XmlReaderSettings.cs : Schemas will be created only when it is
1277 2005-12-08 Andrew Skiba <andrews@mainsoft.com>
1279 * IXmlNamespaceResolver.cs: delete TARGET_JVM,
1280 no need to mangle the name
1282 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1284 * Driver.cs, Profiler.cs, XmlQualifiedNameTable.cs :
1287 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1289 * XmlReaderSettings.cs : thanks to idiotic MS design,
1290 AllowXmlAttributes is turned on by default.
1292 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1294 * XmlReaderSettings.cs :
1295 set_Schemas() is fixed in 2.0 RTM (it just works).
1296 * XmlResolver.cs : throw ArgumentNullException instead of
1297 ArgumentException when both base and relative urls are null.
1299 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1301 * XmlReaderSettings.cs : ProhibitDtd is set as default.
1302 * XmlWriterSettings.cs : no set_OutputMethod.
1304 2005-11-30 Konstantin Triger <kostat@mainsoft.com>
1306 * IXmlNamespaceResolver.cs: TARGET_JVM namespace change.
1308 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1310 * XmlInputStream.cs: fixed Initialize method to be able
1311 to read unicode file without BOM. TARGET_JVM only.
1313 2005-11-14 Atsushi Enomoto <atsushi@ximian.com>
1315 * XmlNodeReader.cs : removed historical one.
1317 2005-11-10 Atsushi Enomoto <atsushi@ximian.com>
1319 * XmlReader.cs, XmlNode.cs :
1320 [DebuggerDisplay] are not worthy of existing.
1322 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1324 * XmlTokenizedType.cs, XmlNodeOrder.cs : so those enums happen to
1325 have [Serializable] in .NET 1.x, and removed in 2.0 (enums are
1326 anyways serializable, so those attributes do not make sense).
1328 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1330 * XmlValidatingReader.cs : added CanReadBinaryContent.
1331 * XmlTextReader.cs, XmlTextReader2.cs : GetNamespacesInScope() are
1332 now both public and private (i.e. hush IsVirtual).
1333 * XmlWriterSettings.cs, XmlWriter.cs, XmlTextWriter.cs :
1334 NormalizeNewLines vanished.
1336 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1338 * XmlReader.cs : MoveToAttribute(int) is virtual in NET_2_0.
1340 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1342 * XmlConvert.cs : implemented VerifyTOKEN().
1344 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1346 * XmlConvert.cs : VerifyNCName() and VerifyName() throws
1347 ArgumentNullException for "".
1349 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1351 * XmlReader.cs : dependent XmlSchemaValidationFlags fix.
1352 Added ReadElementContentAsObject() and ReadContentAsObject().
1353 * XmlReader.cs, XmlTextReader.cs :
1354 LookupNamespace(string,bool) is now private.
1355 * XmlReader.cs, XmlNode,cs :
1358 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1360 * XmlElement.cs, XmlCDataSection.cs, XmlText.cs, XmlWhitespace.cs,
1361 XmlSignificantWhitespace.cs : added ParentNode overrides (actually
1362 they don't make sense since it just calls base.)
1363 * XmlNode.cs, XmlDocument.cs : changed .NET 2.0 CreateNavigator() impl
1364 to match signature and skip OwnerDocument check in XmlNode (since
1365 it is overriden). Maybe MS does not have ownerDocument as a field and
1366 costs too much on OwnerDocument property.
1367 Added missing bits in XmlDocument.
1369 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1371 * XmlAttribute.cs : added new overrides in 2.0 RTM (this scarcely
1372 makes sense without real optimization though).
1373 * XmlDocument.cs, XmlElement.cs, XmlNode.cs : avoid ChildNodes and
1374 save extra XmlNodeList creation cost.
1376 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1378 * XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
1379 * XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
1380 ReadTypedValue() is removed.
1381 * XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
1382 * XmlWriter.cs : Settings is virtual.
1384 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1386 * XmlDocumentNavigator.cs : now MoveToFirst() invokes internal
1389 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1391 * XmlTextWriter.cs : oops, so WriteState.Error is NET_2_0 only.
1393 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1395 * XmlTextWriter.cs : (Error state check) actually I need to set Error.
1397 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1399 * XmlTextWriter.cs : throw InvalidOperationException if any of
1400 WriteBlah() methods were invoked at error state.
1402 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1404 * XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
1405 default namespace was returning "" instead of null. It didn't check
1406 empty namespace URI for non-empty prefixes.
1408 2005-10-07 Joshua Tauberer <tauberer@for.net>
1410 * XmlTextReader.cs: SkipTextDeclaration would not accept processing
1411 instructions that began with the string 'xml', e.g. rejecting
1414 2005-10-08 Gert Driesen <drieseng@users.sourceforge.net>
1416 * XmlAttribute.cs: InnerText and InnerXml do not override getters in
1417 NET_2_0. Removed extra CLSCompliant attribute on SchemaInfo.
1418 * XmlReaderSettings.cs: Marked sealed.
1420 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
1422 * XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
1423 digits for "second" were not exactly 3. Fixed bug #76328.
1425 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
1427 * XmlReader.cs : Name is virtual in NET_2_0.
1429 2005-10-03 Atsushi Enomoto <atsushi@ximian.com>
1431 * XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
1432 added supprot for NormalizeNewLines.
1433 NewLineOnAttributes is considered only when Indent is true.
1435 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
1437 * XmlAttribute.cs, XmlDocument.cs : check id table updates when
1438 XmlAttribute.set_Value() was invoked. Fixed bug #76311.
1440 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
1442 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs :
1443 XmlReader.Create() with string url argument are not working because
1444 of incorrect choice of the .ctor().
1446 2005-09-28 Atsushi Enomoto <atsushi@ximian.com>
1448 * XmlNodeReaderImpl.cs : when the source node was not a document and
1449 it is an empty element, Read() was incorrectly moving to the parent
1450 of the source node. Patch by Csaba Halasz. Fixed bug #76260.
1452 2005-09-27 Atsushi Enomoto <atsushi@ximian.com>
1454 * XmlTextReader.cs : surrogate computation is incorrect. Fixed bug
1455 #76247. Patch by Brion Vibber.
1457 2005-09-26 Atsushi Enomoto <atsushi@ximian.com>
1459 * DTDValidatingReader.cs : Namespace manager was not handled correctly.
1460 Now it does the same as XmlTextReader does. Fixed bug #76234.
1462 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
1464 * XmlNodeChangedEventArgs.cs: Only make ctor publicly available
1465 in NET_2_0. Fixed API compatiblity with .NET 1.1.
1466 * XmlOutputMethod.cs: Fixed values of enum fields to match MS.NET.
1467 Only available in .NET 2.0.
1469 2005-09-25 Atsushi Enomoto <atsushi@ximian.com>
1471 * XmlReader.cs, XmlReaderSettings.cs, XmlDocument.cs:
1472 XmlSchemaValidationFlags updates.
1474 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1476 * XmlWriterSettings.cs : true NET_2_0 updates.
1478 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1480 * XmlOutputMethod.cs : new file.
1481 * XmlWriter.cs, XmlValidatingReader.cs, XmlReaderSettings.cs,
1482 XmlUrlResolver.cs, XmlWriterSettings.cs :
1483 more NET_2_0 updates.
1485 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1487 * XmlNodeReader2.cs, XmlReader.cs,
1488 XmlTextReader.cs, XmlTextReader2.cs,
1489 XmlNodeChangedEventArgs.cs, XmlElement.cs,
1490 XmlNode.cs, XmlDocument.cs :
1491 updated NET_2_0 API.
1493 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
1495 * XmlTextReader.cs : when there is a heading half of surrogate at the
1496 end of read buffer, it didn't treat it as a surrogate.
1499 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
1501 * XmlTextWriter.cs : for surrogate pair, output character reference
1502 as a single character instead of two reference pairs. Fixed bug #76095.
1503 Patch by Brion Vibber.
1505 2005-08-31 Sebastien Pouliot <sebastien@ximian.com>
1507 * XmlDocument.cs: Added an InheritanceDemand for Unrestricted on
1508 CreateDocumentType and ReadNode methods.
1509 * XmlException.cs: Added a Demand for SerializationFormatter on
1510 GetObjectData method.
1511 * XmlResolver.cs: Added an InheritanceDemand for Unrestricted on
1513 * XmlSecureResolver.cs: Fixed exception when creating evidences with
1514 an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy
1515 and PermitOnly if the security manager is enabled.
1516 * XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
1518 * XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on
1520 * XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted
1523 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1525 * DTDReader.cs : no need to skip text declaration for such entity
1526 declaration that has literal entity. It should not expand entities
1527 inside ResolveExternalEntityReplacementText().
1528 Finally fixed bug #51495.
1530 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1532 * XmlTextReader.cs, XmlTextReader2.cs : added internal .ctor() to
1533 receive both TextReader, XmlNodeType and BaseURI for entity
1534 resolution (though it would be removed later).
1535 * XmlParserInput.cs : Now to handle nested PE insertion and correct
1536 BaseURI, it internally holds a stack of "input source".
1537 * DTDObjectModel.cs,
1539 Required fixes for XmlParserInput.
1540 Handle BaseURI as expected. Added ActualUri for resolved actual
1541 source URI (to resolve nested entities). Pass ActualUri to internal
1542 XmlTextReader.ctor() in ResolveExternalEntityReplacementText()
1543 (well, yes I remember, it is problematic.)
1545 Incorrect Base URI handling bug (part of #51495) is fixed.
1547 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1549 * DTDReader.cs, XmlParserInput.cs :
1550 let's fix #51495. First of all, refactoring.
1552 2005-08-04 Atsushi Enomoto <atsushi@ximian.com>
1554 * XmlAttribute.cs : When there was only one child in attribute
1555 and it was an entity reference, set_Value() tried to set text value
1558 2005-08-03 Gert Driesen <drieseng@users.sourceforge.net>
1560 * XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
1561 * XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to
1562 RoundtripKind to match .NET 2.0 Beta 2.
1563 * XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
1564 in .NET 2.0 Beta 2, and is explicit interface implementation.
1565 * XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
1567 * XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
1569 * XmlValidatingReader.cs: GetNamespacesInScope returns generic
1570 IDictionary in .NET 2.0 Beta 2.
1571 * IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic
1572 IDictionary in .NET 2.0 Beta 2.
1573 * XmlNamespaceManager.cs: GetNamespacesInScope returns generic
1574 IDictionary in .NET 2.0 Beta 2.
1575 * XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic
1576 IDictionary in .NET 2.0 Beta 2.
1577 * DTDValidatingReader.cs: GetNamespacesInScope returns generic
1578 IDictionary in .NET 2.0 Beta 2.
1580 2005-07-14 Atsushi Enomoto <atsushi@ximian.com>
1582 * XmlTextWriter.cs : In WriteQualifiedName(), when there is open
1583 attribute, it calls LookupPrefix() and then if namespace was empty,
1584 it resulted in an exception. Fixed bug #75546.
1586 2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
1588 * XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
1589 to ISO 8601 and XSD datatypes 3.2.6.1).
1591 2005-06-27 Andrew Skiba <andrews@mainsoft.com>
1593 * DTDReader.cs : don't validate entity values, when the entry is
1594 redefined so it will be never used. Fixes valid-sa-086 test from W3C
1597 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1599 * XmlQueryDialect.cs : removed.
1601 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1603 * XmlWriter.cs : added Create(XmlWriter).
1604 * XmlValidatingReader.cs : added Read*AsBase64/BinHex().
1605 * XmlReaderSettings.cs : added obsolete annoyances to hush corcompare.
1607 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1609 * XmlTextReader.cs : use StringBuilder.ToString(int,int) when it does
1610 not have a large chunk of data, following Ben's idea.
1612 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1614 * XmlTextReader.cs : use StringBuilder to store character values; that
1615 saves 40% memory for large chunk of xml. Patch by Gonzalo.
1617 2005-06-22 Andrew Skiba <andrews@mainsoft.com>
1619 * XmlNode.cs : cosmetic fix - remove unnecessary argument from
1620 AppendChildValues function.
1622 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1624 * XmlTextReader.cs : normalization is not required to check character
1625 validity everywhere except for character reference.
1627 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1629 * DTDValidatingReader.cs : removed some extra IsDefault check (with
1630 the latse code default attributes are stored in hashtables anyways.)
1631 Fixup attribute namespaces _after_ xmlns attributse are filled.
1632 The latest change is not good that namespaceURI of a local attribute
1633 was incorrectly globally looked up (it should be always "").
1635 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1637 * XmlValidatingReader.cs : LookupNamespace() was trying to access to
1638 null reference to validatingReader.
1639 * DTDValidatingReader.cs : Fixed default xmlns* attribute handling.
1640 It used to be valid only at the declaring element.
1642 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1644 * DTDValidatingReader.cs : further text node fixes.
1645 - Cut out validation code from Text node case.
1646 - Now it does not use error-prone case transition but uses
1647 DocumentFragment 'vacant room' and fixed incorrect transition from
1649 - CDATA should be validated the same as Text is.
1651 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1653 * DTDValidatingReader.cs : whitespace nodes were incorrectly rejected
1654 inside non-mixed content model.
1656 2005-06-09 Andrew Skiba <andrews@mainsoft.com>
1658 * XmlConvert.cs : add TARGET_JVM for roundtrip bug
1660 2005-06-06 Atsushi Enomoto <atsushi@ximian.com>
1662 * XmlEntityReference.cs, XmlNode.cs : protected api fix.
1664 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
1666 * XmlEntityReference.cs, XmlNode.cs : For entity references, BaseURI
1667 resolution should be different from that of parent since they might
1668 differ. Patch by Andrew Skiba.
1670 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1673 make sure to close parser input before parser stack pop.
1674 * DTDValidatingReader.cs : ditto.
1675 * DTDObjectModel.cs : Fixed another incorrect null BaseURI check.
1677 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1679 * DTDValidatingReader.cs : Last BaseURI exposed this hidden bug via
1682 2005-05-30 Atsushi Enomoto <atsushi@ximian.com>
1684 * DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
1685 BaseURI which results in incorrect URI resolution.
1687 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1689 * DTDObjectModel.cs : For simple type restriction creation it failed
1690 when there is no enumerations (largely failed).
1692 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1694 * XmlImplementation.cs : added new NET_2_0 ctor.
1695 Let's check corcompare:-/
1697 2005-05-11 Atsushi Enomoto <atsushi@ximian.com>
1699 * DTDValidatingReader.cs : namespace storing was stupid.
1701 2005-05-10 Atsushi Enomoto <atsushi@ximian.com>
1703 * DTDValidatingReader.cs : since namespace declarations might be
1704 resolved differently due to entity handling, it holds its own set
1705 of declared namespaces. NamespaceURI and LookupNamespace() use it.
1707 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
1709 * XmlReader.cs : added ReadElementContentAsLong().
1710 * XmlWriter.cs : removed some obsolete WriteValue() overloads.
1712 IXmlNamespaceResolver.cs : removed deprecated 2.0 bits.
1713 * XQueryConvert.cs : obsolete (yeah, now XQuery should be hidden).
1715 2005-05-06 Atsushi Enomoto <atsushi@ximian.com>
1717 * XmlInputStream.cs : Now XmlStreamReader uses non-blocking TextReader
1718 that is mostly copied from StreamReader. It should fix bug #74161.
1720 2005-05-05 Atsushi Enomoto <atsushi@ximian.com>
1722 * XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
1723 XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
1724 DTDValidatingReader.cs : Removed most of "atomizedName" related
1725 stuff that are obsoleted in 2.0 beta2.
1726 * XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.
1728 2005-05-04 Andrew Skiba <andrews@mainsoft.com>
1730 * IXmlNamespaceResolver.cs : mangle the interface method names when
1731 compiling for TARGET_JVM
1733 2005-03-30 Atsushi Enomoto <atsushi@ximian.com>
1735 * XmlUrlResolver.cs : just return connected Stream instead of fully
1736 downloaded memory cache. Fix by Konstantin Triger.
1738 2005-03-24 Atsushi Enomoto <atsushi@ximian.com>
1740 * XmlWriter.cs : WriteQualifiedName() should check namespace validity
1741 (whether it is in scope or not).
1742 * XmlTextWriter.cs : When WriteQualifiedName() is invoked inside
1743 attribute and no matching namespace declaration, create prefix
1744 on demand. Code reused from WriteStartAttribute().
1746 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1748 * XmlValidatingReader.cs : create schema set on demand.
1750 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1752 * XmlParserInput.cs,
1755 DTDValidatingReader.cs : removed/commented out those warned code.
1757 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1759 * XmlDocumentNavigator.cs : overriden IsDescendant (default
1760 implementation extraneously clones).
1762 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1764 * DTDValidatingReader.cs : When expanding entities and there is a
1765 sequence of text nodes, its value was not returned.
1766 * XmlTextReader.cs : better invalid char error report for EOF.
1768 2005-03-09 Andrew Skiba <andrews@mainsoft.com>
1770 * XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
1771 surrogate calculations. This fixes bug 73513.
1773 2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
1775 * XmlParserInput.cs : silly mixed line endings :(
1777 2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
1779 * XmlTextWriter.cs : namespace declaration check for those which starts
1780 with 'x' 'm' 'l' should not be done here (it might be 'declared'
1782 * XmlNamespaceManager.cs : error message for "'xml' prefix for
1783 different namespace" is incorrect.
1785 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1787 * XmlDocument.cs : ugh, so I introduced extraneous reader.Read() in
1788 ReadNode() for EntityReference and it resulted in unexpected skip.
1789 * DTDValidatingReader.cs : On EndEntity, LocalName and Name should
1790 return the name of entity. Removed unused entityReaderNameStack.
1792 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1794 * DTDValidatingReader.cs : reverted one change in r40985. Entity stack
1795 is nothing to do with ReadAttributeValue().
1797 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1799 * DTDValidatingReader.cs : When there was actual attribute in source
1800 XmlReader, MoveToAttribute(i) did not move source reader as expected.
1802 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1804 * XmlDocument.cs : In ReadNode(), on EntityReference node, when
1805 XmlReader can resolve entity, it expands entity and apppend
1806 children into the entity reference. Patch by Konstantin Triger.
1808 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1810 * XmlTextWriter.cs : For duplicating namespace mapping, it should
1811 create another prefix without throwing an exception.
1813 2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
1815 * XmlTextWriter.cs : LookupPrefix() should not return those prefix
1816 that is overriden by another xmlns declaration.
1818 2005-02-26 Atsushi Enomoto <atsushi@ximian.com>
1820 * XmlEntity.cs : it was not returning SYSTEM ID when there is no
1822 * XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
1823 get_NodeType() resulted in loop.
1825 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1827 * XmlComment.cs, XmlNode.cs, XmlText.cs, XmlProcessingInstruction.cs,
1828 XmlEntityReference.cs, XmlSignificantWhitespace.cs, XmlAttribute.cs,
1829 XmlElement.cs, XmlEntity.cs, XmlCDataSection.cs :
1830 For those nodes that are created by Clone(), IsReadOnly is false.
1831 Patch by Konstantin Triger.
1833 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1835 * XmlDocumentNavigator.cs : iteratedNames array could be fixed and
1836 performance got improved. Patch by Konstantin Triger.
1838 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1840 * XmlAttribute.cs : MS does not reject non-NCName prefix. Patch by
1843 2005-02-24 Atsushi Enomoto <atsushi@ximian.com>
1845 * XmlTextWriter.cs : WriteString() should be valid when
1846 WriteStartDocument() was not called.
1848 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1850 * XmlNamespaceManager.cs : IsValidDeclaration was giving useless error
1853 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1855 * XmlDocumentNavigator.cs : it should virtually expand EntityReference,
1856 so refactored to handle both entity references and top level children.
1858 2005-02-22 Atsushi Enomoto <atsushi@ximian.com>
1860 * XmlTextReader.cs : XmlParserContext was not properly popped on
1861 the expected timing and thus had lost BaseURI, XmlSpace and XmlLang.
1862 * XmlInputStream.cs : XmlTextReader does not allow invalid utf-8
1865 2005-02-21 Atsushi Enomoto <atsushi@ximian.com>
1867 * DTDValidatingReader.cs : It should not skip whitespace and
1868 significant whitespace nodes unless it is expanding entities.
1869 * XmlDocumentNavigator.cs : Fixed NodeType that was returning
1870 incorrect type when there is a sequence of text/cdata/space nodes.
1872 2005-02-18 Atsushi Enomoto <atsushi@ximian.com>
1874 * XmlNamespaceManager.cs : Prefix "xml" is bound to the fixed
1875 namespace "http://www.w3.org/XML/1998/namespace", but it is not
1876 vice versa (i.e. we can use other prefixes for this namespace URI).
1878 2005-02-17 Atsushi Enomoto <atsushi@ximian.com>
1880 * XmlNode.cs : It does not have to iterate children to find argument
1881 node. Fixed exception type to ArgumentException. Patch by Andrew
1884 2005-02-16 Atsushi Enomoto <atsushi@ximian.com>
1886 * XmlAttribute.cs : just use InnerText for Value. Patch by Andrew
1888 * XmlConvert.cs : Handle null and empty strings for EncodeName(),
1889 EncodeLocalName() and EncodeNmToken(). Patch by Andrew Skiba.
1890 * NameTable.cs : usually tail of namespaces are rather different than
1891 head of them. Patch by Andrew Skiba.
1892 * XmlUrlResolver.cs : missing %20 handling. Patch by Andrew Skiba.
1894 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1896 * XmlAttribute.cs : For default attributes, WriteTo() writes nothing
1898 * DTDValidatingReader.cs : reduced indentation using Linus trick
1899 (it was too deep in nest).
1901 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
1903 * DTDValidatingReader.cs : Namespaces and prefixes are not properly
1904 handled (it incorrectly assumed DTD definitions and thus always
1905 assumed empty namespace/prefixes).
1907 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
1909 * DTDValidatingReader.cs : element name stack might be empty when the
1910 input XmlReader contains fragments. Patch by Andrew Skiba.
1912 2005-01-25 Martin Baulig <martin@ximian.com>
1914 * XmlNode.cs (XmlNode.SchemaInfo): Mark this as not CLS-compliant
1917 * XmlReaderSettings.cs (XmlReaderSettings.XmlResolver): Mark this
1918 as not CLS-compliant to avoid a CS3025.
1920 2005-01-18 Atsushi Enomoto <atsushi@ximian.com>
1924 XmlAttributeCollection.cs :
1925 Now reuse parentNode field for XmlAttribute.OwnerElement and
1926 reduce class allocation size.
1928 New class that represents a name triplet.
1929 XmlNameEntryCache.cs :
1930 New type to cache name entries.
1933 Replace name strings with name entry and save class allocation size.
1935 Add name entry cache field to document and reuse name entries that
1936 are already allocated.
1938 2005-01-17 Atsushi Enomoto <atsushi@ximian.com>
1940 * XmlNode.cs, XmlAttribute.cs : reverted the previous patch. It broke
1941 several nunit tests.
1943 2005-01-15 Ben Maurer <bmaurer@ximian.com>
1945 * XmlNode.cs (InnerText, AppendChildValues): Don't allocate a
1946 string in the case where nothing needs to be appended.
1948 * XmlAttribute.cs (BuildChildValue): Start out the string with
1949 `null' not `String.Empty'. String.Concat (null, blah) == blah,
1950 pointerwise. ie, there is no allocation. This makes it so that
1951 getting the value of an attribute is faster for the fast case.
1953 2005-01-13 Atsushi Enomoto <atsushi@ximian.com>
1955 * XmlResolver.cs : throw ArgumentException in ResolveUri().
1957 2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
1959 * XmlTextWriter.cs : WriteComment() was outputting extraneous EOL.
1961 2004-12-26 Atsushi Enomoto <atsushi@ximian.com>
1963 * XmlReader.cs : ReadElementContentAsBinHex() was calling ..AsBase64().
1964 * XmlValidatingReader.cs : In set_EntityHandling(), set that property
1965 of DTDValidatingReader.
1966 * XmlNodeReader2.cs,
1967 XmlNodeReaderImpl.cs : added simplified implementation that splits
1968 entity handling and anything else.
1969 * XQueryConvert.cs : implemented ShouldCheckValueFacets().
1970 Use Convert class instead of simple casts (check range).
1971 * XmlReaderSettings.cs : added SetSchemas() for XPathNavigator.
1973 2004-12-22 Atsushi Enomoto <atsushi@ximian.com>
1975 * XmlParserContext.cs : all the string properties must not be set as
1976 null. Thanks to Joshua.
1979 DTDReader.cs : XmlResolver.ResolveUri() may return null.
1981 2004-12-17 Atsushi Enomoto <atsushi@ximian.com>
1983 * XmlReaderBinarySupport.cs : added support class for base64/binhex
1984 reading that mostly automates those reader support.
1985 * XmlReader.cs : added CanReadBinaryContent, CanReadValueChunk,
1986 ReadContentAsBase64(), ReadElementContentAsBase64(),
1987 ReadContentAsBinHex(), ReadElementContentAsBinHex() and
1989 * XmlTextReader.cs : Now ReadBase64() and ReadBinHex() implementations
1990 are moved to XmlReaderBinarySupport. Added CanReadBinaryContent and
1991 CanReadValueChunk overrides. Call Binary.Reset() to enable them.
1992 * XmlTextReader2.cs : added CanReadBinaryContent, CanReadValueChunk.
1993 Added ReadContentAsBase64(), ReadElementContentAsBase64(),
1994 ReadContentAsBinHex(), ReadElementContentAsBinHex() (just because
1995 they are overriden in MS.NET).
1996 * XmlNodeReader.cs : added CanReadBinaryContent and CanReadValueChunk.
1997 Call Binary.Reset() to enable them.
1999 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
2002 Added DateTime related methods with serialization mode.
2004 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
2006 * XmlReader.cs : added MoveToFollowing().
2009 XmlAttribute.cs : added SchemaInfo support.
2010 * XmlDocument.cs : added Schemas and Validate().
2011 ReadNode() now copies xmlReader's SchemaInfo.
2012 * XmlNodeReader.cs : ditto (just reflects node's SchemaInfo).
2014 2004-12-15 Atsushi Enomoto <atsushi@ximian.com>
2017 Create() should assure NameTable!=null on creating XmlTextReader.
2018 Now use XmlSchemaValidatingReader for all xsd validation.
2019 * XmlTextReader2.cs :
2020 Don't use input reader's Settings. It is null.
2021 * XmlReaderSettings.cs : added XmlResolver.
2023 2004-12-14 Atsushi Enomoto <atsushi@ximian.com>
2025 * XmlReaderSettings.cs : XsdValidate and DtdValidate are now
2027 * XmlReader.cs : In Create(), use XmlSchemaValidatingReader for xsd
2030 2004-12-12 Zoltan Varga <vargaz@freemail.hu>
2032 * XmlTextReader.cs: Work around a compiler bug in csc 2.0 beta 1.
2034 2004-12-09 Atsushi Enomoto <atsushi@ximian.com>
2036 * DTDObjectModel.cs : implemented lightweight XmlSchema generator.
2038 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
2040 * XmlValidatingReader.cs : making smarter relationship between
2041 XsdValidatingReader.
2043 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
2045 * XmlException.cs : added SecurityPermissionAttributes.
2046 * XmlReaderSettings.cs,
2047 XmlReader.cs : added ValidationFlags and removed obsolete ones.
2049 2004-12-06 Atsushi Enomoto <atsushi@ximian.com>
2051 * XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
2052 ns is null, and don't lookup prefix for empty namespace.
2054 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2056 * XmlTextReader.cs: don't use \0 as buffer terminator.
2057 * XmlInputStream.cs: s/Array.Copy/Buffer.BlockCopy/.
2059 2004-11-30 Atsushi Enomoto <atsushi@ximian.com>
2061 * DTDReader.cs : Consideration on parameter entity was missing for
2062 attribute default value. Fixed bug #70008.
2064 2004-11-26 Atsushi Enomoto <atsushi@ximian.com>
2066 * XmlReader.cs : not fixage, just explicitly formatted code a bit.
2069 XmlAttributeCollection.cs,
2076 XmlDocument.cs : warning removal.
2078 2004-11-25 Atsushi Enomoto <atsushi@ximian.com>
2080 * XmlQualifiedNameTable.cs : oops, it was not implemented.
2082 2004-11-24 Atsushi Enomoto <atsushi@ximian.com>
2084 * XmlQualifiedName.cs : in 2.0 it is [Serializable].
2085 * XmlTextReader.cs : removed unused local variable.
2086 * XmlTextWriter.cs : Improved some exception messages.
2087 moved some private fields into #if NET_2_0.
2088 * XmlValidatingReader.cs : rename specifiedResolver to
2089 resolverSpecified and use it in internal get_Resolver().
2090 Added [Obsolete] for ReadTypedValue() whose base is obsoleted.
2092 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
2094 * XmlTextReader.cs : Now attribute normalization is handled on Read(),
2095 not on get_Value. This caused a problem when we use
2096 XmlValidatingReader that value is not always normalized expectedly.
2098 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
2100 * XmlReader.cs : removed old ReadValueAsXXX() and added new
2101 ReadContentAsXXX() and ReadElementContentAsXXX().
2102 * XmlTextReader.cs : removed old ReadValueAsXXX() (no overrides now).
2103 * XmlTextWriter.cs : added indentation on Comment nodes.
2104 * XmlDateTimeSerializationMode.cs : updated.
2105 * XmlResolver.cs : added 2.0 NameTable field.
2106 * ValidationType.cs : added ObsoleteAttributes on some members.
2108 2004-11-18 Atsushi Enomoto <atsushi@ximian.com>
2110 * XmlParserContext.cs : the fix was not checked in :(
2112 2004-11-17 Atsushi Enomoto <atsushi@ximian.com>
2114 * XQueryConvert.cs : moved from System.Xml.Query.
2116 2004-11-14 Atsushi Enomoto <atsushi@ximian.com>
2118 * XmlWriter.cs : after WriteAttributes(), argument XmlReader must
2119 move to element. This fixes bug #69350.
2121 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
2123 * XmlParserContext.cs : PushScope() was accessing list out of range.
2125 2004-11-09 Atsushi Enomoto <atsushi@ximian.com>
2127 * DTDValidatingReader.cs, XmlTextReader.cs :
2128 needed more changes wrt XmlException.
2130 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
2132 * DTDObjectModel.cs,
2138 Added support for 2.0 XmlException.SourceUri property. Improved
2139 exception handling to contain BaseURI everywhere in the parser.
2141 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
2143 * XmlTextReader2.cs : added. It is used to serve public API, plus
2144 entity handling support.
2146 * DTDObjectModel.cs,
2147 DTDValidatingReader.cs,
2149 XmlParserContext.cs,
2151 Implemented XmlTextReader.EntityHandling and ResolveEntity(). To
2152 implement them, XmlTextReader in 2.0 itself is in XmlTextReader2.cs
2153 and XmlTextReader.cs contains Mono.Xml2.XmlTextReader which is the
2154 same as 1.x XmlTextReader. XmlTextReader2 switches entity reader and
2155 source reader, and never handles tokenization.
2156 The reason for "Mono.Xml2" is to avoid large changes in constructor.f
2158 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
2160 * XmlAttribute.cs, XmlElement.cs : get_Name should consider name table.
2161 * XmlDocument.cs : use NameTable in Load() and LoadXml().
2162 * XmlReader.cs : In Create(), use NameTable in XmlReaderSettings.
2164 2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
2166 * XmlDocumentNavigator.cs : create rarely-used ArrayList later. This
2167 significantly improves XmlDocument-based XPath performance.
2169 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
2171 * XmlTextReader.cs : Manually expanded some of AppendValueChar() and
2172 XmlChar.IsWhitespace() which are on critical points on performance
2173 (marked as FIXME, but it depends on JIT).
2175 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
2177 * XmlTextReader.cs : Search xml:* attributes more efficiently.
2179 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
2181 * XmlTextReader.cs : Reduced NameTable.Add() for prefixed names. First,
2182 ReadName() now returns atomized LocalName and Prefix. Second, to
2183 avoid extraneous split, SetProperties() now takes prefix and
2184 localName that might be given from ReadName(). Third, removed
2185 FillNames(). This optimizes "namespace-aware and prefixed document"
2186 parsing 10-20% faster.
2188 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2190 * XmlTextReader.cs :
2191 With related to AddNamespace(), there was extra string.StartsWith()
2192 calls. Now AttributeTokenInfo.FillNames() is splitted into
2193 FillPrefixAndXmlns() and FillNamespace(), and AddNamespace() is done
2194 at FillPrefixAndXmlns().
2196 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2198 * XmlTextReader.cs :
2199 Reduces LookupNamespace() call in FillNames(). This improves 6-7%
2200 speedup in some scenario.
2201 Code refactory; Removed unused code. AddAttribute() is used only for
2202 DTD, so renamed to AddDtdAttribute(). For PUBLIC and SYSTEM ids,
2203 FillNames() is not required. Two SetProperties() are ambiguous, so
2204 renamed one (that takes TokenInfo) as SetTokenProperties().
2206 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2208 * XmlParserContext.cs : rewrote; especially to avoid XmlSpace boxing.
2210 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2212 * XmlTextReader.cs : LookupNamespace() don't have to be called in
2213 ReadStartTag() to check prefix, since NamespaceURI is filled in
2214 FillNames(). 10% performance up by avoiding this extra check.
2216 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2218 * XmlValidatingReader.cs : fixed incorrect recursion between
2219 indexer and GetAttribute().
2221 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2223 * DTDReader.cs, DTDValidatingReader.cs, XmlTextReader.cs :
2224 When XmlTextReader is created with NodeType Element or Attribute,
2225 skip possible text declaration (that might be used for resolving
2226 entities) that specifies text encoding. With this fix, bug #61274
2227 must be regarded as fixed.
2229 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2231 * XmlNodeReader.cs : Reimplemented ResolveEntity(). It does not use
2232 XmlTextReader trick anymore. XmlNodeReader itself is used instead.
2234 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2236 * XmlNodeReader.cs : for NET_1_0 ReadInnerXml(), just use
2237 XmlReader.ReadInnerXmlInternal(). It should work fine.
2238 Ditto for ReadOuterXml().
2240 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2242 * XmlNodeReader.cs : removed unused/unreachable code. Simplify
2245 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2247 * XmlDocument.cs, XmlNodeReader.cs, XmlTextReader.cs,
2248 XmlValidatingReader.cs : Those readers could just implement internal
2249 interface IHasXmlParserContext.
2250 * XmlTextReader.cs, XmlValidatingReader.cs : this[] disappeared in 2.0.
2251 (XmlReader has them as virtual.)
2252 * XmlReader.cs : ReadAsObject() disappeared.
2253 * XmlWriter.cs : WriteFromObject() disappeared.
2255 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2257 * XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
2258 * XmlNode.cs : dustclean.
2260 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2262 * XmlDocument.cs : use XPathEditableDocument again.
2263 * XmlNode.cs : To be compatible with XPathEditableDocument, it should
2264 not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.
2266 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2268 * XmlChar.cs, XmlConstructs.cs :
2269 Switched again, for reducing per-process memory consumption.
2270 * XmlInputStream.cs :
2271 Just 64 bytes of buffer would be enough, for example like
2272 <?xml version="1.0" encoding="iso-8859-15" standalone="yes" ?>
2274 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2276 * IXmlDataEvidence.cs : disappeared.
2277 * XmlConvertDateTimeSerializationMode.cs : incorrect filename. removed.
2278 * XmlDateTimeSerializationMode.cs : added
2279 * NewLineHandling.cs : added
2280 * IXmlNamespaceResolver.cs, XmlNamespaceManager.cs :
2281 now 'atomizedNames' is obsolete.
2282 * XmlReaderSettings.cs, XmlWriterSettings.cs :
2283 Should not be sealed. Should not be ICloneable.
2285 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2287 * XmlDocument.cs : XPathEditableDocument looks broken. Just reverted
2288 to fix 2.0 corcompare.
2290 2004-10-26 Atsushi Enomoto <atsushi@ximian.com>
2292 * XmlTextReader.cs : Don't create attribute Value string on Read()
2293 (i.e. create string when get_Value() is invoked.) This optimizes
2294 some kind of XmlTextReader usage significantly such as Skip().
2296 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
2298 * XmlConvertDateTimeSerializationMode.cs : added.
2299 * XmlConvertDateTimeOption.cs : removed.
2301 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
2304 For net_2_0, CreateNavigator() returns editable XPathNavigator.
2305 * XmlReader.cs, XmlTextReader.cs, XmlValidatingReader.cs :
2306 They do not implement IXmlDataEvidence anymore.
2308 2004-10-18 Atsushi Enomoto <atsushi@ximian.com>
2310 * XmlTextReader.cs :
2311 Fixed CheckCharacters setter that always set false.
2312 CheckCharacters check is also required for ReadText(). This fixes
2315 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
2317 * XmlTextReader.cs : Inside DTD, '<' character inside XML comment
2318 is regatded as invalid. This fixes bug #68410. (Error message was
2321 2004-10-14 Atsushi Enomoto <atsushi@ximian.com>
2323 * XmlWriter.cs : CreateTextWriter() is private.
2325 2004-10-09 Atsushi Enomoto <atsushi@ximian.com>
2327 * XmlNodeReader.cs : LookupPrefix() was only after 2.0.
2329 2004-10-08 Atsushi Enomoto <atsushi@ximian.com>
2331 * XmlNamespaceManager.cs : GetNamespacesInScope() caused
2332 IndexOutOfRangeException (miscounted indexes).
2334 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
2336 * XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
2337 For attribute nodes, it should not use WriteSubtree() which does not
2338 support attribute nodes.
2340 2004-09-20 Gert Driesen <drieseng@users.sourceforge.net>
2342 * XmlValidatingReader.cs: Added deprecation message.
2344 2004-09-14 Atsushi Enomoto <atsushi@ximian.com>
2346 * XmlTextWriter.cs : Close() should not Flush() when the output is
2347 already closed. bug #65918 is fixed.
2349 2004-09-12 Atsushi Enomoto <atsushi@ximian.com>
2351 * XmlTextWriter.cs : CloseOutput must be true by default.
2353 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2355 * XmlWriter.cs, XmlTextWriter.cs, XmlWriterSettings.cs :
2356 Implemented CheckCharacters and CloseOutput support.
2358 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2360 * XmlReader.cs : evidence is always provided.
2361 * XmlWriter.cs, XmlTextWriter.cs :
2362 added support for ConformanceLevel and OmitXmlDeclaration.
2364 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2366 * XmlTextReader.cs : Console.WriteLine() injected :(
2367 * XmlTextWriter.cs : It it partly supports XmlWriterSettings.
2368 * XmlWriter.cs : implemented Create().
2369 * XmlWriterSettings.cs : removed EncodeXmlBinary (deprecated).
2371 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2373 * XmlFactory.cs : removed (obsolete).
2375 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2377 * XmlNamespaceManager.cs : GetNamespacesInScope() ignored default
2378 namespace when scope is .ExcludeXml or .All.
2379 * XmlReader.cs : Implemented ValueType, SchemaInfo, ReadAsObject().
2380 Fixed ReadTypedValue() to call ReadValueAs().
2382 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2384 * XmlNamespaceManager.cs : Fixed GetNamespacesInScope() that returned
2385 inconsistent namespace pairs.
2387 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2389 * XmlReader.cs, XmlTextReader.cs :
2390 Added NET_2_0 CheckCharacters support.
2392 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
2394 * XmlNode.cs : GetEnumerator() does not have to create ChildNodes
2395 every time. Removed unused StringBuilder field.
2397 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
2399 * XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
2400 to read more (and might result in an error).
2402 2004-09-03 Atsushi Enomoto <atsushi@ximian.com>
2404 * XmlTextReader.cs : When Normalization is true, CRLF and CR should
2405 be converted to single LF. This should fix part of bug #62076.
2407 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
2409 * XmlWriter.cs : implemented WriteValue(object) for known types.
2411 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
2413 * XmlElement.cs : XmlAttributeCollection doesn't have to be created
2414 every time until the actual use. This sometimes optimizes
2415 attribute-less XML performance siginificantly.
2417 2004-08-27 Atsushi Enomoto <atsushi@ximian.com>
2419 * XmlAttribute.cs : some property getters threw NullReferenceException
2420 when the attribute is not added to an element.
2421 * XmlNode.cs : When a node is not appended to another node, BaseURI
2422 is empty. Bug #64120 is fixed.
2424 2004-08-26 Atsushi Enomoto <atsushi@ximian.com>
2426 * XmlTextWriter.cs : In CheckState(), don't create indentation string
2427 at every time. WriteIndent() now handles the indentation without
2430 2004-08-23 Atsushi Enomoto <atsushi@ximian.com>
2432 * XmlReader.cs, XmlTextReader.cs, XmlWriter.cs :
2433 eliminate MS.Internal.Xml.* classes.
2435 2004-08-21 Atsushi Enomoto <atsushi@ximian.com>
2437 * XmlElement.cs : set_InnerText was removing children incompletely.
2438 This fixes bug #63574.
2440 2004-08-20 Atsushi Enomoto <atsushi@ximian.com>
2442 * XmlTextReader.cs : Fixed EOF not to return true when it is just
2443 closed. Element and EndElement location is now adjusted to be the
2444 same as MS.NET does. This fixes bug #63505 and #63507.
2445 ResetState() now throws InvalidOperationException() as MS.NET does.
2447 * WriteState.cs : added missing 2_0 enumeration.
2448 * XmlReader.cs : ReadTypedValue() is virtual.
2449 * XmlValidatingReader.cs : ReadTypedValue() is override under 2_0.
2451 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
2453 * XmlValidatingReader.cs : Replaced XmlSchemaCollection with
2454 XmlSchemaSet. Added Settings property override
2456 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
2458 * DTDReader.cs : Replacing XmlSchemaDatatype .FromName(string) with
2459 .FromName(string, string) [going to remove former one; it is not
2460 good to support xdt:blah datatypes].
2462 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2464 * DTDValidatingReader.cs,
2465 XmlValidatingReader.cs : implemented IXmlNamespaceResolver.
2466 * XmlNamespaceManager.cs,
2467 XmlNodeReader.cs : implemented GetNamespacesInScope().
2469 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2471 * XmlCharacterData.cs,
2473 XmlNodeChangedEventArgs.cs :
2474 Implemented XmlNodeChangedEventArgs.OldValue and .NewValue.
2476 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2478 * XmlWriter.cs : implemented settings-less Create().
2479 * XmlWriterSettings.cs : added some comments.
2481 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
2483 * XmlWriter.cs : implemented WriteNode(XPathNavigator, bool)
2484 incompletely, using XPathNavigator.ReadSubtree().
2486 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
2488 * XmlReader.cs : Implemented new 2.0 virtual members that used to be
2489 abstract in 1.x. Implemented ReadSubtree().
2491 2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
2493 * XmlTextReader.cs: Stop parsing when a null character is found.
2495 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2497 * XmlReader.cs : Implemented missing MoveToNextSibling() and
2499 * XmlTextReader.cs : Added missing ReadValueAs() override (hmm...
2500 are they really worth overriding?)
2502 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2504 * XmlWriter.cs : Added new WriteStartAttribute(string).
2506 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2508 * XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
2509 * XmlQualifiedName.cs : Added internal static Parse().
2510 * XmlReader.cs : use XmlQualifiedName.Parse().
2511 * XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
2512 * XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
2513 Implemented 2.0 virtual methods that used to be abstract in 1.x.
2515 2004-07-26 Atsushi Enomoto <atsushi@ximian.com>
2517 * XmlReader.cs : Implemented ReadValueAsXxx() except for
2519 * XmlTextReader.cs : implemented them as well, just invoking
2520 base.ReadValueAsXxx ().
2521 * XmlWriter.cs : implemented some WriteValue() methods.
2523 2004-07-21 Atsushi Enomoto <atsushi@ximian.com>
2525 * XmlConvert.cs : added internal ToBinHexString() (BTW according to
2526 MSDN documentation it should be public).
2527 * XmlReader.cs : fixed one incorrect Create() overload. Added
2528 LookupNamespace (string, bool) (public for 2.0, internal for 1.x).
2529 * XmlTextReader.cs : Mostly implemented IXmlNamespaceResolver
2530 interface. Fixed HasLineInfo() access modifier on 2.0.
2531 * XmlNodeReader.cs : Mostly implemented IXmlNamespaceResolver
2532 interface. Wrote common namespace node lookup method and rewrote
2533 existing LookupNamespace().
2534 * XmlValidatingReader.cs : Fixed 2.0 IXmlLineInfo members' signatures.
2536 2004-07-20 Atsushi Enomoto <atsushi@ximian.com>
2538 * XmlNode.cs : When the argument node being inserted is the existing
2539 document element, it should not result in an error (since it should
2540 be first removed from document, thus no error should happen).
2542 2004-07-16 Atsushi Enomoto <atsushi@ximian.com>
2544 * XmlTextReader.cs : Fixed several problems on ReadBase64();
2545 Whitespaces should be ignored, and '=' was not skipped correctly.
2546 It caused "unexpected end of document" error at immediate close tag.
2548 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
2550 * Added MonoFIXAttribute.cs
2552 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
2554 * XmlWriter.cs : Added Create() stubs.
2555 * XmlWriterSettings.cs : Added missing property setters.
2556 * XmlValidatingReader.cs : added internal schemas setter.
2557 * XmlTextReader.cs : added internal XmlReaderSettings property setter.
2558 * XmlReader.cs : Halfly implemented Create().
2559 * DTDValidatingReader.cs : author information was missing.
2561 2004-07-11 Atsushi Enomoto <atsushi@ximian.com>
2563 * XmlConvertDateTimeOption.cs : it is NET_2_0.
2564 * IXmlNamespaceResolver.cs,
2565 XmlNamespaceScope.cs : Compile it in .net 1.1 (as internal).
2566 * XmlNamespaceManager.cs : Implement IXmlNamespaceResolver.
2568 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2570 * XmlConvertDateTimeOption.cs : Forgot to change the content...
2572 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2574 * ConformanceLevel.cs : Fixed integer value.
2575 * Added XmlConvertDateTimeOption.cs.
2576 * Removed XmlItemView.cs and XmlItemViewCollection.cs.
2578 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2580 * IXmlNamespaceResolver.cs :
2581 Fixed return value of GetNamespacesInScope().
2582 * IXmlDataEvidence.cs,
2585 XmlValidatingReader.cs : fixed Evidence (it is not array anymore).
2587 Implemented virtual indexers, QuoteChar, and Dispose() (2.0 stuff).
2589 In net_2_0, indexers vanished from XmlNodeReader.
2590 In net_2_0, overriden QuoteChar vanished.
2591 * XmlReaderSettings.cs : set_NameTable is missing.
2592 * XmlTextReader.cs : Implemented ProhibitDtd.
2594 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2596 * XmlAttributeCollection.cs : In .net 2.0, it became sealed class.
2597 * IXmlDataEvidence.cs : not "Evidences" but "Evidence".
2598 * XmlInputStream.cs : new csc rejected implicit int->char cast.
2599 * XmlNamespaceManager.cs : In net_2_0, LookupNamespace(string) and
2600 LookupPrefix(string) does not require argument string as atomized.
2601 Added HasNamespace (string, bool).
2602 * XmlReader.cs : Added Settings and SchemaInfo properties.
2603 * XmlReaderSettings.cs : Added NameTable. Throw XmlException when
2604 attempt to set Schemas.
2605 * XmlTextReader.cs : Fixed "Evidences" to "Evidence". new csc rejected
2606 implicit int->char cast.
2607 * XmlValidatingReader.cs : Fixed "Evidences" to "Evidence".
2609 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
2612 Close XmlReader only when it is created. This fixes bug #60809.
2614 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
2616 * DTDObjectModel.cs, DTDReader.cs, XmlConvert.cs, XmlDocument.cs,
2617 XmlException.cs, XmlParserInput.cs, XmlTextReader.cs,
2618 XmlTextWriter.cs : Globalization.
2619 * XmlNode.cs : Fixed error message that confused node type.
2621 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2623 * XmlDocumentNavigator.cs : MoveToNext() should skip concatenating
2624 text/cdata/whitespace nodes.
2626 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2628 * XmlInputStream.cs : Fixed encoding detection detected in xslt
2629 standalone tests. Removed extraneous code.
2631 2004-06-13 Atsushi Enomoto <atsushi@ximian.com>
2633 * XmlTextReader.cs : Character range check is always done. It is only
2634 character references for which check is not done when Normalization
2636 A bit more kind error message for multiple document element error.
2637 * XmlTextWriter.cs : Check if character is valid and entitize when
2640 2004-06-09 Atsushi Enomoto <atsushi@ximian.com>
2642 * XmlNamespaceManager.cs : The error message was improper.
2645 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2647 * XmlInputStream.cs: Initialize reads a larger buffer now when trying
2648 to guess the encoding.
2650 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2652 * NameTable.cs : Fixed incorrect hash computation. Thanks to Ben.
2653 * XmlTextWriter.cs : Fixed remaining LookupNamespace() atom problem
2654 shown in xslt standalone tests.
2656 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2658 * XmlTextWriter.cs : Improved indenting. For children of a mixed
2659 content element, it won't be indented.
2661 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2663 * DTDObjectModel.cs,
2664 XmlDocument.cs : Close stream always.
2665 * XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
2666 * XmlTextReader.cs : Namespace check was not done. Some tests depends
2667 on this failure and to be fixed.
2669 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2671 * XmlNamespaceManagre.cs : Fixed LookupNamespace() and LookupPrefix().
2672 They require that names are *already* atomized.
2674 XmlTextWriter.cs : use safe overload of LookupXXX().
2676 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
2678 * XmlTextReader.cs : Fixed version mismatch; ProhibitDtd should be
2681 2004-05-29 Gert Driesen (drieseng@users.sourceforge.net)
2683 * XmlTextReader.cs: Added ProhibitDtd property for NET 1.1 to match
2684 public API in MS.NET 1.1
2686 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2688 * XmlDocument.cs : Save() should indent only when PreserveWhitespace
2689 is false. Fixed bug #59155.
2690 Modified comment lines a bit.
2692 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2694 * XmlTextWriter.cs : WriteRaw() looks to proceed WriteState to Prolog
2695 (if it is Start). Fixed bug #59154.
2697 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2699 * XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
2700 and don't bork against <foo></foo>. Also mofidied this method to skip
2701 <foo/>. Fixed bug #59142.
2702 Modified some comments on the code (FIXME->LAMESPEC et al).
2704 2004-05-24 Atsushi Enomoto <atsushi@ximian.com>
2706 * DTDReader.cs : When sequential PE references exist, the reader only
2707 expands the first one and in some cases the parser complaints the
2708 content (such like expecting name character but found '%').
2709 This fixes bug #58818.
2711 2004-05-23 Atsushi Enomoto <atsushi@ximian.com>
2713 * XmlNode.cs : RemoveChild() should check null argument.
2714 Normalize() was broken in some cases.
2716 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2718 * ConformanceLevel.cs : added.
2720 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2722 * XmlNodeChangedEventArgs.cs : the last patch looks true
2723 ONLY AFTER .NET 2.0.
2725 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2727 * XmlReaderSettings.cs, XmlWriterSettings.cs : NET_2_0 were missed.
2729 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2733 XmlItemViewCollection.cs,
2734 XmlReaderSettings.cs,
2735 XmlWriterSettings.cs : added new .NET 2.0 classes.
2737 * AsyncXmlTextWriter.cs,
2738 IXPathChangeNavigator.cs,
2741 XmlChangeFilters.cs,
2743 XmlNodeChangeType.cs,
2744 XPathChangeNavigator.cs,
2746 XPathDocument2ChangedEventAction.cs,
2747 XPathDocument2ChangedEventHandler.cs,
2749 XPathNavigator2.cs : removed. (They are only in .NET 1.2)
2751 * XmlWriter.cs : added new NET_2_0 WriteElementString().
2753 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2755 * XmlNodeChangedEventArgs.cs : not properly inherited from EventArgs.
2757 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2759 * XmlConvert.cs : Fixed ToString(TimeSpan) that didn't handle Hour
2760 correctly. This fixes bug #57786.
2762 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2764 * XmlValidatingReader.cs : explicitly mark as MonoTODO for XDR (not
2767 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2769 * DTDObjectModel.cs,
2775 XmlUrlResolver.cs : removed reference to Mono.Xml.
2776 Made Mono.Xml.* classes internal.
2777 * XmlDocument.cs : output xml declaration for TextWriter output in Save()
2778 * XmlElement.cs : Name character check should be done in .ctor().
2779 * XmlNamespaceManager.cs : Removed dangerous internal .ctor()
2781 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2783 * XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
2784 node can be it as well) and added check for Attributes existence
2785 in GetAttribute() and MoveTo*Attribute().
2787 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2789 * XmlTextWriter.cs : comment not in the content state is indented.
2790 This fixes bug #58247.
2792 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
2794 * XmlTextWriter.cs: In WriteStartAttribute, when the prefix is xmlns and
2795 the name is empty, convert it to a xmlns attribute.
2797 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2799 * XmlTextReader.cs : don't use NET_1_0.
2801 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2803 * XmlComment.cs. XmlProcessingInstruction.cs : missing commits.
2805 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2807 W3C DOM compliant read-only check support (buggy part in MS.NET).
2810 XmlCharacterData.cs,
2814 XmlSignificantWhitespace.cs,
2816 : CloneNode() - set read-only when copied node is read-only.
2817 Check IsReadOnly on attempt to modify value.
2819 XmlEntityReference.cs : Set descendant nodes read-only.
2820 * XmlAttributeCollection.cs,
2822 : Fixed incompatible exception type.
2823 * XmlEntityReference.cs : CloneNode() should not pass an empty string
2825 * XmlEntityReference.cs,
2826 XmlProcessingInstruction.cs : Check XML name validity.
2827 * XmlText.cs : CloneNode() does not have to check children.
2829 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2831 * XmlDeclaration.cs : More strict check on InnerText and Value.
2833 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2835 * DTDReader.cs, XmlConvert.cs, XmlDeclaration.cs, XmlImplementation.cs,
2836 XmlNode.cs : Culture independency fix.
2838 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2840 * XmlEntityReference.cs : Added XPathNodeType (just for workaround).
2841 This should really fix bug #57248.
2843 2004-04-20 Atsushi Enomoto <atsushi@ximian.com>
2845 * XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
2846 only an EntityReference (not navigatable) child. Bug #57248 fixed.
2847 * XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
2848 instead of WriteAttributes() only for MS.NET behavior compatibility.
2849 This change makes SgmlReader usable (due to SgmlReader bug).
2851 2004-04-10 Atsushi Enomoto <atsushi@ximian.com>
2853 * XmlParserContext.cs : Fixed .ctor() not to reference null namespace
2854 manager. This fixes bug #56770.
2856 2004-04-06 Atsushi Enomoto <atsushi@ximian.com>
2858 * DTDReader.cs : In ProcessDTDSubset(), 1)error message was
2859 generated with incorrect stream character, 2)entity nest check
2860 should not depend on line info which might not be supplied, 3)
2861 empty PE should be skipped.
2862 * XmlParserInput.cs : use index for StringBuilder instead of calling
2863 Remove() many times. This highly optimizes DTD parser.
2865 * XmlAttribute.cs : removed commented code.
2866 * XmlEntity.cs : removed unused field.
2868 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2870 * DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList
2871 only when they are required.
2873 XmlParserInput.cs : raw tag string now don't have to be kept, while
2874 it cost so much. Removed unused code. 20% to 30% memory got saved.
2875 * XmlNotation.cs : removed unused code.
2876 * XmlTextReader.cs : Removed unused code. ReadString() now uses
2877 XmlReader's internal method. Fixed BaseURI to be conformant with
2878 W3C XML InfoSet and (subsequently) xml:base specification (i.e.
2879 reflect xml:base attribute correctly).
2881 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2883 * XmlAttribute.cs : get_Value should return all children's value.
2884 * XmlCharacterData.cs : DOM's substring does not raise an error when
2885 startIndex + count exceeds the length of Data.
2886 * XmlNamedNodeMap.cs : SetNamedItem() returns the new child when it
2887 does not replace another named item.
2888 * XmlElement.cs : with related to the XmlNamedNodeMap change,
2889 SetAttributeNode() is required to fix as to return null when it does
2890 not replace existing attribute.
2892 2004-03-31 Atsushi Enomoto <atsushi@ximian.com>
2894 * XmlDocumentNavigator.cs : When this instance is created from xmlns
2895 attributes, it should be Namespace node.
2897 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
2899 * XmlReader.cs : ReadInnerXml() should progress reader when it is on
2900 an empty element. This fixes bug #56064.
2902 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
2904 * DTDReader.cs : In some places sequential parameter entity was
2905 incorrectly skipped (and caused invalid result).
2907 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2909 * XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
2910 namespace nodes which has the same name as already-iterated nodes.
2911 Also xmlns='' should not be selected, and once it appeared, default
2912 namespace should not be selected anymore.
2914 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2916 * XmlCharacterData.cs : ReplaceData() should reject negative integer
2917 value for count argument.
2918 * XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
2919 On RemoveNamedItem(), default attribute value should be restored.
2921 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2923 * XmlAttributeCollection.cs : Remove() should throw an exception when
2924 target attribute is not included in the collection.
2925 * XmlDocument.cs : ImportNode() should reject null node.
2926 * XmlNode.cs : Fixed type of exception for invalid insertion.
2927 It should throw an exception not only when the owner document of the
2928 reference element is different but its parent element is different.
2929 Some error message improvement.
2931 2004-03-21 Atsushi Enomoto <atsushi@ximian.com>
2933 * XmlReader.cs : ReadInnerXml() incorrectly tried to get output xml.
2934 This fixes bug #55856.
2936 2004-03-20 Atsushi Enomoto <atsushi@ximian.com>
2938 * XmlTextWriter.cs : Fixed indentation on CDATA. This fixes bug #55828.
2940 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
2942 * XmlImplementation.cs : HasFeature() returns true when strVersion
2945 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
2947 * XmlWhitespace.cs : Fixed WriteTo(). Whitespace nodes should be
2948 written regardless of document's PreserveWhitespace.
2950 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
2952 * XmlDocumentNavigator.cs : Value should return concatenated string for
2953 sequential text nodes. Considered detached nodes, the result of
2954 MoveToParent() should be checked.
2956 2004-03-15 Atsushi Enomoto <atsushi@ximian.com>
2958 * XmlReader.cs : ReadInnerXml()/ReadOuterXml() should not bork when
2959 the reader is on EndElement. Patch by Jean-Marc Andre.
2961 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
2963 * XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
2964 to return attribute node. It affects on IHasXmlNode.GetNode() and
2965 SelectNodes()/SelectSingleNode().
2967 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2969 * XmlImplementation.cs : fixity fix (I need NUnit runnable ;)
2971 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2973 * XmlImplementation.cs : forgot to commit (renaming internal case)
2975 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2977 * XmlDocument.cs : Implementation should not return null.
2979 2004-02-25 Atsushi Enomoto <atsushi@ximian.com>
2981 * XmlTextWriterOpenElement.cs : Reset() should reset _all_ fields.
2982 This fixes indentation bug.
2984 2004-02-19 Atsushi Enomoto <atsushi@ximian.com>
2986 * XmlTextWriter.cs : Fixed bugzilla #54554 (incorrent end tag output).
2988 2004-02-16 Atsushi Enomoto <atsushi@ximian.com>
2993 DTDValidatingReader.cs : made classes internal.
2994 * XmlDocument.cs : removed extra FIXMEs.
2995 * XmlNamedNodeMap.cs,
2998 Fixed incorrect method signature.
3000 2004-02-13 Atsushi Enomoto <atsushi@ximian.com>
3002 * DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs :
3003 say goodbye to sys.collections.specialized.
3004 (replaced the classes in that namespace with ArrayList or Hashtable)
3006 2004-02-12 Atsushi Enomoto <atsushi@ximian.com>
3008 * XmlReader.cs : For performance reason, XmlTextReader now uses
3009 base ReadInnerXml() and don't store currentTag array unnecessarily.
3010 * XmlTextReader.cs :
3011 - Fixed GetAttribute(int) that might cause index out of range.
3012 - Now it consumes the text reader by reading blocks, as MS.NET does.
3013 Modified GetRemainder(), PeekChar(), ReadChar() and so on.
3014 - Now it doesn't create Value string for linked nodes, unless it
3015 is actually required.
3016 - some code refactory.
3018 2004-02-11 Atsushi Enomoto <atsushi@ximian.com>
3020 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs :
3021 Reduced creation of openlElement. It also saves much memory.
3023 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
3025 * XmlNode.cs : ChildNodes should not create XmlNodeListChildren
3026 every time. This fix heavily improved performance.
3028 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
3030 * XmlAttributeCollection.cs : set owner element as parent on removal
3031 events (though they are not "parent" in infoset or dom context)
3032 * XmlElement.cs : Don't remove attributes twice (raises extraneous
3034 * XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
3035 Added NET_2_0 members.
3037 2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
3039 * DTDObjectModel.cs : Limit external entity reference from DTD by 256.
3040 foreach elimination. DTDParameterEntityDeclaration should set Root.
3041 Compute attribute default value without raising an error.
3042 (for non-error reporting reader)
3043 * DTDReader.cs : Fixes for the above fixes. foreach elimination.
3044 * DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
3045 XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
3046 XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
3047 XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
3048 XmlText.cs : foreach elimination.
3049 * XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
3050 foreach elimination. Removed unnecesary methods.
3051 * XmlTextReader.cs : code format refactory. Optimized some methods.
3052 foreach elimination. Replaced Stack with string array.
3053 Replaced StringBuilder with char array. Removed unnecessary methods.
3055 2004-02-06 Atsushi Enomoto <atsushi@ximian.com>
3057 * DTDValidatingReader.cs : Fixed MoveToElement() that causes incorrect
3058 IsDefault and Depth.
3059 * XmlAttribute.cs : Fixed .ctor(). Omit more namespace check when
3060 checkNamespace = false.
3061 * XmlNamedNodeMap.cs : Fixed SetNamedItem() to raise events.
3062 * XmlAttributeCollection.cs : Reimplemented InsertAfter to use
3063 InsertBefore() (similar to XmlNode).
3064 * XmlDocument.cs : Added internal .ctor(). Reimplemented ReadNode()
3065 as recursive, to make event order compatible.
3066 * XmlDocumentType.cs : Use SetNamedItem() (to raise events).
3067 * XmlElement.cs : Some refactory. Fixed SetAttributeNode() with
3068 string name to block prefixed name.
3069 * XmlEntity.cs : Don't raise events on setting contents.
3070 * XmlNode.cs : Some refactory. Added raiseEvent argument to internal
3072 * XmlEntityReference.cs : related fix for XmlNode change.
3073 * XmlTextReader.cs : When the reader is on "attributes" of xmldecl or
3074 doctype, Depth 1 lower than usual attribute. Split large function.
3076 2004-02-05 Atsushi Enomoto <atsushi@ximian.com>
3078 * XmlConvert.cs : ToSingle() and ToDouble() should be culture
3079 independent. Patch by Rodolfo Campero.
3081 2004-02-04 Atsushi Enomoto <atsushi@ximian.com>
3083 * DTDObjectModel.cs : Never expand entity on ScanEntityValue().
3084 * DTDValidatingReader.cs : XmlDeclaration node requires attributes
3088 XmlDocumentFragment.cs,
3094 Added namespace checking flag (required for such xml readers
3095 that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
3096 * XmlDocumentType.cs,
3098 XmlEntityReference.cs : The children of Entity and EntityReference
3099 became correct. They now holds parsed nodes, but it is only when
3100 they are appended to the document.
3101 * XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
3102 boolean checkNodeType argument. This method also tries to create
3103 Entity's and EntityReference's child nodes. Also added internal
3104 RemoveChild() with boolean checkNodeType argument.
3105 * XmlNodeReader.cs : Quick hack for ResolveEntity() that became
3106 broken with these changes. use InnerXml as input to entityReader.
3107 * XmlTextReader.cs : XmlDeclaration's value LocalName should be the
3108 same as Name. The names of DTD's pseudo attributes should be empty.
3109 Fixed DTD node's Depth (was regarded as attribute value's depth).
3111 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
3113 * XmlTextReader.cs, DTDReader.cs : fixity fix ;)
3115 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
3117 * ChangeLog : Fixed incorrect description that should be written for
3118 DTDValidatingReader.cs but written for DTDReader.cs.
3119 * DTDValidatingReader.cs : Fixes described in the last DTDReader fix.
3122 XmlConstructs.cs : Made XmlChar and XmlConstructs equivalent and
3123 replaced XmlChar with XmlConstruts, renaming "XmlChar" to
3124 "XmlCharCompact" and "XmlConstructs" to "XmlChar".
3125 (XmlChar will be used for compact framework.)
3126 * DTDReader.cs, XmlParserInput.cs, XmlTextReader.cs :
3127 XmlChar related changes. Support for surrogate pair.
3128 It cannot use TextReader's peek anymore (for surrogate pair).
3129 Character range check for PI value, attribute value, text
3130 * XmlTextWriter.cs : Change openElements from Stack to ArrayList.
3131 (It calls ToArray() every time.)
3133 2004-02-03 Alon Gazit <along@mainsoft.com>
3134 * XmlNamedNodeMap - now Item(int index) returns null for nodeList.Count
3135 instead of throwing ArgumentOutOfRangeException.
3137 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
3139 * XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
3140 predefined entity names.
3141 * DTDObjectModel.cs : DTDxxxCollection now derives from
3142 - DTDCollectionBase that derives from DictionaryBase.
3143 - "Literal value" and "replacement text" are handled differently.
3144 - Throw XmlException when external entity could not be resolved.
3145 - Return ReplacementText for EntityValue.
3147 - Support IXmlLineInfo.
3148 - Fixed IGNORE section handling to be more strict.
3149 - Compute replacement text on reading entity declarations.
3150 - Don't expand char references before getting literal entity value.
3151 - Check not allowed parameter entity inside internal subset.
3152 * DTDValidatingReader.cs :
3153 - Added ValidateWhitespaceNode() to check whitespace's Validity
3154 Constraints on external elementdecl and standalone document.
3155 - When invalid data against its datatype was found, don't throw
3157 - Other code refactory.
3158 * XmlTextReader.cs :
3159 - Check for invalid Text pattern "]]>" should not depend on line
3160 info since it might not be supported.
3161 - Check referenced character's validity (WFC).
3163 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
3165 * DTDReader.cs : Added Normalization. Parameter Entity declaration
3166 should block invalid characters. (GEDecl should be fixed as well.)
3167 * XmlConstruct.cs : Should allow surrogate chars.
3168 * XmlNotation.cs : When prefix is empty (i.e. almost all cases)
3169 Name should not add ':'. Patch by Boris Kirzner.
3170 * XmlTextReader.cs : Modified private ReadCharacterReference() to
3171 return the character (or -1 when should not return anything).
3172 Now Text character reference are checked their character range.
3173 Set DTDReader.Normalization as well as the reader itself.
3175 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
3177 * DTDReader.cs : Make sure that parameter entities are not allowed
3178 inside internal subset unless it appears as a markupdecl.
3179 * DTDValidatingReader.cs : ENTITY or ENTITIES type attributes must have
3180 a value that indicates *unparsed* entity (i.e. NDATA required).
3182 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
3184 * XmlTextWriter.cs : quick performance fix.
3185 Reduced memoty allocation (e.g. 12% when writing XMLSchema.xsd.)
3187 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
3189 * DTDObjectModel.cs :
3190 - DTDNode's BaseURI should not always refer to that of DTD's.
3191 - Use absolute URI's .ToString() instead of AbsolutePath.
3192 * DTDReader.cs : Throw XmlException for illegal character references.
3193 * DTDValidatingReader.cs :
3194 - Share XmlResolver when the actual reader is XmlTextReader.
3195 (MS's XmlValidatingReader and XmlTextReader do this.)
3196 - Added its own EntityHandling property.
3197 * XmlValidatingReader.cs : Share XmlResolver with XmlTextReader.
3199 XmlTextReader.cs : Added new NET_2_0 members.
3200 * XmlElement.cs : Removed extra lines (caused by XmlTextWriter bugs).
3201 * XmlEntityReference.cs : Forgot to add, the real fix by Boris.
3203 2004-01-23 Atsushi Enomoto <atsushi@ximian.com>
3205 * XmlWriter.cs, XmlTextWriter.cs :
3206 Several namespace related fixes.
3207 - Current element's NamespaceURI should be immediately available
3208 after the call of WriteStartElement() for LookupPrefix(), so
3209 AddMissingElementXmlns() only affects on output. This is
3210 now identified by shouldCheckElementXmlns field.
3211 - Attribute's overraped xmlns should be ignored for LookupPrefix(),
3212 Especially, when the owner element is written with the default
3213 namespace. HOWEVER, the attribute should be *written*. This is
3214 identified by shouldAddSavedNsToManager field.
3215 - In AddMissingElementXmlns(), non-empty prefix namespace was not
3216 checked user-written attributes.
3217 - XmlWriter.WriteAttributeString() never supplies namespace URI for
3218 xmlns attributes for other versions than NET_1_0. Instead, added
3219 ns check logic in WriteStartAttribute() only with NET_1_0.
3220 - WriteEndAttribute() should reject zero-length namespace for
3221 non-default xmlns declarations.
3222 - LookupPrefix() should reject argument null and empty.
3224 (added 2004-01-24 : forgot to mention more)
3225 - WriteAttributeString() w/o namespace should supply null, not ""
3226 - Added .NET 1.2 members.
3227 - Regard any name with "xml" prefix as in "namespace for XML".
3229 2004-01-22 Atsushi Enomoto <atsushi@ximian.com>
3231 * XmlElement.cs : Reverted previous fix since it broke monodoc web
3234 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
3236 * XmlNode.cs : When adding a node to child list, it should reject its
3237 ancestors. Patch by Boris Kirzner.
3238 * XmlNodeReader.cs : Related fix to the fix above. It should not move
3239 to children of XmlEntityReference nodes.
3240 * XmlTextWriter.cs : FixedWriteStartElement() not to write default
3241 namespace when ns is null (while ns is "", it writes default ns).
3242 * XmlElement.cs : Fixed WriteTo() to call WriteStartElement(localName)
3243 when NamespaceURI is an empty string.
3245 2004-01-14 Atsushi Enomoto <atsushi@ximian.com>
3247 * XmlAttribute.cs : when set a value, it is no longer default
3248 (even if the value is the same as default value).
3249 * XmlAttributeCollection.cs : Remove() should recover default attribute
3250 value to default, not specified value.
3251 Patch by Boris Kirzner (modified a bit)
3252 * XmlDocument.cs : Reference to undeclared entity is not allowed in
3253 Load(), while allowed in ReadNode(). Added such distinguishing logic.
3255 2004-01-13 Atsushi Enomoto <atsushi@ximian.com>
3257 * XmlValidatingReader.cs : Throw exception only in case of errors.
3258 Added NET_2_0 Evidences property.
3260 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
3262 * XmlElement.cs : Fixed .ctor(). Default attribute was not treated as
3263 Specified = false. Patch by Boris Kirzner.
3265 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
3267 * XmlException.cs : Fixed incorrect .ctor signature.
3268 * XmlParserInput.cs : Fixed in sync with the above fix.
3270 2004-01-08 Atsushi Enomoto <atsushi@ximian.com>
3272 * XmlAttribute.cs, XmlElement.cs :
3273 Fixed incorrect protected .ctor modification.
3275 2004-01-08 Nick Drochak <ndrochak@ieee.org>
3277 * DTDValidatingReader.cs: Removed unused variable
3279 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
3281 * XmlNamespaceManager.cs : Implemented .NET 1.2 methods that take
3282 atomizedNames argument.
3283 * XmlTextReader.cs : Use new namespace manager methods.
3284 Reduced NameTable.Add().
3285 * DTDObjectModel.cs : fixed incorrectly commented-out line.
3287 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
3289 * XmlAttribute.cs, XmlDocument.cs, XmlElement.cs :
3290 set_Prefix should atomize to name table.
3291 Avoided extraneous atomization attempt a bit.
3293 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
3295 * DTDObjectModel.cs, DTDReader.cs, XmlSecureResolver.cs :
3296 avoiding obvious exception.
3297 * DTDReader.cs, XmlTextReader.cs : Some optimization.
3298 Avoided extraneous PeekChar() and reduced name string creation.
3300 2004-01-05 David Sheldon <dave-mono@earth.li>
3302 * XmlTextReader.cs: Fixed constructors taking string url to not
3303 loose the absolute part of the path.
3305 2004-01-04 Atsushi Enomoto <atsushi@ximian.com>
3307 * XmlDocument.cs : Fixed Load() to set XmlResolver correctly. Patch
3308 by Benjamin Jemlich.
3309 Assure closing XmlTextReader which are internally used.
3311 2004-01-03 Atsushi Enomoto <atsushi@ximian.com>
3313 * XmlTextWriter.cs : trivial character-case fix
3314 * XmlUrlResolver.cs : It downloads network stream content at
3315 GetEntity() call. You can try like below:
3316 for (int i=0;i<100;i++) u.GetEntity(url, null, typeof(Stream));
3318 2003-12-23 Atsushi Enomoto <atsushi@ximian.com>
3320 * XmlNamedNodeMap.cs : Fixed internal SetNamedItem(node, pos) to set
3321 replacing node correctly. This fixes bug #52453.
3323 2003-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3325 * XmlDocument.cs, XmlElement.cs, XmlNode.cs :
3326 GetElementsByTagName() - Fixed bugzilla #52419, refactored,
3327 and moved private implementation methods to XmlNode class.
3329 2003-12-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3331 * XmlTextWriter.cs :
3332 Element's namespace should be escaped as usual attribute.
3334 2003-12-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3336 * XmlTextWriter.cs : Indentation between xmldecl and doctype.
3337 * DTDValidatingReader.cs : AttList null reference fix.
3339 2003-12-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3341 * DTDValidatingReader.cs : Validity check and entity expansion were
3343 * DTDObjectModel.cs, DTDReader.cs, XmlInputStream.cs :
3344 Going to remove XmlInputStream. XmlStreamReader might be replacable.
3346 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3348 * XPathDocument2ChangedEventHandler.cs : fixed incorrect argument.
3349 * Moved UpdateEventHandler.cs and XmlUpdateEventArgs.cs to sqlxml.
3351 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3353 * XmlTextReader.cs : BaseURI was broken. This fixes bug #52098.
3355 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3357 * XmlUrlResolver.cs : GetEntity() does not return direct network stream
3358 that may hold up connection. Now it reads up all the content stream.
3360 2003-12-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3362 * XmlAttributeCollection.cs,
3363 XmlElement.cs : Fixed bug #51415.
3364 When adding attribute to an element using Attributes, it failed.
3366 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3368 * XmlDocument.cs : Fixed ReadNode() to call AppendChild() to document
3369 after setting all attribute nodes. Modified ReadNode() to handle
3370 Depth comparison and error handling (!= to <). It allows MS's
3371 SgmlReader bug that returns incorrect Depth.
3373 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3375 * XmlDocumentNavigator.cs : Fixed MoveToNextAttribute (and
3376 MoveToNextNamespace) that might result in NullReferenceException.
3377 patch by Sanjay Gupta. This fixed bug #51941 (and possibly #51415)
3379 2003-12-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3381 * XmlUrlResolver.cs : Update with recent System.Uri change. This fixes
3382 bugzilla #51808 (patch by Jeroen Zwartepoorte, a bit modified).
3384 2003-12-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3386 * XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
3387 * XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
3388 This may fix bug #51415.
3390 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3392 * XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".
3394 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3396 * XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
3397 shouldn't expect non-empty element content. This will fix bug #48287.
3399 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3401 * XmlTextWriter.cs : When element's namespace should be overwritten by
3402 one of its attribute, if exist as such. This fixes bug #51305.
3404 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3406 * DTDValidatingReader.cs : Fixed ReadContent() which may result in
3407 invalid additional Text node.
3409 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3411 * XmlTextWriter.cs :
3412 On WriteProcessingInstruction(), ArgumentException() is expected ;-)
3414 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3416 * XmlTextWriter.cs :
3417 WriteProcessingInstruction() should check name validity.
3418 AddMissingElementXmlns() should allow namespace emission even if it
3419 is identical to existing one.
3421 2003-11-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3423 * XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.
3425 2003-11-20 Eran Domb <erand@mainsoft.com>
3427 * XmlTextWriter.cs (WriteStartAttribute) : Check if the ket already exists in the newAttributeNamespaces table
3428 before trying to add it to the table.
3430 2003-11-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3432 * DTDValidatingReader.cs : Replaced entity should not treat whitespaces
3434 * XmlNode.cs : Removed extraneous MonoTODOs.
3436 2003-11-17 Jackson Harper <jackson@ximian.com>
3438 * XPathEditor.cs: .net 1.2 only
3440 2003-11-17 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3442 * AsyncXmlTextWriter.cs, IXPathChangeNavigator.cs, IXPathEditor.cs,
3443 IXPathNavigator.cs, IXmlDataEvidence.cs, IXmlNamespaceResolver.cs,
3444 UpdateEventHandler.cs, XPathChangeNavigator.cs, XPathDocument2.cs,
3445 XPathDocument2ChangedEventAction.cs,
3446 XPathDocument2ChangedEventHandler.cs, XPathEditor.cs,
3447 XPathNavigator2.cs, XmlChangeFilters.cs, XmlInfoItemType.cs,
3448 XmlNamespaceScope.cs, XmlNodeChangeType.cs, XmlQualifiedNameTable,cs,
3449 XmlQueryDialect.cs, XmlUpdateEventArgs.cs
3450 : Added .NET 1.2 classes (for convenience of ObjectSpaces stubbing).
3452 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3454 * XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
3455 to skip XmlEntityReference.
3456 * XmlTextWriter.cs : Fixed AddMissingElements() and
3457 WriteStartAttribute() not to emit extraneous xmlns.
3459 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3461 * XmlTextWriter.cs : Skip multiple xmlns when element and any of
3462 attributes have the same xmlns values.
3463 WriteEndElement() allows open attribute (calles WriteEndAttribute()).
3464 Indentation should be inserted between ">" and "</xxx>" .
3466 2003-11-02 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3468 * XmlConvert.cs: Only parse INF/-INF/NaN. Other Infinty or NAN
3469 numbers are parsed with the respective ::Parse method.
3471 2003-11-01 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3473 * XmlConvert.cs: Revert my last change. INF and -INF must be
3474 processed here because Double::Parse and Single::Parse doesn't
3475 understand anything of parsing [-]INF.
3477 2003-11-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3479 * XmlDocument.cs : Save(Stream) should not close the stream.
3481 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3483 * DTDReader.cs, DTDValidatingReader.cs, XmlInputStream.cs,
3484 XmlTextReader.cs : More cleanup.
3485 * XmlDocument.cs : Removed CheckName(). Code cleanup.
3486 * XmlElement.cs : .ctor() now adds default attributes (if required).
3487 * XmlAttribute.cs, XmlElement.cs, XmlEntity.cs, XmlEntityReference.cs,
3488 XmlNotation.cs : Now uses OwnerDocument's NameTable.
3490 2003-10-25 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3492 * XmlConvert.cs: Support for the sign in double and single. The
3493 processing of the infinites and nan numbers are more complex than
3494 comparing to "INF" so we must let Double::Parse and Single::Parse
3497 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3499 * DTDValidatingReader.cs : Now it handles whitespace entity as
3501 * XmlConvert.cs : As to NIST testcases, exponential support on single
3502 and double floating point numbers.
3503 * XmlValidatingReader.cs : If it IsDefault, then line number and line
3506 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3511 XmlWriter.cs : Fixed incorrect access modifier.
3512 * XmlTextWriter.cs : Imported state variable from XmlWriter.
3513 * DTDValidatingReader.cs : Removed extraneous MonoTODO.
3514 * XmlConvert.cs : Implemented ToTimeSpan().
3515 Modified ToDateTime() to reuse the same array.
3517 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3519 * XmlAttributeCollection.cs : Fixed synchronization stuff.
3520 * XmlConvert.cs : Added two FromBinHexString() methods.
3521 * XmlTextReader.cs : Modified to use one of the above method.
3522 * XmlValidatingReader.cs : XsdValidatingReader.XmlResolver will be
3523 disabled (in the next commit), so resolver won' be set to it.
3524 Attempt to validate against XDR now throws NotSupportedException.
3526 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3528 * XmlChar.cs : added WhitespaceChars, used in common.
3533 XmlTextWriter.cs : String.Trim()
3534 * XmlConvert.cs : shifted XmlConstructs to XmlChar.
3535 * XmlTextReader.cs : Implemented Normalization.
3537 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3539 * XmlNode.cs : GetPrefixOfNamespace() also contained a bug similar to
3540 GetNamespaceOfPrefix() fixed at 2003-10-13.
3541 * XmlTextReader.cs : ReadBase64() should keep incomplete base64 block
3542 which remained by previous call of this method.
3543 * XmlUrlResolver.cs : Added assertion for file Uri path's absoluteness.
3544 * XmlValidatingReader.cs : Notice about intention of XDR won't be
3545 supported (at least in Mono 1.0).
3547 2003-10-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3549 * XmlDocument.cs : CloneNode() does not copy PreserveWhitespace.
3550 * XmlWriter.cs : Calling WriteNode() with XmlReader whose state is
3551 XmlDeclaration now calls WriteProcessingInstruction(). This fixes
3552 testcase XmlWriterTests.WriteNodeFullDocument().
3553 * XmlTextWriter.cs : Added LAMESPEC comments related to above.
3555 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3557 * XmlDocument.cs : Fixed bugzilla #49607. Save() outputs XML
3558 declaration even though there is no XmlDeclaration child.
3559 * XmlTextReader.cs : Fixed Init() so that ResetState() should work.
3561 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3563 * XmlTextWriter.cs : Implemented WriteSurrogateCharEntity().
3564 Reverted my recent extraneous check in WriteStartAttribute().
3566 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3568 * XmlNode.cs : GetNamespaceOfPrefix() should check Attributes existence.
3569 And it should throw ArgumentNullException.
3571 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3573 * XmlAttribute.cs : Fixed InnerText that did not removed its content
3574 if there is two or more children.
3575 * XmlNode.cs : XmlNode.cs : Fixed bugzilla #49580 (1)to return "",
3576 (2)not to compare NodeType for detached nodes, (3)optimization to
3577 compare element's prefix.
3578 * XmlSecureResolver.cs : Removed extraneous members.
3580 2003-10-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3582 * Added DTDReader.cs. It is almost importation of XmlTextReader.
3583 * DTDObjectModel.cs :
3584 - More .NET-ism. Properties took place of fields.
3585 - Imported PE set from XmlTextReader. Added location info.
3586 - Added DTDEntityBase common to PE and GE.
3587 - More correct text declaration handling with new XmlTextReader.
3588 * DTDValidatingReader.cs :
3589 - Now uses entity resolving XmlTextReader to validate attributes
3590 correctly. Implemented standalone
3591 - Standalone and default related validity constraints check.
3592 * XmlImplementation.cs: Implemented HasFeature().
3593 * XmlNode.cs : Implemented Supports().
3594 * XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
3595 * XmlParserInput.cs : Removed extraneous members.
3596 * XmlTextReader.cs :
3597 - All DTD related functionality now goes to DTDReader.cs
3598 - It became old simple TextReader input style.
3599 - Implemented GetRemainder().
3600 - Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
3601 additional new private method ReadUntilEndTag().
3602 - Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
3603 ReadXmlDeclaration() now became simple.
3604 - More strict entity reference check at SetEntityReferenceProperty()
3605 - Removed extraneous members.
3606 * XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.
3608 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3610 * XmlTextReader.cs: when we get an unexpected EOF in ReadContent, set
3611 the state before throwing the exception if depth > 0.
3613 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3615 * XmlAttribute.cs : Removed extraneous MonoTODO.
3616 * XmlTextWriter.cs : Implemented WriteBinHex() and WriteChars().
3617 WriteStartElement() and WriteStartAttribute() should ignore Prefix
3618 if namespace uri is not specified.
3620 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3622 * XmlDocumentFragment.cs,
3624 XmlEntityReference.cs : Removed extraneous MonoTODO.
3625 * XmlNode.cs : Implemented Normalize().
3626 * XmlNodeReader.cs :
3627 - AttributeCount and HasAttributes should return its owner element's
3628 value, to be consistent with XmlTextReader.
3629 - Fixed Depth to reflect correct attribute/attribute-value iteration.
3630 - simplified ownerElement and HasValue.
3631 - Prefix won't return null.
3632 - MoveToElement() should also work against attribute value nodes.
3633 * XmlTextReader.cs : MoveToElement() should return false if it is
3634 positioned at element itself.
3636 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3638 * XmlTextReader.cs : Improved SignificantWhitespace handling.
3640 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3642 * XmlSecureResolver.cs : Implemented basic feature.
3644 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3646 * XmlUrlResolver.cs : Should work with null type argument.
3648 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
3650 * XmlTextWriter.cs : An attribute can require a prefix for the default
3651 namespace, so we need to store the prefix as well as the namespace.
3653 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3655 * DTDValidatingReader.cs : Simplified to use
3656 XmlSchemaUtil.GetParserContext().
3657 * XmlValidatingReader.cs : ValidationType.Auto should always use
3658 XsdValidatingReader because xsi:schemaLocation might be used.
3660 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3662 * XmlTextReader.cs : Attribute value token properties were incorrectly
3663 set by the linked node.
3665 2003-09-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3667 * XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
3668 considers such case that target node was not adapted to the document.
3669 * XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
3670 * XmlTextWriter.cs : use 'as' instead of 'try..catch'.
3672 2003-09-25 Ben Maurer <bmaurer@users.sourceforge.net>
3674 * XmlNode.cs (XPathNodeType): Give more useful debugging message.
3675 * XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
3678 2003-09-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3680 * XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
3681 recovery was still not enough. Fixed GrowScopes() (incorrect index).
3683 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3685 * XmlTextReader.cs :
3686 - Fix for bugzilla #48337 (containing Ben's advice on that).
3687 - Added internal XmlTokenInfo classes. Nodes are now handled as token
3688 objects (linked node, attributes and attribute values). Most of the
3689 node state properties and iterating methods are changed to refer to
3690 the token classes (except for value builder availability). Removed
3691 fields which are never used. CompileDTDSubset() is changed in
3692 reflection to nodeType field removal.
3693 - Fixed Depth that should vary in moving between attributes and/or
3694 reading attribute values.
3695 - LineNumber and LinePosition now returns more correct location.
3696 - Fixed Value that should still return true if its value is an empty
3697 attribute value string.
3698 - EntityValue is checked WFC constraints even thoug it is not used.
3699 - All .ctor() now initializes ReadState as Initial.
3700 - Read() should be available for attribute value constructor.
3701 * XmlAttribute.cs : set_InnerXml() now calls reader's Read().
3703 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3705 * XmlNamespaceManager.cs: PopScope() must retain those namespaces which
3706 are added in the scope before PushScope() was called.
3708 2003-09-20 Ben Maurer <bmaurer@users.sourceforge.net>
3710 * XmlNamespaceManager.cs: Rewrote. Uses arrays, rather than linked
3711 lists and removes uses of Hashtable. Results in huge speed gains.
3713 2003-09-19 Ben Maurer <bmaurer@users.sourceforge.net>
3715 * XmlConvert.cs: NaN.ToString () != INF.
3717 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
3719 * XmlTextWriter.cs: Attributes that have a namespace must be always
3722 2003-09-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3724 * XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
3726 * XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
3727 Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
3728 add Namespaces immediately, but adds at AddMissingElementXmlns so
3729 that we don't have to have extra check than namespaceManager's
3730 LookupPrefix(). 2) Removed writtenAttributes for performance reason
3731 since it is no more required.
3733 2003-09-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3735 * XmlDocument.cs : patch by Jonathan Hogg. Fixed CreateAttribute()
3736 that handled xmlns attributes inproperly.
3738 2003-09-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3740 * XmlNamespaceManager.cs : GetEnumerator() should return all of the
3741 available pairs (of prefix and namespace).
3742 * XmlQualifiedName.cs : Quick fix for NullReferenceException in case
3743 of name (or ns) is null. (The description of the immediate previous
3744 changes will be inserted below.)
3745 * XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
3746 * XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
3747 will release resources it had allocated.
3749 2003-09-01 Ben Maurer <bmaurer@users.sourceforge.net>
3751 * XmlDocument.cs (Save): use the encoding of the document, if
3754 2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3756 * XmlValidatingReader.cs : Implemented SchemaType. Added support for
3757 ValidationType.Schema. Added support for XmlResolver. Fixed
3758 ReadTypedValue() not to consume EndElement.
3760 2003-08-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3762 * XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
3764 * XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
3765 Commented out Console.Error.WriteLine().
3766 * XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
3767 escape and unescape for relative URI string.
3769 2003-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
3771 * XmlParserContext.cs: Make each context inherit next.
3773 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3775 * XmlChar.cs (IsWhitespace): Spare enumerator allocation.
3776 * XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
3777 fat, use low-fat loops instead. Even better, call the function
3778 inside XmlChar for code reuse.
3779 * HighWaterStack.cs (added): New class that acts like a Stack, but
3780 helps with memory allocation.
3781 * XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
3783 * XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
3784 use a variable that stores the position in the ArrayList.
3786 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3788 * XmlTextWriter.cs: Begin diet. String.Format has too much
3789 saturated fat, lets replace with the fat-free .Write ()
3790 calls. Effects best seen when Paolo's StreamWriter patch is
3793 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3795 * XmlNodeReader.cs : Fixed ReadAttributeValue() that might result in
3796 vanishing current node.
3798 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3800 * DTDValidatingReader.cs : Added SchemaType.
3801 Read() Assures to return to element.
3802 * DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
3803 * XmlReader.cs : ReadString() should be virtual in NET_1_1.
3804 * XmlTextReader.cs : 1) Depth should consider Attribute and its values.
3805 Introduced insideAttribute field to support them.
3806 2) ReadAttributeValue() should consider empty string.
3807 * XmlValidatingReader.cs :
3808 Fixed several properties which premised as if it was already read.
3809 Encoding and Namespaces now throws NotSupportedException for other
3811 Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
3813 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3815 * XmlInputStream.cs : Reverted CanSeek as to return false anyway.
3817 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3819 * DTDObjectModel.cs : added XmlResolver related members. Added
3820 invalid entity recursion logic. Added encodingdecl check on textdecl.
3821 * DTDValidatingReader.cs : It now implements IHasXmlParserContext.
3822 * XmlChar.cs : IsPubidChar() should not allow TAB(	).
3823 * XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
3824 to receive DTDObjectModel to support other than XmlTextReader.
3825 2) Most of its public member is now based on DTDObjectModel.
3826 * XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
3827 2) ReadNode() now considers XmlParserContext's DTDObjectModel for
3828 other than XmlTextReader (such as XmlValidatingReader).
3829 * XmlNode.cs : code cleanup only.
3830 * XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
3831 * XmlTextReader.cs : 1) Illegal entity reference check logic was moved
3832 from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
3833 change on ReadEntityReference(). 3) ReadAttribute() now checks
3834 reference to external entity reference. 4) Added textdecl encoding
3835 check. 5) DTDObjectModel fields are now set correctly. 6) added
3836 PERef markup nest check. 7) If PEDecl was not found, it might be WFC
3837 violation, not only be VC violation. 8) ReadEntityDecl() now receives
3838 its declared entity itself, and this method checks IsInternalSubset.
3839 * XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
3840 2) ValidationType.None should be the same as Auto, not DTD (in the
3841 future it should keep xml schema's default values).
3843 Pending Stuff in XmlTextReader which breaks some NUnit tests;
3844 1) SetEntityReferenceProperies() has check for illegal references.
3845 2) ReadAttribute(bool) has similar check for illegal references.
3847 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3849 * DTDAutomata.cs : Fixed (modified or added) TryEndElement() of choice,
3850 sequence and oneOrMore. Fixed DTDChoiceAutomata.TryStartElement().
3852 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3854 * XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
3855 and supplied SkipWhitespace() as they needed. It broke monodoc.
3856 Fixed ReadEntityValueDecl() to get correct value.
3858 2003-08-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3860 * XmlInputStream.cs :
3861 Fixed Initialize() that might result in incorrect buffer.
3862 CanRead and Position should consider buffer (especially when the
3864 CanSeek should use stream's CanSeek.
3866 * XmlChar.cs : added GetPredefinedEntity().
3867 * DTDObjectModel.cs :
3868 - Modified ComputeDefaultValue() to use it.
3869 - Fixed NormalizedDefaultValue not to expect parsed value as string.
3870 - ResolveExternalEntity now detects invalid standalone specification.
3871 - DTDParameterEntityDeclaration.Value is now changed to property and
3872 keep its resolved value of literal value of external value using
3873 new Resolve (XmlResolver) method (called only by XmlTextReader).
3874 * DTDValidatingReader.cs :
3875 - It now handles entity-expanded Whitespace and SignificantWhitespace
3876 correctly. Does not raise unexpected text not allowed error.
3877 - Fixed MoveToAttribute()s to move internal reader correctly, and
3878 should be able to move in other cases than on element node.
3879 - On Read()ing document type and ResolveEntity(), it now sets
3880 XmlResolver on text reader.
3881 - On ID constraints check and type verification, it now uses
3882 normalized attribute or its tokenized value(s).
3883 - Fixed ValidateAttributes() to add default values when
3884 ValidationType is Auto.
3885 * XmlParserContext.cs : added internal Dtd setter.
3886 * XmlParserInput.cs :
3887 InsertParameterEntityBuffer() should add surrounding whitespaces.
3888 Removed unused code block.
3889 * XmlTextReader.cs :
3890 - Modified ReadReference(), ReadAttribute() and Dereference() to use
3891 XmlChar.GetPredefinedEntity().
3892 - When returning entity reference, it checks extity declaration
3893 existence in certain conditions.
3894 - ReadAttribute() now skips general entity replacement on reading
3896 - ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
3897 - ReadXmlDeclaration() holds isStandalone, which might be used in
3898 entity reference's well-formedness check.
3899 - internal 'DTD' now uses XmlParserContext.Dtd.
3900 - isInternalSubset was meaningless. Now uses input stack's Count.
3901 - Added some required SkipWhitespace().
3902 - Several parameter entity handling changes. Added GetPEValue(name).
3903 TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
3904 now uses its Resolve() when it was external PE. Now it uses value
3905 buffer instead of currentTag, to efficiently read (included) PE.
3906 CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
3907 ImportAsPERef() simply inserts the value to currentInput.
3908 ReadEntityDecl() also uses value buffer. Removed non-used methods.
3909 - Default attributes are now stored in normalized form.
3910 - Dereference() now considers non-expanding predefined entities.
3911 * XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
3912 is more correctly supported.
3914 * XmlAttributeCollection.cs :
3915 When removing default attribute, it immediately inserts the attribute.
3916 RemoveAll() should consider default (not-removable) attributes.
3918 Should have its default XmlResolver. Added Internal Resolver.
3919 Some Load() should use its XmlResolver.
3920 ImportNode() should copy its children in node level, not value level.
3921 It also have to consider not to copy default attribute on importing
3923 * XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
3925 XmlDocumentFragment.cs.
3926 XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
3927 * XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
3928 ResolveEntity() uses XmlResolver on entityReader.
3930 2003-08-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3932 * DTDObjectModel.cs :
3933 - Added validation error check (and AddError(), Errors).
3934 - Fixed ComputeDefaultValue() to handle various references correctly.
3935 - DTDEntityDeclaration.EntityValue became property, and added
3936 LiteralEntityValue. The new one holds resolved value.
3937 Added ResolveExternalEntity(). It now required root in .ctor().
3938 * DTDValidatingReader.cs :
3939 - Now it handles namespaced attributes (as input to xsd validator).
3940 - Added XmlResolver property as usual XmlReader.
3941 - Added currentEntityHandling field so that it can stand changing
3942 XmlValidatingReader's EntityHandling dynamically.
3943 - FilterNormalization() now requires name for getting datatypes and
3944 can stand for non-current attribute normalization.
3945 - Splitted ReadContent() from Read() that can be called recursively
3946 when expanding entities.
3947 - Now handles Entity not found error *after* resolution of entities,
3949 - Read()ing DTD checks its Errors and raises validation error events.
3950 In some situations, DTD parsing may detect VC error, not WFC error.
3951 It also strictly checks NData existence.
3952 - Handling of entity-resolved text is a bit changed and Read()ing
3953 element, endElement, cdata now changed to switch collecting text
3955 - content type ANY should allow texts.
3956 - Added enumerated attribute validity check.
3957 - Added Name/Names creation rule check for ID/IDREF/IDREFS.
3958 - Added entity existence check for ENTITY/ENTITIES attributes.
3959 - Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
3960 - Fixed to remove extraneous #REQUIRED check.
3961 - Contributing default attribute is now only applied to the case
3962 ValidationType is DTD or None.
3963 - ResolveEntity() now handles external entities.
3964 Added Mono.Xml.IXmlParserContext interface support.
3965 * XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
3966 * XmlTextReader.cs :
3967 - Fixed ReadAttributeValue() to reset returnEntityReference.
3968 - Added bool MaybeTextDecl only for ResolveEntity().
3969 - Fixed ReadWhitespace(). In fact its value is considered even if it
3970 is in the end of the XML.
3971 - Fixed ReadXmlDeclaration(). Now skips text declaration.
3972 - CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
3973 - ReadContentSpec() should set OrderType = OR for mixed model.
3974 Fixed to set content element name correctly.
3975 - ImportAsPERef() now skips Text declaration.
3976 - Type of enumerated default attributes shold be string.
3977 - Undeclared PE error is now handled as DTD's VC error, not
3978 XmlTextReader's WFC error.
3979 * XmlValidatingReader.cs : BaseURI should provide that of
3980 original XmlReader's when read was not started yet.
3981 Fixed XmlResolver to delegate to DTDValidatingReader.
3983 * XmlAttributeCollection.cs : Acquiring attList declaration is
3984 insufficient especially in case of lack of elementdecl.
3985 * XmlChar.cs : (Maybe this is compact than XmlConstructs.)
3986 added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
3987 IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
3989 * XmlInputStream.cs : Removed "version" declaration check. It should
3990 be done by XmlTextReader.
3992 * XmlNodeReader.cs : added internal GetInternalParserContext() and now
3993 it can be used in XmlValidatingReader.ResolveEntity().
3994 ResolveEntity() sets XmlTextReader.MaybeTextDecl.
3996 2003-08-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3998 * DTDValidatingReader.cs :
3999 Added full ExpandEntities support for text node and entity reference
4000 node (although require many usage tests). Almost all methods and
4001 properties now have currentTextValue != null check, that field means
4002 that there are cached (entity-resolved) text.
4003 Implemented default attribute aware XmlLang and XmlSpace.
4004 * XmlNodeReader.cs : ResolveEntity() should not require DTD.
4006 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4008 * DTDValidatingReader.cs,
4012 XmlValidatingReader.cs : fixed pragma USE_VERSION_1_0 to NET_1_0.
4014 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4016 * DTDObjectModel.cs : Added BaseURI (but not used yet).
4017 DTDAttListDeclaration.ctro() now requires root dtd object model.
4018 * DTDValidatingReader.cs : Read() now expands EntityReference if
4019 entity handling of validating reader is ExpandEntities.
4023 XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
4024 ReadOuterXml which are modified in MS.NET 1.1.
4025 * XmlConstructs.cs : added int version of IsValid, IsInvalid,
4026 IsContent, IsMarkup and IsNCNameStart.
4027 Fixed int version of IsXXX() to check array index range.
4028 Added IsValidName (string).
4029 * XmlTextReader.cs :
4030 - Read() handles document with non document element as an error.
4031 - ReadText() and ReadCharacterReference() checkes illegal characters.
4032 - ReadEntityReference() checks name validity.
4033 - ReadProcessingInstruction() rejects such name that starts with
4034 "xml" ignoring case, and checks attributes more strictly.
4035 - ReadDeclaration() rejects unrecognized kind of declaration.
4036 - In many places, added "required whitespace" check in DTD markup.
4037 - DTD content model now disallows mixing use of '|' and ','.
4039 2003-08-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4041 * XmlDocumentFragment.cs : I missed to add it in relation to the
4042 previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
4043 * XmlNodeReader.cs : removed some TODO attributes.
4044 * DTDValidatingReader.cs,
4045 XmlValidatingReader.cs : Implemented ResolveEntity().
4047 2003-07-31 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4049 * XmlParserContext.cs,
4051 XmlElement.cs : Added internal Dtd and new internal XmlParserContext
4052 .ctor() that takes DTDObjectModel. And then rewrote classes which
4053 uses DTD information. Changed DocTypeName, InternalSubset, PublicId
4054 and SystemId to use DTDObjectModel.
4055 * DTDObjectModel.cs :
4056 Added DTDObjectModel.InternalSubsetHasPEReference.
4057 Added DTDEntityDeclaration.IsInternalSubset.
4058 * XmlTextReader.cs :
4059 Added internal GetInternalParserContext (to build entity reader).
4060 Added private isIntSubset to check if the DTD subset is internal or
4061 external, which might affect well-formedness constraints.
4062 Changed GenerateDTDObjectModel to return the resulting DTD model.
4064 * XmlEntityReference.cs : implemented BaseURI.
4065 * XmlNodeReader.cs :
4066 - Implemented ResolveEntity() and CanResolveEntity(). In fact
4067 it leads too many changes on almost all methods and properties,
4068 since they now must be aware of entityReader.
4069 - fixed ownerElement that might be used to return from attribute
4070 value to the element through parent attribtues.
4071 - Now changed indexer to call GetAttribute() and moved actual logic
4072 to the matching GetAttribute() methods.
4074 2003-07-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4076 * XmlNode.cs : fixed internal ConstructNamespaceManager() for InnerXml
4077 not to create extraneous xmlns="".
4079 2003-07-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4081 * DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
4082 attribute declaration should be got independently of elementdecl.
4084 Added internal SetDefault() to mark as default.
4085 Removed InnerText implementation that is just the same as XmlNode.
4086 * XmlDocument.cs : id shouldn't be removed from table at 'trying' to
4087 get matching elements. ReadAttributeNode() now sets default mark.
4088 * XmlElement.cs : WriteTo() should ignore default attributes.
4089 * XmlTextWriter.cs : shuold allow valid name char such as digits.
4091 2003-07-27 Piers Haken <piersh@friskit.com>
4093 * XmlQualifiedName.cs : fields should never be null
4095 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4097 * XmlDocumentFragment.cs : added XPathNodeType indicating Root.
4099 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4101 * XmlDocument.cs (GetIdenticalAttribute): restored OwnerElement.IsRooted
4103 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4105 * XmlLinkedNode.cs : added internal IsRooted.
4107 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4109 * DTDValidatingReader.cs :
4110 - Added ID support in ValidateAttributes().
4111 - More refined ReadAttributeValue() support for non-expanding entity
4113 - It should handle LocalName, Name, Prefix, NamespaceURI and Value
4114 correctly when the reader is on each of the value nodes of an
4115 attribute. Now XmlDocument.ReadNode() should work well.
4117 - added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
4118 RemoveIdenticalAttribute()
4119 - Implemented GetElementById().
4120 * XmlAttributeCollection.cs :
4121 - added private ownerDocument property and replaced
4122 ownerElement.OwnerDocument with it.
4123 - Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
4124 It calls XmlDocument.{Add|Remove}IdenticalAttribute().
4125 - Added RemoveIdenticalAttribute() and it is used in Remove().
4126 (I also added AddIdenticalAttribute() but is not used.)
4128 2003-07-26 Duncan Mak <duncan@ximian.com>
4130 * XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
4131 for OwnerElement.IsRooted to fix the build..
4133 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4135 * XmlDocumentType.cs :
4136 modified private DTD to dtd and added internal DTD (the same thing).
4138 Fixed SetAttributeNode() to check if specified attribute is already
4139 set to the other element. In fact it is W3C DOM's specification but
4140 MS.NET 1.0 failed to catch it.
4141 * XmlTextReader.cs :
4142 ReadAttributeValue() should check if the value of the attribute is
4143 already read when the whole value is entity reference.
4144 Also, Name of text nodes should be "", not "#text"
4146 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4148 * XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
4149 with http://www.w3.org/XML/1998/namespace.
4150 * XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
4151 * XmlNode.cs : InnerText should handle CDATA and whitespaces.
4152 * XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
4153 * XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
4154 attributes (as MS.NET does). It isn't good way and I may change it.
4156 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4158 * DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
4159 DTDNotationDeclarationCollection and replaced Hashtables with them.
4160 Added NormalizedDefaultValue property for DTDAttributeDefinition.
4161 * DTDValidatingReader.cs :
4162 - It now reads attribute values into value collection.
4163 - Renamed consumedDefaultAttribute to consumedAttribute, and
4164 inContent to insideContent.
4165 - GetAttribute() should allow reader's other node state than element.
4166 - MoveToNextAttribute() should move when reader is placed other than
4167 the first attribute.
4168 - HandleError() now supports ValidationType.None (i.e. does nothing).
4169 - ValidateAttribute() now collects and resolves attribute value
4170 entity references. (On the other hand, it doesn't support
4171 EntityHandling.ExpandCharEntity.)
4172 - NodeType shouldn't return Attribute after ReadAttributeValue().
4173 Now only Text is supported, but must also support EntityReference.
4174 - Add FilterNormalization() and partially support Normalization.
4176 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4178 * XmlTextReader.cs :
4179 Read() now handles parser context stuff (BaseURI, XmlLang and
4180 XmlSpace) correctly for an empty element.
4181 Normalization property now doesn't throw an error. Will be used soon.
4182 * XmlValidatingReader.cs : added ValidationType.None support (wait for
4183 the next DTDValidatingReader update for "not firing event handler).
4184 * XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
4186 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4188 * DTDValidatingReader.cs :
4189 changed base class to XmlReader and implemented IXmlLineInfo members.
4190 changed .ctor() argument from event handler to validating reader.
4191 Removed some #if ... #else ... #endif blocks.
4192 Added validation event support for Read() using HandleError().
4193 * XmlValidatingReader.cs : added internal OnValidationEvent().
4194 * XmlDocument.cs : ReadNode() now checks reader's state more strictly.
4196 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4198 * XmlUrlResolver.cs : applied BenM's patch for file uri problem
4201 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4203 * DTDValidatingReader.cs :
4204 added DTDObjectModel support for non-XmlTextReader XmlReader
4205 e.g. XmlNodeReader (Read() method).
4207 added internal CreateDocumentType(XmlTextReader) and moved
4208 ReadDoctypeNode() to XmlDocumentType.ImportFromDTD().
4209 * XmlDocumentType.cs :
4210 added internal .ctor(XmlTextReader, document) and ImportFromDTD().
4211 * XmlTextReader.cs :
4212 Renamed useSbForVal (valueBuilderAvailable), valSb (valueBuilder)
4213 and currentSubset (DTD).
4214 Added GenerateDTDObjectModel() (for independent doctype parsing).
4216 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4219 .ctor() should reject xml- or xmlns-prefixed node.
4220 * XmlNamespaceManager.cs :
4221 added some xmlns validity check.
4223 optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
4224 avoiding XmlNamespaceManager creation.
4225 * XmlNodeReader.cs :
4226 doctype node should return PUBLIC and SYSTEM for its indexer,
4227 and Value should be internal subset,
4229 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4231 * DTDObjectModel.cs,
4232 DTDValidatingReader.cs : Completely rewrote attribute handling.
4234 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4237 XmlElement.cs : Fixed CloneNode() for bug #46129.
4238 * XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
4239 String.Format arguments, and basically XmlException.ctor(
4240 IXmlLineInfo, message) seems good idea to use.
4241 * XmlTextReader.cs :
4242 - Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
4243 required non-null context which don't have to exist.
4244 - Added state check. Introduced 'currentState' and 'maybeTextDecl'
4245 (for external entity) and removed hasEnteredDocument. Added
4246 state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
4247 ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
4248 - Replaced throw ReaderError() with throw new XmlException() and
4249 fixed that some error hadn't thrown, only created.
4250 - ResetState() should re-initialize existing private members other
4251 than some specified fields.
4252 - Private AddAttribute() should check if the same-named attribute
4254 * DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
4256 2003-07-09 Lluis Sanchez Gual <lluis@ximian.com>
4258 * XmlTextReader.cs : Implemented ResetState() method.
4260 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4262 * XmlElement.cs : IsEmpty has removed attributes since it incorrectly
4265 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4267 * XmlDocument.cs : Load(string filename) should close its stream.
4268 Small change for the latest DTDObjectModel change.
4269 * XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
4270 changed methods are only related to DTD stuff).
4271 Now uses XmlSchemaDatatype for attribute type definition.
4272 * XmlValidatingReader : initial (limited) support for DTD validation.
4273 It can handle only XmlTextReader.
4274 * DTDObjectModel.cs : changed radically for initial validation support.
4275 * added DTDAutomata.cs and DTDValidatingReader.cs.
4277 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4279 * XmlElement.cs : Removed extraneous xmlns output support (it should
4280 be done by XmlTextWriter).
4281 * XmlNode.cs : InsertBefore() now checks validity of the newChild (and
4282 most of the changes are in fact indentation changes).
4283 * XmlWriter.cs : WriteAttributes() now can write entity references.
4284 WriteNode() now writes xmldecl attributes correctly.
4285 Removed namespaceManager and xmlns check logic, since it should be
4286 done by individual XmlTextWriter.
4287 * XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
4288 written multiple xmlns declarations.
4289 Moved namespaceManager from abstract XmlWriter.
4290 Write{Start|End}Attribute() and WriteString() now checks xmlns
4291 attribute value. (MS.NET holds value only with this write method).
4293 2003-07-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4295 * XmlDocument.cs : removed xmlReader.Close() from Load(XmlReader).
4297 2003-06-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4299 * XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
4300 essentially changed most of the property handling (e.g. removed attribute
4301 enumerator and it now became really cloneable).
4302 * XmlNodeReader.cs : ReadInnerXml() changes its state as error
4303 when the method is called at Initial state.
4305 2003-06-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4307 * XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
4308 as non-empty, and XmlElement's IsEmpty is designed as such.
4309 Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
4311 * XmlNode.cs : Fixed XPathNodeType. It should throw an exception
4312 instead of returning undefined enum value.
4313 Modified some code comments.
4314 * XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
4315 when XmlReader's node is not at empty element or at EndElement.
4316 Fixed XmlDeclaration's standalone check.
4318 2003-06-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4320 * XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
4321 to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
4323 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4325 * XmlInputStream.cs : quick fix for public ctor() BaseURI bug.
4327 2003-06-20 Ben Maurer <bmaurer@users.sourceforge.net>
4329 * XmlTextReader.cs: Reduces memory allocation when the reader is
4330 not queried for some values.
4331 * NameTable.cs: Now uses a custom hashtable to implement. As a
4332 result, when Get (char[], int, int) is called, a string is only
4333 allocated if it is actually a new entry.
4334 (StrEqArray) Compares a string and a char[]
4335 (AddEntry) Adds a new entry to the hashtable
4336 (Entry) Represents a hashtable entry.
4338 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4340 * XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.
4342 2003-06-16 Ben Maurer <bmaurer@users.sourceforge.net>
4343 * XmlUrlResolver.cs: really fixed #44231
4345 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4347 * XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
4348 this method set current node null.
4349 * XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
4350 String.Empty instead of null (expected value).
4353 XmlInputStream.cs : fixed BaseURI problem (bug #44231).
4355 2003-06-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4357 * XmlNodeReader.cs : this [name] and this [name, ns] (and
4358 GetAttribute() methods in turn) returns null instead of String.Empty.
4359 * XmlTextWriter.cs : WriteStartAttribute() should try to use specified
4360 prefix before auto-generating prefixes.
4361 Implemented WriteBase64().
4363 2003-06-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4365 * XmlNodeReader.cs : LookupNamespace () has refered invalid current
4366 node for attributes. Modified to use private "document" property.
4368 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
4370 * XmlTextWriter.cs: when adding an attribute with a namespace, a prefix must be automaticaly
4371 generated, and a namespace declaration must be added.
4372 * XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
4374 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
4376 * XmlAttribute.cs: Accept a null prefix or namespaceURI.
4378 2003-06-10 Duncan Mak <duncan@ximian.com>
4380 * XmlDocumentNavigator.cs (GetNode): Make it implement
4383 2003-06-05 Lluis Sanchez Gual <lluis@ideary.com>
4385 * XmlTextWriter.cs : Fixed bug. After calling for example WriteStartElement ("pref","ln","ns");
4386 a call to LookupPrefix ("pref") when still writting attributes should
4387 return "ns", and it didn't.
4389 2003-06-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4391 * XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
4392 * XmlConvert.cs : fixed VerifyNCName() to check correctly.
4394 2003-06-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4396 * XmlDocumentNavigator.cs : Compute document node one time.
4397 MoveToFirstChild() should move to PIs and comments.
4399 2003-05-30 Miguel de Icaza <miguel@ximian.com>
4401 * XmlReader.cs (ReadStartElement): Improve error message.
4403 2003-05-28 Lluis Sanchez Gual <lluis@ideary.com>
4405 * XmlTextReader.cs : MoveToAttribute methods must set the enumerator to the right
4406 position, since MoveToNextAttribute may be called after it.
4407 SetProperties(): attributes do not "inherit" the namespace.
4408 * XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
4410 2003-05-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4412 * NameTable.cs : Add() sets the given name string interned.
4413 * XmlParserContext.cs : added internal PushScope() and PopScope() to
4414 hold stacks of xml:base, xml:lang and xml:space.
4415 * XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
4416 property for stacked attributes). Renamed Initialize() to Initialize-
4417 Context(). Modified to use XmlParserContext.PushScope()/PopScope().
4419 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
4421 * XmlReader.cs: Little fix to WriteAttributeString()
4423 2003-05-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4425 * XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
4426 XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
4427 XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
4428 XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
4429 Reverted the recent accessibility mistake (5/16).
4430 * XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic
4431 from XmlNode to XmlDocument.
4433 2003-05-18 Lluis Sanchez Gual <lluis@ideary.com>
4435 * XmlQualifiedName.cs : Fixed bug in equality operator.
4437 2003-05-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4439 * XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
4440 any open attributes or elements. WriteWhitespace() checks state and
4441 closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
4442 when it is called inside attribute value.
4443 * XmlException.cs : added .NET 1.1 .ctor.
4444 * added XmlSecureResolver.cs (only stubbing).
4445 * XmlAttribute.cs : set_InnerXml() should remove children.
4448 XmlDocumentFragment.cs,
4449 XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
4450 * XmlNode.cs : RemoveAll() should also remove all attributes.
4451 * XmlTextRader.cs : .ctor() for attribute value reader should add
4452 quotations at initialization, since it requires quote chars.
4453 * XmlWriter.cs : WriteAttributeString() more correct xmlns check.
4455 2003-05-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4457 * changed XPathNodeType modifier to internal *protected* override.
4458 * XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
4459 * XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
4460 * XmlAttributeCollection.cs : removed some incorrect TODO attributes.
4461 * XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
4462 when the argument is "xmlns".
4463 * XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
4464 * XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
4465 * XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
4466 * XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
4467 not to set error state for non-started XmlNodeReader.
4468 * XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
4469 BaseURI support. Fixed Initialize() to handle Attribute correctly.
4470 SetProperty for attribute auto-completes xmlns NSURI.
4471 Attribute and whitespace handling became more correct.
4472 Don't parse external DTD if XmlResolver is null.
4473 * XmlTextWriter.cs : implemented WriteEntityRef().
4474 WriteStartAttribute() checks if ns does not equal to that of xmlns.
4475 * XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
4477 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4479 * XmlConvert.cs : IsInvalid() Now uses XmlConstructs.IsName(Start).
4480 EncodeName() now correctly encodes invalid names.
4481 Result string of ToString(DateTime) contains "fffffff".
4483 2003-04-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4485 * XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
4486 * XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
4488 Fixed this[] to work correctly against XmlDeclarations.
4489 Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
4490 (which may prevent validations etc.)
4493 XmlTextReader.cs : Fixed ReadString() to be compliant with each
4495 * XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
4497 2003-04-27 Pedro MartÃnez Juliá <yoros@wanadoo.es>
4499 * XmlNode.cs: ensure to get a valid Uri in BaseUri when loading the
4500 source document from a file.
4502 2003-04-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4504 * XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
4505 content EntityReference correctly.
4506 * XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
4507 HasAttributes, indexers, MoveTo*Attribute() and Read() ).
4508 Modified Skip() to call Read () explicitly.
4509 * XmlTextReader.cs :
4510 Fixed ReadInnerXml() which ignored EndElement token in certain cases.
4511 Implemented MoveToAttribute (local, ns), and modified GetAttribute()
4512 in relation to this change.
4513 Attributes for XmlDeclaration are now correctly set.
4514 * XmlTextWriter.cs : WriteRaw() is now different from WriteString().
4515 Simplified WriteAttributes() for XmlDeclaration.
4517 2003-04-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4519 * XmlTextReader.cs : fixed ReadInnerXml(). it was inconsistent with
4522 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4524 * XmlDocument.cs : fixed Load() to set baseURI correctly.
4525 * XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
4526 * XmlTextReader.cs :
4527 fixed Depth. When it's on StartElement, Depth was already incremented.
4528 fixed private SaveProperty(), which moved away its saved properties
4529 when MoveToElement was called repeatedly.
4530 * XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
4532 WriteAttributes() refactory (for XMLDecl).
4533 WriteNode() don't Read() when the reader is Initial state, let other
4534 invokation to Read(). In case of Element, it should write entire
4535 element. In case of Attribute, it shouldn't Read().
4536 WriteStartDocument() should omit standalone decl. when there is no
4539 2003-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4541 * XmlReader.cs: reverted last patch. It breaks System.Configuration
4542 because 1. it considers XmlDeclaration as content and 2. always
4543 returns XmlNodeType.None.
4546 2003-04-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4548 * Added missing ChangeLog of 4/4/2003.
4549 * XmlTextWriter.cs : patch by Erik. fixed WriteQualifiedName.
4550 (write prefix instead of ns.)
4551 * XmlInputStream.cs : file access mode fix (FileAccess.Read was missing)
4552 * XmlTextReader.cs : modified to call Read() instead of ReadContent().
4553 (It may be required for decorated reader such as XmlValidatingReader.)
4554 Changed Read() error message for mismatch end tag.
4555 * XmlDocument.cs : (ReadNode) friendly message for mismatch EndElement.
4556 * XmlReader.cs : Corrected misinterpreted MoveToContent() method.
4558 2003-04-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4560 * XmlDocument.cs : Load() now closes the given XmlReader.
4561 Don't allow creation of XmlTextReader for Doctype. (workaround.)
4562 * XmlInputStream.cs : It now closes its internal stream explicitly.
4563 * XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
4564 * XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
4565 * XmlParserInput.cs : added Close() method.
4566 * XmlReader.cs : MoveToContent() should (1) not Read in case of empty
4567 element, and (2) MoveToElement() in case of attribute.
4568 * XmlTextReader.cs : Close() now actually closes source TextReaders.
4570 2003-03-26 Duncan Mak <duncan@ximian.com>
4572 * XmlTextWriter.cs (Write): A patch from Atsushi to fix
4573 prematurely ending the write, or something like that. It was
4574 causing us to chop off the end of the document when we're trying
4575 to generate XML Schemas.
4577 2003-03-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4579 * XmlTextReader.cs : implemented ReadString().
4580 fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
4581 null reference exception when context is null.
4582 * XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
4583 fixed Read() - when positioned at EndElement, it didn't progress.
4584 fixed HasAttribute - it didn't return false in all cases.
4585 fixed Name and LocalName - only limited type of nodes return names.
4586 fixed AttributeCount - in some cases it threw null ref exception.
4588 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4590 * XmlTextWriter.cs : WriteStartDocument doesn't set hasRoot=true, then
4591 WriteEndDocument without root element now raises an error correctly.
4592 * XmlDocumentNavigator.cs : (MoveToFirstChild) fixed bugzilla #36672.
4593 implemented BaseURI, NameTable, XmlLang, GetAttributes, GetNamespace,
4596 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4598 * XmlElement.cs : RemoveAttribute now don't throws when specified
4599 attribute does not exist.
4601 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4603 * XmlNode.cs : add descriptions for some node type error.
4605 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4607 * XmlNodeArrayList.cs, XmlNodeListChildren.cs : bugzilla #39920 fix.
4609 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4611 * XmlDeclaration.cs : quick fix, not to use regex for set_Value.
4613 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4615 * XmlTextReader.cs : Fixed wrong notationdecl SYSTEM id read.
4616 * XmlInputStream.cs : Should allow versionless input stream entity.
4618 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4620 * added XmlParserInput.cs for multi xml document sources.
4621 * added DTDObjectModel.cs (maybe temporary).
4622 * XmlTextReader.cs :
4623 + fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
4624 + Some members such as LineNumber, ReadChar now uses XmlParserInput.
4625 + added support for Namespaces (namespace-ignorant parse available).
4626 + added support for XmlResolver.
4627 + replace SetReaderContext()/SetReaderFragment() with Initialize().
4628 + use NameTable in CreateNameString.
4629 + fixed ReadCData(). Now reads "]]]>" correctly.
4630 + support for DTD parse.
4631 + Read() now throws an error when it reached EOF while Depth > 0.
4633 XmlDocumentFragment.cs,
4634 XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
4635 * XmlDocument.cs : ReadNode() now reads DocumentType.
4636 * XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
4638 XmlNotation.cs : added override LastLinkedChild (for doctype node).
4639 * XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
4640 * XmlElement.cs : bugfix for node removal of set_InnerXml.
4641 * XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
4642 (to append child XmlEntity into XmlDocumentType correctly.)
4643 * XmlInputStream.cs : fixed to access file with FileAccess.Read.
4645 2003-03-15 Duncan Mak <duncan@ximian.com>
4647 * XmlElement.cs (Name): Only append prefix + ':' when prefix is
4648 neither String.Empty nor null. Thanks to Simon Guindon for
4649 reporting the bug and Jackson for fixing this bug with me.
4651 2003-03-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4653 * XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
4654 * XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
4655 fixed ReadNode(), it should call reader.Read() only on Initial state.
4656 * XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
4657 and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
4658 System.Net.WebClient directly.
4659 * XmlParserContext.cs : baseURI never be null.
4660 * XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
4661 * XmlUrlResolver.cs : namespace change for XmlInputStream.
4663 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
4665 * XmlTextReader.cs: When throwing a ReaderException, show what
4666 character was the culprit
4668 2003-03-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4670 * XmlDocumentFragment.cs, XmlElement.cs :
4671 modified InnerXml (fragment type from Element to DocumentFragment).
4673 * XmlElement.cs : fixed WriteTo() ns check.
4674 * XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
4675 * XmlNode.cs : fixed ConstructNamespaceManager().
4677 * XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
4678 IsPubid with an int arg.
4679 * XmlReader.cs : changed to use XmlChar.cs (its role is as same as
4681 * XmlTextReader.cs :
4682 improved error messages with line info.
4683 / checking matching start and end tags.
4684 / prevents the apperance of multiple root elements. (patch by Erik)
4685 fixed and refactored ReadInnerXml() and ReadOuterXml()
4686 changed to use XmlChar.cs.
4688 * XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
4689 (It will help c14n implementation.)
4690 / blocks multiple attribute output with element node.
4692 2003-02-28 Alan Tam <Tam@SiuLung.com>
4694 * XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
4695 methods to make them compatible with the XML Schema Spec from W3C
4696 ToString(TimeSpan) is still outstanding
4698 2003-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4701 (Load (string)): hack to workaround some issues with Uri.Parse. Once
4702 Parse is fixed, remove the hack.
4704 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4706 * XmlQualifiedName.cs : fixed GetHashCode() to avoid null reference
4707 * XmlTextReader.cs : fixed ReadAttributeValue() to handle
4708 entity reference, and some refactory.
4710 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4712 * XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.
4714 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4716 * XmlInputStream.cs : added (also contains internal XmlStreamReader).
4717 * XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
4718 and can read non-UTF-8 stream.
4719 * XmlTextReader.cs : related to above stream fix.
4720 * XmlUrlResolver.cs : implemented GetEntity ().
4722 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4724 * XmlTextWriter.cs: implemented WriteRaw (char[], int, int).
4726 2003-02-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4728 * XmlTextReader.cs : implemented QuoteChar.
4730 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4732 * XmlNode.cs : implemented ReplaceChild.
4733 removed DocElem checking at InsertBefore.
4734 * XmlNodeReader.cs : fixed ReadString and Read for correct node info.
4735 * XmlText.cs : implemented CloneNode and SplitText.
4737 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4739 * XmlCharacterData.cs: added XPathNodeType property.
4741 2003-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4743 * XmlTextWriter.cs: throw an exception if WriteEndDocument is
4744 called without a prior call to WriteStartDocument.
4746 2003-01-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4748 * XmlNodeReader.cs : several fix to get more compatible with MS.NET.
4750 2003-01-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4752 * XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
4753 null when no matching uri.
4754 * XmlElement.cs : removed unnecessary xmlns output.
4755 * XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
4756 * XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
4757 along with the change above, and moved timing of 'xmlns' output
4758 to CloseStartElement.
4759 * XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
4761 2003-01-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4763 * XmlWriter.cs: modified WriteStartElement (see test for detail).
4766 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
4768 * XmlDocument.cs: Added CheckName () method to check names validity.
4770 2003-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4773 (ReadOuterXml): use Depth property which return elementDepth, not depth.
4775 2003-01-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4777 * XmlElement.cs : (by ville) XmlElement.set_InnerText event bugfix.
4778 * XmlTextReader.cs : some fix for ReadOuterXml().
4780 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4782 * XmlTextReader.cs : bugfix for attributes related to creation of
4783 XmlAttribute *node*.
4785 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4787 * XmlTextReader.cs : bugfix for attribute values which have entity
4790 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
4792 * XmlDocument.cs: XmlTextWriter.Formatting == Indented when
4793 calling Save () -methods.
4795 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4797 * XmlNodeReader.cs : primitive reading implementation.
4799 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4801 * XmlElement.cs : quick fix for the incomplete patch of #35308 below.
4803 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4805 * XmlDocument.cs : removed inconsistent line-feed output.
4806 * XmlElement.cs, XmlTextWriter.cs :
4807 fixed for bugzilla 35308 (default ns output)
4808 * XmlWhitespace.cs : limited output only when preserving whitespace.
4810 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4812 * XmlAttribute.cs, XmlDocument.cs, XmlTextReader.cs:
4813 Implemented XmlTextReader.ReadAttributeValue().
4814 Added internal ReadAttributeNodeValue().
4815 Fixed XmlAttribute.InnerXml to use these methods.
4817 * XmlDocument.cs, XmlDocumentFragment.cs, XmlElement.cs, XmlNode.cs:
4818 Implemented XmlDocument.ReadNode() and removed ConstructDOM().
4819 Other changes are replacing them.
4821 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4823 * XmlDocument.cs: patch by Ville (fixed default PreserveWhitespace)
4825 2002-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4827 * XmlElement.cs, XmlTextWriter.cs, XmlWriter.cs:
4828 patch by JD Conley <jconley@winfessor.com>.
4829 (Fix for xmlns attribute output.)
4831 2002-12-05 Ville Palo <vi64p@koti.soon.fi>
4833 * XmlQualifiedName.cs: Little fix to ToString () -method
4835 2002-12-04 Tim Haynes <thaynes@openlinksw.com>
4837 * class/System.XML/System.Xml/XmlElement.cs: Made more refined
4838 checks on attributeNode to fix 32262.
4840 2002-12-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4842 * XmlDocument.cs (CreateNavigator(XmlNode)) : reverted
4843 * XmlTextWriter.cs (WriteStartElementInternal):
4844 fixed when default namespace was specified, all descendants
4845 fail to omit the default namespace declarations.
4848 XmlNode.cs (internal XmlLang/XmlSpace) : implemented(defined)
4850 XmlDocumentFragment.cs,
4851 XmlElement.cs (set_InnerXml): now uses XmlLang/XmlSpace
4852 * XmlElement.cs (set_IsEmpty) : implemented
4853 (WriteTo) : removed my improper indenting (Writer already done)
4854 * XmlNode.cs (BaseURI) : fixed if ParentNode is null, NullPointerEx
4855 (ConstructDOM) : implemented when xmlReader isn't XmlTextReader
4856 ...and renamed XmlDocument.ConventionalParser to ReusableReader ;-)
4858 2002-12-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4860 * XmlNode.cs (RemoveChild):
4861 bugfixed when XmlNode is Document OwnerDocument is null
4862 * XmlDeclaration.cs (Value):
4863 bugfixed regular expression pattern.
4864 * XmlDocument.cs (CreateNavigator): bugfixed access modifier.
4866 2002-11-24 Duncan Mak <duncan@ximian.com>
4868 * XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
4869 Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
4870 first patch to Mono! ;-)
4872 2002-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4875 (AppendChild): readded refChild != null condition before throwing
4876 "cannot insert this node in this position" exception. There's probably
4877 a better solution. Fixes #34191.
4878 (RemoveAll): changed following Atsushi instructions.
4881 2002-11-13 Duncan Mak <duncan@ximian.com>
4883 * XmlElement.cs (IsEmpty): A temporary check-in to keep gtk-sharp
4886 2002-11-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4888 * XmlDocument.cs : unified all constructors, added ConventionalParser,
4889 implemented CloneNode() and CreateEntityReference(),
4890 * XmlEntityReference.cs : set_Value, WriteContentTo, WriteTo
4891 set BaseURI to MonoTODO
4892 * XmlNode.cs : implemented PrependChild, modified ConstructDOM,
4893 bugfix InsertAfter (incorrect prepending) and InsertBefore
4894 (more than one DocumentElements hadn't caused errors)
4895 * XmlTextReader.cs : unified all constructors,
4896 added internal SetReaderContext(), SetReaderFragment()
4897 bugfix (syntax check of PUBLIC / getting internal subset)
4899 2002-11-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4901 XmlAttribute.cs : set_InnerText, set_InnerXml, some check for set_Prefix
4902 XmlAttributeCollection.cs : (indexer) this[localName, namespaceURI]
4903 XmlCharacterData.cs : exchanged Data and Value
4904 (for processing events and inheritance)
4905 XmlDocumentFragment.cs : set_InnerXml
4906 XmlSignificantWhitespace.cs : set_Value
4907 XmlTextReader.cs : ReadAttributeValue
4909 2002-11-04 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4911 XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement'
4913 2002-11-03 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4915 * XmlAttributeCollection.cs : checks owner element.
4916 implemented CopyTo, InsertAfter, InsertBefore, Prepend,
4917 Remove, RemoveAt, SetNamedItem.
4918 removed some logics that sets 'Parent' (that should be null)
4919 * XmlDocument.cs : set_InnerXml, [PreserveWhitespace(incomplete)]
4920 * XmlDocumentFragment.cs : get_InnerXml, WriteContentTo, WriteTo
4921 * XmlElement.cs : implemented WriteTo, set_InnerText.
4922 Fixed WriteTo() to add xmlns:* attributes when
4923 writer.LookupPrefix() returned mismatching.
4924 * XmlNamedNodeMap.cs : compare not only name but localname and nsuri.
4925 Removing different prefixes for the same uri now runs correct.
4926 added SetNamedItem(XmlNode node, int position_to_insert).
4927 * XmlNode.cs : ConstructDOM (logically) creates XmlEntityReference,
4928 XmlWhitespace, and XmlSignificantWhitespace
4930 2002-10-31 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4932 * XmlDocument.cs : implemented CreateDocumentFragment()
4933 * XmlElement.cs, XmlLinkedNode.cs :
4934 moved LastLinkedChild from XmlElement to XmlLinkedNode.
4935 * XmlEntityReference.cs : must throw NotImplementedException.
4937 + implemented InsertBefore() and then implemented InsertAfter()
4938 and modified AppendChild() to call it.
4939 + added logic to check ReadOnly, parent document equivalence,
4940 and inserting any 'content' before/after DocumentElement.
4941 + implemented Clone() [it is equals to CloneNode() by MS doc.]
4942 + added logic in RemoveChild() to check parent of oldChild.
4943 + fixed ConstructNamespaceManager() to internal only.
4945 2002-10-29 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4947 * XmlAttribute.cs : add internal 'IsDefault' property
4948 (equals to !Specified)
4949 * XmlImplementation.cs : added 'internalNameTable' property.
4951 + now allows "" for 'standalone' in CreateXmlDeclaration.
4952 + implemented 'Implementation' property and constructor with it.
4953 + added logic for appending name table (but still no use)
4954 + implemented property 'DocumentType'
4955 (but without internalSubset parsing. wait for next update.)
4957 + modified AppendChild() and RemoveChild() to support fragment.
4958 + modified AppendChild() to remove newChild from its parent
4959 when newChild is already in the other place.
4960 + modified RemoveChild() to set parentNode null.
4961 + modified ConstructDOM() to create DocumentType,
4962 and fixed access modifier ('internal protected' to 'internal')
4963 * XmlLinkedNode.cs : fixed 'NextSibling' to return null
4964 when its parent is null.
4965 * XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
4966 property to enable AppendChild() for this class.
4967 * XmlTextReader.cs : appended private publicId and systemId fields.
4969 2002-10-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4971 * XmlTextReader.cs: make it work when the underlying Stream is not
4974 2002-10-26 Piers Haken <piersh@friskit.com>
4976 * XmlNode.cs: add virtual property XPathNodeType
4981 * XmlProcessingInstruction.cs:
4982 * XmlSignificantWhitespace.cs:
4984 * XmlWhitespace.cs: implement XPathNodeType property
4985 * XmlDocumentNavigator.cs: use XPathNodeType property instead of switch
4987 2002-10-26 Piers Haken <piersh@friskit.com>
4989 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
4991 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4993 * XmlTextReader.cs: don't increment depth for entity references.
4995 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
4997 * - Fixed the duplication of xmlns:xx = yy when serializing the
4998 XML for serialization
5000 Fixed the unnecessary parsing/serializing when adding assemblies
5003 Avoided setting the XmlNode.InnerXml property
5004 (as it's not implemented)
5006 Fixed the usage/implementation of
5007 XmlElement.GetElementsByTagName()
5009 2002-10-21 Duncan Mak <duncan@ximian.com>
5014 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
5015 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
5017 2002-10-18 Duncan Mak <duncan@ximian.com>
5019 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
5020 <ginga@kit.hi-ho.ne.jp>.
5022 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
5024 * XmlDocument.cs (ImportNode): Implemented
5026 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5028 * XmlDocument.cs: one more Load method implemented.
5029 * XmlTextReader.cs: Depth now works.
5031 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5033 * XmlConvert.cs: IsInvalid is now internal.
5034 * XmlNamespaceManager.cs: implemented RemoveNamespace
5035 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
5036 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
5038 2002-09-19 Matt Hunter <mahunter@tconl.com>
5040 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
5041 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
5043 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5045 * XmlConvert.cs: finished implementation.
5046 * XmlTextReader.cs: fixed #30239.
5047 * XmlTextWriter.cs: fixed #30240.
5049 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5051 * XmlTextReader.cs: line and position begin with 1.
5053 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5055 * XmlException.cs: added a new internal constructor for IXmlLineInfo
5056 and output line and position info in Message.
5058 * XmlReader.cs: implemented missing bits.
5060 2002-09-12 Piers Haken <piersh@friksit.com>
5062 * XmlDocumentNavigator.cs: implement MoveToId()
5064 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5066 * XmlTextWriter.cs: fixed bug #29886.
5068 2002-08-26 Ravi Pratap <ravi@ximian.com>
5071 * XmlAttribute.cs (InnerText): Implement getting this property.
5073 * XmlNode.cs (InnerText): Ensure that we append only values of
5076 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5078 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
5079 that allowed compiling this.
5080 [ FIXME: filed bug #29435. mcs should have failed on this ]
5082 2002-08-25 Tim Coleman <tim@timcoleman.com>
5084 Change CreateNavigator to not be virtual.
5086 Add set_Prefix and InnerText accessors.
5087 * XmlEntityReference.cs:
5088 Add set_Value accessor.
5090 Make objects which should be private private.
5092 Remove WriteStartElementInternal abstract definition.
5093 * XmlValidatingReader.cs:
5096 2002-08-22 Jason Diamond <jason@injektilo.org>
5098 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
5099 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
5101 2002-08-22 Jason Diamond <jason@injektilo.org>
5103 * XmlElement.cs: Correction to previous GetElementsByTagName patch
5104 courtesy of Matt Hunter <xrkune@tconl.com>.
5106 2002-08-22 Jason Diamond <jason@injektilo.org>
5108 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
5109 qualified GetElementsByTagName courtesy of Matt Hunter
5112 2002-08-19 Jason Diamond <jason@injektilo.org>
5114 * XmlDocument.cs, XmlElement.cs: Added implementation of
5115 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
5117 2002-08-16 Jason Diamond <jason@injektilo.org>
5119 * XmlElement.cs: Fixed writing out qualified elements courtesy of
5120 Marcus Bürgel <marcus.buergel@gmx.de>.
5122 2002-08-13 Tim Coleman <tim@timcoleman.com>
5124 Partial implementation of WriteQualifiedName ().
5126 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
5127 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
5128 InsertData(), and ReplaceData(). These methods fire the
5129 NodeChanging and NodeChanged events.
5131 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
5133 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
5134 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
5136 2002-08-03 Tim Coleman <tim@timcoleman.com>
5137 * XmlNamespaceManager.cs:
5138 .Net allows the empty namespace to be redefined
5139 at a later point, but the current implementation
5140 did not. This fixes a hashtable conflict.
5142 2002-07-26 Tim Coleman <tim@timcoleman.com>
5144 When given a textwriter, check to see if it has a
5145 null encoding. This was being done for other inputs
5148 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
5150 * XmlTextReader.cs: rough line/column support.
5152 2002-07-23 Duncan Mak <duncan@ximian.com>
5154 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
5155 (string, string []) is particularly strange.
5157 * XmlException.cs: Remember to call the base serialization
5160 * XmlNodeReader.cs: Keep a new variable to store the Depth.
5162 2002-07-14 Jason Diamond <jason@injektilo.org>
5164 * XmlAttribute.cs: Removed ownerElement field since we can reuse
5167 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
5168 if the current node is an attribute.
5170 * XmlElement.cs: SetAttributeNode now sets the new attribute's
5173 2002-07-12 Jason Diamond <jason@injektilo.org>
5175 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
5176 creating an element, use String.Empty instead.
5178 2002-07-12 Piers Haken <piersh@friksit.com>
5180 * XmlAttributeCollection.cs: implement some ItemOf indexers
5181 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
5182 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
5184 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
5187 2002-10-26 Piers Haken <piersh@friskit.com>
5189 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
5191 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5193 * XmlTextReader.cs: don't increment depth for entity references.
5195 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
5197 * - Fixed the duplication of xmlns:xx = yy when serializing the
5198 XML for serialization
5200 Fixed the unnecessary parsing/serializing when adding assemblies
5203 Avoided setting the XmlNode.InnerXml property
5204 (as it's not implemented)
5206 Fixed the usage/implementation of
5207 XmlElement.GetElementsByTagName()
5209 2002-10-21 Duncan Mak <duncan@ximian.com>
5214 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
5215 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
5217 2002-10-18 Duncan Mak <duncan@ximian.com>
5219 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
5220 <ginga@kit.hi-ho.ne.jp>.
5222 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
5224 * XmlDocument.cs (ImportNode): Implemented
5226 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5228 * XmlDocument.cs: one more Load method implemented.
5229 * XmlTextReader.cs: Depth now works.
5231 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5233 * XmlConvert.cs: IsInvalid is now internal.
5234 * XmlNamespaceManager.cs: implemented RemoveNamespace
5235 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
5236 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
5238 2002-09-19 Matt Hunter <mahunter@tconl.com>
5240 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
5241 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
5243 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5245 * XmlConvert.cs: finished implementation.
5246 * XmlTextReader.cs: fixed #30239.
5247 * XmlTextWriter.cs: fixed #30240.
5249 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5251 * XmlTextReader.cs: line and position begin with 1.
5253 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5255 * XmlException.cs: added a new internal constructor for IXmlLineInfo
5256 and output line and position info in Message.
5258 * XmlReader.cs: implemented missing bits.
5260 2002-09-12 Piers Haken <piersh@friksit.com>
5262 * XmlDocumentNavigator.cs: implement MoveToId()
5264 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5266 * XmlTextWriter.cs: fixed bug #29886.
5268 2002-08-26 Ravi Pratap <ravi@ximian.com>
5271 * XmlAttribute.cs (InnerText): Implement getting this property.
5273 * XmlNode.cs (InnerText): Ensure that we append only values of
5276 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5278 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
5279 that allowed compiling this.
5280 [ FIXME: filed bug #29435. mcs should have failed on this ]
5282 2002-08-25 Tim Coleman <tim@timcoleman.com>
5284 Change CreateNavigator to not be virtual.
5286 Add set_Prefix and InnerText accessors.
5287 * XmlEntityReference.cs:
5288 Add set_Value accessor.
5290 Make objects which should be private private.
5292 Remove WriteStartElementInternal abstract definition.
5293 * XmlValidatingReader.cs:
5296 2002-08-22 Jason Diamond <jason@injektilo.org>
5298 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
5299 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
5301 2002-08-22 Jason Diamond <jason@injektilo.org>
5303 * XmlElement.cs: Correction to previous GetElementsByTagName patch
5304 courtesy of Matt Hunter <xrkune@tconl.com>.
5306 2002-08-22 Jason Diamond <jason@injektilo.org>
5308 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
5309 qualified GetElementsByTagName courtesy of Matt Hunter
5312 2002-08-19 Jason Diamond <jason@injektilo.org>
5314 * XmlDocument.cs, XmlElement.cs: Added implementation of
5315 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
5317 2002-08-16 Jason Diamond <jason@injektilo.org>
5319 * XmlElement.cs: Fixed writing out qualified elements courtesy of
5320 Marcus Bürgel <marcus.buergel@gmx.de>.
5322 2002-08-13 Tim Coleman <tim@timcoleman.com>
5324 Partial implementation of WriteQualifiedName ().
5326 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
5327 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
5328 InsertData(), and ReplaceData(). These methods fire the
5329 NodeChanging and NodeChanged events.
5331 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
5333 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
5334 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
5336 2002-08-03 Tim Coleman <tim@timcoleman.com>
5337 * XmlNamespaceManager.cs:
5338 .Net allows the empty namespace to be redefined
5339 at a later point, but the current implementation
5340 did not. This fixes a hashtable conflict.
5342 2002-07-26 Tim Coleman <tim@timcoleman.com>
5344 When given a textwriter, check to see if it has a
5345 null encoding. This was being done for other inputs
5348 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
5350 * XmlTextReader.cs: rough line/column support.
5352 2002-07-23 Duncan Mak <duncan@ximian.com>
5354 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
5355 (string, string []) is particularly strange.
5357 * XmlException.cs: Remember to call the base serialization
5360 * XmlNodeReader.cs: Keep a new variable to store the Depth.
5362 2002-07-14 Jason Diamond <jason@injektilo.org>
5364 * XmlAttribute.cs: Removed ownerElement field since we can reuse
5367 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
5368 if the current node is an attribute.
5370 * XmlElement.cs: SetAttributeNode now sets the new attribute's
5373 2002-07-12 Jason Diamond <jason@injektilo.org>
5375 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
5376 creating an element, use String.Empty instead.
5378 2002-07-12 Piers Haken <piersh@friksit.com>
5380 * XmlAttributeCollection.cs: implement some ItemOf indexers
5381 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
5382 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
5384 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
5386 * XmlTextWriter: Fixed Indentation. IndentationOverridden should
5387 not be set when inside a attribute.
5389 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
5391 * XmlTextWriter: In WriteStartElement, if namespace is null and
5392 prefix is null|empty do not write out xmlns=""
5394 * XmlWriter: WriteStartElement calls the virtual method with null
5395 argument instead of empty string.
5397 2002-07-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5399 * XmlTextReader.cs: implemented .ctor (Stream).
5401 2002-06-26 Duncan Mak <duncan@ximian.com>
5403 * XmlNodeReader.cs: Implementation of most of the properties, and
5404 some of the related methods.
5406 2002-06-23 Piers Haken <piersh@friskit.com>
5408 * XmlDocumentNavigator.cs: implement Clone()
5409 * XmlElement.cs: remove bogus unimplemented override of InnerText
5410 * XmlNode.cs: implment SelectNodes/SelectSingleNode
5411 * XmlNodeArrayList.cs: new support class for SelectNodes
5413 2002-06-21 Ajay kumar Dwivedi <adwiv@yahoo.com>
5415 * XmlQualifiedName: Name and Namespaces are never null. If null is passed
5416 to the constructor, set them to empty strings.
5417 Fixed the Operators.
5419 2002-06-18 Ajay kumar Dwivedi <adwiv@yahoo.com>
5421 * XmlTextReader.cs: HasLineInfo returns false instead of throwing an
5424 2002-06-14 Duncan Mak <duncan@ximian.com>
5426 * XmlConvert.cs: Added CLSCompliant attributes to methods.
5428 2002-06-12 Duncan Mak <duncan@ximian.com>
5430 * XmlCharacterData.cs (Value): Throw an ArgumentException in the
5431 set block if the node is read-only.
5433 2002-06-10 Ajay kumar Dwivedi <adwiv@yahoo.com>
5434 * XmlConstruct.cs : New Internal class with Helper methods for
5435 Checking XmlConstructs
5436 * XmlConvert.cs: Implemented most of the methods
5438 2002-06-08 Duncan Mak <duncan@ximian.com>
5440 * XmlDocument.cs (Load):
5441 Added bits to Load (string) for BaseURI support.
5443 * XmlAttribute.cs (BaseURI):
5444 * XmlDocument.cs (BaseURI):
5445 * XmlEntity.cs (BaseURI): Implemented.
5447 2002-05-27 Jason Diamond <jason@injektilo.org>
5449 * XmlDocumentNavigator.cs: Added file to directory.
5451 * XmlNode.cs (CreateNavigator): Implemented.
5452 (InnerText): Implemented.
5454 * XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
5456 (Load(XmlReader)): Allow for namespace qualified attributes.
5458 * XmlElement.cs: Implemented GetAttribute(string, string) and both
5459 GetAttributeNode overloads.
5460 (SetAttributeNode(XmlAttribute)): Implemented.
5462 * XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
5463 and RemoveNamedItem(string, string).
5465 * XmlLinkedNode.cs (PreviousSibling): Implemented.
5467 * XmlTextReader.cs: Added code to maintain the order of attributes as
5468 they're parsed. XML doesn't require this but Microsoft's parser does it and
5469 matching them makes testing easier so now we have it, too.
5471 2002-05-26 Miguel de Icaza <miguel@ximian.com>
5473 * XmlDocument.cs: Implement the Save methods.
5475 2002-05-08 Mike Kestner <mkestner@speakeasy.net>
5477 * XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
5479 2002-04-28 Duncan Mak <duncan@ximian.com>
5481 * XmlSignificantWhitespace.cs (Value):
5482 * XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
5483 block. Added new private method, IsValidWhitespaceChar, for
5486 2002-04-16 Duncan Mak <duncan@ximian.com>
5488 * XmlParserContext.cs (NameTable): Fixed a typo in the set block.
5490 2002-04-12 Duncan Mak <duncan@ximian.com>
5492 * XmlAttribute.cs (Prefix): Added preliminary code for set block,
5493 added comment on work that needs to be done here. A new MonoTODO item.
5495 * XmlDocument.cs (ctor): Corrected constructor signature, changed
5496 parameter from 'NameTable' to 'XmlNameTable'.
5498 * XmlDocumentFragment.cs (InnerXml): Added missing set block.
5500 * XmlCaseOrder.cs: Moved to System.Xml.XPath.
5502 2002-04-10 Duncan Mak <duncan@ximian.com>
5504 * XmlNodeReader.cs: Initial stubs for the class.
5506 2002-04-08 Kral Ferch <kral_ferch@hotmail.com>
5508 * XmlAttributes.cs: InnerXml getter, WriteContentTo, and WriteTo
5511 * XmlDeclaration.cs: WriteTo implementation.
5513 * XmlDocument.cs: InnerXml getter implementation.
5515 * XmlElement.cs: InnerXml getter implementation.
5517 * XmlNode.cs: Removed MonoTODO attrib on OuterXml.
5519 * XmlSignificantWhitespace.cs: WriteTo implementation.
5521 * XmlText.cs: WriteContentTo and WriteTo implementation.
5523 * XmlTextWriter.cs: WriteRaw implementation.
5525 * XmlWhitespace.cs: WriteContentTo and WriteTo implementations.
5527 2002-04-05 Kral Ferch <kral_ferch@hotmail.com>
5529 * XmlAttributes.cs: Added reminder MonoTODO to set NamespaceURI
5530 if prefix in constructor is one of the default ones.
5532 * XmlCharacterData.cs: Returns String.Empty for Value and Data
5533 even when constructed with null.
5535 * XmlDeclaration.cs: Value doesn't put encoding or standalone
5536 in if they are empty.
5538 * XmlDocument.cs: Implemented CreateNode methods and this caused
5539 the changes in the other files in this checkin.
5541 * XmlProcessingInstruction.cs: Returns String.Empty for Value and Data
5542 even when constructed with null.
5544 * XmlWhitespace.cs: Changed Value 'get' to return Data.
5546 2002-04-01 Kral Ferch <kral_ferch@hotmail.com>
5548 * XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
5550 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
5552 * XmlTextWriter.cs: Impls for LookupPrefix, WriteBase64,
5553 and WriteCharEntity.
5555 * XmlWrite.cs: Fixed bug where attribute namespace decl
5556 was pushing a scope onto the namespace manager when it shouldn't
5559 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
5561 * XmlTextWriter.cs: Some tweaks for WriteAttibuteString
5562 in different states (no open start element, in WriteState.Content mode).
5564 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
5566 * XmlTextWriter.cs: XmlLang and XmlSpace properties
5567 and WriteWhitespace.
5569 * XmlTextWriterOpenElement.cs: scope support for XmlLang
5572 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
5574 * XmlTextWriter.cs: Working on Attribute methods.
5576 * XmlWriter.cs: Working on Attribute methods.
5578 2002-03-28 Duncan Mak <duncan@ximian.com>
5580 * XmlDocument.cs (CreateWhitespace):
5581 (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
5584 * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
5586 2002-03-26 Duncan Mak <duncan@ximian.com>
5588 * XmlDocument.cs (CreateDocumentType): Implemented.
5590 * XmlNode.cs (Value): Implemented.
5592 * XmlProcessingInstruction.cs (InnerText): Implemented. It works just
5593 like XmlCharacterData.
5595 * XmlDeclaration.cs (CloneNode):
5596 * XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
5599 * XmlCharacterData.cs (InnerText): Implemented. Funny that the
5600 docs say it is the "The concatenated values of the node and all
5601 the children of the node.". I wrote some test programs and
5602 couldn't get any of the derived nodes to AppendChild. For now,
5603 InnerText == Data == Value.
5604 (Substring): Fixed typo.
5606 * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
5608 * XmlImplementation.cs (CreateDocument): Implemented.
5610 2002-03-25 Duncan Mak <duncan@ximian.com>
5612 * XmlDeclaration.cs: Rewrote the class, fixed formatting, added
5613 missing properties (InnerText, Value).
5615 * XmlDocument.cs (CreateXmlDeclaration): Implemented.
5617 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5619 * XmlTextWriter.cs: Impls for BaseStream and
5620 Namespaces and WriteState.
5622 * XmlWriter.cs: WriteState and WriteStartElementInternal.
5624 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5626 * XmlNodeListChildren.cs: made class internal
5627 instead of public. Shouldn't be visible outside
5630 * XmlTextWriter.cs: Implementations for Formatting,
5631 IndentChar, Indenting, QuoteChar, WriteStartDocument(standalone).
5632 Suppresses encoding on xml declaration if null stream passed in.
5633 Formats output including suppressing indentation for elements in
5636 * XmlTextWriterOpenElement.cs: Initial checkin.
5637 XmlTextWriter uses stack of these objects to track
5640 2002-03-22 Mike Kestner <mkestner@speakeasy.net>
5642 * XmlElement.cs: impl HasAttribute(string name).
5644 2002-03-22 Duncan Mak <duncan@ximian.com>
5646 * XmlElement.cs: Reformatted.
5647 (CloneNode) Corrected.
5649 * XmlDocument.cs (CreateWhitespace):
5650 (CreateSignificantWhitespace): Implemented.
5652 * XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
5653 true, because Attributes have ChildNodes.
5655 2002-03-21 Kral Ferch <kral_ferch@hotmail.com>
5657 * XmlTextWriter.cs: WriteStartDocument tracks state, writes out
5658 xml declaration along with encoding. WriteEndElement throws
5659 exception if no WriteStartElement exists.
5661 2002-03-20 Duncan Mak <duncan@ximian.com>
5663 * XmlEntityReference.cs (CloneNode): Implemented.
5665 * XmlException.cs (Message): Implemented. We need to cache the
5666 message string because SystemException doesn't expose 'message'
5669 * XmlText.cs (Value): Added in the missing Value property.
5671 2002-03-20 Duncan Mak <duncan@ximian.com>
5673 * XmlAttribute.cs (CloneNode): Implemented.
5675 * XmlDocumentFragment.cs (CloneNode): Implemented.
5677 * XmlElement.cs (CloneNode): Implemented.
5679 2002-03-19 Duncan Mak <duncan@ximian.com>
5681 * XmlNotation.cs: Added to CVS.
5683 * XmlAttribute.cs (CloneNode): First crack at the CloneNode method.
5685 * XmlCDataSection.cs (CloneNode): Implemented.
5687 * XmlDocumentFragment.cs: Reformatted and added the missing properties
5688 (InnerXml, OwnerDocument, ParentNode).
5689 (CloneNode): Implemented.
5691 * XmlSignificantWhitespace.cs (CloneNode): Implemented.
5692 (Value) Implemented the 'get' property.
5694 * XmlWhitespace.cs (Module): implemented.
5696 2002-03-19 Jason Diamond <jason@injektilo.org>
5698 * XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
5701 2002-03-18 Jason Diamond <jason@injektilo.org>
5703 * XmlTextReader.cs: Don't restore properties after reading last
5704 attribute on an element.
5706 * XmlDocument.cs: Move back to element after reading attributes
5707 so that IsEmptyElement test succeeds.
5709 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5711 * XmlNamespaceManager.cs: Implemented LookupPrefix.
5713 * XmlTextWriter.cs: Implemented namespace and prefix support.
5715 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5717 * XmlTextReader.cs: Restores properties after
5718 reading last attribute on an element.
5720 * XmlNode.cs: AppendChild sets the parent
5723 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5725 * XmlCDataSection.cs: Formatting, Implementation for WriteTo.
5727 * XmlComment.cs: Implementations for WriteTo and WriteContentTo.
5729 * XmlElement.cs: Fixed bug in WriteTo.
5731 * XmlProcessingInstruction.cs: Formatting.
5733 * XmlTextWriter.cs: Implementations for Close, WriteCData, WriteComment,
5734 fixes for WriteEndElement, WriteProcessingInstruction.
5736 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5738 * XmlDocument.cs: Implementations for WriteTo() and WriteContentTo(),
5739 had Load() add PIs to the document, moved onXXX methods to alphabetical
5742 * XmlElement.cs: Implementations for WriteTo() and WriteContentTo().
5744 * XmlNode.cs: Implementations for InnerXml Get and OuterXml.
5746 * XmlProcessingInstruction.cs: Implementations for WriteTo() and
5749 * XmlTextWriter.cs: Implementations for WriteEndElement,
5750 WriteProcessingInstruction, WriteStartElement, and WriteString.
5752 * XmlWriter.cs: Implemented WriteStartElement() methods.
5754 2002-03-15 Duncan Mak <duncan@ximian.com>
5756 * XmlEntity.cs: Added to CVS. Need to implement BaseURI and
5757 InnerText once I know what they do.
5759 * XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
5760 that we can properly chain constructors.
5761 (CloneNode): implemented.
5762 (WriteContentTo): Removed MonoTODO attribute as this method has no
5763 effect in this class.
5765 * XmlProcessingInstruction.cs (Value): Added the missing Set
5767 (InnerText): Added in, but not implemented.
5769 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5771 * XmlTextWriter.cs: implemented constructors and
5772 WriteCData and WriteComment.
5774 2002-03-14 Duncan Mak <duncan@ximian.com>
5776 * XmlDocument.cs: Moved the NodeChanged EventHandler to its own
5777 file, and updated the callbacks to reflect the change.
5778 (XmlDocument): Added the NameTable constructor.
5779 (NameTable): Also the NameTable property.
5781 * XmlNodeChangedEventHandler.cs: Added, replacing the version that
5782 was in XmlDocument.cs. It has two arguments now (object,
5783 EventArgs) , instead of one (object).
5785 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5787 * XmlWriter.cs: Formatting.
5789 * XmlTextWriter.cs: Initial checkin.
5791 2002-03-14 Duncan Mak <duncan@ximian.com>
5793 * Validation.cs: Removed, replaced by ValidationType.cs.
5795 * ValidationType.cs: Added.
5797 2002-03-13 Duncan Mak <duncan@ximian.com>
5799 * XmlException.cs: Made it [Serializable], implemented good ol'
5800 GetObjectData, and the serialization constructor.
5802 * XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
5803 (SetNamedItem): Reverted (added back in) the patch with the
5804 ReadOnly checks. "Don't doubt yourself, my son... you were right!"
5806 * XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
5807 (GetNamedItem (string, string)): implemented.
5808 (RemoveNamedItem): implemented.
5809 (SetNamedItem): implemented.
5811 2002-03-12 Kral Ferch <kral_ferch@hotmail.com>
5813 * XmlAttribute.cs: Moved a method from amongst properties down to
5814 it's alphabetical position in the methods section.
5816 * XmlNode.cs: Passes in 'this' to XmlNodeList constructor instead of
5817 last linked child. Set XmlNode base class to return false for IsReadOnly().
5818 Implemented GetEnumerator() and RemoveChild().
5820 * XmlNodeListChildren.cs: Now stores the parent instead of the last child.
5821 This is to support the behavior that the Enumerator doesn't become invalid
5822 when changes to the children occur. Flushed out rest of implementation for
5823 MoveNext, Current, and Reset.
5825 2002-03-12 Duncan Mak <duncan@ximian.com>
5827 * XmlCharacterData.cs: Reformatted the properties for better readability.
5829 * XmlLinkedNode.cs: Removed the awful boxy comments.
5831 * XmlNamedNodeMap.cs (Count):
5832 (Item): Implemented. Tests will be coming.
5834 * XmlEntityReference.cs:
5835 * XmlSignificantWhitespace.cs: Implemented these classes except for
5836 the Clone, WriteContentTo and WriteTo methods. Will have to
5837 investigate into these later.
5839 2002-03-11 Duncan Mak <duncan@ximian.com>
5841 * IHasXmlNode.cs: Added to CVS.
5843 2002-03-08 Jason Diamond <jason@injektilo.org>
5845 * XmlParserContext.cs: Added missing constructors and missing Encoding
5848 * XmlTextReader.cs: Start using the XmlParserContext class.
5850 2002-03-08 Jason Diamond <jason@injektilo.org>
5852 * XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
5854 2002-03-08 Mike Kestner <mkestner@speakeasy.net>
5856 * XmlNode.cs (Item): Implemented both indexers.
5858 2002-03-08 Jason Diamond <jason@injektilo.org>
5860 * DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
5861 XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
5863 2002-03-08 Jason Diamond <jason@injektilo.org>
5865 * XmlAttribute.cs: Attribute nodes are supposed to store their values
5866 as child nodes so updated to reflect that.
5868 * XmlDocument.cs, XmlElement.cs, XmlNode.cs: Moved code that was
5869 duplicated in XmlDocument and XmlElement into XmlNode so that it
5870 wouldn't have to be duplicated in XmlAttribute, too.
5872 2002-03-08 Kral Ferch <kral_ferch@hotmail.com>
5874 * XmlNodeList.cs, XmlDocument.cs, XmlLinkedNode.cs,
5875 XmlNode.cs: Formatting.
5877 * XmlNodeListChildren.cs: Implementation of XmlNodeList
5878 for XmlNode.ChildNodes property.
5880 * XmlNodeListAsArrayList.cs: Removed file. Using different
5881 data structure (circular list) in XmlNode so this file
5884 * XmlDocument.cs, XmlElement.cs: New ChildNodes tests found
5885 bug in setter property of LastLinkedChild so fixed it.
5887 2002-03-06 Jason Diamond <jason@injektilo.org>
5889 * XmlInputSource.cs, XmlNames_1_0.cs, XmlParse.cs: Removed files.
5890 We already have a parser in XmlTextReader.
5892 * XmlException.cs: Removed constructor accepting XmlInputSource.
5894 2002-03-06 Kral Ferch <kral_ferch@hotmail.com>
5896 * XmlNode.cs: Rewrote this class from scratch with
5897 MonoToDo attribs and NotImplementedExceptions. Now defines an
5898 internal LastLinkedNode property to aid the new implementation.
5899 XmlNodes only have ref to owner doc and parent nodes now.
5901 * XmlLinkedNode.cs: Added NextLinkedSibling internal property
5902 and ref to next sibling to support walking our circular child
5905 * XmlDocument.cs: Added ref to last child node and overrides
5906 XmlNode's internal LastLinkedChild property to support walking
5907 our circular child node list.
5909 2002-03-02 Kral Ferch <kral_ferch@hotmail.com>
5911 * XmlProcessingInstructions.cs: Class was empty. Implemented
5912 constructor, properties, and CloneNode() method. Put in
5913 MonoToDo attrib for remaining methods.
5915 * XmlComment.cs: Reformatted and put in MonoToDo attribs.
5916 Got rid of helper methods and fields since they were no
5919 * XmlLinkedNode.cs: Reformatted and put in MonoToDo attribs.
5921 * XmlDocument.cs: Added code to Load(XmlReader) to create XmlComment,
5922 XmlCDataSection, and XmlProcessingInstruction nodes. Implemented
5923 Createxxx() methods for those three node types.
5925 2002-03-02 Jason Diamond <jason@injektilo.org>
5927 * XmlDocument.cs: Implemented the remaining CreateElement and
5928 CreateAttribute methods.
5930 * XmlAttribute.cs: Re-implemented.
5932 * XmlElement.cs: Set owner element on attributes. Reformatted.
5934 2002-03-02 Jason Diamond <jason@injektilo.org>
5936 * XmlTextReader.cs: Implemented MoveToNextAttribute().
5938 * XmlDocument.cs: Reformatted. Adding missing methods and MonoTODO
5939 attributes. Create attribute nodes while loading. Implemented
5940 Load(string) and CreateTextNode().
5942 * XmlCharacterData.cs, XmlText.cs: Re-implemented.
5944 * XmlCDataSection.cs, XmlComment.cs: Call correct constructor in
5947 * XmlNamedNodeMap.cs, XmlAttributeCollection.cs: Stubbed out.
5949 2002-03-02 Mike Kestner <mkestner@speakeasy.net>
5951 * XmlAttribute.cs : Using fix.
5952 * XmlDocument.cs (CreateAttribute(String)): Implement.
5954 2002-03-02 Jason Diamond <jason@injektilo.org>
5956 * XmlNamespaceManager.cs: Atomize prefixes and namespaces strings in
5959 2002-02-28 Jason Diamond <jason@injektilo.org>
5961 * XmlDocument.cs, XmlNode.cs: Initial implementation of LoadXml
5962 courtesy of Kral Ferch <kral.ferch@hotmail.com>.
5964 2002-02-28 Jason Diamond <jason@injektilo.org>
5966 * XmlException.cs, XmlReader.cs, XmlTextReader.cs: Reformatted,
5967 added missing members and MonoTODO attributes.
5969 * XmlTextReader.cs: Throw XmlException instead of System.Exception.
5971 2002-02-27 Jason Diamond <jason@injektilo.org>
5973 * XmlElement.cs: Reformatted, added missing members and MonoTODO
5976 2002-02-26 Duncan Mak <duncan@ximian.com>
5978 * XmlCDataSection.cs: Initial implementation.
5980 * NameTable.cs: Fixed the whole thing. Wrote a NUnit test to test
5981 it out. This should (hopefully) be correct.
5983 2002-02-26 Jason Diamond <jason@injektilo.org>
5985 * XmlTextReader.cs: Apparently Microsoft's implementation treats
5986 namespace declarations as attributes so we do now, too.
5988 * XmlNamespaceManager.cs: HasNamespace fixed so that it only
5989 checks the current scope.
5991 2002-02-26 Duncan Mak <duncan@ximian.com>
5993 * XmlDocumentType.cs: Added a few hacks here and there to
5994 temporarily fix the "I broke the build issue".
5996 2002-02-25 Jason Diamond <jason@injektilo.org>
5998 * XmlDocument.cs, XmlElement.cs, XmlNode.xs, XmlNodeList.cs,
5999 XmlNodeListAsArrayList.cs: Multiple fixes necessary to get
6000 simple test to pass. The existing code is really shitty so I'll
6001 probably start writing tests and refactoring before much else
6004 2002-02-25 Duncan Mak <duncan@ximian.com>
6006 * NameTable.cs: Implemented.
6008 * XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.
6010 2002-02-24 Duncan Mak <duncan@ximian.com>
6012 * XmlNodeOrder.cs: Added to CVS.
6014 * XmlQualifiedName.cs: Fixed a warning from Equals ().
6016 * XmlTokenizedType.cs: Added to CVS.
6018 * XmlUrlResolver.cs: Added to CVS with one TODO task.
6020 2002-02-23 Duncan Mak <duncan@ximian.com>
6022 * XmlQualifiedName.cs: Fixed ToString () and added the operators
6025 2002-02-23 Jason Diamond <jason@injektilo.org>
6027 * XmlTextReader.cs: Added support for qualified attributes.
6029 2002-02-23 Jason Diamond <jason@injektilo.org>
6031 * XmlNamespaceManager.cs: Initial implementation.
6033 * XmlTextReader.cs: Added support for NamespaceURI property on
6036 2002-02-23 Nick Drochak <ndrochak@gol.com>
6038 * ChangeLog: Add the change log to this directory
6040 * XmlQualifiedName.cs: Fixed compile errors so it would build. Still has