1 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
4 not Parse(). Use 'K' for roundtrip format.
6 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
8 * XmlTextWriter2.cs : making <del>silly</del>funky MS compatibility
9 change in WriteStartAttribute() to call WriteEndAttribute() if an
12 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
14 * XmlTextWriter2.cs : I could make previous change only in 2.0 mode.
16 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
18 * XmlTextWriter2.cs : When it is at Error state, do not try to close
19 attributes and elements at Close(). They will result in further
20 error and rather hide the actual issue when disposed.
22 2007-09-28 Atsushi Enomoto <atsushi@ximian.com>
24 * XmlWriter.cs : it is now documented that WriteNode(XPathNavigator)
25 ignores attributes and namespace decls, so do that.
26 * XQueryConvert.cs : removed extra stuff that are not in use.
28 2007-09-27 Atsushi Enomoto <atsushi@ximian.com>
30 * XmlWriter.cs : implemented WriteValue(object) based on
31 MSDN "Writing Typed Data" with some fix.
32 http://msdn2.microsoft.com/en-us/library/bft97s8e(VS.80).aspx
33 * XmlTextWriter.cs : state check is extraneous. It caused unexpected
34 rejection of empty namespace URI.
36 2007-08-13 Atsushi Enomoto <atsushi@ximian.com>
38 * XmlTextWriter2.cs : fix extraneous indentation which is put after
41 2007-08-09 Jb Evain <jbevain@novell.com>
43 * XmlTextReader.cs: Avoid using 2.0 only feature in 2.1.
45 2007-08-09 Jb Evain <jbevain@novell.com>
47 * XmlConvert.cs: use 2.1 available overloads of Parse.
49 2007-08-09 Jb Evain <jbevain@novell.com>
51 * XmlInputStream.cs: there's no ASCII encoding in 2.1.
53 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
55 * XmlReader.cs XmlNodeReader2.cs XmlTextReader.cs XmlTextReader2.cs
56 XmlNodeReaderImpl.cs EntityResolvingXmlReader.cs :
57 The previous attempt was wrong. Those internal-virtualized ones
58 could be used in System.Xml.Core classes and outside the assembly
59 any derived XmlReaders would have thrown throw Exception.
60 Now I marked them as nonexistent-in-2.1 or privatized.
61 * XmlWriter.cs : actually only this class is affected (if there
62 were DOM or XSD they would have been affected as well).
64 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
66 * XmlReader.cs : HasValue, ReadAttributeValue() and ResolveEntity()
67 do not exist in 2.1 profile. Hiding abstract stuff seems to cause
68 some issues at run time, so they are ifdef-ed out from 2.1.
69 * XmlNodeReader2.cs DTDValidatingReader2.cs XmlTextReader.cs
70 XmlTextReader2.cs XmlNodeReaderImpl.cs DTDValidatingReader.cs
71 EntityResolvingXmlReader.cs : hence the change above.
73 2007-08-04 Jb Evain <jbevain@novell.com>
75 * XmlUrlResolver.cs: remove code duplication in 2.1.
77 2007-08-04 Jb Evain <jbevain@novell.com>
79 * XmlTextReader.cs, XmlConvert.cs, XmlReaderBinarySupport.cs:
80 Use the available constructor for the 2.1 profile.
82 2007-08-03 Atsushi Enomoto <atsushi@ximian.com>
84 * DTDObjectModel.cs : in 2.0 and especially 2.1 profiles, use
85 our own DictionaryBase-like generic type. It is to reduce
86 dependency on DictionaryBase which does not exist in 2.1 mscorlib.
87 (included in 2.0 as well so that we do not skip NUnit tests so far)
89 2007-08-03 Atsushi Enomoto <atsushi@ximian.com>
91 * XmlResolver.cs, XmlUrlResolver.cs, XmlSecureResolver.cs :
92 remove ICredential in NET_2_1 (they have to be explicitly removed
93 outside tuner work as ICredentials does not exist in 2.1 profile).
94 We cannot use WebRequest in 2.1 as well, so remove dependency on
95 it in GetEntity() (and added MonoTODO for non-file URLs).
97 2007-07-12 Atsushi Enomoto <atsushi@ximian.com>
99 * XmlWriter.cs : in WriteNode(XPathNavigator,bool), default namespace
100 is broken. Fixed bug #82051.
102 2007-07-11 Atsushi Enomoto <atsushi@ximian.com>
104 * XmlReader.cs : looks like I introduced extra Settings check at
105 r69383. Fixed bug #82062.
107 2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
109 * DTDValidatingReader2.cs :
110 we can remove NET_2_1 from this unused code in SL.
112 2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
114 * DTDAutomata.cs DTDObjectModel.cs DTDReader.cs
115 DTDValidatingReader2.cs XmlException.cs XmlReader.cs
116 XmlReaderSettings.cs XmlWriter.cs :
117 Make System.Xml.Core.dll build easier, using NET_2_1.
119 DTD support is simply cut at this stage (as it largely depends on
120 sys.xml.schema stuff).
122 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
124 * XmlTextReader.cs: Expose ProhibitDtd on 1.0 profile too.
126 2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
128 * XmlNode.cs : InnerText is settable on XmlDocumentFragment (silly,
129 but since XmlDocumentFragment does not override this property
130 it must be handled here).
132 2007-06-11 Atsushi Enomoto <atsushi@ximian.com>
134 * XmlTextReader.cs : ReadStartElement() has bogus error message.
136 2007-05-31 Atsushi Enomoto <atsushi@ximian.com>
138 * XmlTextWriter2.cs :
139 NewLineOnAttributes indentation fix, for bug #81770.
141 2007-05-25 Atsushi Enomoto <atsushi@ximian.com>
143 * XQueryConvert.cs : removed unused methods. They will prevent
144 System.Xml.Core.dll implementation.
146 2007-05-15 Konstantin Triger <kostat@mainsoft.com>
148 * XmlWriter.cs, XmlTextWriter2.cs: ensure the file
149 is closed in XmlWriter.Create(filename).
151 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
153 * XmlConvert.cs : MinValue and MaxValue, same for ToDateTime().
155 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
157 * XmlConvert.cs : MinValue and MaxValue are unchanged by the
158 serialization mode (unlike DateTime.ToString()).
160 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
162 * XmlConvert.cs : in 2.0, use F instead of f in dateTime formatting.
164 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
166 * XmlReader.cs : fixed wrong depth comparison in ReadToNextSibling().
167 Fixed bug #81451, by Eric Mercier.
169 2007-04-03 Atsushi Enomoto <atsushi@ximian.com>
171 * XmlTextReader.cs : character ']' inside DTD comment caused parser
172 error. Fixed bug #81294.
174 2007-03-05 Atsushi Enomoto <atsushi@ximian.com>
176 * XmlReader.cs : when Create() returns customized XmlTextReader, set
177 EntityHandling.ExpandEntities. Fixed bug #81000.
179 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
181 * XmlTextReader.cs, XmlTextReader2.cs : Reset() should work now.
184 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
186 * DTDValidatingReader2.cs, XmlTextReader.cs, XmlNodeReaderImpl.cs:
187 Read() silently returns false when it is closed. Fixed bug #80848.
189 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
191 * XmlReader.cs : ReadElementContentAsString() and all relevant methods
192 didn't consume empty element correctly.
194 2006-12-20 Atsushi Enomoto <atsushi@ximian.com>
196 * XmlNode.cs : (InsertBefore) when newChild == refChild, do nothing
197 except for node type check. Fixed bug #80331.
199 2006-12-19 Atsushi Enomoto <atsushi@ximian.com>
201 * XmlTextReader.cs : Fixed ReadChars() to consume child elements,
202 including such cases that it breaks tags in the middle of multiple
203 ReadChars() calls. Fixed bug #80308.
205 2006-12-19 Atsushi Enomoto <atsushi@ximian.com>
207 * XmlTextReader.cs : ReadChars() does not have to store characters,
208 so avoid extra storing. Patch by Csaba Halasz, fixed bug #80306.
210 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
212 * XmlNode.cs : InnerText was returning comment text when there was
213 only a Comment node. Fixed bug #80233.
215 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
217 * XmlReader.cs : Create() with string url was not returning validating
220 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
222 * DTDValidatingReader2.cs : when an attribute declaration is missing
223 in the corresponding attlist declaration, it caused NRE.
226 2006-12-11 Atsushi Enomoto <atsushi@ximian.com>
228 * XmlDocument.cs : call overriden CreateAttribute() when loading from
231 2006-12-05 Atsushi Enomoto <atsushi@ximian.com>
233 * XmlReader.cs : new 2.0 MoveToAttribute(int) failed to move to the
234 final attribute in an element.
236 2006-12-05 Atsushi Enomoto <atsushi@ximian.com>
238 * XmlNode.cs : GetPrefixOfNamespace() was not correctly searching
239 ancestors' namespaces.
241 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
243 * XmlTextWriter2.cs : fixed some relationship between
244 ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
245 See new tests more details.
246 * XmlWriter.cs : it could reuse XmlTextWriter.ctor(TextWriter,
247 XmlWriterSettings). It also resulted in dropping several internal
248 members in XmlTextWriter.
250 2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
252 * XmlReaderSettings.cs : in copy constructor, copy (dispatch)
253 validation event as well. Add OnValidationError() to be invoked
254 by other internal stuff to raise the validation event.
256 2006-11-13 Michael Meeks <michael.meeks@novell.com>
258 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs:
259 pass the XmlResolver through to the GetStream impl.
261 2006-10-30 Atsushi Enomoto <atsushi@ximian.com>
263 * XmlTextReader2.cs : if DTD does not exist, do not try to resolve
264 entity from null DTD (caused NRE). Fixed bug #79620.
266 2006-10-27 Atsushi Enomoto <atsushi@ximian.com>
268 * DTDReader.cs : some parameter entity expansions were not done.
271 2006-09-27 Atsushi Enomoto <atsushi@ximian.com>
273 * XmlTextWriter2.cs : null arg check.
275 2006-09-26 Atsushi Enomoto <atsushi@ximian.com>
277 * XmlDeclaration.cs :
278 Removed bogus return statement in Value. Fixed bug #79496.
280 2006-09-21 Atsushi Enomoto <atsushi@ximian.com>
282 * XmlNameEntryCache.cs : It should expand temporary buffer even at
283 initial state. Fixed bug #79468.
285 2006-09-19 Atsushi Enomoto <atsushi@ximian.com>
287 * XmlElement.cs : for non-atomized names, alter null prefix with "".
290 2006-09-04 Atsushi Enomoto <atsushi@ximian.com>
292 * XmlReader.cs : ReadContentAsString() and its family should allow
293 attribute node. Fixed bug #79268.
295 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
297 * XmlTextWriter2.cs : expect atomized names only when it is
298 appropriate. Fixed bug #79047.
300 2006-08-26 Atsushi Enomoto <atsushi@ximian.com>
302 * XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
303 so that it could fill default and fixed attributes. This ends up
304 to fix bug #79163 (it fills fixed "xmlns" attribute and thus
305 the node's namespace URI becomes that of glade-2.0).
307 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
309 * XmlEntity.cs, XmlEntityReference.cs, XmlNode.cs :
310 create entity content only when its children is being accessed.
311 It results differently when there is no actual reference in the
312 document - an invalid entity value (when it is used to create
313 child nodes) is ignored unless a code tries to access the Value
314 of an XmlEntity. Fixed bug #79091
315 * DTDReader.cs : the fix above uncovered another bug (ibm66n03.xml).
316 Check illegal reference name in literal entity value.
318 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
320 * XmlTextReader.cs, XmlTextReader2.cs, DTDReader.cs :
321 (ResolveExternalEntityReplacementText) need to skip text
322 declaration in external entities. To make it possible internalize
323 SkipTextDeclaration() in XmlTextReader(2). Fixed bug #79090.
325 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
327 * XmlTextReader2.cs : Check recursive entity reference.
328 Fixed bug #79085. It makes W3C standalone tests on NET_2_0 working.
330 2006-08-14 Atsushi Enomoto <atsushi@ximian.com>
332 * XmlTextReader.cs : When a whitespace node comes after a text
333 declaration in XML external entity (i.e. .ctor() with
334 XmlNodeType.Element), it contained extra value character ('<').
336 2006-08-10 Atsushi Enomoto <atsushi@ximian.com>
338 * XmlTextWriter2.cs : more indentation fixes. Now I believe it is
339 almost MS compat, but it won't help poor Mike.
341 2006-08-07 Atsushi Enomoto <atsushi@ximian.com>
343 * XmlTextWriter2.cs : WriteBinHex() is allowed at Attribute state.
346 2006-07-28 Atsushi Enomoto <atsushi@ximian.com>
348 * XmlTextWriter2.cs : fixed some indentation bugs: comments and PIs
349 should not cause indentation override like text, cdata and
351 Fixed some error messages on node kind.
352 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs : removed old code.
353 (I don't want to remove old great code but it confused mike today.)
355 2006-07-26 Atsushi Enomoto <atsushi@ximian.com>
358 For DTD validator, call to SetSchemas() makes no sense.
359 * XmlValidatingReader.cs : now it internally holds old
360 XmlSchemaCollection instead of new XmlSchemaSet, to make
361 XmlSchemaSet.SchemaCollection unneccessary.
362 Removed SetSchemas() since it is now extraneous because of the
363 XmlReaderChange above.
365 2006-07-25 Atsushi Enomoto <atsushi@ximian.com>
367 * XmlConvert.cs : TimeSpan conversion for TimeSpan.MinValue was
370 2006-07-19 Atsushi Enomoto <atsushi@ximian.com>
372 * XmlReader.cs : In Create(), support validation flags for DTD.
373 * DTDValidatingReader2.cs : when NET_2_0 and ProcessIdentityConstraints
374 is false, skip ID validation.
376 2006-06-26 Atsushi Enomoto <atsushi@ximian.com>
378 * XmlReader.cs : when Create() received string url, it should set
379 XmlTextReader2.CloseInput always true. Fixed bug #78706.
381 2006-06-08 Atsushi Enomoto <atsushi@ximian.com>
383 * XmlTextWriter2.cs : if an attribute being written has the same
384 non-empty namespace URI as current default namespace, its prefix
385 should be written. Fixed bug #78598.
387 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
389 * XmlAttribute.cs : (WriteTo) when the namespace URI is empty,
390 always use empty string for prefix.
392 2006-04-27 Geoff Norton <gnorton@customerdna.com>
394 * XmlDocument.cs: Move back to the element after
395 reading an attribute. This mimics Microsofts behaviour.
397 2006-04-21 Atsushi Enomoto <atsushi@ximian.com>
399 * XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
400 rejected after writing some content. I totally disagree on that
401 it should be allowed, but here is the fix.
403 2006-04-14 Atsushi Enomoto <atsushi@ximian.com>
405 * XmlReader.cs : ReadElementContentAsObject() incorrectly rejected
406 the argument type System.Object.
408 2006-04-10 Atsushi Enomoto <atsushi@ximian.com>
410 * XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
411 and root nodes instead of dispatching to ReadSubtree().
413 2006-04-06 Atsushi Enomoto <atsushi@ximian.com>
415 * XmlReader.cs : ReadElementContentAsXXX() did not consume empty
418 2006-04-05 Atsushi Enomoto <atsushi@ximian.com>
420 * XmlWriter.cs : Create(StringBuilder,XmlWriterSettings) was missing
421 settings argument to pass another .ctor().
422 * XmlWriterSettings.cs : set_NewLineChars() should reject null.
424 2006-04-03 Boris Kirzner <borisk@mainsoft.com>
425 * XmlException.cs: fix .net soap serialization compatibility.
427 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
429 * XmlNameEntry.cs XmlNameEntryCache.cs :
430 Added atomization support for prefixed names.
431 Inspired by Joshua Tauberer's patch.
432 * XmlElement.cs XmlAttribute.cs : use above.
434 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
436 * XmlReader.cs : in XmlReader.Create() ValidationType Auto and XDR
437 are simply ignored (it was found on running NvdlValidatingReader
440 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
442 * DTDValidatingReader.cs : avoid NullReferenceException. Input
443 XmlReader might not be IHasXmlParserContext.
445 2006-03-08 Atsushi Enomoto <atsushi@ximian.com>
447 * XmlReader.cs: ReadContentAsXXX() just stops at start element,
448 without rejecting it as an error.
449 ReadElementContentAsXXX() rejects child element nodes.
451 2006-02-28 Atsushi Enomoto <atsushi@ximian.com>
453 * XmlElement.cs : (WriteTo) use IsEmpty to determine which to use:
454 WriteEndElement() and WriteFullEndElement(). Fixed sys.security
457 2006-02-24 Atsushi Enomoto <atsushi@ximian.com>
459 * XmlTextWriter2.cs :
460 WriteRaw() has stupid second arg. Fixed bug #77623.
461 WriteString() should raise an error when it is called immediately
462 after WriteStartDocument().
464 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
466 * XmlTextWriter2.cs : WriteChars() should allow Attribute state.
468 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
470 * XmlChar.cs : (IndexOfInvalidChar) fixed surrogate pairs handling.
471 They were always regarded as invalid.
472 * XmlTextWriter2.cs : seems like MS XmlTextWriter outputs invalid
473 characters as character references. It totally does not make sense
474 but corcompare depended on that behavior.
476 This "compatibility" fix causes 10% or more performance loss!!!
478 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
480 * XmlTextWriter2.cs : (WriteStartAtribute) more == removal.
481 * XmlNode.cs : (get_InnerText) reduce extra StringBuilder creation.
483 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
485 * XmlTextWriter2.cs : (WriteStartAttribute) reduced string == string.
487 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
489 * XmlDocument.cs : (ReadNodeCore) not public.
491 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
493 * XmlTextWriter2.cs : (CloseStartElement)
494 Avoid ArrayList.Clear() and culture-sensitive Contains().
496 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
498 * XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
499 which discards "overriden" namespaces.
500 * XmlTextWriter2.cs : fresh implementation.
501 - The source structure is simplified and cleaner.
502 - When outputting escaped string, output directly to TextWriter.
503 - roughly 20% performance improvement.
505 (Also fixed previous perf. evaluation excess in ChangeLog.)
507 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
509 * XmlElement.cs : (WriteTo) make use of HasAttributes. Remove extra
510 check. 5% speed improvement.
512 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
514 * DTDValidatingReader2.cs : added Source XmlReader property for
515 XsdValidatingReader use (see XsdValidatingReader change as well).
517 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
519 * EntityResolvingXmlReader.cs, XmlNodeReader2.cs, XmlTextReader2.cs :
520 in get_NodeType() entity reader existence check is faster.
521 * DTDValidatingReader2.cs : IsDefault could be avoided.
523 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
525 * XmlNodeReaderImpl.cs : optimized Depth.
527 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
529 * XmlValidatingReader.cs : reducing layered ReadState invocation
530 results in 10% speed up.
532 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
534 * XmlNodeReaderImpl.cs : Reimplemented Read(). Points are:
535 - reduced call to NextSibling which is very unlikely to be inlined
536 - reorganized conditioning to avoid extra check
537 - added description on each returning branch.
538 - And then, removed unused code.
539 It is 1.5x faster than before.
541 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
543 * XmlElement.cs : NextSibling could be effectively computed using
544 LastLinkedChild, beyond previous XmlLinkedNode optimization.
546 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
548 * XmlLinkedNode.cs : In NextSibling, use LastChild directly.
549 It improves NextSibling performance in bulky document.
551 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
553 * XmlNodeReaderImpl.cs : do not compute ownerLinkedNode, just store
554 it in Read(). Simply use state field in EOF. They result in 20%
555 perf. boost. Expanding EOF also improved performance by 2-3%
556 (mono --optimize=inline might work in the later stage).
558 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
560 * DTDValidatingReader2.cs : more refactoring. Split ReadContent()
561 into some methods. Reduced some extra MoveToElement().
563 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
565 * DTDValidatingReader2.cs : more refactoring. Removed and simplified
566 some error check. String += would be enough for entity-reference-
567 mixed attributes which rarely happen, so simplify the code.
568 Added comments on how the fields are used.
570 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
572 * DTDValidatingReader2.cs : attribute node simplification. It now
573 stores attribute node slots, including default attributes for
576 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
578 * DTDValidatingReader2.cs, EntityResolvingXmlReader.cs :
579 new files for refactoring DTD validating reader. As the first stage,
580 it splits entity handling process from DTD validation step.
582 (DTDValidatingReader.cs will be removed at some stage).
584 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
586 * DTDObjectModel.cs : entity resolution method will be used in
587 the next DTD validating reader in 1.x.
589 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
591 * IHasXmlChildNode.cs :
592 New internal interface to hold LastLinkedChild.
593 * XmlNodeListChildren.cs XmlEntity.cs XmlElement.cs XmlAttribute.cs
594 XmlLinkedNode.cs XmlEntityReference.cs XmlNode.cs
595 XmlDocumentFragment.cs XmlDocument.cs : use it. It minimizes memory
596 consumption in XmlText, XmlWhitespace, XmlComment etc.
598 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
600 * XmlChar.cs : added IndexOfNonWhitespace() and IndexOfInvalid() (not
602 * NewLineHandling.cs : prepared to be used internally in 1.x.
604 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
606 * XmlDocument.cs XmlTextReader.cs : in ReadNode(), we can avoid
607 extraneous whitespace node creation for XmlTextReader by setting
608 WhitespaceHandling.Significant when PreserveWhitespace is false.
610 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
612 * XmlTextReader.cs : atomize whitespace values. It effectively saves
613 memory consumption when an input XML is indented.
615 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
617 * XmlTextReader.cs : When "Significant" is assigned to
618 WhitespaceHandling, it should ignore non-significant whitespaces.
620 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
622 * XmlWriter.cs : (WriteElementString and WriteAttributeString)
623 Skip empty string output.
625 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
627 * XmlTextWriter.cs : WriteRaw("") is not simply ignored but process
628 state check and closes open tag.
630 2006-02-11 Atsushi Enomoto <atsushi@ximian.com>
633 Avoid extra AppendValueChar() in ReadWhitespace().
635 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
637 * XmlTextReader.cs : ReadTextReader() is now assured to have current
638 node content, except for Text, CDATA and Comment. ReadName() does
639 not use nameBuffer and reuse peekChars.
641 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
643 * XmlTextReader.cs : eliminated currentTagBuffer. XmlDeclaration is
644 now once read as PI and then re-parsed from Value. DTD internal
645 subset is now parsed as usual "value".
647 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
649 * XmlTextReader.cs : Expect() could be written inline and it could
650 provide better information. ReadEndTag() could use Expect() instead
653 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
655 * XmlTextReader.cs : on ReadEndTag() we can avoid NameTable.Add().
656 Store name, local name and prefix in the stack instead of just name
657 and reuse them for EndElement.
659 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
661 * XmlDocumentNavigator.cs : make use of HasAttributes (avoid possible
662 XmlAttributeCollection creation).
664 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
666 * XmlTextReader.cs : no need to call Clear() for each attribute value.
668 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
670 * XmlDocument.cs : reverted most of the previous changes. It somehow
671 broke System.Data tests.
673 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
675 * XmlDocument.cs, XmlAttribute.cs, XmlElement.cs : Avoid unnecessary
676 name checks in CreateElement() and CreateAttribute().
677 get_DocumentType() could be stopped when the iterated child node
678 is the document element.
679 * XmlNode.cs : removed commented lines.
680 * XmlNameEntry.cs : hash code for a name entry is mostly identical by
681 its local name, so avoid extraneous GetHashCode() especially on
684 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
686 * XmlReader.cs : ReadOuterXml() returns meaingful value only for
687 element and attribute. ReadInnerXml() does not have to create
688 XmlTextWriter for empty elements.
690 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
692 * XmlNodeReader2.cs XmlException.cs XmlReader.cs XmlTextReader.cs
693 XmlWriter.cs XmlTextWriter.cs XmlValidatingReader.cs
694 XmlNodeReaderImpl.cs DTDValidatingReader.cs XmlSecureResolver.cs:
695 cleaning up obsolete NET_1_0 code.
697 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
699 * XmlTextWriter.cs : avoid case-insensitive String.Compare().
700 Use array for openElements rather than ArrayList.
702 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
704 * XmlElement.cs, XmlAttribute.cs :
705 Avoid ChildNodes.Count and use FirstChild/NextSibling.
707 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
709 * XmlNode.cs, XmlIteratorNodeList.cs :
710 Now we can enable XmlIteratorNodeList again (mcs, incorrectly
711 removing nodes in the node list, was fixed).
713 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
715 * XmlDocument.cs : in ReadNode() to consume element node, switched
716 to MoveToAttribute(int) since MoveToNextAttribute() was somehow
717 not working fine. It is needed to avoid Sys.Data test breakage
718 and anything else should be fixed indeed.
720 Fri Jan 27 20:39:48 CET 2006 Paolo Molaro <lupus@ximian.com>
722 * XmlTextReader.cs, XmlChar.cs: more tweaks and speedups.
724 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
726 * XmlTextReader.cs : optimization patch by Paolo.
727 Fast path optimization in PeekChar().
728 Avoid double-evaluation of PeekChar() and ReadChar() by new
731 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
733 * XmlNode.cs : disabled XmlIteratorNodeList optimization. It caused
734 some kind of regression under mcs/tests/xml-025.cs.
736 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
738 * XmlAttributeCollection.cs :
739 Replaced all Nodes.Count with Count (it could avoid extraneous
740 ArrayList creation in XmlNamedNodeMap). ID attribute adjustment
741 was extraneously done against all attribute nodes and thus there
742 was a plenty of call to Value.
743 * XmlNamedNodeMap.cs : added comment on SetNamedItem() W3C spec
746 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
752 Added internal AppendChild() override that omites node type
753 checking, and used it in many places.
755 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
757 * XmlDocument.cs : optimized ReadAttributeNode() to not call
758 MoveToAttribute() unneccesarily (call it only when ReadNode() is
759 called on an attribute node).
761 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
764 in get_InnerText(), avoid extraneous StringBuilder creation.
766 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
768 * XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
769 It does not iterate all nodes in advance.
770 * XmlNode.cs : use XmlIteratorNodeList in SelectNodes().
772 2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
774 * XmlWriter.cs : Dispose() is protected.
776 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
778 * XmlNamedNodeMap.cs : lazily create internal ArrayList. Thanks to
779 Joshua Tauberer for the hint.
781 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
783 * XmlConvert.cs : ToString(TimeSpan) should return valid duration
784 for TimeSpan.Zero, rather than "P". Fixed bug #77350
786 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
788 * XmlNameEntryCache.cs XmlNameEntry.cs :
789 Made name entry fields as not read-only. Added Update() to reset
790 members. Its semantics of Equals() is changed.
791 Now entry cache is based on Hashtable rather than ArrayList.
792 It saves heavy iteration in ArrayList.
794 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
796 * XmlNameEntryCache.cs XmlNameEntry.cs XmlDocument.cs :
797 Add Hash field to find name entry quickly.
798 In XmlNameEntryCache make use of name table (it is totally
799 unused there though).
801 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
803 * XmlConvert.cs : handle Ticks. Fixed bug #77252.
805 2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
807 * XmlTextWriter.cs : Fixed bug #77082.
808 When the state was Start, after WriteProcessingInstruction() and
809 WriteWhitespace() change it to Prolog.
810 After WriteDocType() set state to WriteState.Element.
812 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
814 * XmlTextWriter.cs : Do not local duplicate of automatically-created
815 prefixes (i.e. check local autocreated prefixes other than
816 namespaces from ancestors). Fixed bug #77086 and #77087.
818 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
820 * XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
821 ArgumentException in WriteNmTokenInternal().
823 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
825 * XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
826 such invalid "xml" prefix which is being mapped to different
827 namespace URI than the predefined one.
828 Removed comment that does not make sense.
829 * XmlNamespaceManager.cs : IsValidDeclaration() could be private.
832 2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
834 * DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an
835 attribute is #IMPLIED.
837 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
839 * XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
840 ReadSubtree() for non-element content since they are not allowed
841 in ReadSubtree() (but allowed here).
843 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
845 * XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
846 nodes as target string nodes as well as other text nodes.
848 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
850 * XmlValidatingReader.cs : ReadTypedValue() was not working with
851 non-XmlSchemaDatatype types.
853 2006-01-05 Gert Driesen <drieseng@users.sourceforge.net>
855 * XmlTextWriter.cs: Modified WriteWhitespace to throw ArgumentException
856 if value is null or zero-length string. Modified WriteNmToken to throw
857 ArgumentException if name is null or zero-length string. Cosmetic
858 change to WriteStringInternal.
859 * XmlElement.cs: In 2.0 profile, do not throw ArgumentNullException
860 if new value for Prefix is null.
862 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
864 * XmlTextWriter.cs : when namespaceURI is String.Empty, Prefix
865 should be just ignored (it is likely to happen that DOM nodes
866 with empty namespace URI are specified non-empty prefix by
867 users, which had better be just ignored). Fixed bug #77095.
869 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
871 * XmlElement.cs : patch for Prefix property by Vorobiev Maksim.
872 - null should cause ArgumentNullException.
873 - "" should not raise an error.
874 - throws ArgumentException when it is readonly.
876 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
878 * XmlTextWriter.cs : When xml:space or xml:lang attribute was
879 directly written without an element, it caused ArgumentOutOfRange.
882 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
884 * XmlTextWriter.cs : (WriteStartAttribute) set prefix as "xmlns" when
885 namespaceURI is that of xmlns attributes. Fixed bug #77083.
887 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
889 * DTDObjectModel.cs : (CreateXsdParticle) element particle was
890 missing occurence indicators.
892 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
894 * DTDObjectModel.cs : some fixes on GetXmlSchema()
895 - make generated schema cleaner.
896 - enumeration was missing for attribute type.
897 * XmlTextReader.cs, XmlTextReader2.cs : added tiny notes for dtd2xsd.
899 2005-12-15 Konstantin Triger <kostat@mainsoft.com>
901 * XmlTextWriter.cs: allow null string in WriteCData.
903 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
905 * XmlNode.cs : (GetNamespaceOfPrefix) return const xml/xmlns URIs
908 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
910 * XmlDocumentNavigator.cs : added UnderlyingObject as to behave as
913 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
915 * XmlNode.cs : under 2.0 xml/xmlns are treated as special cases in
916 GetNamespaceOfPrefix()/GetPrefixOfNamespace() (but it still does not
917 implement IXmlNamespaceResolver, bummer).
919 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
921 * XmlDocument.cs : changed some exception types.
922 * XmlDocumentNavigator.cs : added 2.0 SchemaInfo.
924 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
926 * XmlTextReader.cs : 1.x build fix.
928 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
930 * XmlTextReader.cs : when XmlReader.Create() creates this instance,
931 don't expect strict text declaration. Check SkipTextDeclaration()
934 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
936 * XmlReader.cs : fixed several misconception in MoveToNextSibling().
937 It should check its ReadState to avoid infinite loop.
939 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
941 * XmlException.cs : added another .ctor() overload that takes both
942 IXmlLineInfo and innerException.
943 * XmlQualifiedName.cs : added Parse() overload that takes XmlReader
944 (since XmlReader is not IXmlNamespaceResolver anymore).
945 * XmlReader.cs : made several fixes on 2.0 ReadContentAs(),
946 ReadElementContentAs() and all of its variants.
948 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
950 * XmlInputStream.cs :
951 Added Encoding property on NonBlockingStreamReader
953 set Encoding property when it proceeds to xml declaration.
955 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
957 * XmlReader.cs : ReadToDescendant() should work when its ReadState is
960 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
962 * XmlChar.cs : removed incorrect comment.
963 * XmlReader.cs : Create() clones XmlReaderSettings (if supplied).
964 For wrapped XmlReader, check ConformanceLevel to be consistent.
965 * XmlTextReader.cs, XmlTextReader2.cs : added get_Conformance for
966 internal use. Removed unused fields.
967 * XmlInputStream.cs : updated NonBlockingStreamReader to the latest
968 StreamReader (it is almost a copy).
970 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
972 * XmlTextReader.cs : avoid Char.IsSurrogate() and do it inside
973 PeekChar(), which improves notable performance.
975 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
977 * XmlReaderSettings.cs : Schemas will be created only when it is
980 2005-12-08 Andrew Skiba <andrews@mainsoft.com>
982 * IXmlNamespaceResolver.cs: delete TARGET_JVM,
983 no need to mangle the name
985 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
987 * Driver.cs, Profiler.cs, XmlQualifiedNameTable.cs :
990 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
992 * XmlReaderSettings.cs : thanks to idiotic MS design,
993 AllowXmlAttributes is turned on by default.
995 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
997 * XmlReaderSettings.cs :
998 set_Schemas() is fixed in 2.0 RTM (it just works).
999 * XmlResolver.cs : throw ArgumentNullException instead of
1000 ArgumentException when both base and relative urls are null.
1002 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1004 * XmlReaderSettings.cs : ProhibitDtd is set as default.
1005 * XmlWriterSettings.cs : no set_OutputMethod.
1007 2005-11-30 Konstantin Triger <kostat@mainsoft.com>
1009 * IXmlNamespaceResolver.cs: TARGET_JVM namespace change.
1011 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1013 * XmlInputStream.cs: fixed Initialize method to be able
1014 to read unicode file without BOM. TARGET_JVM only.
1016 2005-11-14 Atsushi Enomoto <atsushi@ximian.com>
1018 * XmlNodeReader.cs : removed historical one.
1020 2005-11-10 Atsushi Enomoto <atsushi@ximian.com>
1022 * XmlReader.cs, XmlNode.cs :
1023 [DebuggerDisplay] are not worthy of existing.
1025 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1027 * XmlTokenizedType.cs, XmlNodeOrder.cs : so those enums happen to
1028 have [Serializable] in .NET 1.x, and removed in 2.0 (enums are
1029 anyways serializable, so those attributes do not make sense).
1031 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1033 * XmlValidatingReader.cs : added CanReadBinaryContent.
1034 * XmlTextReader.cs, XmlTextReader2.cs : GetNamespacesInScope() are
1035 now both public and private (i.e. hush IsVirtual).
1036 * XmlWriterSettings.cs, XmlWriter.cs, XmlTextWriter.cs :
1037 NormalizeNewLines vanished.
1039 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1041 * XmlReader.cs : MoveToAttribute(int) is virtual in NET_2_0.
1043 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1045 * XmlConvert.cs : implemented VerifyTOKEN().
1047 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1049 * XmlConvert.cs : VerifyNCName() and VerifyName() throws
1050 ArgumentNullException for "".
1052 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1054 * XmlReader.cs : dependent XmlSchemaValidationFlags fix.
1055 Added ReadElementContentAsObject() and ReadContentAsObject().
1056 * XmlReader.cs, XmlTextReader.cs :
1057 LookupNamespace(string,bool) is now private.
1058 * XmlReader.cs, XmlNode,cs :
1061 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1063 * XmlElement.cs, XmlCDataSection.cs, XmlText.cs, XmlWhitespace.cs,
1064 XmlSignificantWhitespace.cs : added ParentNode overrides (actually
1065 they don't make sense since it just calls base.)
1066 * XmlNode.cs, XmlDocument.cs : changed .NET 2.0 CreateNavigator() impl
1067 to match signature and skip OwnerDocument check in XmlNode (since
1068 it is overriden). Maybe MS does not have ownerDocument as a field and
1069 costs too much on OwnerDocument property.
1070 Added missing bits in XmlDocument.
1072 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1074 * XmlAttribute.cs : added new overrides in 2.0 RTM (this scarcely
1075 makes sense without real optimization though).
1076 * XmlDocument.cs, XmlElement.cs, XmlNode.cs : avoid ChildNodes and
1077 save extra XmlNodeList creation cost.
1079 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1081 * XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
1082 * XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
1083 ReadTypedValue() is removed.
1084 * XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
1085 * XmlWriter.cs : Settings is virtual.
1087 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1089 * XmlDocumentNavigator.cs : now MoveToFirst() invokes internal
1092 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1094 * XmlTextWriter.cs : oops, so WriteState.Error is NET_2_0 only.
1096 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1098 * XmlTextWriter.cs : (Error state check) actually I need to set Error.
1100 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1102 * XmlTextWriter.cs : throw InvalidOperationException if any of
1103 WriteBlah() methods were invoked at error state.
1105 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1107 * XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
1108 default namespace was returning "" instead of null. It didn't check
1109 empty namespace URI for non-empty prefixes.
1111 2005-10-07 Joshua Tauberer <tauberer@for.net>
1113 * XmlTextReader.cs: SkipTextDeclaration would not accept processing
1114 instructions that began with the string 'xml', e.g. rejecting
1117 2005-10-08 Gert Driesen <drieseng@users.sourceforge.net>
1119 * XmlAttribute.cs: InnerText and InnerXml do not override getters in
1120 NET_2_0. Removed extra CLSCompliant attribute on SchemaInfo.
1121 * XmlReaderSettings.cs: Marked sealed.
1123 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
1125 * XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
1126 digits for "second" were not exactly 3. Fixed bug #76328.
1128 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
1130 * XmlReader.cs : Name is virtual in NET_2_0.
1132 2005-10-03 Atsushi Enomoto <atsushi@ximian.com>
1134 * XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
1135 added supprot for NormalizeNewLines.
1136 NewLineOnAttributes is considered only when Indent is true.
1138 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
1140 * XmlAttribute.cs, XmlDocument.cs : check id table updates when
1141 XmlAttribute.set_Value() was invoked. Fixed bug #76311.
1143 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
1145 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs :
1146 XmlReader.Create() with string url argument are not working because
1147 of incorrect choice of the .ctor().
1149 2005-09-28 Atsushi Enomoto <atsushi@ximian.com>
1151 * XmlNodeReaderImpl.cs : when the source node was not a document and
1152 it is an empty element, Read() was incorrectly moving to the parent
1153 of the source node. Patch by Csaba Halasz. Fixed bug #76260.
1155 2005-09-27 Atsushi Enomoto <atsushi@ximian.com>
1157 * XmlTextReader.cs : surrogate computation is incorrect. Fixed bug
1158 #76247. Patch by Brion Vibber.
1160 2005-09-26 Atsushi Enomoto <atsushi@ximian.com>
1162 * DTDValidatingReader.cs : Namespace manager was not handled correctly.
1163 Now it does the same as XmlTextReader does. Fixed bug #76234.
1165 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
1167 * XmlNodeChangedEventArgs.cs: Only make ctor publicly available
1168 in NET_2_0. Fixed API compatiblity with .NET 1.1.
1169 * XmlOutputMethod.cs: Fixed values of enum fields to match MS.NET.
1170 Only available in .NET 2.0.
1172 2005-09-25 Atsushi Enomoto <atsushi@ximian.com>
1174 * XmlReader.cs, XmlReaderSettings.cs, XmlDocument.cs:
1175 XmlSchemaValidationFlags updates.
1177 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1179 * XmlWriterSettings.cs : true NET_2_0 updates.
1181 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1183 * XmlOutputMethod.cs : new file.
1184 * XmlWriter.cs, XmlValidatingReader.cs, XmlReaderSettings.cs,
1185 XmlUrlResolver.cs, XmlWriterSettings.cs :
1186 more NET_2_0 updates.
1188 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1190 * XmlNodeReader2.cs, XmlReader.cs,
1191 XmlTextReader.cs, XmlTextReader2.cs,
1192 XmlNodeChangedEventArgs.cs, XmlElement.cs,
1193 XmlNode.cs, XmlDocument.cs :
1194 updated NET_2_0 API.
1196 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
1198 * XmlTextReader.cs : when there is a heading half of surrogate at the
1199 end of read buffer, it didn't treat it as a surrogate.
1202 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
1204 * XmlTextWriter.cs : for surrogate pair, output character reference
1205 as a single character instead of two reference pairs. Fixed bug #76095.
1206 Patch by Brion Vibber.
1208 2005-08-31 Sebastien Pouliot <sebastien@ximian.com>
1210 * XmlDocument.cs: Added an InheritanceDemand for Unrestricted on
1211 CreateDocumentType and ReadNode methods.
1212 * XmlException.cs: Added a Demand for SerializationFormatter on
1213 GetObjectData method.
1214 * XmlResolver.cs: Added an InheritanceDemand for Unrestricted on
1216 * XmlSecureResolver.cs: Fixed exception when creating evidences with
1217 an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy
1218 and PermitOnly if the security manager is enabled.
1219 * XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
1221 * XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on
1223 * XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted
1226 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1228 * DTDReader.cs : no need to skip text declaration for such entity
1229 declaration that has literal entity. It should not expand entities
1230 inside ResolveExternalEntityReplacementText().
1231 Finally fixed bug #51495.
1233 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1235 * XmlTextReader.cs, XmlTextReader2.cs : added internal .ctor() to
1236 receive both TextReader, XmlNodeType and BaseURI for entity
1237 resolution (though it would be removed later).
1238 * XmlParserInput.cs : Now to handle nested PE insertion and correct
1239 BaseURI, it internally holds a stack of "input source".
1240 * DTDObjectModel.cs,
1242 Required fixes for XmlParserInput.
1243 Handle BaseURI as expected. Added ActualUri for resolved actual
1244 source URI (to resolve nested entities). Pass ActualUri to internal
1245 XmlTextReader.ctor() in ResolveExternalEntityReplacementText()
1246 (well, yes I remember, it is problematic.)
1248 Incorrect Base URI handling bug (part of #51495) is fixed.
1250 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1252 * DTDReader.cs, XmlParserInput.cs :
1253 let's fix #51495. First of all, refactoring.
1255 2005-08-04 Atsushi Enomoto <atsushi@ximian.com>
1257 * XmlAttribute.cs : When there was only one child in attribute
1258 and it was an entity reference, set_Value() tried to set text value
1261 2005-08-03 Gert Driesen <drieseng@users.sourceforge.net>
1263 * XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
1264 * XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to
1265 RoundtripKind to match .NET 2.0 Beta 2.
1266 * XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
1267 in .NET 2.0 Beta 2, and is explicit interface implementation.
1268 * XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
1270 * XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
1272 * XmlValidatingReader.cs: GetNamespacesInScope returns generic
1273 IDictionary in .NET 2.0 Beta 2.
1274 * IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic
1275 IDictionary in .NET 2.0 Beta 2.
1276 * XmlNamespaceManager.cs: GetNamespacesInScope returns generic
1277 IDictionary in .NET 2.0 Beta 2.
1278 * XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic
1279 IDictionary in .NET 2.0 Beta 2.
1280 * DTDValidatingReader.cs: GetNamespacesInScope returns generic
1281 IDictionary in .NET 2.0 Beta 2.
1283 2005-07-14 Atsushi Enomoto <atsushi@ximian.com>
1285 * XmlTextWriter.cs : In WriteQualifiedName(), when there is open
1286 attribute, it calls LookupPrefix() and then if namespace was empty,
1287 it resulted in an exception. Fixed bug #75546.
1289 2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
1291 * XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
1292 to ISO 8601 and XSD datatypes 3.2.6.1).
1294 2005-06-27 Andrew Skiba <andrews@mainsoft.com>
1296 * DTDReader.cs : don't validate entity values, when the entry is
1297 redefined so it will be never used. Fixes valid-sa-086 test from W3C
1300 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1302 * XmlQueryDialect.cs : removed.
1304 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1306 * XmlWriter.cs : added Create(XmlWriter).
1307 * XmlValidatingReader.cs : added Read*AsBase64/BinHex().
1308 * XmlReaderSettings.cs : added obsolete annoyances to hush corcompare.
1310 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1312 * XmlTextReader.cs : use StringBuilder.ToString(int,int) when it does
1313 not have a large chunk of data, following Ben's idea.
1315 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1317 * XmlTextReader.cs : use StringBuilder to store character values; that
1318 saves 40% memory for large chunk of xml. Patch by Gonzalo.
1320 2005-06-22 Andrew Skiba <andrews@mainsoft.com>
1322 * XmlNode.cs : cosmetic fix - remove unnecessary argument from
1323 AppendChildValues function.
1325 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1327 * XmlTextReader.cs : normalization is not required to check character
1328 validity everywhere except for character reference.
1330 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1332 * DTDValidatingReader.cs : removed some extra IsDefault check (with
1333 the latse code default attributes are stored in hashtables anyways.)
1334 Fixup attribute namespaces _after_ xmlns attributse are filled.
1335 The latest change is not good that namespaceURI of a local attribute
1336 was incorrectly globally looked up (it should be always "").
1338 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1340 * XmlValidatingReader.cs : LookupNamespace() was trying to access to
1341 null reference to validatingReader.
1342 * DTDValidatingReader.cs : Fixed default xmlns* attribute handling.
1343 It used to be valid only at the declaring element.
1345 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1347 * DTDValidatingReader.cs : further text node fixes.
1348 - Cut out validation code from Text node case.
1349 - Now it does not use error-prone case transition but uses
1350 DocumentFragment 'vacant room' and fixed incorrect transition from
1352 - CDATA should be validated the same as Text is.
1354 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1356 * DTDValidatingReader.cs : whitespace nodes were incorrectly rejected
1357 inside non-mixed content model.
1359 2005-06-09 Andrew Skiba <andrews@mainsoft.com>
1361 * XmlConvert.cs : add TARGET_JVM for roundtrip bug
1363 2005-06-06 Atsushi Enomoto <atsushi@ximian.com>
1365 * XmlEntityReference.cs, XmlNode.cs : protected api fix.
1367 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
1369 * XmlEntityReference.cs, XmlNode.cs : For entity references, BaseURI
1370 resolution should be different from that of parent since they might
1371 differ. Patch by Andrew Skiba.
1373 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1376 make sure to close parser input before parser stack pop.
1377 * DTDValidatingReader.cs : ditto.
1378 * DTDObjectModel.cs : Fixed another incorrect null BaseURI check.
1380 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1382 * DTDValidatingReader.cs : Last BaseURI exposed this hidden bug via
1385 2005-05-30 Atsushi Enomoto <atsushi@ximian.com>
1387 * DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
1388 BaseURI which results in incorrect URI resolution.
1390 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1392 * DTDObjectModel.cs : For simple type restriction creation it failed
1393 when there is no enumerations (largely failed).
1395 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1397 * XmlImplementation.cs : added new NET_2_0 ctor.
1398 Let's check corcompare:-/
1400 2005-05-11 Atsushi Enomoto <atsushi@ximian.com>
1402 * DTDValidatingReader.cs : namespace storing was stupid.
1404 2005-05-10 Atsushi Enomoto <atsushi@ximian.com>
1406 * DTDValidatingReader.cs : since namespace declarations might be
1407 resolved differently due to entity handling, it holds its own set
1408 of declared namespaces. NamespaceURI and LookupNamespace() use it.
1410 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
1412 * XmlReader.cs : added ReadElementContentAsLong().
1413 * XmlWriter.cs : removed some obsolete WriteValue() overloads.
1415 IXmlNamespaceResolver.cs : removed deprecated 2.0 bits.
1416 * XQueryConvert.cs : obsolete (yeah, now XQuery should be hidden).
1418 2005-05-06 Atsushi Enomoto <atsushi@ximian.com>
1420 * XmlInputStream.cs : Now XmlStreamReader uses non-blocking TextReader
1421 that is mostly copied from StreamReader. It should fix bug #74161.
1423 2005-05-05 Atsushi Enomoto <atsushi@ximian.com>
1425 * XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
1426 XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
1427 DTDValidatingReader.cs : Removed most of "atomizedName" related
1428 stuff that are obsoleted in 2.0 beta2.
1429 * XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.
1431 2005-05-04 Andrew Skiba <andrews@mainsoft.com>
1433 * IXmlNamespaceResolver.cs : mangle the interface method names when
1434 compiling for TARGET_JVM
1436 2005-03-30 Atsushi Enomoto <atsushi@ximian.com>
1438 * XmlUrlResolver.cs : just return connected Stream instead of fully
1439 downloaded memory cache. Fix by Konstantin Triger.
1441 2005-03-24 Atsushi Enomoto <atsushi@ximian.com>
1443 * XmlWriter.cs : WriteQualifiedName() should check namespace validity
1444 (whether it is in scope or not).
1445 * XmlTextWriter.cs : When WriteQualifiedName() is invoked inside
1446 attribute and no matching namespace declaration, create prefix
1447 on demand. Code reused from WriteStartAttribute().
1449 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1451 * XmlValidatingReader.cs : create schema set on demand.
1453 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1455 * XmlParserInput.cs,
1458 DTDValidatingReader.cs : removed/commented out those warned code.
1460 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1462 * XmlDocumentNavigator.cs : overriden IsDescendant (default
1463 implementation extraneously clones).
1465 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1467 * DTDValidatingReader.cs : When expanding entities and there is a
1468 sequence of text nodes, its value was not returned.
1469 * XmlTextReader.cs : better invalid char error report for EOF.
1471 2005-03-09 Andrew Skiba <andrews@mainsoft.com>
1473 * XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
1474 surrogate calculations. This fixes bug 73513.
1476 2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
1478 * XmlParserInput.cs : silly mixed line endings :(
1480 2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
1482 * XmlTextWriter.cs : namespace declaration check for those which starts
1483 with 'x' 'm' 'l' should not be done here (it might be 'declared'
1485 * XmlNamespaceManager.cs : error message for "'xml' prefix for
1486 different namespace" is incorrect.
1488 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1490 * XmlDocument.cs : ugh, so I introduced extraneous reader.Read() in
1491 ReadNode() for EntityReference and it resulted in unexpected skip.
1492 * DTDValidatingReader.cs : On EndEntity, LocalName and Name should
1493 return the name of entity. Removed unused entityReaderNameStack.
1495 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1497 * DTDValidatingReader.cs : reverted one change in r40985. Entity stack
1498 is nothing to do with ReadAttributeValue().
1500 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1502 * DTDValidatingReader.cs : When there was actual attribute in source
1503 XmlReader, MoveToAttribute(i) did not move source reader as expected.
1505 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1507 * XmlDocument.cs : In ReadNode(), on EntityReference node, when
1508 XmlReader can resolve entity, it expands entity and apppend
1509 children into the entity reference. Patch by Konstantin Triger.
1511 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1513 * XmlTextWriter.cs : For duplicating namespace mapping, it should
1514 create another prefix without throwing an exception.
1516 2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
1518 * XmlTextWriter.cs : LookupPrefix() should not return those prefix
1519 that is overriden by another xmlns declaration.
1521 2005-02-26 Atsushi Enomoto <atsushi@ximian.com>
1523 * XmlEntity.cs : it was not returning SYSTEM ID when there is no
1525 * XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
1526 get_NodeType() resulted in loop.
1528 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1530 * XmlComment.cs, XmlNode.cs, XmlText.cs, XmlProcessingInstruction.cs,
1531 XmlEntityReference.cs, XmlSignificantWhitespace.cs, XmlAttribute.cs,
1532 XmlElement.cs, XmlEntity.cs, XmlCDataSection.cs :
1533 For those nodes that are created by Clone(), IsReadOnly is false.
1534 Patch by Konstantin Triger.
1536 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1538 * XmlDocumentNavigator.cs : iteratedNames array could be fixed and
1539 performance got improved. Patch by Konstantin Triger.
1541 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1543 * XmlAttribute.cs : MS does not reject non-NCName prefix. Patch by
1546 2005-02-24 Atsushi Enomoto <atsushi@ximian.com>
1548 * XmlTextWriter.cs : WriteString() should be valid when
1549 WriteStartDocument() was not called.
1551 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1553 * XmlNamespaceManager.cs : IsValidDeclaration was giving useless error
1556 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1558 * XmlDocumentNavigator.cs : it should virtually expand EntityReference,
1559 so refactored to handle both entity references and top level children.
1561 2005-02-22 Atsushi Enomoto <atsushi@ximian.com>
1563 * XmlTextReader.cs : XmlParserContext was not properly popped on
1564 the expected timing and thus had lost BaseURI, XmlSpace and XmlLang.
1565 * XmlInputStream.cs : XmlTextReader does not allow invalid utf-8
1568 2005-02-21 Atsushi Enomoto <atsushi@ximian.com>
1570 * DTDValidatingReader.cs : It should not skip whitespace and
1571 significant whitespace nodes unless it is expanding entities.
1572 * XmlDocumentNavigator.cs : Fixed NodeType that was returning
1573 incorrect type when there is a sequence of text/cdata/space nodes.
1575 2005-02-18 Atsushi Enomoto <atsushi@ximian.com>
1577 * XmlNamespaceManager.cs : Prefix "xml" is bound to the fixed
1578 namespace "http://www.w3.org/XML/1998/namespace", but it is not
1579 vice versa (i.e. we can use other prefixes for this namespace URI).
1581 2005-02-17 Atsushi Enomoto <atsushi@ximian.com>
1583 * XmlNode.cs : It does not have to iterate children to find argument
1584 node. Fixed exception type to ArgumentException. Patch by Andrew
1587 2005-02-16 Atsushi Enomoto <atsushi@ximian.com>
1589 * XmlAttribute.cs : just use InnerText for Value. Patch by Andrew
1591 * XmlConvert.cs : Handle null and empty strings for EncodeName(),
1592 EncodeLocalName() and EncodeNmToken(). Patch by Andrew Skiba.
1593 * NameTable.cs : usually tail of namespaces are rather different than
1594 head of them. Patch by Andrew Skiba.
1595 * XmlUrlResolver.cs : missing %20 handling. Patch by Andrew Skiba.
1597 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1599 * XmlAttribute.cs : For default attributes, WriteTo() writes nothing
1601 * DTDValidatingReader.cs : reduced indentation using Linus trick
1602 (it was too deep in nest).
1604 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
1606 * DTDValidatingReader.cs : Namespaces and prefixes are not properly
1607 handled (it incorrectly assumed DTD definitions and thus always
1608 assumed empty namespace/prefixes).
1610 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
1612 * DTDValidatingReader.cs : element name stack might be empty when the
1613 input XmlReader contains fragments. Patch by Andrew Skiba.
1615 2005-01-25 Martin Baulig <martin@ximian.com>
1617 * XmlNode.cs (XmlNode.SchemaInfo): Mark this as not CLS-compliant
1620 * XmlReaderSettings.cs (XmlReaderSettings.XmlResolver): Mark this
1621 as not CLS-compliant to avoid a CS3025.
1623 2005-01-18 Atsushi Enomoto <atsushi@ximian.com>
1627 XmlAttributeCollection.cs :
1628 Now reuse parentNode field for XmlAttribute.OwnerElement and
1629 reduce class allocation size.
1631 New class that represents a name triplet.
1632 XmlNameEntryCache.cs :
1633 New type to cache name entries.
1636 Replace name strings with name entry and save class allocation size.
1638 Add name entry cache field to document and reuse name entries that
1639 are already allocated.
1641 2005-01-17 Atsushi Enomoto <atsushi@ximian.com>
1643 * XmlNode.cs, XmlAttribute.cs : reverted the previous patch. It broke
1644 several nunit tests.
1646 2005-01-15 Ben Maurer <bmaurer@ximian.com>
1648 * XmlNode.cs (InnerText, AppendChildValues): Don't allocate a
1649 string in the case where nothing needs to be appended.
1651 * XmlAttribute.cs (BuildChildValue): Start out the string with
1652 `null' not `String.Empty'. String.Concat (null, blah) == blah,
1653 pointerwise. ie, there is no allocation. This makes it so that
1654 getting the value of an attribute is faster for the fast case.
1656 2005-01-13 Atsushi Enomoto <atsushi@ximian.com>
1658 * XmlResolver.cs : throw ArgumentException in ResolveUri().
1660 2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
1662 * XmlTextWriter.cs : WriteComment() was outputting extraneous EOL.
1664 2004-12-26 Atsushi Enomoto <atsushi@ximian.com>
1666 * XmlReader.cs : ReadElementContentAsBinHex() was calling ..AsBase64().
1667 * XmlValidatingReader.cs : In set_EntityHandling(), set that property
1668 of DTDValidatingReader.
1669 * XmlNodeReader2.cs,
1670 XmlNodeReaderImpl.cs : added simplified implementation that splits
1671 entity handling and anything else.
1672 * XQueryConvert.cs : implemented ShouldCheckValueFacets().
1673 Use Convert class instead of simple casts (check range).
1674 * XmlReaderSettings.cs : added SetSchemas() for XPathNavigator.
1676 2004-12-22 Atsushi Enomoto <atsushi@ximian.com>
1678 * XmlParserContext.cs : all the string properties must not be set as
1679 null. Thanks to Joshua.
1682 DTDReader.cs : XmlResolver.ResolveUri() may return null.
1684 2004-12-17 Atsushi Enomoto <atsushi@ximian.com>
1686 * XmlReaderBinarySupport.cs : added support class for base64/binhex
1687 reading that mostly automates those reader support.
1688 * XmlReader.cs : added CanReadBinaryContent, CanReadValueChunk,
1689 ReadContentAsBase64(), ReadElementContentAsBase64(),
1690 ReadContentAsBinHex(), ReadElementContentAsBinHex() and
1692 * XmlTextReader.cs : Now ReadBase64() and ReadBinHex() implementations
1693 are moved to XmlReaderBinarySupport. Added CanReadBinaryContent and
1694 CanReadValueChunk overrides. Call Binary.Reset() to enable them.
1695 * XmlTextReader2.cs : added CanReadBinaryContent, CanReadValueChunk.
1696 Added ReadContentAsBase64(), ReadElementContentAsBase64(),
1697 ReadContentAsBinHex(), ReadElementContentAsBinHex() (just because
1698 they are overriden in MS.NET).
1699 * XmlNodeReader.cs : added CanReadBinaryContent and CanReadValueChunk.
1700 Call Binary.Reset() to enable them.
1702 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
1705 Added DateTime related methods with serialization mode.
1707 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
1709 * XmlReader.cs : added MoveToFollowing().
1712 XmlAttribute.cs : added SchemaInfo support.
1713 * XmlDocument.cs : added Schemas and Validate().
1714 ReadNode() now copies xmlReader's SchemaInfo.
1715 * XmlNodeReader.cs : ditto (just reflects node's SchemaInfo).
1717 2004-12-15 Atsushi Enomoto <atsushi@ximian.com>
1720 Create() should assure NameTable!=null on creating XmlTextReader.
1721 Now use XmlSchemaValidatingReader for all xsd validation.
1722 * XmlTextReader2.cs :
1723 Don't use input reader's Settings. It is null.
1724 * XmlReaderSettings.cs : added XmlResolver.
1726 2004-12-14 Atsushi Enomoto <atsushi@ximian.com>
1728 * XmlReaderSettings.cs : XsdValidate and DtdValidate are now
1730 * XmlReader.cs : In Create(), use XmlSchemaValidatingReader for xsd
1733 2004-12-12 Zoltan Varga <vargaz@freemail.hu>
1735 * XmlTextReader.cs: Work around a compiler bug in csc 2.0 beta 1.
1737 2004-12-09 Atsushi Enomoto <atsushi@ximian.com>
1739 * DTDObjectModel.cs : implemented lightweight XmlSchema generator.
1741 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
1743 * XmlValidatingReader.cs : making smarter relationship between
1744 XsdValidatingReader.
1746 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
1748 * XmlException.cs : added SecurityPermissionAttributes.
1749 * XmlReaderSettings.cs,
1750 XmlReader.cs : added ValidationFlags and removed obsolete ones.
1752 2004-12-06 Atsushi Enomoto <atsushi@ximian.com>
1754 * XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
1755 ns is null, and don't lookup prefix for empty namespace.
1757 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1759 * XmlTextReader.cs: don't use \0 as buffer terminator.
1760 * XmlInputStream.cs: s/Array.Copy/Buffer.BlockCopy/.
1762 2004-11-30 Atsushi Enomoto <atsushi@ximian.com>
1764 * DTDReader.cs : Consideration on parameter entity was missing for
1765 attribute default value. Fixed bug #70008.
1767 2004-11-26 Atsushi Enomoto <atsushi@ximian.com>
1769 * XmlReader.cs : not fixage, just explicitly formatted code a bit.
1772 XmlAttributeCollection.cs,
1779 XmlDocument.cs : warning removal.
1781 2004-11-25 Atsushi Enomoto <atsushi@ximian.com>
1783 * XmlQualifiedNameTable.cs : oops, it was not implemented.
1785 2004-11-24 Atsushi Enomoto <atsushi@ximian.com>
1787 * XmlQualifiedName.cs : in 2.0 it is [Serializable].
1788 * XmlTextReader.cs : removed unused local variable.
1789 * XmlTextWriter.cs : Improved some exception messages.
1790 moved some private fields into #if NET_2_0.
1791 * XmlValidatingReader.cs : rename specifiedResolver to
1792 resolverSpecified and use it in internal get_Resolver().
1793 Added [Obsolete] for ReadTypedValue() whose base is obsoleted.
1795 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
1797 * XmlTextReader.cs : Now attribute normalization is handled on Read(),
1798 not on get_Value. This caused a problem when we use
1799 XmlValidatingReader that value is not always normalized expectedly.
1801 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
1803 * XmlReader.cs : removed old ReadValueAsXXX() and added new
1804 ReadContentAsXXX() and ReadElementContentAsXXX().
1805 * XmlTextReader.cs : removed old ReadValueAsXXX() (no overrides now).
1806 * XmlTextWriter.cs : added indentation on Comment nodes.
1807 * XmlDateTimeSerializationMode.cs : updated.
1808 * XmlResolver.cs : added 2.0 NameTable field.
1809 * ValidationType.cs : added ObsoleteAttributes on some members.
1811 2004-11-18 Atsushi Enomoto <atsushi@ximian.com>
1813 * XmlParserContext.cs : the fix was not checked in :(
1815 2004-11-17 Atsushi Enomoto <atsushi@ximian.com>
1817 * XQueryConvert.cs : moved from System.Xml.Query.
1819 2004-11-14 Atsushi Enomoto <atsushi@ximian.com>
1821 * XmlWriter.cs : after WriteAttributes(), argument XmlReader must
1822 move to element. This fixes bug #69350.
1824 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
1826 * XmlParserContext.cs : PushScope() was accessing list out of range.
1828 2004-11-09 Atsushi Enomoto <atsushi@ximian.com>
1830 * DTDValidatingReader.cs, XmlTextReader.cs :
1831 needed more changes wrt XmlException.
1833 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1835 * DTDObjectModel.cs,
1841 Added support for 2.0 XmlException.SourceUri property. Improved
1842 exception handling to contain BaseURI everywhere in the parser.
1844 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1846 * XmlTextReader2.cs : added. It is used to serve public API, plus
1847 entity handling support.
1849 * DTDObjectModel.cs,
1850 DTDValidatingReader.cs,
1852 XmlParserContext.cs,
1854 Implemented XmlTextReader.EntityHandling and ResolveEntity(). To
1855 implement them, XmlTextReader in 2.0 itself is in XmlTextReader2.cs
1856 and XmlTextReader.cs contains Mono.Xml2.XmlTextReader which is the
1857 same as 1.x XmlTextReader. XmlTextReader2 switches entity reader and
1858 source reader, and never handles tokenization.
1859 The reason for "Mono.Xml2" is to avoid large changes in constructor.f
1861 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1863 * XmlAttribute.cs, XmlElement.cs : get_Name should consider name table.
1864 * XmlDocument.cs : use NameTable in Load() and LoadXml().
1865 * XmlReader.cs : In Create(), use NameTable in XmlReaderSettings.
1867 2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
1869 * XmlDocumentNavigator.cs : create rarely-used ArrayList later. This
1870 significantly improves XmlDocument-based XPath performance.
1872 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1874 * XmlTextReader.cs : Manually expanded some of AppendValueChar() and
1875 XmlChar.IsWhitespace() which are on critical points on performance
1876 (marked as FIXME, but it depends on JIT).
1878 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1880 * XmlTextReader.cs : Search xml:* attributes more efficiently.
1882 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1884 * XmlTextReader.cs : Reduced NameTable.Add() for prefixed names. First,
1885 ReadName() now returns atomized LocalName and Prefix. Second, to
1886 avoid extraneous split, SetProperties() now takes prefix and
1887 localName that might be given from ReadName(). Third, removed
1888 FillNames(). This optimizes "namespace-aware and prefixed document"
1889 parsing 10-20% faster.
1891 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1893 * XmlTextReader.cs :
1894 With related to AddNamespace(), there was extra string.StartsWith()
1895 calls. Now AttributeTokenInfo.FillNames() is splitted into
1896 FillPrefixAndXmlns() and FillNamespace(), and AddNamespace() is done
1897 at FillPrefixAndXmlns().
1899 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1901 * XmlTextReader.cs :
1902 Reduces LookupNamespace() call in FillNames(). This improves 6-7%
1903 speedup in some scenario.
1904 Code refactory; Removed unused code. AddAttribute() is used only for
1905 DTD, so renamed to AddDtdAttribute(). For PUBLIC and SYSTEM ids,
1906 FillNames() is not required. Two SetProperties() are ambiguous, so
1907 renamed one (that takes TokenInfo) as SetTokenProperties().
1909 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1911 * XmlParserContext.cs : rewrote; especially to avoid XmlSpace boxing.
1913 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1915 * XmlTextReader.cs : LookupNamespace() don't have to be called in
1916 ReadStartTag() to check prefix, since NamespaceURI is filled in
1917 FillNames(). 10% performance up by avoiding this extra check.
1919 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1921 * XmlValidatingReader.cs : fixed incorrect recursion between
1922 indexer and GetAttribute().
1924 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1926 * DTDReader.cs, DTDValidatingReader.cs, XmlTextReader.cs :
1927 When XmlTextReader is created with NodeType Element or Attribute,
1928 skip possible text declaration (that might be used for resolving
1929 entities) that specifies text encoding. With this fix, bug #61274
1930 must be regarded as fixed.
1932 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1934 * XmlNodeReader.cs : Reimplemented ResolveEntity(). It does not use
1935 XmlTextReader trick anymore. XmlNodeReader itself is used instead.
1937 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1939 * XmlNodeReader.cs : for NET_1_0 ReadInnerXml(), just use
1940 XmlReader.ReadInnerXmlInternal(). It should work fine.
1941 Ditto for ReadOuterXml().
1943 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1945 * XmlNodeReader.cs : removed unused/unreachable code. Simplify
1948 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1950 * XmlDocument.cs, XmlNodeReader.cs, XmlTextReader.cs,
1951 XmlValidatingReader.cs : Those readers could just implement internal
1952 interface IHasXmlParserContext.
1953 * XmlTextReader.cs, XmlValidatingReader.cs : this[] disappeared in 2.0.
1954 (XmlReader has them as virtual.)
1955 * XmlReader.cs : ReadAsObject() disappeared.
1956 * XmlWriter.cs : WriteFromObject() disappeared.
1958 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1960 * XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
1961 * XmlNode.cs : dustclean.
1963 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1965 * XmlDocument.cs : use XPathEditableDocument again.
1966 * XmlNode.cs : To be compatible with XPathEditableDocument, it should
1967 not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.
1969 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1971 * XmlChar.cs, XmlConstructs.cs :
1972 Switched again, for reducing per-process memory consumption.
1973 * XmlInputStream.cs :
1974 Just 64 bytes of buffer would be enough, for example like
1975 <?xml version="1.0" encoding="iso-8859-15" standalone="yes" ?>
1977 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1979 * IXmlDataEvidence.cs : disappeared.
1980 * XmlConvertDateTimeSerializationMode.cs : incorrect filename. removed.
1981 * XmlDateTimeSerializationMode.cs : added
1982 * NewLineHandling.cs : added
1983 * IXmlNamespaceResolver.cs, XmlNamespaceManager.cs :
1984 now 'atomizedNames' is obsolete.
1985 * XmlReaderSettings.cs, XmlWriterSettings.cs :
1986 Should not be sealed. Should not be ICloneable.
1988 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1990 * XmlDocument.cs : XPathEditableDocument looks broken. Just reverted
1991 to fix 2.0 corcompare.
1993 2004-10-26 Atsushi Enomoto <atsushi@ximian.com>
1995 * XmlTextReader.cs : Don't create attribute Value string on Read()
1996 (i.e. create string when get_Value() is invoked.) This optimizes
1997 some kind of XmlTextReader usage significantly such as Skip().
1999 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
2001 * XmlConvertDateTimeSerializationMode.cs : added.
2002 * XmlConvertDateTimeOption.cs : removed.
2004 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
2007 For net_2_0, CreateNavigator() returns editable XPathNavigator.
2008 * XmlReader.cs, XmlTextReader.cs, XmlValidatingReader.cs :
2009 They do not implement IXmlDataEvidence anymore.
2011 2004-10-18 Atsushi Enomoto <atsushi@ximian.com>
2013 * XmlTextReader.cs :
2014 Fixed CheckCharacters setter that always set false.
2015 CheckCharacters check is also required for ReadText(). This fixes
2018 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
2020 * XmlTextReader.cs : Inside DTD, '<' character inside XML comment
2021 is regatded as invalid. This fixes bug #68410. (Error message was
2024 2004-10-14 Atsushi Enomoto <atsushi@ximian.com>
2026 * XmlWriter.cs : CreateTextWriter() is private.
2028 2004-10-09 Atsushi Enomoto <atsushi@ximian.com>
2030 * XmlNodeReader.cs : LookupPrefix() was only after 2.0.
2032 2004-10-08 Atsushi Enomoto <atsushi@ximian.com>
2034 * XmlNamespaceManager.cs : GetNamespacesInScope() caused
2035 IndexOutOfRangeException (miscounted indexes).
2037 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
2039 * XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
2040 For attribute nodes, it should not use WriteSubtree() which does not
2041 support attribute nodes.
2043 2004-09-20 Gert Driesen <drieseng@users.sourceforge.net>
2045 * XmlValidatingReader.cs: Added deprecation message.
2047 2004-09-14 Atsushi Enomoto <atsushi@ximian.com>
2049 * XmlTextWriter.cs : Close() should not Flush() when the output is
2050 already closed. bug #65918 is fixed.
2052 2004-09-12 Atsushi Enomoto <atsushi@ximian.com>
2054 * XmlTextWriter.cs : CloseOutput must be true by default.
2056 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2058 * XmlWriter.cs, XmlTextWriter.cs, XmlWriterSettings.cs :
2059 Implemented CheckCharacters and CloseOutput support.
2061 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2063 * XmlReader.cs : evidence is always provided.
2064 * XmlWriter.cs, XmlTextWriter.cs :
2065 added support for ConformanceLevel and OmitXmlDeclaration.
2067 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2069 * XmlTextReader.cs : Console.WriteLine() injected :(
2070 * XmlTextWriter.cs : It it partly supports XmlWriterSettings.
2071 * XmlWriter.cs : implemented Create().
2072 * XmlWriterSettings.cs : removed EncodeXmlBinary (deprecated).
2074 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2076 * XmlFactory.cs : removed (obsolete).
2078 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2080 * XmlNamespaceManager.cs : GetNamespacesInScope() ignored default
2081 namespace when scope is .ExcludeXml or .All.
2082 * XmlReader.cs : Implemented ValueType, SchemaInfo, ReadAsObject().
2083 Fixed ReadTypedValue() to call ReadValueAs().
2085 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2087 * XmlNamespaceManager.cs : Fixed GetNamespacesInScope() that returned
2088 inconsistent namespace pairs.
2090 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2092 * XmlReader.cs, XmlTextReader.cs :
2093 Added NET_2_0 CheckCharacters support.
2095 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
2097 * XmlNode.cs : GetEnumerator() does not have to create ChildNodes
2098 every time. Removed unused StringBuilder field.
2100 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
2102 * XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
2103 to read more (and might result in an error).
2105 2004-09-03 Atsushi Enomoto <atsushi@ximian.com>
2107 * XmlTextReader.cs : When Normalization is true, CRLF and CR should
2108 be converted to single LF. This should fix part of bug #62076.
2110 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
2112 * XmlWriter.cs : implemented WriteValue(object) for known types.
2114 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
2116 * XmlElement.cs : XmlAttributeCollection doesn't have to be created
2117 every time until the actual use. This sometimes optimizes
2118 attribute-less XML performance siginificantly.
2120 2004-08-27 Atsushi Enomoto <atsushi@ximian.com>
2122 * XmlAttribute.cs : some property getters threw NullReferenceException
2123 when the attribute is not added to an element.
2124 * XmlNode.cs : When a node is not appended to another node, BaseURI
2125 is empty. Bug #64120 is fixed.
2127 2004-08-26 Atsushi Enomoto <atsushi@ximian.com>
2129 * XmlTextWriter.cs : In CheckState(), don't create indentation string
2130 at every time. WriteIndent() now handles the indentation without
2133 2004-08-23 Atsushi Enomoto <atsushi@ximian.com>
2135 * XmlReader.cs, XmlTextReader.cs, XmlWriter.cs :
2136 eliminate MS.Internal.Xml.* classes.
2138 2004-08-21 Atsushi Enomoto <atsushi@ximian.com>
2140 * XmlElement.cs : set_InnerText was removing children incompletely.
2141 This fixes bug #63574.
2143 2004-08-20 Atsushi Enomoto <atsushi@ximian.com>
2145 * XmlTextReader.cs : Fixed EOF not to return true when it is just
2146 closed. Element and EndElement location is now adjusted to be the
2147 same as MS.NET does. This fixes bug #63505 and #63507.
2148 ResetState() now throws InvalidOperationException() as MS.NET does.
2150 * WriteState.cs : added missing 2_0 enumeration.
2151 * XmlReader.cs : ReadTypedValue() is virtual.
2152 * XmlValidatingReader.cs : ReadTypedValue() is override under 2_0.
2154 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
2156 * XmlValidatingReader.cs : Replaced XmlSchemaCollection with
2157 XmlSchemaSet. Added Settings property override
2159 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
2161 * DTDReader.cs : Replacing XmlSchemaDatatype .FromName(string) with
2162 .FromName(string, string) [going to remove former one; it is not
2163 good to support xdt:blah datatypes].
2165 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2167 * DTDValidatingReader.cs,
2168 XmlValidatingReader.cs : implemented IXmlNamespaceResolver.
2169 * XmlNamespaceManager.cs,
2170 XmlNodeReader.cs : implemented GetNamespacesInScope().
2172 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2174 * XmlCharacterData.cs,
2176 XmlNodeChangedEventArgs.cs :
2177 Implemented XmlNodeChangedEventArgs.OldValue and .NewValue.
2179 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2181 * XmlWriter.cs : implemented settings-less Create().
2182 * XmlWriterSettings.cs : added some comments.
2184 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
2186 * XmlWriter.cs : implemented WriteNode(XPathNavigator, bool)
2187 incompletely, using XPathNavigator.ReadSubtree().
2189 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
2191 * XmlReader.cs : Implemented new 2.0 virtual members that used to be
2192 abstract in 1.x. Implemented ReadSubtree().
2194 2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
2196 * XmlTextReader.cs: Stop parsing when a null character is found.
2198 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2200 * XmlReader.cs : Implemented missing MoveToNextSibling() and
2202 * XmlTextReader.cs : Added missing ReadValueAs() override (hmm...
2203 are they really worth overriding?)
2205 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2207 * XmlWriter.cs : Added new WriteStartAttribute(string).
2209 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2211 * XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
2212 * XmlQualifiedName.cs : Added internal static Parse().
2213 * XmlReader.cs : use XmlQualifiedName.Parse().
2214 * XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
2215 * XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
2216 Implemented 2.0 virtual methods that used to be abstract in 1.x.
2218 2004-07-26 Atsushi Enomoto <atsushi@ximian.com>
2220 * XmlReader.cs : Implemented ReadValueAsXxx() except for
2222 * XmlTextReader.cs : implemented them as well, just invoking
2223 base.ReadValueAsXxx ().
2224 * XmlWriter.cs : implemented some WriteValue() methods.
2226 2004-07-21 Atsushi Enomoto <atsushi@ximian.com>
2228 * XmlConvert.cs : added internal ToBinHexString() (BTW according to
2229 MSDN documentation it should be public).
2230 * XmlReader.cs : fixed one incorrect Create() overload. Added
2231 LookupNamespace (string, bool) (public for 2.0, internal for 1.x).
2232 * XmlTextReader.cs : Mostly implemented IXmlNamespaceResolver
2233 interface. Fixed HasLineInfo() access modifier on 2.0.
2234 * XmlNodeReader.cs : Mostly implemented IXmlNamespaceResolver
2235 interface. Wrote common namespace node lookup method and rewrote
2236 existing LookupNamespace().
2237 * XmlValidatingReader.cs : Fixed 2.0 IXmlLineInfo members' signatures.
2239 2004-07-20 Atsushi Enomoto <atsushi@ximian.com>
2241 * XmlNode.cs : When the argument node being inserted is the existing
2242 document element, it should not result in an error (since it should
2243 be first removed from document, thus no error should happen).
2245 2004-07-16 Atsushi Enomoto <atsushi@ximian.com>
2247 * XmlTextReader.cs : Fixed several problems on ReadBase64();
2248 Whitespaces should be ignored, and '=' was not skipped correctly.
2249 It caused "unexpected end of document" error at immediate close tag.
2251 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
2253 * Added MonoFIXAttribute.cs
2255 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
2257 * XmlWriter.cs : Added Create() stubs.
2258 * XmlWriterSettings.cs : Added missing property setters.
2259 * XmlValidatingReader.cs : added internal schemas setter.
2260 * XmlTextReader.cs : added internal XmlReaderSettings property setter.
2261 * XmlReader.cs : Halfly implemented Create().
2262 * DTDValidatingReader.cs : author information was missing.
2264 2004-07-11 Atsushi Enomoto <atsushi@ximian.com>
2266 * XmlConvertDateTimeOption.cs : it is NET_2_0.
2267 * IXmlNamespaceResolver.cs,
2268 XmlNamespaceScope.cs : Compile it in .net 1.1 (as internal).
2269 * XmlNamespaceManager.cs : Implement IXmlNamespaceResolver.
2271 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2273 * XmlConvertDateTimeOption.cs : Forgot to change the content...
2275 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2277 * ConformanceLevel.cs : Fixed integer value.
2278 * Added XmlConvertDateTimeOption.cs.
2279 * Removed XmlItemView.cs and XmlItemViewCollection.cs.
2281 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2283 * IXmlNamespaceResolver.cs :
2284 Fixed return value of GetNamespacesInScope().
2285 * IXmlDataEvidence.cs,
2288 XmlValidatingReader.cs : fixed Evidence (it is not array anymore).
2290 Implemented virtual indexers, QuoteChar, and Dispose() (2.0 stuff).
2292 In net_2_0, indexers vanished from XmlNodeReader.
2293 In net_2_0, overriden QuoteChar vanished.
2294 * XmlReaderSettings.cs : set_NameTable is missing.
2295 * XmlTextReader.cs : Implemented ProhibitDtd.
2297 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2299 * XmlAttributeCollection.cs : In .net 2.0, it became sealed class.
2300 * IXmlDataEvidence.cs : not "Evidences" but "Evidence".
2301 * XmlInputStream.cs : new csc rejected implicit int->char cast.
2302 * XmlNamespaceManager.cs : In net_2_0, LookupNamespace(string) and
2303 LookupPrefix(string) does not require argument string as atomized.
2304 Added HasNamespace (string, bool).
2305 * XmlReader.cs : Added Settings and SchemaInfo properties.
2306 * XmlReaderSettings.cs : Added NameTable. Throw XmlException when
2307 attempt to set Schemas.
2308 * XmlTextReader.cs : Fixed "Evidences" to "Evidence". new csc rejected
2309 implicit int->char cast.
2310 * XmlValidatingReader.cs : Fixed "Evidences" to "Evidence".
2312 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
2315 Close XmlReader only when it is created. This fixes bug #60809.
2317 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
2319 * DTDObjectModel.cs, DTDReader.cs, XmlConvert.cs, XmlDocument.cs,
2320 XmlException.cs, XmlParserInput.cs, XmlTextReader.cs,
2321 XmlTextWriter.cs : Globalization.
2322 * XmlNode.cs : Fixed error message that confused node type.
2324 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2326 * XmlDocumentNavigator.cs : MoveToNext() should skip concatenating
2327 text/cdata/whitespace nodes.
2329 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2331 * XmlInputStream.cs : Fixed encoding detection detected in xslt
2332 standalone tests. Removed extraneous code.
2334 2004-06-13 Atsushi Enomoto <atsushi@ximian.com>
2336 * XmlTextReader.cs : Character range check is always done. It is only
2337 character references for which check is not done when Normalization
2339 A bit more kind error message for multiple document element error.
2340 * XmlTextWriter.cs : Check if character is valid and entitize when
2343 2004-06-09 Atsushi Enomoto <atsushi@ximian.com>
2345 * XmlNamespaceManager.cs : The error message was improper.
2348 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2350 * XmlInputStream.cs: Initialize reads a larger buffer now when trying
2351 to guess the encoding.
2353 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2355 * NameTable.cs : Fixed incorrect hash computation. Thanks to Ben.
2356 * XmlTextWriter.cs : Fixed remaining LookupNamespace() atom problem
2357 shown in xslt standalone tests.
2359 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2361 * XmlTextWriter.cs : Improved indenting. For children of a mixed
2362 content element, it won't be indented.
2364 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2366 * DTDObjectModel.cs,
2367 XmlDocument.cs : Close stream always.
2368 * XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
2369 * XmlTextReader.cs : Namespace check was not done. Some tests depends
2370 on this failure and to be fixed.
2372 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2374 * XmlNamespaceManagre.cs : Fixed LookupNamespace() and LookupPrefix().
2375 They require that names are *already* atomized.
2377 XmlTextWriter.cs : use safe overload of LookupXXX().
2379 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
2381 * XmlTextReader.cs : Fixed version mismatch; ProhibitDtd should be
2384 2004-05-29 Gert Driesen (drieseng@users.sourceforge.net)
2386 * XmlTextReader.cs: Added ProhibitDtd property for NET 1.1 to match
2387 public API in MS.NET 1.1
2389 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2391 * XmlDocument.cs : Save() should indent only when PreserveWhitespace
2392 is false. Fixed bug #59155.
2393 Modified comment lines a bit.
2395 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2397 * XmlTextWriter.cs : WriteRaw() looks to proceed WriteState to Prolog
2398 (if it is Start). Fixed bug #59154.
2400 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2402 * XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
2403 and don't bork against <foo></foo>. Also mofidied this method to skip
2404 <foo/>. Fixed bug #59142.
2405 Modified some comments on the code (FIXME->LAMESPEC et al).
2407 2004-05-24 Atsushi Enomoto <atsushi@ximian.com>
2409 * DTDReader.cs : When sequential PE references exist, the reader only
2410 expands the first one and in some cases the parser complaints the
2411 content (such like expecting name character but found '%').
2412 This fixes bug #58818.
2414 2004-05-23 Atsushi Enomoto <atsushi@ximian.com>
2416 * XmlNode.cs : RemoveChild() should check null argument.
2417 Normalize() was broken in some cases.
2419 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2421 * ConformanceLevel.cs : added.
2423 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2425 * XmlNodeChangedEventArgs.cs : the last patch looks true
2426 ONLY AFTER .NET 2.0.
2428 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2430 * XmlReaderSettings.cs, XmlWriterSettings.cs : NET_2_0 were missed.
2432 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2436 XmlItemViewCollection.cs,
2437 XmlReaderSettings.cs,
2438 XmlWriterSettings.cs : added new .NET 2.0 classes.
2440 * AsyncXmlTextWriter.cs,
2441 IXPathChangeNavigator.cs,
2444 XmlChangeFilters.cs,
2446 XmlNodeChangeType.cs,
2447 XPathChangeNavigator.cs,
2449 XPathDocument2ChangedEventAction.cs,
2450 XPathDocument2ChangedEventHandler.cs,
2452 XPathNavigator2.cs : removed. (They are only in .NET 1.2)
2454 * XmlWriter.cs : added new NET_2_0 WriteElementString().
2456 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2458 * XmlNodeChangedEventArgs.cs : not properly inherited from EventArgs.
2460 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2462 * XmlConvert.cs : Fixed ToString(TimeSpan) that didn't handle Hour
2463 correctly. This fixes bug #57786.
2465 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2467 * XmlValidatingReader.cs : explicitly mark as MonoTODO for XDR (not
2470 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2472 * DTDObjectModel.cs,
2478 XmlUrlResolver.cs : removed reference to Mono.Xml.
2479 Made Mono.Xml.* classes internal.
2480 * XmlDocument.cs : output xml declaration for TextWriter output in Save()
2481 * XmlElement.cs : Name character check should be done in .ctor().
2482 * XmlNamespaceManager.cs : Removed dangerous internal .ctor()
2484 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2486 * XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
2487 node can be it as well) and added check for Attributes existence
2488 in GetAttribute() and MoveTo*Attribute().
2490 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2492 * XmlTextWriter.cs : comment not in the content state is indented.
2493 This fixes bug #58247.
2495 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
2497 * XmlTextWriter.cs: In WriteStartAttribute, when the prefix is xmlns and
2498 the name is empty, convert it to a xmlns attribute.
2500 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2502 * XmlTextReader.cs : don't use NET_1_0.
2504 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2506 * XmlComment.cs. XmlProcessingInstruction.cs : missing commits.
2508 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2510 W3C DOM compliant read-only check support (buggy part in MS.NET).
2513 XmlCharacterData.cs,
2517 XmlSignificantWhitespace.cs,
2519 : CloneNode() - set read-only when copied node is read-only.
2520 Check IsReadOnly on attempt to modify value.
2522 XmlEntityReference.cs : Set descendant nodes read-only.
2523 * XmlAttributeCollection.cs,
2525 : Fixed incompatible exception type.
2526 * XmlEntityReference.cs : CloneNode() should not pass an empty string
2528 * XmlEntityReference.cs,
2529 XmlProcessingInstruction.cs : Check XML name validity.
2530 * XmlText.cs : CloneNode() does not have to check children.
2532 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2534 * XmlDeclaration.cs : More strict check on InnerText and Value.
2536 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2538 * DTDReader.cs, XmlConvert.cs, XmlDeclaration.cs, XmlImplementation.cs,
2539 XmlNode.cs : Culture independency fix.
2541 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2543 * XmlEntityReference.cs : Added XPathNodeType (just for workaround).
2544 This should really fix bug #57248.
2546 2004-04-20 Atsushi Enomoto <atsushi@ximian.com>
2548 * XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
2549 only an EntityReference (not navigatable) child. Bug #57248 fixed.
2550 * XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
2551 instead of WriteAttributes() only for MS.NET behavior compatibility.
2552 This change makes SgmlReader usable (due to SgmlReader bug).
2554 2004-04-10 Atsushi Enomoto <atsushi@ximian.com>
2556 * XmlParserContext.cs : Fixed .ctor() not to reference null namespace
2557 manager. This fixes bug #56770.
2559 2004-04-06 Atsushi Enomoto <atsushi@ximian.com>
2561 * DTDReader.cs : In ProcessDTDSubset(), 1)error message was
2562 generated with incorrect stream character, 2)entity nest check
2563 should not depend on line info which might not be supplied, 3)
2564 empty PE should be skipped.
2565 * XmlParserInput.cs : use index for StringBuilder instead of calling
2566 Remove() many times. This highly optimizes DTD parser.
2568 * XmlAttribute.cs : removed commented code.
2569 * XmlEntity.cs : removed unused field.
2571 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2573 * DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList
2574 only when they are required.
2576 XmlParserInput.cs : raw tag string now don't have to be kept, while
2577 it cost so much. Removed unused code. 20% to 30% memory got saved.
2578 * XmlNotation.cs : removed unused code.
2579 * XmlTextReader.cs : Removed unused code. ReadString() now uses
2580 XmlReader's internal method. Fixed BaseURI to be conformant with
2581 W3C XML InfoSet and (subsequently) xml:base specification (i.e.
2582 reflect xml:base attribute correctly).
2584 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2586 * XmlAttribute.cs : get_Value should return all children's value.
2587 * XmlCharacterData.cs : DOM's substring does not raise an error when
2588 startIndex + count exceeds the length of Data.
2589 * XmlNamedNodeMap.cs : SetNamedItem() returns the new child when it
2590 does not replace another named item.
2591 * XmlElement.cs : with related to the XmlNamedNodeMap change,
2592 SetAttributeNode() is required to fix as to return null when it does
2593 not replace existing attribute.
2595 2004-03-31 Atsushi Enomoto <atsushi@ximian.com>
2597 * XmlDocumentNavigator.cs : When this instance is created from xmlns
2598 attributes, it should be Namespace node.
2600 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
2602 * XmlReader.cs : ReadInnerXml() should progress reader when it is on
2603 an empty element. This fixes bug #56064.
2605 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
2607 * DTDReader.cs : In some places sequential parameter entity was
2608 incorrectly skipped (and caused invalid result).
2610 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2612 * XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
2613 namespace nodes which has the same name as already-iterated nodes.
2614 Also xmlns='' should not be selected, and once it appeared, default
2615 namespace should not be selected anymore.
2617 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2619 * XmlCharacterData.cs : ReplaceData() should reject negative integer
2620 value for count argument.
2621 * XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
2622 On RemoveNamedItem(), default attribute value should be restored.
2624 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2626 * XmlAttributeCollection.cs : Remove() should throw an exception when
2627 target attribute is not included in the collection.
2628 * XmlDocument.cs : ImportNode() should reject null node.
2629 * XmlNode.cs : Fixed type of exception for invalid insertion.
2630 It should throw an exception not only when the owner document of the
2631 reference element is different but its parent element is different.
2632 Some error message improvement.
2634 2004-03-21 Atsushi Enomoto <atsushi@ximian.com>
2636 * XmlReader.cs : ReadInnerXml() incorrectly tried to get output xml.
2637 This fixes bug #55856.
2639 2004-03-20 Atsushi Enomoto <atsushi@ximian.com>
2641 * XmlTextWriter.cs : Fixed indentation on CDATA. This fixes bug #55828.
2643 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
2645 * XmlImplementation.cs : HasFeature() returns true when strVersion
2648 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
2650 * XmlWhitespace.cs : Fixed WriteTo(). Whitespace nodes should be
2651 written regardless of document's PreserveWhitespace.
2653 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
2655 * XmlDocumentNavigator.cs : Value should return concatenated string for
2656 sequential text nodes. Considered detached nodes, the result of
2657 MoveToParent() should be checked.
2659 2004-03-15 Atsushi Enomoto <atsushi@ximian.com>
2661 * XmlReader.cs : ReadInnerXml()/ReadOuterXml() should not bork when
2662 the reader is on EndElement. Patch by Jean-Marc Andre.
2664 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
2666 * XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
2667 to return attribute node. It affects on IHasXmlNode.GetNode() and
2668 SelectNodes()/SelectSingleNode().
2670 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2672 * XmlImplementation.cs : fixity fix (I need NUnit runnable ;)
2674 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2676 * XmlImplementation.cs : forgot to commit (renaming internal case)
2678 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2680 * XmlDocument.cs : Implementation should not return null.
2682 2004-02-25 Atsushi Enomoto <atsushi@ximian.com>
2684 * XmlTextWriterOpenElement.cs : Reset() should reset _all_ fields.
2685 This fixes indentation bug.
2687 2004-02-19 Atsushi Enomoto <atsushi@ximian.com>
2689 * XmlTextWriter.cs : Fixed bugzilla #54554 (incorrent end tag output).
2691 2004-02-16 Atsushi Enomoto <atsushi@ximian.com>
2696 DTDValidatingReader.cs : made classes internal.
2697 * XmlDocument.cs : removed extra FIXMEs.
2698 * XmlNamedNodeMap.cs,
2701 Fixed incorrect method signature.
2703 2004-02-13 Atsushi Enomoto <atsushi@ximian.com>
2705 * DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs :
2706 say goodbye to sys.collections.specialized.
2707 (replaced the classes in that namespace with ArrayList or Hashtable)
2709 2004-02-12 Atsushi Enomoto <atsushi@ximian.com>
2711 * XmlReader.cs : For performance reason, XmlTextReader now uses
2712 base ReadInnerXml() and don't store currentTag array unnecessarily.
2713 * XmlTextReader.cs :
2714 - Fixed GetAttribute(int) that might cause index out of range.
2715 - Now it consumes the text reader by reading blocks, as MS.NET does.
2716 Modified GetRemainder(), PeekChar(), ReadChar() and so on.
2717 - Now it doesn't create Value string for linked nodes, unless it
2718 is actually required.
2719 - some code refactory.
2721 2004-02-11 Atsushi Enomoto <atsushi@ximian.com>
2723 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs :
2724 Reduced creation of openlElement. It also saves much memory.
2726 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
2728 * XmlNode.cs : ChildNodes should not create XmlNodeListChildren
2729 every time. This fix heavily improved performance.
2731 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
2733 * XmlAttributeCollection.cs : set owner element as parent on removal
2734 events (though they are not "parent" in infoset or dom context)
2735 * XmlElement.cs : Don't remove attributes twice (raises extraneous
2737 * XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
2738 Added NET_2_0 members.
2740 2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
2742 * DTDObjectModel.cs : Limit external entity reference from DTD by 256.
2743 foreach elimination. DTDParameterEntityDeclaration should set Root.
2744 Compute attribute default value without raising an error.
2745 (for non-error reporting reader)
2746 * DTDReader.cs : Fixes for the above fixes. foreach elimination.
2747 * DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
2748 XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
2749 XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
2750 XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
2751 XmlText.cs : foreach elimination.
2752 * XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
2753 foreach elimination. Removed unnecesary methods.
2754 * XmlTextReader.cs : code format refactory. Optimized some methods.
2755 foreach elimination. Replaced Stack with string array.
2756 Replaced StringBuilder with char array. Removed unnecessary methods.
2758 2004-02-06 Atsushi Enomoto <atsushi@ximian.com>
2760 * DTDValidatingReader.cs : Fixed MoveToElement() that causes incorrect
2761 IsDefault and Depth.
2762 * XmlAttribute.cs : Fixed .ctor(). Omit more namespace check when
2763 checkNamespace = false.
2764 * XmlNamedNodeMap.cs : Fixed SetNamedItem() to raise events.
2765 * XmlAttributeCollection.cs : Reimplemented InsertAfter to use
2766 InsertBefore() (similar to XmlNode).
2767 * XmlDocument.cs : Added internal .ctor(). Reimplemented ReadNode()
2768 as recursive, to make event order compatible.
2769 * XmlDocumentType.cs : Use SetNamedItem() (to raise events).
2770 * XmlElement.cs : Some refactory. Fixed SetAttributeNode() with
2771 string name to block prefixed name.
2772 * XmlEntity.cs : Don't raise events on setting contents.
2773 * XmlNode.cs : Some refactory. Added raiseEvent argument to internal
2775 * XmlEntityReference.cs : related fix for XmlNode change.
2776 * XmlTextReader.cs : When the reader is on "attributes" of xmldecl or
2777 doctype, Depth 1 lower than usual attribute. Split large function.
2779 2004-02-05 Atsushi Enomoto <atsushi@ximian.com>
2781 * XmlConvert.cs : ToSingle() and ToDouble() should be culture
2782 independent. Patch by Rodolfo Campero.
2784 2004-02-04 Atsushi Enomoto <atsushi@ximian.com>
2786 * DTDObjectModel.cs : Never expand entity on ScanEntityValue().
2787 * DTDValidatingReader.cs : XmlDeclaration node requires attributes
2791 XmlDocumentFragment.cs,
2797 Added namespace checking flag (required for such xml readers
2798 that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
2799 * XmlDocumentType.cs,
2801 XmlEntityReference.cs : The children of Entity and EntityReference
2802 became correct. They now holds parsed nodes, but it is only when
2803 they are appended to the document.
2804 * XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
2805 boolean checkNodeType argument. This method also tries to create
2806 Entity's and EntityReference's child nodes. Also added internal
2807 RemoveChild() with boolean checkNodeType argument.
2808 * XmlNodeReader.cs : Quick hack for ResolveEntity() that became
2809 broken with these changes. use InnerXml as input to entityReader.
2810 * XmlTextReader.cs : XmlDeclaration's value LocalName should be the
2811 same as Name. The names of DTD's pseudo attributes should be empty.
2812 Fixed DTD node's Depth (was regarded as attribute value's depth).
2814 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2816 * XmlTextReader.cs, DTDReader.cs : fixity fix ;)
2818 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2820 * ChangeLog : Fixed incorrect description that should be written for
2821 DTDValidatingReader.cs but written for DTDReader.cs.
2822 * DTDValidatingReader.cs : Fixes described in the last DTDReader fix.
2825 XmlConstructs.cs : Made XmlChar and XmlConstructs equivalent and
2826 replaced XmlChar with XmlConstruts, renaming "XmlChar" to
2827 "XmlCharCompact" and "XmlConstructs" to "XmlChar".
2828 (XmlChar will be used for compact framework.)
2829 * DTDReader.cs, XmlParserInput.cs, XmlTextReader.cs :
2830 XmlChar related changes. Support for surrogate pair.
2831 It cannot use TextReader's peek anymore (for surrogate pair).
2832 Character range check for PI value, attribute value, text
2833 * XmlTextWriter.cs : Change openElements from Stack to ArrayList.
2834 (It calls ToArray() every time.)
2836 2004-02-03 Alon Gazit <along@mainsoft.com>
2837 * XmlNamedNodeMap - now Item(int index) returns null for nodeList.Count
2838 instead of throwing ArgumentOutOfRangeException.
2840 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2842 * XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
2843 predefined entity names.
2844 * DTDObjectModel.cs : DTDxxxCollection now derives from
2845 - DTDCollectionBase that derives from DictionaryBase.
2846 - "Literal value" and "replacement text" are handled differently.
2847 - Throw XmlException when external entity could not be resolved.
2848 - Return ReplacementText for EntityValue.
2850 - Support IXmlLineInfo.
2851 - Fixed IGNORE section handling to be more strict.
2852 - Compute replacement text on reading entity declarations.
2853 - Don't expand char references before getting literal entity value.
2854 - Check not allowed parameter entity inside internal subset.
2855 * DTDValidatingReader.cs :
2856 - Added ValidateWhitespaceNode() to check whitespace's Validity
2857 Constraints on external elementdecl and standalone document.
2858 - When invalid data against its datatype was found, don't throw
2860 - Other code refactory.
2861 * XmlTextReader.cs :
2862 - Check for invalid Text pattern "]]>" should not depend on line
2863 info since it might not be supported.
2864 - Check referenced character's validity (WFC).
2866 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
2868 * DTDReader.cs : Added Normalization. Parameter Entity declaration
2869 should block invalid characters. (GEDecl should be fixed as well.)
2870 * XmlConstruct.cs : Should allow surrogate chars.
2871 * XmlNotation.cs : When prefix is empty (i.e. almost all cases)
2872 Name should not add ':'. Patch by Boris Kirzner.
2873 * XmlTextReader.cs : Modified private ReadCharacterReference() to
2874 return the character (or -1 when should not return anything).
2875 Now Text character reference are checked their character range.
2876 Set DTDReader.Normalization as well as the reader itself.
2878 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
2880 * DTDReader.cs : Make sure that parameter entities are not allowed
2881 inside internal subset unless it appears as a markupdecl.
2882 * DTDValidatingReader.cs : ENTITY or ENTITIES type attributes must have
2883 a value that indicates *unparsed* entity (i.e. NDATA required).
2885 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
2887 * XmlTextWriter.cs : quick performance fix.
2888 Reduced memoty allocation (e.g. 12% when writing XMLSchema.xsd.)
2890 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
2892 * DTDObjectModel.cs :
2893 - DTDNode's BaseURI should not always refer to that of DTD's.
2894 - Use absolute URI's .ToString() instead of AbsolutePath.
2895 * DTDReader.cs : Throw XmlException for illegal character references.
2896 * DTDValidatingReader.cs :
2897 - Share XmlResolver when the actual reader is XmlTextReader.
2898 (MS's XmlValidatingReader and XmlTextReader do this.)
2899 - Added its own EntityHandling property.
2900 * XmlValidatingReader.cs : Share XmlResolver with XmlTextReader.
2902 XmlTextReader.cs : Added new NET_2_0 members.
2903 * XmlElement.cs : Removed extra lines (caused by XmlTextWriter bugs).
2904 * XmlEntityReference.cs : Forgot to add, the real fix by Boris.
2906 2004-01-23 Atsushi Enomoto <atsushi@ximian.com>
2908 * XmlWriter.cs, XmlTextWriter.cs :
2909 Several namespace related fixes.
2910 - Current element's NamespaceURI should be immediately available
2911 after the call of WriteStartElement() for LookupPrefix(), so
2912 AddMissingElementXmlns() only affects on output. This is
2913 now identified by shouldCheckElementXmlns field.
2914 - Attribute's overraped xmlns should be ignored for LookupPrefix(),
2915 Especially, when the owner element is written with the default
2916 namespace. HOWEVER, the attribute should be *written*. This is
2917 identified by shouldAddSavedNsToManager field.
2918 - In AddMissingElementXmlns(), non-empty prefix namespace was not
2919 checked user-written attributes.
2920 - XmlWriter.WriteAttributeString() never supplies namespace URI for
2921 xmlns attributes for other versions than NET_1_0. Instead, added
2922 ns check logic in WriteStartAttribute() only with NET_1_0.
2923 - WriteEndAttribute() should reject zero-length namespace for
2924 non-default xmlns declarations.
2925 - LookupPrefix() should reject argument null and empty.
2927 (added 2004-01-24 : forgot to mention more)
2928 - WriteAttributeString() w/o namespace should supply null, not ""
2929 - Added .NET 1.2 members.
2930 - Regard any name with "xml" prefix as in "namespace for XML".
2932 2004-01-22 Atsushi Enomoto <atsushi@ximian.com>
2934 * XmlElement.cs : Reverted previous fix since it broke monodoc web
2937 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
2939 * XmlNode.cs : When adding a node to child list, it should reject its
2940 ancestors. Patch by Boris Kirzner.
2941 * XmlNodeReader.cs : Related fix to the fix above. It should not move
2942 to children of XmlEntityReference nodes.
2943 * XmlTextWriter.cs : FixedWriteStartElement() not to write default
2944 namespace when ns is null (while ns is "", it writes default ns).
2945 * XmlElement.cs : Fixed WriteTo() to call WriteStartElement(localName)
2946 when NamespaceURI is an empty string.
2948 2004-01-14 Atsushi Enomoto <atsushi@ximian.com>
2950 * XmlAttribute.cs : when set a value, it is no longer default
2951 (even if the value is the same as default value).
2952 * XmlAttributeCollection.cs : Remove() should recover default attribute
2953 value to default, not specified value.
2954 Patch by Boris Kirzner (modified a bit)
2955 * XmlDocument.cs : Reference to undeclared entity is not allowed in
2956 Load(), while allowed in ReadNode(). Added such distinguishing logic.
2958 2004-01-13 Atsushi Enomoto <atsushi@ximian.com>
2960 * XmlValidatingReader.cs : Throw exception only in case of errors.
2961 Added NET_2_0 Evidences property.
2963 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
2965 * XmlElement.cs : Fixed .ctor(). Default attribute was not treated as
2966 Specified = false. Patch by Boris Kirzner.
2968 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
2970 * XmlException.cs : Fixed incorrect .ctor signature.
2971 * XmlParserInput.cs : Fixed in sync with the above fix.
2973 2004-01-08 Atsushi Enomoto <atsushi@ximian.com>
2975 * XmlAttribute.cs, XmlElement.cs :
2976 Fixed incorrect protected .ctor modification.
2978 2004-01-08 Nick Drochak <ndrochak@ieee.org>
2980 * DTDValidatingReader.cs: Removed unused variable
2982 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2984 * XmlNamespaceManager.cs : Implemented .NET 1.2 methods that take
2985 atomizedNames argument.
2986 * XmlTextReader.cs : Use new namespace manager methods.
2987 Reduced NameTable.Add().
2988 * DTDObjectModel.cs : fixed incorrectly commented-out line.
2990 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2992 * XmlAttribute.cs, XmlDocument.cs, XmlElement.cs :
2993 set_Prefix should atomize to name table.
2994 Avoided extraneous atomization attempt a bit.
2996 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2998 * DTDObjectModel.cs, DTDReader.cs, XmlSecureResolver.cs :
2999 avoiding obvious exception.
3000 * DTDReader.cs, XmlTextReader.cs : Some optimization.
3001 Avoided extraneous PeekChar() and reduced name string creation.
3003 2004-01-05 David Sheldon <dave-mono@earth.li>
3005 * XmlTextReader.cs: Fixed constructors taking string url to not
3006 loose the absolute part of the path.
3008 2004-01-04 Atsushi Enomoto <atsushi@ximian.com>
3010 * XmlDocument.cs : Fixed Load() to set XmlResolver correctly. Patch
3011 by Benjamin Jemlich.
3012 Assure closing XmlTextReader which are internally used.
3014 2004-01-03 Atsushi Enomoto <atsushi@ximian.com>
3016 * XmlTextWriter.cs : trivial character-case fix
3017 * XmlUrlResolver.cs : It downloads network stream content at
3018 GetEntity() call. You can try like below:
3019 for (int i=0;i<100;i++) u.GetEntity(url, null, typeof(Stream));
3021 2003-12-23 Atsushi Enomoto <atsushi@ximian.com>
3023 * XmlNamedNodeMap.cs : Fixed internal SetNamedItem(node, pos) to set
3024 replacing node correctly. This fixes bug #52453.
3026 2003-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3028 * XmlDocument.cs, XmlElement.cs, XmlNode.cs :
3029 GetElementsByTagName() - Fixed bugzilla #52419, refactored,
3030 and moved private implementation methods to XmlNode class.
3032 2003-12-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3034 * XmlTextWriter.cs :
3035 Element's namespace should be escaped as usual attribute.
3037 2003-12-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3039 * XmlTextWriter.cs : Indentation between xmldecl and doctype.
3040 * DTDValidatingReader.cs : AttList null reference fix.
3042 2003-12-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3044 * DTDValidatingReader.cs : Validity check and entity expansion were
3046 * DTDObjectModel.cs, DTDReader.cs, XmlInputStream.cs :
3047 Going to remove XmlInputStream. XmlStreamReader might be replacable.
3049 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3051 * XPathDocument2ChangedEventHandler.cs : fixed incorrect argument.
3052 * Moved UpdateEventHandler.cs and XmlUpdateEventArgs.cs to sqlxml.
3054 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3056 * XmlTextReader.cs : BaseURI was broken. This fixes bug #52098.
3058 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3060 * XmlUrlResolver.cs : GetEntity() does not return direct network stream
3061 that may hold up connection. Now it reads up all the content stream.
3063 2003-12-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3065 * XmlAttributeCollection.cs,
3066 XmlElement.cs : Fixed bug #51415.
3067 When adding attribute to an element using Attributes, it failed.
3069 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3071 * XmlDocument.cs : Fixed ReadNode() to call AppendChild() to document
3072 after setting all attribute nodes. Modified ReadNode() to handle
3073 Depth comparison and error handling (!= to <). It allows MS's
3074 SgmlReader bug that returns incorrect Depth.
3076 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3078 * XmlDocumentNavigator.cs : Fixed MoveToNextAttribute (and
3079 MoveToNextNamespace) that might result in NullReferenceException.
3080 patch by Sanjay Gupta. This fixed bug #51941 (and possibly #51415)
3082 2003-12-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3084 * XmlUrlResolver.cs : Update with recent System.Uri change. This fixes
3085 bugzilla #51808 (patch by Jeroen Zwartepoorte, a bit modified).
3087 2003-12-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3089 * XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
3090 * XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
3091 This may fix bug #51415.
3093 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3095 * XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".
3097 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3099 * XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
3100 shouldn't expect non-empty element content. This will fix bug #48287.
3102 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3104 * XmlTextWriter.cs : When element's namespace should be overwritten by
3105 one of its attribute, if exist as such. This fixes bug #51305.
3107 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3109 * DTDValidatingReader.cs : Fixed ReadContent() which may result in
3110 invalid additional Text node.
3112 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3114 * XmlTextWriter.cs :
3115 On WriteProcessingInstruction(), ArgumentException() is expected ;-)
3117 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3119 * XmlTextWriter.cs :
3120 WriteProcessingInstruction() should check name validity.
3121 AddMissingElementXmlns() should allow namespace emission even if it
3122 is identical to existing one.
3124 2003-11-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3126 * XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.
3128 2003-11-20 Eran Domb <erand@mainsoft.com>
3130 * XmlTextWriter.cs (WriteStartAttribute) : Check if the ket already exists in the newAttributeNamespaces table
3131 before trying to add it to the table.
3133 2003-11-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3135 * DTDValidatingReader.cs : Replaced entity should not treat whitespaces
3137 * XmlNode.cs : Removed extraneous MonoTODOs.
3139 2003-11-17 Jackson Harper <jackson@ximian.com>
3141 * XPathEditor.cs: .net 1.2 only
3143 2003-11-17 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3145 * AsyncXmlTextWriter.cs, IXPathChangeNavigator.cs, IXPathEditor.cs,
3146 IXPathNavigator.cs, IXmlDataEvidence.cs, IXmlNamespaceResolver.cs,
3147 UpdateEventHandler.cs, XPathChangeNavigator.cs, XPathDocument2.cs,
3148 XPathDocument2ChangedEventAction.cs,
3149 XPathDocument2ChangedEventHandler.cs, XPathEditor.cs,
3150 XPathNavigator2.cs, XmlChangeFilters.cs, XmlInfoItemType.cs,
3151 XmlNamespaceScope.cs, XmlNodeChangeType.cs, XmlQualifiedNameTable,cs,
3152 XmlQueryDialect.cs, XmlUpdateEventArgs.cs
3153 : Added .NET 1.2 classes (for convenience of ObjectSpaces stubbing).
3155 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3157 * XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
3158 to skip XmlEntityReference.
3159 * XmlTextWriter.cs : Fixed AddMissingElements() and
3160 WriteStartAttribute() not to emit extraneous xmlns.
3162 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3164 * XmlTextWriter.cs : Skip multiple xmlns when element and any of
3165 attributes have the same xmlns values.
3166 WriteEndElement() allows open attribute (calles WriteEndAttribute()).
3167 Indentation should be inserted between ">" and "</xxx>" .
3169 2003-11-02 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3171 * XmlConvert.cs: Only parse INF/-INF/NaN. Other Infinty or NAN
3172 numbers are parsed with the respective ::Parse method.
3174 2003-11-01 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3176 * XmlConvert.cs: Revert my last change. INF and -INF must be
3177 processed here because Double::Parse and Single::Parse doesn't
3178 understand anything of parsing [-]INF.
3180 2003-11-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3182 * XmlDocument.cs : Save(Stream) should not close the stream.
3184 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3186 * DTDReader.cs, DTDValidatingReader.cs, XmlInputStream.cs,
3187 XmlTextReader.cs : More cleanup.
3188 * XmlDocument.cs : Removed CheckName(). Code cleanup.
3189 * XmlElement.cs : .ctor() now adds default attributes (if required).
3190 * XmlAttribute.cs, XmlElement.cs, XmlEntity.cs, XmlEntityReference.cs,
3191 XmlNotation.cs : Now uses OwnerDocument's NameTable.
3193 2003-10-25 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3195 * XmlConvert.cs: Support for the sign in double and single. The
3196 processing of the infinites and nan numbers are more complex than
3197 comparing to "INF" so we must let Double::Parse and Single::Parse
3200 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3202 * DTDValidatingReader.cs : Now it handles whitespace entity as
3204 * XmlConvert.cs : As to NIST testcases, exponential support on single
3205 and double floating point numbers.
3206 * XmlValidatingReader.cs : If it IsDefault, then line number and line
3209 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3214 XmlWriter.cs : Fixed incorrect access modifier.
3215 * XmlTextWriter.cs : Imported state variable from XmlWriter.
3216 * DTDValidatingReader.cs : Removed extraneous MonoTODO.
3217 * XmlConvert.cs : Implemented ToTimeSpan().
3218 Modified ToDateTime() to reuse the same array.
3220 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3222 * XmlAttributeCollection.cs : Fixed synchronization stuff.
3223 * XmlConvert.cs : Added two FromBinHexString() methods.
3224 * XmlTextReader.cs : Modified to use one of the above method.
3225 * XmlValidatingReader.cs : XsdValidatingReader.XmlResolver will be
3226 disabled (in the next commit), so resolver won' be set to it.
3227 Attempt to validate against XDR now throws NotSupportedException.
3229 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3231 * XmlChar.cs : added WhitespaceChars, used in common.
3236 XmlTextWriter.cs : String.Trim()
3237 * XmlConvert.cs : shifted XmlConstructs to XmlChar.
3238 * XmlTextReader.cs : Implemented Normalization.
3240 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3242 * XmlNode.cs : GetPrefixOfNamespace() also contained a bug similar to
3243 GetNamespaceOfPrefix() fixed at 2003-10-13.
3244 * XmlTextReader.cs : ReadBase64() should keep incomplete base64 block
3245 which remained by previous call of this method.
3246 * XmlUrlResolver.cs : Added assertion for file Uri path's absoluteness.
3247 * XmlValidatingReader.cs : Notice about intention of XDR won't be
3248 supported (at least in Mono 1.0).
3250 2003-10-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3252 * XmlDocument.cs : CloneNode() does not copy PreserveWhitespace.
3253 * XmlWriter.cs : Calling WriteNode() with XmlReader whose state is
3254 XmlDeclaration now calls WriteProcessingInstruction(). This fixes
3255 testcase XmlWriterTests.WriteNodeFullDocument().
3256 * XmlTextWriter.cs : Added LAMESPEC comments related to above.
3258 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3260 * XmlDocument.cs : Fixed bugzilla #49607. Save() outputs XML
3261 declaration even though there is no XmlDeclaration child.
3262 * XmlTextReader.cs : Fixed Init() so that ResetState() should work.
3264 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3266 * XmlTextWriter.cs : Implemented WriteSurrogateCharEntity().
3267 Reverted my recent extraneous check in WriteStartAttribute().
3269 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3271 * XmlNode.cs : GetNamespaceOfPrefix() should check Attributes existence.
3272 And it should throw ArgumentNullException.
3274 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3276 * XmlAttribute.cs : Fixed InnerText that did not removed its content
3277 if there is two or more children.
3278 * XmlNode.cs : XmlNode.cs : Fixed bugzilla #49580 (1)to return "",
3279 (2)not to compare NodeType for detached nodes, (3)optimization to
3280 compare element's prefix.
3281 * XmlSecureResolver.cs : Removed extraneous members.
3283 2003-10-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3285 * Added DTDReader.cs. It is almost importation of XmlTextReader.
3286 * DTDObjectModel.cs :
3287 - More .NET-ism. Properties took place of fields.
3288 - Imported PE set from XmlTextReader. Added location info.
3289 - Added DTDEntityBase common to PE and GE.
3290 - More correct text declaration handling with new XmlTextReader.
3291 * DTDValidatingReader.cs :
3292 - Now uses entity resolving XmlTextReader to validate attributes
3293 correctly. Implemented standalone
3294 - Standalone and default related validity constraints check.
3295 * XmlImplementation.cs: Implemented HasFeature().
3296 * XmlNode.cs : Implemented Supports().
3297 * XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
3298 * XmlParserInput.cs : Removed extraneous members.
3299 * XmlTextReader.cs :
3300 - All DTD related functionality now goes to DTDReader.cs
3301 - It became old simple TextReader input style.
3302 - Implemented GetRemainder().
3303 - Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
3304 additional new private method ReadUntilEndTag().
3305 - Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
3306 ReadXmlDeclaration() now became simple.
3307 - More strict entity reference check at SetEntityReferenceProperty()
3308 - Removed extraneous members.
3309 * XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.
3311 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3313 * XmlTextReader.cs: when we get an unexpected EOF in ReadContent, set
3314 the state before throwing the exception if depth > 0.
3316 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3318 * XmlAttribute.cs : Removed extraneous MonoTODO.
3319 * XmlTextWriter.cs : Implemented WriteBinHex() and WriteChars().
3320 WriteStartElement() and WriteStartAttribute() should ignore Prefix
3321 if namespace uri is not specified.
3323 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3325 * XmlDocumentFragment.cs,
3327 XmlEntityReference.cs : Removed extraneous MonoTODO.
3328 * XmlNode.cs : Implemented Normalize().
3329 * XmlNodeReader.cs :
3330 - AttributeCount and HasAttributes should return its owner element's
3331 value, to be consistent with XmlTextReader.
3332 - Fixed Depth to reflect correct attribute/attribute-value iteration.
3333 - simplified ownerElement and HasValue.
3334 - Prefix won't return null.
3335 - MoveToElement() should also work against attribute value nodes.
3336 * XmlTextReader.cs : MoveToElement() should return false if it is
3337 positioned at element itself.
3339 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3341 * XmlTextReader.cs : Improved SignificantWhitespace handling.
3343 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3345 * XmlSecureResolver.cs : Implemented basic feature.
3347 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3349 * XmlUrlResolver.cs : Should work with null type argument.
3351 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
3353 * XmlTextWriter.cs : An attribute can require a prefix for the default
3354 namespace, so we need to store the prefix as well as the namespace.
3356 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3358 * DTDValidatingReader.cs : Simplified to use
3359 XmlSchemaUtil.GetParserContext().
3360 * XmlValidatingReader.cs : ValidationType.Auto should always use
3361 XsdValidatingReader because xsi:schemaLocation might be used.
3363 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3365 * XmlTextReader.cs : Attribute value token properties were incorrectly
3366 set by the linked node.
3368 2003-09-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3370 * XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
3371 considers such case that target node was not adapted to the document.
3372 * XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
3373 * XmlTextWriter.cs : use 'as' instead of 'try..catch'.
3375 2003-09-25 Ben Maurer <bmaurer@users.sourceforge.net>
3377 * XmlNode.cs (XPathNodeType): Give more useful debugging message.
3378 * XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
3381 2003-09-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3383 * XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
3384 recovery was still not enough. Fixed GrowScopes() (incorrect index).
3386 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3388 * XmlTextReader.cs :
3389 - Fix for bugzilla #48337 (containing Ben's advice on that).
3390 - Added internal XmlTokenInfo classes. Nodes are now handled as token
3391 objects (linked node, attributes and attribute values). Most of the
3392 node state properties and iterating methods are changed to refer to
3393 the token classes (except for value builder availability). Removed
3394 fields which are never used. CompileDTDSubset() is changed in
3395 reflection to nodeType field removal.
3396 - Fixed Depth that should vary in moving between attributes and/or
3397 reading attribute values.
3398 - LineNumber and LinePosition now returns more correct location.
3399 - Fixed Value that should still return true if its value is an empty
3400 attribute value string.
3401 - EntityValue is checked WFC constraints even thoug it is not used.
3402 - All .ctor() now initializes ReadState as Initial.
3403 - Read() should be available for attribute value constructor.
3404 * XmlAttribute.cs : set_InnerXml() now calls reader's Read().
3406 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3408 * XmlNamespaceManager.cs: PopScope() must retain those namespaces which
3409 are added in the scope before PushScope() was called.
3411 2003-09-20 Ben Maurer <bmaurer@users.sourceforge.net>
3413 * XmlNamespaceManager.cs: Rewrote. Uses arrays, rather than linked
3414 lists and removes uses of Hashtable. Results in huge speed gains.
3416 2003-09-19 Ben Maurer <bmaurer@users.sourceforge.net>
3418 * XmlConvert.cs: NaN.ToString () != INF.
3420 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
3422 * XmlTextWriter.cs: Attributes that have a namespace must be always
3425 2003-09-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3427 * XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
3429 * XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
3430 Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
3431 add Namespaces immediately, but adds at AddMissingElementXmlns so
3432 that we don't have to have extra check than namespaceManager's
3433 LookupPrefix(). 2) Removed writtenAttributes for performance reason
3434 since it is no more required.
3436 2003-09-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3438 * XmlDocument.cs : patch by Jonathan Hogg. Fixed CreateAttribute()
3439 that handled xmlns attributes inproperly.
3441 2003-09-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3443 * XmlNamespaceManager.cs : GetEnumerator() should return all of the
3444 available pairs (of prefix and namespace).
3445 * XmlQualifiedName.cs : Quick fix for NullReferenceException in case
3446 of name (or ns) is null. (The description of the immediate previous
3447 changes will be inserted below.)
3448 * XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
3449 * XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
3450 will release resources it had allocated.
3452 2003-09-01 Ben Maurer <bmaurer@users.sourceforge.net>
3454 * XmlDocument.cs (Save): use the encoding of the document, if
3457 2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3459 * XmlValidatingReader.cs : Implemented SchemaType. Added support for
3460 ValidationType.Schema. Added support for XmlResolver. Fixed
3461 ReadTypedValue() not to consume EndElement.
3463 2003-08-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3465 * XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
3467 * XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
3468 Commented out Console.Error.WriteLine().
3469 * XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
3470 escape and unescape for relative URI string.
3472 2003-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
3474 * XmlParserContext.cs: Make each context inherit next.
3476 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3478 * XmlChar.cs (IsWhitespace): Spare enumerator allocation.
3479 * XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
3480 fat, use low-fat loops instead. Even better, call the function
3481 inside XmlChar for code reuse.
3482 * HighWaterStack.cs (added): New class that acts like a Stack, but
3483 helps with memory allocation.
3484 * XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
3486 * XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
3487 use a variable that stores the position in the ArrayList.
3489 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3491 * XmlTextWriter.cs: Begin diet. String.Format has too much
3492 saturated fat, lets replace with the fat-free .Write ()
3493 calls. Effects best seen when Paolo's StreamWriter patch is
3496 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3498 * XmlNodeReader.cs : Fixed ReadAttributeValue() that might result in
3499 vanishing current node.
3501 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3503 * DTDValidatingReader.cs : Added SchemaType.
3504 Read() Assures to return to element.
3505 * DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
3506 * XmlReader.cs : ReadString() should be virtual in NET_1_1.
3507 * XmlTextReader.cs : 1) Depth should consider Attribute and its values.
3508 Introduced insideAttribute field to support them.
3509 2) ReadAttributeValue() should consider empty string.
3510 * XmlValidatingReader.cs :
3511 Fixed several properties which premised as if it was already read.
3512 Encoding and Namespaces now throws NotSupportedException for other
3514 Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
3516 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3518 * XmlInputStream.cs : Reverted CanSeek as to return false anyway.
3520 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3522 * DTDObjectModel.cs : added XmlResolver related members. Added
3523 invalid entity recursion logic. Added encodingdecl check on textdecl.
3524 * DTDValidatingReader.cs : It now implements IHasXmlParserContext.
3525 * XmlChar.cs : IsPubidChar() should not allow TAB(	).
3526 * XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
3527 to receive DTDObjectModel to support other than XmlTextReader.
3528 2) Most of its public member is now based on DTDObjectModel.
3529 * XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
3530 2) ReadNode() now considers XmlParserContext's DTDObjectModel for
3531 other than XmlTextReader (such as XmlValidatingReader).
3532 * XmlNode.cs : code cleanup only.
3533 * XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
3534 * XmlTextReader.cs : 1) Illegal entity reference check logic was moved
3535 from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
3536 change on ReadEntityReference(). 3) ReadAttribute() now checks
3537 reference to external entity reference. 4) Added textdecl encoding
3538 check. 5) DTDObjectModel fields are now set correctly. 6) added
3539 PERef markup nest check. 7) If PEDecl was not found, it might be WFC
3540 violation, not only be VC violation. 8) ReadEntityDecl() now receives
3541 its declared entity itself, and this method checks IsInternalSubset.
3542 * XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
3543 2) ValidationType.None should be the same as Auto, not DTD (in the
3544 future it should keep xml schema's default values).
3546 Pending Stuff in XmlTextReader which breaks some NUnit tests;
3547 1) SetEntityReferenceProperies() has check for illegal references.
3548 2) ReadAttribute(bool) has similar check for illegal references.
3550 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3552 * DTDAutomata.cs : Fixed (modified or added) TryEndElement() of choice,
3553 sequence and oneOrMore. Fixed DTDChoiceAutomata.TryStartElement().
3555 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3557 * XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
3558 and supplied SkipWhitespace() as they needed. It broke monodoc.
3559 Fixed ReadEntityValueDecl() to get correct value.
3561 2003-08-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3563 * XmlInputStream.cs :
3564 Fixed Initialize() that might result in incorrect buffer.
3565 CanRead and Position should consider buffer (especially when the
3567 CanSeek should use stream's CanSeek.
3569 * XmlChar.cs : added GetPredefinedEntity().
3570 * DTDObjectModel.cs :
3571 - Modified ComputeDefaultValue() to use it.
3572 - Fixed NormalizedDefaultValue not to expect parsed value as string.
3573 - ResolveExternalEntity now detects invalid standalone specification.
3574 - DTDParameterEntityDeclaration.Value is now changed to property and
3575 keep its resolved value of literal value of external value using
3576 new Resolve (XmlResolver) method (called only by XmlTextReader).
3577 * DTDValidatingReader.cs :
3578 - It now handles entity-expanded Whitespace and SignificantWhitespace
3579 correctly. Does not raise unexpected text not allowed error.
3580 - Fixed MoveToAttribute()s to move internal reader correctly, and
3581 should be able to move in other cases than on element node.
3582 - On Read()ing document type and ResolveEntity(), it now sets
3583 XmlResolver on text reader.
3584 - On ID constraints check and type verification, it now uses
3585 normalized attribute or its tokenized value(s).
3586 - Fixed ValidateAttributes() to add default values when
3587 ValidationType is Auto.
3588 * XmlParserContext.cs : added internal Dtd setter.
3589 * XmlParserInput.cs :
3590 InsertParameterEntityBuffer() should add surrounding whitespaces.
3591 Removed unused code block.
3592 * XmlTextReader.cs :
3593 - Modified ReadReference(), ReadAttribute() and Dereference() to use
3594 XmlChar.GetPredefinedEntity().
3595 - When returning entity reference, it checks extity declaration
3596 existence in certain conditions.
3597 - ReadAttribute() now skips general entity replacement on reading
3599 - ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
3600 - ReadXmlDeclaration() holds isStandalone, which might be used in
3601 entity reference's well-formedness check.
3602 - internal 'DTD' now uses XmlParserContext.Dtd.
3603 - isInternalSubset was meaningless. Now uses input stack's Count.
3604 - Added some required SkipWhitespace().
3605 - Several parameter entity handling changes. Added GetPEValue(name).
3606 TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
3607 now uses its Resolve() when it was external PE. Now it uses value
3608 buffer instead of currentTag, to efficiently read (included) PE.
3609 CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
3610 ImportAsPERef() simply inserts the value to currentInput.
3611 ReadEntityDecl() also uses value buffer. Removed non-used methods.
3612 - Default attributes are now stored in normalized form.
3613 - Dereference() now considers non-expanding predefined entities.
3614 * XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
3615 is more correctly supported.
3617 * XmlAttributeCollection.cs :
3618 When removing default attribute, it immediately inserts the attribute.
3619 RemoveAll() should consider default (not-removable) attributes.
3621 Should have its default XmlResolver. Added Internal Resolver.
3622 Some Load() should use its XmlResolver.
3623 ImportNode() should copy its children in node level, not value level.
3624 It also have to consider not to copy default attribute on importing
3626 * XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
3628 XmlDocumentFragment.cs.
3629 XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
3630 * XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
3631 ResolveEntity() uses XmlResolver on entityReader.
3633 2003-08-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3635 * DTDObjectModel.cs :
3636 - Added validation error check (and AddError(), Errors).
3637 - Fixed ComputeDefaultValue() to handle various references correctly.
3638 - DTDEntityDeclaration.EntityValue became property, and added
3639 LiteralEntityValue. The new one holds resolved value.
3640 Added ResolveExternalEntity(). It now required root in .ctor().
3641 * DTDValidatingReader.cs :
3642 - Now it handles namespaced attributes (as input to xsd validator).
3643 - Added XmlResolver property as usual XmlReader.
3644 - Added currentEntityHandling field so that it can stand changing
3645 XmlValidatingReader's EntityHandling dynamically.
3646 - FilterNormalization() now requires name for getting datatypes and
3647 can stand for non-current attribute normalization.
3648 - Splitted ReadContent() from Read() that can be called recursively
3649 when expanding entities.
3650 - Now handles Entity not found error *after* resolution of entities,
3652 - Read()ing DTD checks its Errors and raises validation error events.
3653 In some situations, DTD parsing may detect VC error, not WFC error.
3654 It also strictly checks NData existence.
3655 - Handling of entity-resolved text is a bit changed and Read()ing
3656 element, endElement, cdata now changed to switch collecting text
3658 - content type ANY should allow texts.
3659 - Added enumerated attribute validity check.
3660 - Added Name/Names creation rule check for ID/IDREF/IDREFS.
3661 - Added entity existence check for ENTITY/ENTITIES attributes.
3662 - Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
3663 - Fixed to remove extraneous #REQUIRED check.
3664 - Contributing default attribute is now only applied to the case
3665 ValidationType is DTD or None.
3666 - ResolveEntity() now handles external entities.
3667 Added Mono.Xml.IXmlParserContext interface support.
3668 * XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
3669 * XmlTextReader.cs :
3670 - Fixed ReadAttributeValue() to reset returnEntityReference.
3671 - Added bool MaybeTextDecl only for ResolveEntity().
3672 - Fixed ReadWhitespace(). In fact its value is considered even if it
3673 is in the end of the XML.
3674 - Fixed ReadXmlDeclaration(). Now skips text declaration.
3675 - CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
3676 - ReadContentSpec() should set OrderType = OR for mixed model.
3677 Fixed to set content element name correctly.
3678 - ImportAsPERef() now skips Text declaration.
3679 - Type of enumerated default attributes shold be string.
3680 - Undeclared PE error is now handled as DTD's VC error, not
3681 XmlTextReader's WFC error.
3682 * XmlValidatingReader.cs : BaseURI should provide that of
3683 original XmlReader's when read was not started yet.
3684 Fixed XmlResolver to delegate to DTDValidatingReader.
3686 * XmlAttributeCollection.cs : Acquiring attList declaration is
3687 insufficient especially in case of lack of elementdecl.
3688 * XmlChar.cs : (Maybe this is compact than XmlConstructs.)
3689 added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
3690 IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
3692 * XmlInputStream.cs : Removed "version" declaration check. It should
3693 be done by XmlTextReader.
3695 * XmlNodeReader.cs : added internal GetInternalParserContext() and now
3696 it can be used in XmlValidatingReader.ResolveEntity().
3697 ResolveEntity() sets XmlTextReader.MaybeTextDecl.
3699 2003-08-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3701 * DTDValidatingReader.cs :
3702 Added full ExpandEntities support for text node and entity reference
3703 node (although require many usage tests). Almost all methods and
3704 properties now have currentTextValue != null check, that field means
3705 that there are cached (entity-resolved) text.
3706 Implemented default attribute aware XmlLang and XmlSpace.
3707 * XmlNodeReader.cs : ResolveEntity() should not require DTD.
3709 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3711 * DTDValidatingReader.cs,
3715 XmlValidatingReader.cs : fixed pragma USE_VERSION_1_0 to NET_1_0.
3717 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3719 * DTDObjectModel.cs : Added BaseURI (but not used yet).
3720 DTDAttListDeclaration.ctro() now requires root dtd object model.
3721 * DTDValidatingReader.cs : Read() now expands EntityReference if
3722 entity handling of validating reader is ExpandEntities.
3726 XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
3727 ReadOuterXml which are modified in MS.NET 1.1.
3728 * XmlConstructs.cs : added int version of IsValid, IsInvalid,
3729 IsContent, IsMarkup and IsNCNameStart.
3730 Fixed int version of IsXXX() to check array index range.
3731 Added IsValidName (string).
3732 * XmlTextReader.cs :
3733 - Read() handles document with non document element as an error.
3734 - ReadText() and ReadCharacterReference() checkes illegal characters.
3735 - ReadEntityReference() checks name validity.
3736 - ReadProcessingInstruction() rejects such name that starts with
3737 "xml" ignoring case, and checks attributes more strictly.
3738 - ReadDeclaration() rejects unrecognized kind of declaration.
3739 - In many places, added "required whitespace" check in DTD markup.
3740 - DTD content model now disallows mixing use of '|' and ','.
3742 2003-08-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3744 * XmlDocumentFragment.cs : I missed to add it in relation to the
3745 previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
3746 * XmlNodeReader.cs : removed some TODO attributes.
3747 * DTDValidatingReader.cs,
3748 XmlValidatingReader.cs : Implemented ResolveEntity().
3750 2003-07-31 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3752 * XmlParserContext.cs,
3754 XmlElement.cs : Added internal Dtd and new internal XmlParserContext
3755 .ctor() that takes DTDObjectModel. And then rewrote classes which
3756 uses DTD information. Changed DocTypeName, InternalSubset, PublicId
3757 and SystemId to use DTDObjectModel.
3758 * DTDObjectModel.cs :
3759 Added DTDObjectModel.InternalSubsetHasPEReference.
3760 Added DTDEntityDeclaration.IsInternalSubset.
3761 * XmlTextReader.cs :
3762 Added internal GetInternalParserContext (to build entity reader).
3763 Added private isIntSubset to check if the DTD subset is internal or
3764 external, which might affect well-formedness constraints.
3765 Changed GenerateDTDObjectModel to return the resulting DTD model.
3767 * XmlEntityReference.cs : implemented BaseURI.
3768 * XmlNodeReader.cs :
3769 - Implemented ResolveEntity() and CanResolveEntity(). In fact
3770 it leads too many changes on almost all methods and properties,
3771 since they now must be aware of entityReader.
3772 - fixed ownerElement that might be used to return from attribute
3773 value to the element through parent attribtues.
3774 - Now changed indexer to call GetAttribute() and moved actual logic
3775 to the matching GetAttribute() methods.
3777 2003-07-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3779 * XmlNode.cs : fixed internal ConstructNamespaceManager() for InnerXml
3780 not to create extraneous xmlns="".
3782 2003-07-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3784 * DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
3785 attribute declaration should be got independently of elementdecl.
3787 Added internal SetDefault() to mark as default.
3788 Removed InnerText implementation that is just the same as XmlNode.
3789 * XmlDocument.cs : id shouldn't be removed from table at 'trying' to
3790 get matching elements. ReadAttributeNode() now sets default mark.
3791 * XmlElement.cs : WriteTo() should ignore default attributes.
3792 * XmlTextWriter.cs : shuold allow valid name char such as digits.
3794 2003-07-27 Piers Haken <piersh@friskit.com>
3796 * XmlQualifiedName.cs : fields should never be null
3798 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3800 * XmlDocumentFragment.cs : added XPathNodeType indicating Root.
3802 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3804 * XmlDocument.cs (GetIdenticalAttribute): restored OwnerElement.IsRooted
3806 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3808 * XmlLinkedNode.cs : added internal IsRooted.
3810 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3812 * DTDValidatingReader.cs :
3813 - Added ID support in ValidateAttributes().
3814 - More refined ReadAttributeValue() support for non-expanding entity
3816 - It should handle LocalName, Name, Prefix, NamespaceURI and Value
3817 correctly when the reader is on each of the value nodes of an
3818 attribute. Now XmlDocument.ReadNode() should work well.
3820 - added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
3821 RemoveIdenticalAttribute()
3822 - Implemented GetElementById().
3823 * XmlAttributeCollection.cs :
3824 - added private ownerDocument property and replaced
3825 ownerElement.OwnerDocument with it.
3826 - Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
3827 It calls XmlDocument.{Add|Remove}IdenticalAttribute().
3828 - Added RemoveIdenticalAttribute() and it is used in Remove().
3829 (I also added AddIdenticalAttribute() but is not used.)
3831 2003-07-26 Duncan Mak <duncan@ximian.com>
3833 * XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
3834 for OwnerElement.IsRooted to fix the build..
3836 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3838 * XmlDocumentType.cs :
3839 modified private DTD to dtd and added internal DTD (the same thing).
3841 Fixed SetAttributeNode() to check if specified attribute is already
3842 set to the other element. In fact it is W3C DOM's specification but
3843 MS.NET 1.0 failed to catch it.
3844 * XmlTextReader.cs :
3845 ReadAttributeValue() should check if the value of the attribute is
3846 already read when the whole value is entity reference.
3847 Also, Name of text nodes should be "", not "#text"
3849 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3851 * XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
3852 with http://www.w3.org/XML/1998/namespace.
3853 * XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
3854 * XmlNode.cs : InnerText should handle CDATA and whitespaces.
3855 * XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
3856 * XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
3857 attributes (as MS.NET does). It isn't good way and I may change it.
3859 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3861 * DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
3862 DTDNotationDeclarationCollection and replaced Hashtables with them.
3863 Added NormalizedDefaultValue property for DTDAttributeDefinition.
3864 * DTDValidatingReader.cs :
3865 - It now reads attribute values into value collection.
3866 - Renamed consumedDefaultAttribute to consumedAttribute, and
3867 inContent to insideContent.
3868 - GetAttribute() should allow reader's other node state than element.
3869 - MoveToNextAttribute() should move when reader is placed other than
3870 the first attribute.
3871 - HandleError() now supports ValidationType.None (i.e. does nothing).
3872 - ValidateAttribute() now collects and resolves attribute value
3873 entity references. (On the other hand, it doesn't support
3874 EntityHandling.ExpandCharEntity.)
3875 - NodeType shouldn't return Attribute after ReadAttributeValue().
3876 Now only Text is supported, but must also support EntityReference.
3877 - Add FilterNormalization() and partially support Normalization.
3879 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3881 * XmlTextReader.cs :
3882 Read() now handles parser context stuff (BaseURI, XmlLang and
3883 XmlSpace) correctly for an empty element.
3884 Normalization property now doesn't throw an error. Will be used soon.
3885 * XmlValidatingReader.cs : added ValidationType.None support (wait for
3886 the next DTDValidatingReader update for "not firing event handler).
3887 * XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
3889 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3891 * DTDValidatingReader.cs :
3892 changed base class to XmlReader and implemented IXmlLineInfo members.
3893 changed .ctor() argument from event handler to validating reader.
3894 Removed some #if ... #else ... #endif blocks.
3895 Added validation event support for Read() using HandleError().
3896 * XmlValidatingReader.cs : added internal OnValidationEvent().
3897 * XmlDocument.cs : ReadNode() now checks reader's state more strictly.
3899 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3901 * XmlUrlResolver.cs : applied BenM's patch for file uri problem
3904 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3906 * DTDValidatingReader.cs :
3907 added DTDObjectModel support for non-XmlTextReader XmlReader
3908 e.g. XmlNodeReader (Read() method).
3910 added internal CreateDocumentType(XmlTextReader) and moved
3911 ReadDoctypeNode() to XmlDocumentType.ImportFromDTD().
3912 * XmlDocumentType.cs :
3913 added internal .ctor(XmlTextReader, document) and ImportFromDTD().
3914 * XmlTextReader.cs :
3915 Renamed useSbForVal (valueBuilderAvailable), valSb (valueBuilder)
3916 and currentSubset (DTD).
3917 Added GenerateDTDObjectModel() (for independent doctype parsing).
3919 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3922 .ctor() should reject xml- or xmlns-prefixed node.
3923 * XmlNamespaceManager.cs :
3924 added some xmlns validity check.
3926 optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
3927 avoiding XmlNamespaceManager creation.
3928 * XmlNodeReader.cs :
3929 doctype node should return PUBLIC and SYSTEM for its indexer,
3930 and Value should be internal subset,
3932 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3934 * DTDObjectModel.cs,
3935 DTDValidatingReader.cs : Completely rewrote attribute handling.
3937 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3940 XmlElement.cs : Fixed CloneNode() for bug #46129.
3941 * XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
3942 String.Format arguments, and basically XmlException.ctor(
3943 IXmlLineInfo, message) seems good idea to use.
3944 * XmlTextReader.cs :
3945 - Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
3946 required non-null context which don't have to exist.
3947 - Added state check. Introduced 'currentState' and 'maybeTextDecl'
3948 (for external entity) and removed hasEnteredDocument. Added
3949 state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
3950 ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
3951 - Replaced throw ReaderError() with throw new XmlException() and
3952 fixed that some error hadn't thrown, only created.
3953 - ResetState() should re-initialize existing private members other
3954 than some specified fields.
3955 - Private AddAttribute() should check if the same-named attribute
3957 * DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
3959 2003-07-09 Lluis Sanchez Gual <lluis@ximian.com>
3961 * XmlTextReader.cs : Implemented ResetState() method.
3963 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3965 * XmlElement.cs : IsEmpty has removed attributes since it incorrectly
3968 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3970 * XmlDocument.cs : Load(string filename) should close its stream.
3971 Small change for the latest DTDObjectModel change.
3972 * XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
3973 changed methods are only related to DTD stuff).
3974 Now uses XmlSchemaDatatype for attribute type definition.
3975 * XmlValidatingReader : initial (limited) support for DTD validation.
3976 It can handle only XmlTextReader.
3977 * DTDObjectModel.cs : changed radically for initial validation support.
3978 * added DTDAutomata.cs and DTDValidatingReader.cs.
3980 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3982 * XmlElement.cs : Removed extraneous xmlns output support (it should
3983 be done by XmlTextWriter).
3984 * XmlNode.cs : InsertBefore() now checks validity of the newChild (and
3985 most of the changes are in fact indentation changes).
3986 * XmlWriter.cs : WriteAttributes() now can write entity references.
3987 WriteNode() now writes xmldecl attributes correctly.
3988 Removed namespaceManager and xmlns check logic, since it should be
3989 done by individual XmlTextWriter.
3990 * XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
3991 written multiple xmlns declarations.
3992 Moved namespaceManager from abstract XmlWriter.
3993 Write{Start|End}Attribute() and WriteString() now checks xmlns
3994 attribute value. (MS.NET holds value only with this write method).
3996 2003-07-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3998 * XmlDocument.cs : removed xmlReader.Close() from Load(XmlReader).
4000 2003-06-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4002 * XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
4003 essentially changed most of the property handling (e.g. removed attribute
4004 enumerator and it now became really cloneable).
4005 * XmlNodeReader.cs : ReadInnerXml() changes its state as error
4006 when the method is called at Initial state.
4008 2003-06-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4010 * XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
4011 as non-empty, and XmlElement's IsEmpty is designed as such.
4012 Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
4014 * XmlNode.cs : Fixed XPathNodeType. It should throw an exception
4015 instead of returning undefined enum value.
4016 Modified some code comments.
4017 * XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
4018 when XmlReader's node is not at empty element or at EndElement.
4019 Fixed XmlDeclaration's standalone check.
4021 2003-06-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4023 * XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
4024 to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
4026 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4028 * XmlInputStream.cs : quick fix for public ctor() BaseURI bug.
4030 2003-06-20 Ben Maurer <bmaurer@users.sourceforge.net>
4032 * XmlTextReader.cs: Reduces memory allocation when the reader is
4033 not queried for some values.
4034 * NameTable.cs: Now uses a custom hashtable to implement. As a
4035 result, when Get (char[], int, int) is called, a string is only
4036 allocated if it is actually a new entry.
4037 (StrEqArray) Compares a string and a char[]
4038 (AddEntry) Adds a new entry to the hashtable
4039 (Entry) Represents a hashtable entry.
4041 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4043 * XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.
4045 2003-06-16 Ben Maurer <bmaurer@users.sourceforge.net>
4046 * XmlUrlResolver.cs: really fixed #44231
4048 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4050 * XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
4051 this method set current node null.
4052 * XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
4053 String.Empty instead of null (expected value).
4056 XmlInputStream.cs : fixed BaseURI problem (bug #44231).
4058 2003-06-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4060 * XmlNodeReader.cs : this [name] and this [name, ns] (and
4061 GetAttribute() methods in turn) returns null instead of String.Empty.
4062 * XmlTextWriter.cs : WriteStartAttribute() should try to use specified
4063 prefix before auto-generating prefixes.
4064 Implemented WriteBase64().
4066 2003-06-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4068 * XmlNodeReader.cs : LookupNamespace () has refered invalid current
4069 node for attributes. Modified to use private "document" property.
4071 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
4073 * XmlTextWriter.cs: when adding an attribute with a namespace, a prefix must be automaticaly
4074 generated, and a namespace declaration must be added.
4075 * XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
4077 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
4079 * XmlAttribute.cs: Accept a null prefix or namespaceURI.
4081 2003-06-10 Duncan Mak <duncan@ximian.com>
4083 * XmlDocumentNavigator.cs (GetNode): Make it implement
4086 2003-06-05 Lluis Sanchez Gual <lluis@ideary.com>
4088 * XmlTextWriter.cs : Fixed bug. After calling for example WriteStartElement ("pref","ln","ns");
4089 a call to LookupPrefix ("pref") when still writting attributes should
4090 return "ns", and it didn't.
4092 2003-06-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4094 * XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
4095 * XmlConvert.cs : fixed VerifyNCName() to check correctly.
4097 2003-06-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4099 * XmlDocumentNavigator.cs : Compute document node one time.
4100 MoveToFirstChild() should move to PIs and comments.
4102 2003-05-30 Miguel de Icaza <miguel@ximian.com>
4104 * XmlReader.cs (ReadStartElement): Improve error message.
4106 2003-05-28 Lluis Sanchez Gual <lluis@ideary.com>
4108 * XmlTextReader.cs : MoveToAttribute methods must set the enumerator to the right
4109 position, since MoveToNextAttribute may be called after it.
4110 SetProperties(): attributes do not "inherit" the namespace.
4111 * XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
4113 2003-05-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4115 * NameTable.cs : Add() sets the given name string interned.
4116 * XmlParserContext.cs : added internal PushScope() and PopScope() to
4117 hold stacks of xml:base, xml:lang and xml:space.
4118 * XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
4119 property for stacked attributes). Renamed Initialize() to Initialize-
4120 Context(). Modified to use XmlParserContext.PushScope()/PopScope().
4122 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
4124 * XmlReader.cs: Little fix to WriteAttributeString()
4126 2003-05-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4128 * XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
4129 XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
4130 XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
4131 XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
4132 Reverted the recent accessibility mistake (5/16).
4133 * XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic
4134 from XmlNode to XmlDocument.
4136 2003-05-18 Lluis Sanchez Gual <lluis@ideary.com>
4138 * XmlQualifiedName.cs : Fixed bug in equality operator.
4140 2003-05-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4142 * XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
4143 any open attributes or elements. WriteWhitespace() checks state and
4144 closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
4145 when it is called inside attribute value.
4146 * XmlException.cs : added .NET 1.1 .ctor.
4147 * added XmlSecureResolver.cs (only stubbing).
4148 * XmlAttribute.cs : set_InnerXml() should remove children.
4151 XmlDocumentFragment.cs,
4152 XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
4153 * XmlNode.cs : RemoveAll() should also remove all attributes.
4154 * XmlTextRader.cs : .ctor() for attribute value reader should add
4155 quotations at initialization, since it requires quote chars.
4156 * XmlWriter.cs : WriteAttributeString() more correct xmlns check.
4158 2003-05-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4160 * changed XPathNodeType modifier to internal *protected* override.
4161 * XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
4162 * XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
4163 * XmlAttributeCollection.cs : removed some incorrect TODO attributes.
4164 * XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
4165 when the argument is "xmlns".
4166 * XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
4167 * XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
4168 * XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
4169 * XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
4170 not to set error state for non-started XmlNodeReader.
4171 * XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
4172 BaseURI support. Fixed Initialize() to handle Attribute correctly.
4173 SetProperty for attribute auto-completes xmlns NSURI.
4174 Attribute and whitespace handling became more correct.
4175 Don't parse external DTD if XmlResolver is null.
4176 * XmlTextWriter.cs : implemented WriteEntityRef().
4177 WriteStartAttribute() checks if ns does not equal to that of xmlns.
4178 * XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
4180 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4182 * XmlConvert.cs : IsInvalid() Now uses XmlConstructs.IsName(Start).
4183 EncodeName() now correctly encodes invalid names.
4184 Result string of ToString(DateTime) contains "fffffff".
4186 2003-04-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4188 * XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
4189 * XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
4191 Fixed this[] to work correctly against XmlDeclarations.
4192 Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
4193 (which may prevent validations etc.)
4196 XmlTextReader.cs : Fixed ReadString() to be compliant with each
4198 * XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
4200 2003-04-27 Pedro MartÃnez Juliá <yoros@wanadoo.es>
4202 * XmlNode.cs: ensure to get a valid Uri in BaseUri when loading the
4203 source document from a file.
4205 2003-04-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4207 * XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
4208 content EntityReference correctly.
4209 * XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
4210 HasAttributes, indexers, MoveTo*Attribute() and Read() ).
4211 Modified Skip() to call Read () explicitly.
4212 * XmlTextReader.cs :
4213 Fixed ReadInnerXml() which ignored EndElement token in certain cases.
4214 Implemented MoveToAttribute (local, ns), and modified GetAttribute()
4215 in relation to this change.
4216 Attributes for XmlDeclaration are now correctly set.
4217 * XmlTextWriter.cs : WriteRaw() is now different from WriteString().
4218 Simplified WriteAttributes() for XmlDeclaration.
4220 2003-04-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4222 * XmlTextReader.cs : fixed ReadInnerXml(). it was inconsistent with
4225 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4227 * XmlDocument.cs : fixed Load() to set baseURI correctly.
4228 * XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
4229 * XmlTextReader.cs :
4230 fixed Depth. When it's on StartElement, Depth was already incremented.
4231 fixed private SaveProperty(), which moved away its saved properties
4232 when MoveToElement was called repeatedly.
4233 * XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
4235 WriteAttributes() refactory (for XMLDecl).
4236 WriteNode() don't Read() when the reader is Initial state, let other
4237 invokation to Read(). In case of Element, it should write entire
4238 element. In case of Attribute, it shouldn't Read().
4239 WriteStartDocument() should omit standalone decl. when there is no
4242 2003-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4244 * XmlReader.cs: reverted last patch. It breaks System.Configuration
4245 because 1. it considers XmlDeclaration as content and 2. always
4246 returns XmlNodeType.None.
4249 2003-04-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4251 * Added missing ChangeLog of 4/4/2003.
4252 * XmlTextWriter.cs : patch by Erik. fixed WriteQualifiedName.
4253 (write prefix instead of ns.)
4254 * XmlInputStream.cs : file access mode fix (FileAccess.Read was missing)
4255 * XmlTextReader.cs : modified to call Read() instead of ReadContent().
4256 (It may be required for decorated reader such as XmlValidatingReader.)
4257 Changed Read() error message for mismatch end tag.
4258 * XmlDocument.cs : (ReadNode) friendly message for mismatch EndElement.
4259 * XmlReader.cs : Corrected misinterpreted MoveToContent() method.
4261 2003-04-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4263 * XmlDocument.cs : Load() now closes the given XmlReader.
4264 Don't allow creation of XmlTextReader for Doctype. (workaround.)
4265 * XmlInputStream.cs : It now closes its internal stream explicitly.
4266 * XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
4267 * XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
4268 * XmlParserInput.cs : added Close() method.
4269 * XmlReader.cs : MoveToContent() should (1) not Read in case of empty
4270 element, and (2) MoveToElement() in case of attribute.
4271 * XmlTextReader.cs : Close() now actually closes source TextReaders.
4273 2003-03-26 Duncan Mak <duncan@ximian.com>
4275 * XmlTextWriter.cs (Write): A patch from Atsushi to fix
4276 prematurely ending the write, or something like that. It was
4277 causing us to chop off the end of the document when we're trying
4278 to generate XML Schemas.
4280 2003-03-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4282 * XmlTextReader.cs : implemented ReadString().
4283 fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
4284 null reference exception when context is null.
4285 * XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
4286 fixed Read() - when positioned at EndElement, it didn't progress.
4287 fixed HasAttribute - it didn't return false in all cases.
4288 fixed Name and LocalName - only limited type of nodes return names.
4289 fixed AttributeCount - in some cases it threw null ref exception.
4291 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4293 * XmlTextWriter.cs : WriteStartDocument doesn't set hasRoot=true, then
4294 WriteEndDocument without root element now raises an error correctly.
4295 * XmlDocumentNavigator.cs : (MoveToFirstChild) fixed bugzilla #36672.
4296 implemented BaseURI, NameTable, XmlLang, GetAttributes, GetNamespace,
4299 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4301 * XmlElement.cs : RemoveAttribute now don't throws when specified
4302 attribute does not exist.
4304 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4306 * XmlNode.cs : add descriptions for some node type error.
4308 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4310 * XmlNodeArrayList.cs, XmlNodeListChildren.cs : bugzilla #39920 fix.
4312 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4314 * XmlDeclaration.cs : quick fix, not to use regex for set_Value.
4316 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4318 * XmlTextReader.cs : Fixed wrong notationdecl SYSTEM id read.
4319 * XmlInputStream.cs : Should allow versionless input stream entity.
4321 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4323 * added XmlParserInput.cs for multi xml document sources.
4324 * added DTDObjectModel.cs (maybe temporary).
4325 * XmlTextReader.cs :
4326 + fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
4327 + Some members such as LineNumber, ReadChar now uses XmlParserInput.
4328 + added support for Namespaces (namespace-ignorant parse available).
4329 + added support for XmlResolver.
4330 + replace SetReaderContext()/SetReaderFragment() with Initialize().
4331 + use NameTable in CreateNameString.
4332 + fixed ReadCData(). Now reads "]]]>" correctly.
4333 + support for DTD parse.
4334 + Read() now throws an error when it reached EOF while Depth > 0.
4336 XmlDocumentFragment.cs,
4337 XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
4338 * XmlDocument.cs : ReadNode() now reads DocumentType.
4339 * XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
4341 XmlNotation.cs : added override LastLinkedChild (for doctype node).
4342 * XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
4343 * XmlElement.cs : bugfix for node removal of set_InnerXml.
4344 * XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
4345 (to append child XmlEntity into XmlDocumentType correctly.)
4346 * XmlInputStream.cs : fixed to access file with FileAccess.Read.
4348 2003-03-15 Duncan Mak <duncan@ximian.com>
4350 * XmlElement.cs (Name): Only append prefix + ':' when prefix is
4351 neither String.Empty nor null. Thanks to Simon Guindon for
4352 reporting the bug and Jackson for fixing this bug with me.
4354 2003-03-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4356 * XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
4357 * XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
4358 fixed ReadNode(), it should call reader.Read() only on Initial state.
4359 * XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
4360 and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
4361 System.Net.WebClient directly.
4362 * XmlParserContext.cs : baseURI never be null.
4363 * XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
4364 * XmlUrlResolver.cs : namespace change for XmlInputStream.
4366 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
4368 * XmlTextReader.cs: When throwing a ReaderException, show what
4369 character was the culprit
4371 2003-03-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4373 * XmlDocumentFragment.cs, XmlElement.cs :
4374 modified InnerXml (fragment type from Element to DocumentFragment).
4376 * XmlElement.cs : fixed WriteTo() ns check.
4377 * XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
4378 * XmlNode.cs : fixed ConstructNamespaceManager().
4380 * XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
4381 IsPubid with an int arg.
4382 * XmlReader.cs : changed to use XmlChar.cs (its role is as same as
4384 * XmlTextReader.cs :
4385 improved error messages with line info.
4386 / checking matching start and end tags.
4387 / prevents the apperance of multiple root elements. (patch by Erik)
4388 fixed and refactored ReadInnerXml() and ReadOuterXml()
4389 changed to use XmlChar.cs.
4391 * XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
4392 (It will help c14n implementation.)
4393 / blocks multiple attribute output with element node.
4395 2003-02-28 Alan Tam <Tam@SiuLung.com>
4397 * XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
4398 methods to make them compatible with the XML Schema Spec from W3C
4399 ToString(TimeSpan) is still outstanding
4401 2003-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4404 (Load (string)): hack to workaround some issues with Uri.Parse. Once
4405 Parse is fixed, remove the hack.
4407 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4409 * XmlQualifiedName.cs : fixed GetHashCode() to avoid null reference
4410 * XmlTextReader.cs : fixed ReadAttributeValue() to handle
4411 entity reference, and some refactory.
4413 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4415 * XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.
4417 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4419 * XmlInputStream.cs : added (also contains internal XmlStreamReader).
4420 * XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
4421 and can read non-UTF-8 stream.
4422 * XmlTextReader.cs : related to above stream fix.
4423 * XmlUrlResolver.cs : implemented GetEntity ().
4425 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4427 * XmlTextWriter.cs: implemented WriteRaw (char[], int, int).
4429 2003-02-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4431 * XmlTextReader.cs : implemented QuoteChar.
4433 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4435 * XmlNode.cs : implemented ReplaceChild.
4436 removed DocElem checking at InsertBefore.
4437 * XmlNodeReader.cs : fixed ReadString and Read for correct node info.
4438 * XmlText.cs : implemented CloneNode and SplitText.
4440 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4442 * XmlCharacterData.cs: added XPathNodeType property.
4444 2003-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4446 * XmlTextWriter.cs: throw an exception if WriteEndDocument is
4447 called without a prior call to WriteStartDocument.
4449 2003-01-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4451 * XmlNodeReader.cs : several fix to get more compatible with MS.NET.
4453 2003-01-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4455 * XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
4456 null when no matching uri.
4457 * XmlElement.cs : removed unnecessary xmlns output.
4458 * XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
4459 * XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
4460 along with the change above, and moved timing of 'xmlns' output
4461 to CloseStartElement.
4462 * XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
4464 2003-01-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4466 * XmlWriter.cs: modified WriteStartElement (see test for detail).
4469 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
4471 * XmlDocument.cs: Added CheckName () method to check names validity.
4473 2003-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4476 (ReadOuterXml): use Depth property which return elementDepth, not depth.
4478 2003-01-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4480 * XmlElement.cs : (by ville) XmlElement.set_InnerText event bugfix.
4481 * XmlTextReader.cs : some fix for ReadOuterXml().
4483 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4485 * XmlTextReader.cs : bugfix for attributes related to creation of
4486 XmlAttribute *node*.
4488 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4490 * XmlTextReader.cs : bugfix for attribute values which have entity
4493 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
4495 * XmlDocument.cs: XmlTextWriter.Formatting == Indented when
4496 calling Save () -methods.
4498 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4500 * XmlNodeReader.cs : primitive reading implementation.
4502 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4504 * XmlElement.cs : quick fix for the incomplete patch of #35308 below.
4506 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4508 * XmlDocument.cs : removed inconsistent line-feed output.
4509 * XmlElement.cs, XmlTextWriter.cs :
4510 fixed for bugzilla 35308 (default ns output)
4511 * XmlWhitespace.cs : limited output only when preserving whitespace.
4513 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4515 * XmlAttribute.cs, XmlDocument.cs, XmlTextReader.cs:
4516 Implemented XmlTextReader.ReadAttributeValue().
4517 Added internal ReadAttributeNodeValue().
4518 Fixed XmlAttribute.InnerXml to use these methods.
4520 * XmlDocument.cs, XmlDocumentFragment.cs, XmlElement.cs, XmlNode.cs:
4521 Implemented XmlDocument.ReadNode() and removed ConstructDOM().
4522 Other changes are replacing them.
4524 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4526 * XmlDocument.cs: patch by Ville (fixed default PreserveWhitespace)
4528 2002-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4530 * XmlElement.cs, XmlTextWriter.cs, XmlWriter.cs:
4531 patch by JD Conley <jconley@winfessor.com>.
4532 (Fix for xmlns attribute output.)
4534 2002-12-05 Ville Palo <vi64p@koti.soon.fi>
4536 * XmlQualifiedName.cs: Little fix to ToString () -method
4538 2002-12-04 Tim Haynes <thaynes@openlinksw.com>
4540 * class/System.XML/System.Xml/XmlElement.cs: Made more refined
4541 checks on attributeNode to fix 32262.
4543 2002-12-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4545 * XmlDocument.cs (CreateNavigator(XmlNode)) : reverted
4546 * XmlTextWriter.cs (WriteStartElementInternal):
4547 fixed when default namespace was specified, all descendants
4548 fail to omit the default namespace declarations.
4551 XmlNode.cs (internal XmlLang/XmlSpace) : implemented(defined)
4553 XmlDocumentFragment.cs,
4554 XmlElement.cs (set_InnerXml): now uses XmlLang/XmlSpace
4555 * XmlElement.cs (set_IsEmpty) : implemented
4556 (WriteTo) : removed my improper indenting (Writer already done)
4557 * XmlNode.cs (BaseURI) : fixed if ParentNode is null, NullPointerEx
4558 (ConstructDOM) : implemented when xmlReader isn't XmlTextReader
4559 ...and renamed XmlDocument.ConventionalParser to ReusableReader ;-)
4561 2002-12-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4563 * XmlNode.cs (RemoveChild):
4564 bugfixed when XmlNode is Document OwnerDocument is null
4565 * XmlDeclaration.cs (Value):
4566 bugfixed regular expression pattern.
4567 * XmlDocument.cs (CreateNavigator): bugfixed access modifier.
4569 2002-11-24 Duncan Mak <duncan@ximian.com>
4571 * XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
4572 Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
4573 first patch to Mono! ;-)
4575 2002-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4578 (AppendChild): readded refChild != null condition before throwing
4579 "cannot insert this node in this position" exception. There's probably
4580 a better solution. Fixes #34191.
4581 (RemoveAll): changed following Atsushi instructions.
4584 2002-11-13 Duncan Mak <duncan@ximian.com>
4586 * XmlElement.cs (IsEmpty): A temporary check-in to keep gtk-sharp
4589 2002-11-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4591 * XmlDocument.cs : unified all constructors, added ConventionalParser,
4592 implemented CloneNode() and CreateEntityReference(),
4593 * XmlEntityReference.cs : set_Value, WriteContentTo, WriteTo
4594 set BaseURI to MonoTODO
4595 * XmlNode.cs : implemented PrependChild, modified ConstructDOM,
4596 bugfix InsertAfter (incorrect prepending) and InsertBefore
4597 (more than one DocumentElements hadn't caused errors)
4598 * XmlTextReader.cs : unified all constructors,
4599 added internal SetReaderContext(), SetReaderFragment()
4600 bugfix (syntax check of PUBLIC / getting internal subset)
4602 2002-11-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4604 XmlAttribute.cs : set_InnerText, set_InnerXml, some check for set_Prefix
4605 XmlAttributeCollection.cs : (indexer) this[localName, namespaceURI]
4606 XmlCharacterData.cs : exchanged Data and Value
4607 (for processing events and inheritance)
4608 XmlDocumentFragment.cs : set_InnerXml
4609 XmlSignificantWhitespace.cs : set_Value
4610 XmlTextReader.cs : ReadAttributeValue
4612 2002-11-04 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4614 XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement'
4616 2002-11-03 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4618 * XmlAttributeCollection.cs : checks owner element.
4619 implemented CopyTo, InsertAfter, InsertBefore, Prepend,
4620 Remove, RemoveAt, SetNamedItem.
4621 removed some logics that sets 'Parent' (that should be null)
4622 * XmlDocument.cs : set_InnerXml, [PreserveWhitespace(incomplete)]
4623 * XmlDocumentFragment.cs : get_InnerXml, WriteContentTo, WriteTo
4624 * XmlElement.cs : implemented WriteTo, set_InnerText.
4625 Fixed WriteTo() to add xmlns:* attributes when
4626 writer.LookupPrefix() returned mismatching.
4627 * XmlNamedNodeMap.cs : compare not only name but localname and nsuri.
4628 Removing different prefixes for the same uri now runs correct.
4629 added SetNamedItem(XmlNode node, int position_to_insert).
4630 * XmlNode.cs : ConstructDOM (logically) creates XmlEntityReference,
4631 XmlWhitespace, and XmlSignificantWhitespace
4633 2002-10-31 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4635 * XmlDocument.cs : implemented CreateDocumentFragment()
4636 * XmlElement.cs, XmlLinkedNode.cs :
4637 moved LastLinkedChild from XmlElement to XmlLinkedNode.
4638 * XmlEntityReference.cs : must throw NotImplementedException.
4640 + implemented InsertBefore() and then implemented InsertAfter()
4641 and modified AppendChild() to call it.
4642 + added logic to check ReadOnly, parent document equivalence,
4643 and inserting any 'content' before/after DocumentElement.
4644 + implemented Clone() [it is equals to CloneNode() by MS doc.]
4645 + added logic in RemoveChild() to check parent of oldChild.
4646 + fixed ConstructNamespaceManager() to internal only.
4648 2002-10-29 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4650 * XmlAttribute.cs : add internal 'IsDefault' property
4651 (equals to !Specified)
4652 * XmlImplementation.cs : added 'internalNameTable' property.
4654 + now allows "" for 'standalone' in CreateXmlDeclaration.
4655 + implemented 'Implementation' property and constructor with it.
4656 + added logic for appending name table (but still no use)
4657 + implemented property 'DocumentType'
4658 (but without internalSubset parsing. wait for next update.)
4660 + modified AppendChild() and RemoveChild() to support fragment.
4661 + modified AppendChild() to remove newChild from its parent
4662 when newChild is already in the other place.
4663 + modified RemoveChild() to set parentNode null.
4664 + modified ConstructDOM() to create DocumentType,
4665 and fixed access modifier ('internal protected' to 'internal')
4666 * XmlLinkedNode.cs : fixed 'NextSibling' to return null
4667 when its parent is null.
4668 * XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
4669 property to enable AppendChild() for this class.
4670 * XmlTextReader.cs : appended private publicId and systemId fields.
4672 2002-10-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4674 * XmlTextReader.cs: make it work when the underlying Stream is not
4677 2002-10-26 Piers Haken <piersh@friskit.com>
4679 * XmlNode.cs: add virtual property XPathNodeType
4684 * XmlProcessingInstruction.cs:
4685 * XmlSignificantWhitespace.cs:
4687 * XmlWhitespace.cs: implement XPathNodeType property
4688 * XmlDocumentNavigator.cs: use XPathNodeType property instead of switch
4690 2002-10-26 Piers Haken <piersh@friskit.com>
4692 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
4694 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4696 * XmlTextReader.cs: don't increment depth for entity references.
4698 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
4700 * - Fixed the duplication of xmlns:xx = yy when serializing the
4701 XML for serialization
4703 Fixed the unnecessary parsing/serializing when adding assemblies
4706 Avoided setting the XmlNode.InnerXml property
4707 (as it's not implemented)
4709 Fixed the usage/implementation of
4710 XmlElement.GetElementsByTagName()
4712 2002-10-21 Duncan Mak <duncan@ximian.com>
4717 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
4718 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
4720 2002-10-18 Duncan Mak <duncan@ximian.com>
4722 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
4723 <ginga@kit.hi-ho.ne.jp>.
4725 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
4727 * XmlDocument.cs (ImportNode): Implemented
4729 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4731 * XmlDocument.cs: one more Load method implemented.
4732 * XmlTextReader.cs: Depth now works.
4734 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4736 * XmlConvert.cs: IsInvalid is now internal.
4737 * XmlNamespaceManager.cs: implemented RemoveNamespace
4738 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
4739 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
4741 2002-09-19 Matt Hunter <mahunter@tconl.com>
4743 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
4744 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
4746 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4748 * XmlConvert.cs: finished implementation.
4749 * XmlTextReader.cs: fixed #30239.
4750 * XmlTextWriter.cs: fixed #30240.
4752 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4754 * XmlTextReader.cs: line and position begin with 1.
4756 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4758 * XmlException.cs: added a new internal constructor for IXmlLineInfo
4759 and output line and position info in Message.
4761 * XmlReader.cs: implemented missing bits.
4763 2002-09-12 Piers Haken <piersh@friksit.com>
4765 * XmlDocumentNavigator.cs: implement MoveToId()
4767 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4769 * XmlTextWriter.cs: fixed bug #29886.
4771 2002-08-26 Ravi Pratap <ravi@ximian.com>
4774 * XmlAttribute.cs (InnerText): Implement getting this property.
4776 * XmlNode.cs (InnerText): Ensure that we append only values of
4779 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4781 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
4782 that allowed compiling this.
4783 [ FIXME: filed bug #29435. mcs should have failed on this ]
4785 2002-08-25 Tim Coleman <tim@timcoleman.com>
4787 Change CreateNavigator to not be virtual.
4789 Add set_Prefix and InnerText accessors.
4790 * XmlEntityReference.cs:
4791 Add set_Value accessor.
4793 Make objects which should be private private.
4795 Remove WriteStartElementInternal abstract definition.
4796 * XmlValidatingReader.cs:
4799 2002-08-22 Jason Diamond <jason@injektilo.org>
4801 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
4802 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
4804 2002-08-22 Jason Diamond <jason@injektilo.org>
4806 * XmlElement.cs: Correction to previous GetElementsByTagName patch
4807 courtesy of Matt Hunter <xrkune@tconl.com>.
4809 2002-08-22 Jason Diamond <jason@injektilo.org>
4811 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
4812 qualified GetElementsByTagName courtesy of Matt Hunter
4815 2002-08-19 Jason Diamond <jason@injektilo.org>
4817 * XmlDocument.cs, XmlElement.cs: Added implementation of
4818 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
4820 2002-08-16 Jason Diamond <jason@injektilo.org>
4822 * XmlElement.cs: Fixed writing out qualified elements courtesy of
4823 Marcus Bürgel <marcus.buergel@gmx.de>.
4825 2002-08-13 Tim Coleman <tim@timcoleman.com>
4827 Partial implementation of WriteQualifiedName ().
4829 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
4830 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
4831 InsertData(), and ReplaceData(). These methods fire the
4832 NodeChanging and NodeChanged events.
4834 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
4836 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
4837 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
4839 2002-08-03 Tim Coleman <tim@timcoleman.com>
4840 * XmlNamespaceManager.cs:
4841 .Net allows the empty namespace to be redefined
4842 at a later point, but the current implementation
4843 did not. This fixes a hashtable conflict.
4845 2002-07-26 Tim Coleman <tim@timcoleman.com>
4847 When given a textwriter, check to see if it has a
4848 null encoding. This was being done for other inputs
4851 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
4853 * XmlTextReader.cs: rough line/column support.
4855 2002-07-23 Duncan Mak <duncan@ximian.com>
4857 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
4858 (string, string []) is particularly strange.
4860 * XmlException.cs: Remember to call the base serialization
4863 * XmlNodeReader.cs: Keep a new variable to store the Depth.
4865 2002-07-14 Jason Diamond <jason@injektilo.org>
4867 * XmlAttribute.cs: Removed ownerElement field since we can reuse
4870 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
4871 if the current node is an attribute.
4873 * XmlElement.cs: SetAttributeNode now sets the new attribute's
4876 2002-07-12 Jason Diamond <jason@injektilo.org>
4878 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
4879 creating an element, use String.Empty instead.
4881 2002-07-12 Piers Haken <piersh@friksit.com>
4883 * XmlAttributeCollection.cs: implement some ItemOf indexers
4884 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
4885 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
4887 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
4890 2002-10-26 Piers Haken <piersh@friskit.com>
4892 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
4894 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4896 * XmlTextReader.cs: don't increment depth for entity references.
4898 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
4900 * - Fixed the duplication of xmlns:xx = yy when serializing the
4901 XML for serialization
4903 Fixed the unnecessary parsing/serializing when adding assemblies
4906 Avoided setting the XmlNode.InnerXml property
4907 (as it's not implemented)
4909 Fixed the usage/implementation of
4910 XmlElement.GetElementsByTagName()
4912 2002-10-21 Duncan Mak <duncan@ximian.com>
4917 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
4918 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
4920 2002-10-18 Duncan Mak <duncan@ximian.com>
4922 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
4923 <ginga@kit.hi-ho.ne.jp>.
4925 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
4927 * XmlDocument.cs (ImportNode): Implemented
4929 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4931 * XmlDocument.cs: one more Load method implemented.
4932 * XmlTextReader.cs: Depth now works.
4934 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4936 * XmlConvert.cs: IsInvalid is now internal.
4937 * XmlNamespaceManager.cs: implemented RemoveNamespace
4938 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
4939 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
4941 2002-09-19 Matt Hunter <mahunter@tconl.com>
4943 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
4944 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
4946 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4948 * XmlConvert.cs: finished implementation.
4949 * XmlTextReader.cs: fixed #30239.
4950 * XmlTextWriter.cs: fixed #30240.
4952 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4954 * XmlTextReader.cs: line and position begin with 1.
4956 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4958 * XmlException.cs: added a new internal constructor for IXmlLineInfo
4959 and output line and position info in Message.
4961 * XmlReader.cs: implemented missing bits.
4963 2002-09-12 Piers Haken <piersh@friksit.com>
4965 * XmlDocumentNavigator.cs: implement MoveToId()
4967 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4969 * XmlTextWriter.cs: fixed bug #29886.
4971 2002-08-26 Ravi Pratap <ravi@ximian.com>
4974 * XmlAttribute.cs (InnerText): Implement getting this property.
4976 * XmlNode.cs (InnerText): Ensure that we append only values of
4979 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4981 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
4982 that allowed compiling this.
4983 [ FIXME: filed bug #29435. mcs should have failed on this ]
4985 2002-08-25 Tim Coleman <tim@timcoleman.com>
4987 Change CreateNavigator to not be virtual.
4989 Add set_Prefix and InnerText accessors.
4990 * XmlEntityReference.cs:
4991 Add set_Value accessor.
4993 Make objects which should be private private.
4995 Remove WriteStartElementInternal abstract definition.
4996 * XmlValidatingReader.cs:
4999 2002-08-22 Jason Diamond <jason@injektilo.org>
5001 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
5002 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
5004 2002-08-22 Jason Diamond <jason@injektilo.org>
5006 * XmlElement.cs: Correction to previous GetElementsByTagName patch
5007 courtesy of Matt Hunter <xrkune@tconl.com>.
5009 2002-08-22 Jason Diamond <jason@injektilo.org>
5011 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
5012 qualified GetElementsByTagName courtesy of Matt Hunter
5015 2002-08-19 Jason Diamond <jason@injektilo.org>
5017 * XmlDocument.cs, XmlElement.cs: Added implementation of
5018 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
5020 2002-08-16 Jason Diamond <jason@injektilo.org>
5022 * XmlElement.cs: Fixed writing out qualified elements courtesy of
5023 Marcus Bürgel <marcus.buergel@gmx.de>.
5025 2002-08-13 Tim Coleman <tim@timcoleman.com>
5027 Partial implementation of WriteQualifiedName ().
5029 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
5030 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
5031 InsertData(), and ReplaceData(). These methods fire the
5032 NodeChanging and NodeChanged events.
5034 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
5036 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
5037 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
5039 2002-08-03 Tim Coleman <tim@timcoleman.com>
5040 * XmlNamespaceManager.cs:
5041 .Net allows the empty namespace to be redefined
5042 at a later point, but the current implementation
5043 did not. This fixes a hashtable conflict.
5045 2002-07-26 Tim Coleman <tim@timcoleman.com>
5047 When given a textwriter, check to see if it has a
5048 null encoding. This was being done for other inputs
5051 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
5053 * XmlTextReader.cs: rough line/column support.
5055 2002-07-23 Duncan Mak <duncan@ximian.com>
5057 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
5058 (string, string []) is particularly strange.
5060 * XmlException.cs: Remember to call the base serialization
5063 * XmlNodeReader.cs: Keep a new variable to store the Depth.
5065 2002-07-14 Jason Diamond <jason@injektilo.org>
5067 * XmlAttribute.cs: Removed ownerElement field since we can reuse
5070 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
5071 if the current node is an attribute.
5073 * XmlElement.cs: SetAttributeNode now sets the new attribute's
5076 2002-07-12 Jason Diamond <jason@injektilo.org>
5078 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
5079 creating an element, use String.Empty instead.
5081 2002-07-12 Piers Haken <piersh@friksit.com>
5083 * XmlAttributeCollection.cs: implement some ItemOf indexers
5084 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
5085 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
5087 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
5089 * XmlTextWriter: Fixed Indentation. IndentationOverridden should
5090 not be set when inside a attribute.
5092 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
5094 * XmlTextWriter: In WriteStartElement, if namespace is null and
5095 prefix is null|empty do not write out xmlns=""
5097 * XmlWriter: WriteStartElement calls the virtual method with null
5098 argument instead of empty string.
5100 2002-07-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5102 * XmlTextReader.cs: implemented .ctor (Stream).
5104 2002-06-26 Duncan Mak <duncan@ximian.com>
5106 * XmlNodeReader.cs: Implementation of most of the properties, and
5107 some of the related methods.
5109 2002-06-23 Piers Haken <piersh@friskit.com>
5111 * XmlDocumentNavigator.cs: implement Clone()
5112 * XmlElement.cs: remove bogus unimplemented override of InnerText
5113 * XmlNode.cs: implment SelectNodes/SelectSingleNode
5114 * XmlNodeArrayList.cs: new support class for SelectNodes
5116 2002-06-21 Ajay kumar Dwivedi <adwiv@yahoo.com>
5118 * XmlQualifiedName: Name and Namespaces are never null. If null is passed
5119 to the constructor, set them to empty strings.
5120 Fixed the Operators.
5122 2002-06-18 Ajay kumar Dwivedi <adwiv@yahoo.com>
5124 * XmlTextReader.cs: HasLineInfo returns false instead of throwing an
5127 2002-06-14 Duncan Mak <duncan@ximian.com>
5129 * XmlConvert.cs: Added CLSCompliant attributes to methods.
5131 2002-06-12 Duncan Mak <duncan@ximian.com>
5133 * XmlCharacterData.cs (Value): Throw an ArgumentException in the
5134 set block if the node is read-only.
5136 2002-06-10 Ajay kumar Dwivedi <adwiv@yahoo.com>
5137 * XmlConstruct.cs : New Internal class with Helper methods for
5138 Checking XmlConstructs
5139 * XmlConvert.cs: Implemented most of the methods
5141 2002-06-08 Duncan Mak <duncan@ximian.com>
5143 * XmlDocument.cs (Load):
5144 Added bits to Load (string) for BaseURI support.
5146 * XmlAttribute.cs (BaseURI):
5147 * XmlDocument.cs (BaseURI):
5148 * XmlEntity.cs (BaseURI): Implemented.
5150 2002-05-27 Jason Diamond <jason@injektilo.org>
5152 * XmlDocumentNavigator.cs: Added file to directory.
5154 * XmlNode.cs (CreateNavigator): Implemented.
5155 (InnerText): Implemented.
5157 * XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
5159 (Load(XmlReader)): Allow for namespace qualified attributes.
5161 * XmlElement.cs: Implemented GetAttribute(string, string) and both
5162 GetAttributeNode overloads.
5163 (SetAttributeNode(XmlAttribute)): Implemented.
5165 * XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
5166 and RemoveNamedItem(string, string).
5168 * XmlLinkedNode.cs (PreviousSibling): Implemented.
5170 * XmlTextReader.cs: Added code to maintain the order of attributes as
5171 they're parsed. XML doesn't require this but Microsoft's parser does it and
5172 matching them makes testing easier so now we have it, too.
5174 2002-05-26 Miguel de Icaza <miguel@ximian.com>
5176 * XmlDocument.cs: Implement the Save methods.
5178 2002-05-08 Mike Kestner <mkestner@speakeasy.net>
5180 * XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
5182 2002-04-28 Duncan Mak <duncan@ximian.com>
5184 * XmlSignificantWhitespace.cs (Value):
5185 * XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
5186 block. Added new private method, IsValidWhitespaceChar, for
5189 2002-04-16 Duncan Mak <duncan@ximian.com>
5191 * XmlParserContext.cs (NameTable): Fixed a typo in the set block.
5193 2002-04-12 Duncan Mak <duncan@ximian.com>
5195 * XmlAttribute.cs (Prefix): Added preliminary code for set block,
5196 added comment on work that needs to be done here. A new MonoTODO item.
5198 * XmlDocument.cs (ctor): Corrected constructor signature, changed
5199 parameter from 'NameTable' to 'XmlNameTable'.
5201 * XmlDocumentFragment.cs (InnerXml): Added missing set block.
5203 * XmlCaseOrder.cs: Moved to System.Xml.XPath.
5205 2002-04-10 Duncan Mak <duncan@ximian.com>
5207 * XmlNodeReader.cs: Initial stubs for the class.
5209 2002-04-08 Kral Ferch <kral_ferch@hotmail.com>
5211 * XmlAttributes.cs: InnerXml getter, WriteContentTo, and WriteTo
5214 * XmlDeclaration.cs: WriteTo implementation.
5216 * XmlDocument.cs: InnerXml getter implementation.
5218 * XmlElement.cs: InnerXml getter implementation.
5220 * XmlNode.cs: Removed MonoTODO attrib on OuterXml.
5222 * XmlSignificantWhitespace.cs: WriteTo implementation.
5224 * XmlText.cs: WriteContentTo and WriteTo implementation.
5226 * XmlTextWriter.cs: WriteRaw implementation.
5228 * XmlWhitespace.cs: WriteContentTo and WriteTo implementations.
5230 2002-04-05 Kral Ferch <kral_ferch@hotmail.com>
5232 * XmlAttributes.cs: Added reminder MonoTODO to set NamespaceURI
5233 if prefix in constructor is one of the default ones.
5235 * XmlCharacterData.cs: Returns String.Empty for Value and Data
5236 even when constructed with null.
5238 * XmlDeclaration.cs: Value doesn't put encoding or standalone
5239 in if they are empty.
5241 * XmlDocument.cs: Implemented CreateNode methods and this caused
5242 the changes in the other files in this checkin.
5244 * XmlProcessingInstruction.cs: Returns String.Empty for Value and Data
5245 even when constructed with null.
5247 * XmlWhitespace.cs: Changed Value 'get' to return Data.
5249 2002-04-01 Kral Ferch <kral_ferch@hotmail.com>
5251 * XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
5253 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
5255 * XmlTextWriter.cs: Impls for LookupPrefix, WriteBase64,
5256 and WriteCharEntity.
5258 * XmlWrite.cs: Fixed bug where attribute namespace decl
5259 was pushing a scope onto the namespace manager when it shouldn't
5262 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
5264 * XmlTextWriter.cs: Some tweaks for WriteAttibuteString
5265 in different states (no open start element, in WriteState.Content mode).
5267 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
5269 * XmlTextWriter.cs: XmlLang and XmlSpace properties
5270 and WriteWhitespace.
5272 * XmlTextWriterOpenElement.cs: scope support for XmlLang
5275 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
5277 * XmlTextWriter.cs: Working on Attribute methods.
5279 * XmlWriter.cs: Working on Attribute methods.
5281 2002-03-28 Duncan Mak <duncan@ximian.com>
5283 * XmlDocument.cs (CreateWhitespace):
5284 (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
5287 * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
5289 2002-03-26 Duncan Mak <duncan@ximian.com>
5291 * XmlDocument.cs (CreateDocumentType): Implemented.
5293 * XmlNode.cs (Value): Implemented.
5295 * XmlProcessingInstruction.cs (InnerText): Implemented. It works just
5296 like XmlCharacterData.
5298 * XmlDeclaration.cs (CloneNode):
5299 * XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
5302 * XmlCharacterData.cs (InnerText): Implemented. Funny that the
5303 docs say it is the "The concatenated values of the node and all
5304 the children of the node.". I wrote some test programs and
5305 couldn't get any of the derived nodes to AppendChild. For now,
5306 InnerText == Data == Value.
5307 (Substring): Fixed typo.
5309 * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
5311 * XmlImplementation.cs (CreateDocument): Implemented.
5313 2002-03-25 Duncan Mak <duncan@ximian.com>
5315 * XmlDeclaration.cs: Rewrote the class, fixed formatting, added
5316 missing properties (InnerText, Value).
5318 * XmlDocument.cs (CreateXmlDeclaration): Implemented.
5320 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5322 * XmlTextWriter.cs: Impls for BaseStream and
5323 Namespaces and WriteState.
5325 * XmlWriter.cs: WriteState and WriteStartElementInternal.
5327 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5329 * XmlNodeListChildren.cs: made class internal
5330 instead of public. Shouldn't be visible outside
5333 * XmlTextWriter.cs: Implementations for Formatting,
5334 IndentChar, Indenting, QuoteChar, WriteStartDocument(standalone).
5335 Suppresses encoding on xml declaration if null stream passed in.
5336 Formats output including suppressing indentation for elements in
5339 * XmlTextWriterOpenElement.cs: Initial checkin.
5340 XmlTextWriter uses stack of these objects to track
5343 2002-03-22 Mike Kestner <mkestner@speakeasy.net>
5345 * XmlElement.cs: impl HasAttribute(string name).
5347 2002-03-22 Duncan Mak <duncan@ximian.com>
5349 * XmlElement.cs: Reformatted.
5350 (CloneNode) Corrected.
5352 * XmlDocument.cs (CreateWhitespace):
5353 (CreateSignificantWhitespace): Implemented.
5355 * XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
5356 true, because Attributes have ChildNodes.
5358 2002-03-21 Kral Ferch <kral_ferch@hotmail.com>
5360 * XmlTextWriter.cs: WriteStartDocument tracks state, writes out
5361 xml declaration along with encoding. WriteEndElement throws
5362 exception if no WriteStartElement exists.
5364 2002-03-20 Duncan Mak <duncan@ximian.com>
5366 * XmlEntityReference.cs (CloneNode): Implemented.
5368 * XmlException.cs (Message): Implemented. We need to cache the
5369 message string because SystemException doesn't expose 'message'
5372 * XmlText.cs (Value): Added in the missing Value property.
5374 2002-03-20 Duncan Mak <duncan@ximian.com>
5376 * XmlAttribute.cs (CloneNode): Implemented.
5378 * XmlDocumentFragment.cs (CloneNode): Implemented.
5380 * XmlElement.cs (CloneNode): Implemented.
5382 2002-03-19 Duncan Mak <duncan@ximian.com>
5384 * XmlNotation.cs: Added to CVS.
5386 * XmlAttribute.cs (CloneNode): First crack at the CloneNode method.
5388 * XmlCDataSection.cs (CloneNode): Implemented.
5390 * XmlDocumentFragment.cs: Reformatted and added the missing properties
5391 (InnerXml, OwnerDocument, ParentNode).
5392 (CloneNode): Implemented.
5394 * XmlSignificantWhitespace.cs (CloneNode): Implemented.
5395 (Value) Implemented the 'get' property.
5397 * XmlWhitespace.cs (Module): implemented.
5399 2002-03-19 Jason Diamond <jason@injektilo.org>
5401 * XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
5404 2002-03-18 Jason Diamond <jason@injektilo.org>
5406 * XmlTextReader.cs: Don't restore properties after reading last
5407 attribute on an element.
5409 * XmlDocument.cs: Move back to element after reading attributes
5410 so that IsEmptyElement test succeeds.
5412 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5414 * XmlNamespaceManager.cs: Implemented LookupPrefix.
5416 * XmlTextWriter.cs: Implemented namespace and prefix support.
5418 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5420 * XmlTextReader.cs: Restores properties after
5421 reading last attribute on an element.
5423 * XmlNode.cs: AppendChild sets the parent
5426 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5428 * XmlCDataSection.cs: Formatting, Implementation for WriteTo.
5430 * XmlComment.cs: Implementations for WriteTo and WriteContentTo.
5432 * XmlElement.cs: Fixed bug in WriteTo.
5434 * XmlProcessingInstruction.cs: Formatting.
5436 * XmlTextWriter.cs: Implementations for Close, WriteCData, WriteComment,
5437 fixes for WriteEndElement, WriteProcessingInstruction.
5439 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5441 * XmlDocument.cs: Implementations for WriteTo() and WriteContentTo(),
5442 had Load() add PIs to the document, moved onXXX methods to alphabetical
5445 * XmlElement.cs: Implementations for WriteTo() and WriteContentTo().
5447 * XmlNode.cs: Implementations for InnerXml Get and OuterXml.
5449 * XmlProcessingInstruction.cs: Implementations for WriteTo() and
5452 * XmlTextWriter.cs: Implementations for WriteEndElement,
5453 WriteProcessingInstruction, WriteStartElement, and WriteString.
5455 * XmlWriter.cs: Implemented WriteStartElement() methods.
5457 2002-03-15 Duncan Mak <duncan@ximian.com>
5459 * XmlEntity.cs: Added to CVS. Need to implement BaseURI and
5460 InnerText once I know what they do.
5462 * XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
5463 that we can properly chain constructors.
5464 (CloneNode): implemented.
5465 (WriteContentTo): Removed MonoTODO attribute as this method has no
5466 effect in this class.
5468 * XmlProcessingInstruction.cs (Value): Added the missing Set
5470 (InnerText): Added in, but not implemented.
5472 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5474 * XmlTextWriter.cs: implemented constructors and
5475 WriteCData and WriteComment.
5477 2002-03-14 Duncan Mak <duncan@ximian.com>
5479 * XmlDocument.cs: Moved the NodeChanged EventHandler to its own
5480 file, and updated the callbacks to reflect the change.
5481 (XmlDocument): Added the NameTable constructor.
5482 (NameTable): Also the NameTable property.
5484 * XmlNodeChangedEventHandler.cs: Added, replacing the version that
5485 was in XmlDocument.cs. It has two arguments now (object,
5486 EventArgs) , instead of one (object).
5488 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5490 * XmlWriter.cs: Formatting.
5492 * XmlTextWriter.cs: Initial checkin.
5494 2002-03-14 Duncan Mak <duncan@ximian.com>
5496 * Validation.cs: Removed, replaced by ValidationType.cs.
5498 * ValidationType.cs: Added.
5500 2002-03-13 Duncan Mak <duncan@ximian.com>
5502 * XmlException.cs: Made it [Serializable], implemented good ol'
5503 GetObjectData, and the serialization constructor.
5505 * XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
5506 (SetNamedItem): Reverted (added back in) the patch with the
5507 ReadOnly checks. "Don't doubt yourself, my son... you were right!"
5509 * XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
5510 (GetNamedItem (string, string)): implemented.
5511 (RemoveNamedItem): implemented.
5512 (SetNamedItem): implemented.
5514 2002-03-12 Kral Ferch <kral_ferch@hotmail.com>
5516 * XmlAttribute.cs: Moved a method from amongst properties down to
5517 it's alphabetical position in the methods section.
5519 * XmlNode.cs: Passes in 'this' to XmlNodeList constructor instead of
5520 last linked child. Set XmlNode base class to return false for IsReadOnly().
5521 Implemented GetEnumerator() and RemoveChild().
5523 * XmlNodeListChildren.cs: Now stores the parent instead of the last child.
5524 This is to support the behavior that the Enumerator doesn't become invalid
5525 when changes to the children occur. Flushed out rest of implementation for
5526 MoveNext, Current, and Reset.
5528 2002-03-12 Duncan Mak <duncan@ximian.com>
5530 * XmlCharacterData.cs: Reformatted the properties for better readability.
5532 * XmlLinkedNode.cs: Removed the awful boxy comments.
5534 * XmlNamedNodeMap.cs (Count):
5535 (Item): Implemented. Tests will be coming.
5537 * XmlEntityReference.cs:
5538 * XmlSignificantWhitespace.cs: Implemented these classes except for
5539 the Clone, WriteContentTo and WriteTo methods. Will have to
5540 investigate into these later.
5542 2002-03-11 Duncan Mak <duncan@ximian.com>
5544 * IHasXmlNode.cs: Added to CVS.
5546 2002-03-08 Jason Diamond <jason@injektilo.org>
5548 * XmlParserContext.cs: Added missing constructors and missing Encoding
5551 * XmlTextReader.cs: Start using the XmlParserContext class.
5553 2002-03-08 Jason Diamond <jason@injektilo.org>
5555 * XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
5557 2002-03-08 Mike Kestner <mkestner@speakeasy.net>
5559 * XmlNode.cs (Item): Implemented both indexers.
5561 2002-03-08 Jason Diamond <jason@injektilo.org>
5563 * DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
5564 XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
5566 2002-03-08 Jason Diamond <jason@injektilo.org>
5568 * XmlAttribute.cs: Attribute nodes are supposed to store their values
5569 as child nodes so updated to reflect that.
5571 * XmlDocument.cs, XmlElement.cs, XmlNode.cs: Moved code that was
5572 duplicated in XmlDocument and XmlElement into XmlNode so that it
5573 wouldn't have to be duplicated in XmlAttribute, too.
5575 2002-03-08 Kral Ferch <kral_ferch@hotmail.com>
5577 * XmlNodeList.cs, XmlDocument.cs, XmlLinkedNode.cs,
5578 XmlNode.cs: Formatting.
5580 * XmlNodeListChildren.cs: Implementation of XmlNodeList
5581 for XmlNode.ChildNodes property.
5583 * XmlNodeListAsArrayList.cs: Removed file. Using different
5584 data structure (circular list) in XmlNode so this file
5587 * XmlDocument.cs, XmlElement.cs: New ChildNodes tests found
5588 bug in setter property of LastLinkedChild so fixed it.
5590 2002-03-06 Jason Diamond <jason@injektilo.org>
5592 * XmlInputSource.cs, XmlNames_1_0.cs, XmlParse.cs: Removed files.
5593 We already have a parser in XmlTextReader.
5595 * XmlException.cs: Removed constructor accepting XmlInputSource.
5597 2002-03-06 Kral Ferch <kral_ferch@hotmail.com>
5599 * XmlNode.cs: Rewrote this class from scratch with
5600 MonoToDo attribs and NotImplementedExceptions. Now defines an
5601 internal LastLinkedNode property to aid the new implementation.
5602 XmlNodes only have ref to owner doc and parent nodes now.
5604 * XmlLinkedNode.cs: Added NextLinkedSibling internal property
5605 and ref to next sibling to support walking our circular child
5608 * XmlDocument.cs: Added ref to last child node and overrides
5609 XmlNode's internal LastLinkedChild property to support walking
5610 our circular child node list.
5612 2002-03-02 Kral Ferch <kral_ferch@hotmail.com>
5614 * XmlProcessingInstructions.cs: Class was empty. Implemented
5615 constructor, properties, and CloneNode() method. Put in
5616 MonoToDo attrib for remaining methods.
5618 * XmlComment.cs: Reformatted and put in MonoToDo attribs.
5619 Got rid of helper methods and fields since they were no
5622 * XmlLinkedNode.cs: Reformatted and put in MonoToDo attribs.
5624 * XmlDocument.cs: Added code to Load(XmlReader) to create XmlComment,
5625 XmlCDataSection, and XmlProcessingInstruction nodes. Implemented
5626 Createxxx() methods for those three node types.
5628 2002-03-02 Jason Diamond <jason@injektilo.org>
5630 * XmlDocument.cs: Implemented the remaining CreateElement and
5631 CreateAttribute methods.
5633 * XmlAttribute.cs: Re-implemented.
5635 * XmlElement.cs: Set owner element on attributes. Reformatted.
5637 2002-03-02 Jason Diamond <jason@injektilo.org>
5639 * XmlTextReader.cs: Implemented MoveToNextAttribute().
5641 * XmlDocument.cs: Reformatted. Adding missing methods and MonoTODO
5642 attributes. Create attribute nodes while loading. Implemented
5643 Load(string) and CreateTextNode().
5645 * XmlCharacterData.cs, XmlText.cs: Re-implemented.
5647 * XmlCDataSection.cs, XmlComment.cs: Call correct constructor in
5650 * XmlNamedNodeMap.cs, XmlAttributeCollection.cs: Stubbed out.
5652 2002-03-02 Mike Kestner <mkestner@speakeasy.net>
5654 * XmlAttribute.cs : Using fix.
5655 * XmlDocument.cs (CreateAttribute(String)): Implement.
5657 2002-03-02 Jason Diamond <jason@injektilo.org>
5659 * XmlNamespaceManager.cs: Atomize prefixes and namespaces strings in
5662 2002-02-28 Jason Diamond <jason@injektilo.org>
5664 * XmlDocument.cs, XmlNode.cs: Initial implementation of LoadXml
5665 courtesy of Kral Ferch <kral.ferch@hotmail.com>.
5667 2002-02-28 Jason Diamond <jason@injektilo.org>
5669 * XmlException.cs, XmlReader.cs, XmlTextReader.cs: Reformatted,
5670 added missing members and MonoTODO attributes.
5672 * XmlTextReader.cs: Throw XmlException instead of System.Exception.
5674 2002-02-27 Jason Diamond <jason@injektilo.org>
5676 * XmlElement.cs: Reformatted, added missing members and MonoTODO
5679 2002-02-26 Duncan Mak <duncan@ximian.com>
5681 * XmlCDataSection.cs: Initial implementation.
5683 * NameTable.cs: Fixed the whole thing. Wrote a NUnit test to test
5684 it out. This should (hopefully) be correct.
5686 2002-02-26 Jason Diamond <jason@injektilo.org>
5688 * XmlTextReader.cs: Apparently Microsoft's implementation treats
5689 namespace declarations as attributes so we do now, too.
5691 * XmlNamespaceManager.cs: HasNamespace fixed so that it only
5692 checks the current scope.
5694 2002-02-26 Duncan Mak <duncan@ximian.com>
5696 * XmlDocumentType.cs: Added a few hacks here and there to
5697 temporarily fix the "I broke the build issue".
5699 2002-02-25 Jason Diamond <jason@injektilo.org>
5701 * XmlDocument.cs, XmlElement.cs, XmlNode.xs, XmlNodeList.cs,
5702 XmlNodeListAsArrayList.cs: Multiple fixes necessary to get
5703 simple test to pass. The existing code is really shitty so I'll
5704 probably start writing tests and refactoring before much else
5707 2002-02-25 Duncan Mak <duncan@ximian.com>
5709 * NameTable.cs: Implemented.
5711 * XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.
5713 2002-02-24 Duncan Mak <duncan@ximian.com>
5715 * XmlNodeOrder.cs: Added to CVS.
5717 * XmlQualifiedName.cs: Fixed a warning from Equals ().
5719 * XmlTokenizedType.cs: Added to CVS.
5721 * XmlUrlResolver.cs: Added to CVS with one TODO task.
5723 2002-02-23 Duncan Mak <duncan@ximian.com>
5725 * XmlQualifiedName.cs: Fixed ToString () and added the operators
5728 2002-02-23 Jason Diamond <jason@injektilo.org>
5730 * XmlTextReader.cs: Added support for qualified attributes.
5732 2002-02-23 Jason Diamond <jason@injektilo.org>
5734 * XmlNamespaceManager.cs: Initial implementation.
5736 * XmlTextReader.cs: Added support for NamespaceURI property on
5739 2002-02-23 Nick Drochak <ndrochak@gol.com>
5741 * ChangeLog: Add the change log to this directory
5743 * XmlQualifiedName.cs: Fixed compile errors so it would build. Still has