1 2006-10-30 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlTextReader2.cs : if DTD does not exist, do not try to resolve
4 entity from null DTD (caused NRE). Fixed bug #79620.
6 2006-10-27 Atsushi Enomoto <atsushi@ximian.com>
8 * DTDReader.cs : some parameter entity expansions were not done.
11 2006-09-27 Atsushi Enomoto <atsushi@ximian.com>
13 * XmlTextWriter2.cs : null arg check.
15 2006-09-26 Atsushi Enomoto <atsushi@ximian.com>
18 Removed bogus return statement in Value. Fixed bug #79496.
20 2006-09-21 Atsushi Enomoto <atsushi@ximian.com>
22 * XmlNameEntryCache.cs : It should expand temporary buffer even at
23 initial state. Fixed bug #79468.
25 2006-09-19 Atsushi Enomoto <atsushi@ximian.com>
27 * XmlElement.cs : for non-atomized names, alter null prefix with "".
30 2006-09-04 Atsushi Enomoto <atsushi@ximian.com>
32 * XmlReader.cs : ReadContentAsString() and its family should allow
33 attribute node. Fixed bug #79268.
35 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
37 * XmlTextWriter2.cs : expect atomized names only when it is
38 appropriate. Fixed bug #79047.
40 2006-08-26 Atsushi Enomoto <atsushi@ximian.com>
42 * XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
43 so that it could fill default and fixed attributes. This ends up
44 to fix bug #79163 (it fills fixed "xmlns" attribute and thus
45 the node's namespace URI becomes that of glade-2.0).
47 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
49 * XmlEntity.cs, XmlEntityReference.cs, XmlNode.cs :
50 create entity content only when its children is being accessed.
51 It results differently when there is no actual reference in the
52 document - an invalid entity value (when it is used to create
53 child nodes) is ignored unless a code tries to access the Value
54 of an XmlEntity. Fixed bug #79091
55 * DTDReader.cs : the fix above uncovered another bug (ibm66n03.xml).
56 Check illegal reference name in literal entity value.
58 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
60 * XmlTextReader.cs, XmlTextReader2.cs, DTDReader.cs :
61 (ResolveExternalEntityReplacementText) need to skip text
62 declaration in external entities. To make it possible internalize
63 SkipTextDeclaration() in XmlTextReader(2). Fixed bug #79090.
65 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
67 * XmlTextReader2.cs : Check recursive entity reference.
68 Fixed bug #79085. It makes W3C standalone tests on NET_2_0 working.
70 2006-08-14 Atsushi Enomoto <atsushi@ximian.com>
72 * XmlTextReader.cs : When a whitespace node comes after a text
73 declaration in XML external entity (i.e. .ctor() with
74 XmlNodeType.Element), it contained extra value character ('<').
76 2006-08-10 Atsushi Enomoto <atsushi@ximian.com>
78 * XmlTextWriter2.cs : more indentation fixes. Now I believe it is
79 almost MS compat, but it won't help poor Mike.
81 2006-08-07 Atsushi Enomoto <atsushi@ximian.com>
83 * XmlTextWriter2.cs : WriteBinHex() is allowed at Attribute state.
86 2006-07-28 Atsushi Enomoto <atsushi@ximian.com>
88 * XmlTextWriter2.cs : fixed some indentation bugs: comments and PIs
89 should not cause indentation override like text, cdata and
91 Fixed some error messages on node kind.
92 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs : removed old code.
93 (I don't want to remove old great code but it confused mike today.)
95 2006-07-26 Atsushi Enomoto <atsushi@ximian.com>
98 For DTD validator, call to SetSchemas() makes no sense.
99 * XmlValidatingReader.cs : now it internally holds old
100 XmlSchemaCollection instead of new XmlSchemaSet, to make
101 XmlSchemaSet.SchemaCollection unneccessary.
102 Removed SetSchemas() since it is now extraneous because of the
103 XmlReaderChange above.
105 2006-07-25 Atsushi Enomoto <atsushi@ximian.com>
107 * XmlConvert.cs : TimeSpan conversion for TimeSpan.MinValue was
110 2006-07-19 Atsushi Enomoto <atsushi@ximian.com>
112 * XmlReader.cs : In Create(), support validation flags for DTD.
113 * DTDValidatingReader2.cs : when NET_2_0 and ProcessIdentityConstraints
114 is false, skip ID validation.
116 2006-06-26 Atsushi Enomoto <atsushi@ximian.com>
118 * XmlReader.cs : when Create() received string url, it should set
119 XmlTextReader2.CloseInput always true. Fixed bug #78706.
121 2006-06-08 Atsushi Enomoto <atsushi@ximian.com>
123 * XmlTextWriter2.cs : if an attribute being written has the same
124 non-empty namespace URI as current default namespace, its prefix
125 should be written. Fixed bug #78598.
127 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
129 * XmlAttribute.cs : (WriteTo) when the namespace URI is empty,
130 always use empty string for prefix.
132 2006-04-27 Geoff Norton <gnorton@customerdna.com>
134 * XmlDocument.cs: Move back to the element after
135 reading an attribute. This mimics Microsofts behaviour.
137 2006-04-21 Atsushi Enomoto <atsushi@ximian.com>
139 * XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
140 rejected after writing some content. I totally disagree on that
141 it should be allowed, but here is the fix.
143 2006-04-14 Atsushi Enomoto <atsushi@ximian.com>
145 * XmlReader.cs : ReadElementContentAsObject() incorrectly rejected
146 the argument type System.Object.
148 2006-04-10 Atsushi Enomoto <atsushi@ximian.com>
150 * XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
151 and root nodes instead of dispatching to ReadSubtree().
153 2006-04-06 Atsushi Enomoto <atsushi@ximian.com>
155 * XmlReader.cs : ReadElementContentAsXXX() did not consume empty
158 2006-04-05 Atsushi Enomoto <atsushi@ximian.com>
160 * XmlWriter.cs : Create(StringBuilder,XmlWriterSettings) was missing
161 settings argument to pass another .ctor().
162 * XmlWriterSettings.cs : set_NewLineChars() should reject null.
164 2006-04-03 Boris Kirzner <borisk@mainsoft.com>
165 * XmlException.cs: fix .net soap serialization compatibility.
167 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
169 * XmlNameEntry.cs XmlNameEntryCache.cs :
170 Added atomization support for prefixed names.
171 Inspired by Joshua Tauberer's patch.
172 * XmlElement.cs XmlAttribute.cs : use above.
174 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
176 * XmlReader.cs : in XmlReader.Create() ValidationType Auto and XDR
177 are simply ignored (it was found on running NvdlValidatingReader
180 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
182 * DTDValidatingReader.cs : avoid NullReferenceException. Input
183 XmlReader might not be IHasXmlParserContext.
185 2006-03-08 Atsushi Enomoto <atsushi@ximian.com>
187 * XmlReader.cs: ReadContentAsXXX() just stops at start element,
188 without rejecting it as an error.
189 ReadElementContentAsXXX() rejects child element nodes.
191 2006-02-28 Atsushi Enomoto <atsushi@ximian.com>
193 * XmlElement.cs : (WriteTo) use IsEmpty to determine which to use:
194 WriteEndElement() and WriteFullEndElement(). Fixed sys.security
197 2006-02-24 Atsushi Enomoto <atsushi@ximian.com>
199 * XmlTextWriter2.cs :
200 WriteRaw() has stupid second arg. Fixed bug #77623.
201 WriteString() should raise an error when it is called immediately
202 after WriteStartDocument().
204 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
206 * XmlTextWriter2.cs : WriteChars() should allow Attribute state.
208 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
210 * XmlChar.cs : (IndexOfInvalidChar) fixed surrogate pairs handling.
211 They were always regarded as invalid.
212 * XmlTextWriter2.cs : seems like MS XmlTextWriter outputs invalid
213 characters as character references. It totally does not make sense
214 but corcompare depended on that behavior.
216 This "compatibility" fix causes 10% or more performance loss!!!
218 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
220 * XmlTextWriter2.cs : (WriteStartAtribute) more == removal.
221 * XmlNode.cs : (get_InnerText) reduce extra StringBuilder creation.
223 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
225 * XmlTextWriter2.cs : (WriteStartAttribute) reduced string == string.
227 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
229 * XmlDocument.cs : (ReadNodeCore) not public.
231 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
233 * XmlTextWriter2.cs : (CloseStartElement)
234 Avoid ArrayList.Clear() and culture-sensitive Contains().
236 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
238 * XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
239 which discards "overriden" namespaces.
240 * XmlTextWriter2.cs : fresh implementation.
241 - The source structure is simplified and cleaner.
242 - When outputting escaped string, output directly to TextWriter.
243 - roughly 20% performance improvement.
245 (Also fixed previous perf. evaluation excess in ChangeLog.)
247 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
249 * XmlElement.cs : (WriteTo) make use of HasAttributes. Remove extra
250 check. 5% speed improvement.
252 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
254 * DTDValidatingReader2.cs : added Source XmlReader property for
255 XsdValidatingReader use (see XsdValidatingReader change as well).
257 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
259 * EntityResolvingXmlReader.cs, XmlNodeReader2.cs, XmlTextReader2.cs :
260 in get_NodeType() entity reader existence check is faster.
261 * DTDValidatingReader2.cs : IsDefault could be avoided.
263 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
265 * XmlNodeReaderImpl.cs : optimized Depth.
267 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
269 * XmlValidatingReader.cs : reducing layered ReadState invocation
270 results in 10% speed up.
272 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
274 * XmlNodeReaderImpl.cs : Reimplemented Read(). Points are:
275 - reduced call to NextSibling which is very unlikely to be inlined
276 - reorganized conditioning to avoid extra check
277 - added description on each returning branch.
278 - And then, removed unused code.
279 It is 1.5x faster than before.
281 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
283 * XmlElement.cs : NextSibling could be effectively computed using
284 LastLinkedChild, beyond previous XmlLinkedNode optimization.
286 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
288 * XmlLinkedNode.cs : In NextSibling, use LastChild directly.
289 It improves NextSibling performance in bulky document.
291 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
293 * XmlNodeReaderImpl.cs : do not compute ownerLinkedNode, just store
294 it in Read(). Simply use state field in EOF. They result in 20%
295 perf. boost. Expanding EOF also improved performance by 2-3%
296 (mono --optimize=inline might work in the later stage).
298 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
300 * DTDValidatingReader2.cs : more refactoring. Split ReadContent()
301 into some methods. Reduced some extra MoveToElement().
303 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
305 * DTDValidatingReader2.cs : more refactoring. Removed and simplified
306 some error check. String += would be enough for entity-reference-
307 mixed attributes which rarely happen, so simplify the code.
308 Added comments on how the fields are used.
310 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
312 * DTDValidatingReader2.cs : attribute node simplification. It now
313 stores attribute node slots, including default attributes for
316 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
318 * DTDValidatingReader2.cs, EntityResolvingXmlReader.cs :
319 new files for refactoring DTD validating reader. As the first stage,
320 it splits entity handling process from DTD validation step.
322 (DTDValidatingReader.cs will be removed at some stage).
324 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
326 * DTDObjectModel.cs : entity resolution method will be used in
327 the next DTD validating reader in 1.x.
329 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
331 * IHasXmlChildNode.cs :
332 New internal interface to hold LastLinkedChild.
333 * XmlNodeListChildren.cs XmlEntity.cs XmlElement.cs XmlAttribute.cs
334 XmlLinkedNode.cs XmlEntityReference.cs XmlNode.cs
335 XmlDocumentFragment.cs XmlDocument.cs : use it. It minimizes memory
336 consumption in XmlText, XmlWhitespace, XmlComment etc.
338 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
340 * XmlChar.cs : added IndexOfNonWhitespace() and IndexOfInvalid() (not
342 * NewLineHandling.cs : prepared to be used internally in 1.x.
344 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
346 * XmlDocument.cs XmlTextReader.cs : in ReadNode(), we can avoid
347 extraneous whitespace node creation for XmlTextReader by setting
348 WhitespaceHandling.Significant when PreserveWhitespace is false.
350 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
352 * XmlTextReader.cs : atomize whitespace values. It effectively saves
353 memory consumption when an input XML is indented.
355 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
357 * XmlTextReader.cs : When "Significant" is assigned to
358 WhitespaceHandling, it should ignore non-significant whitespaces.
360 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
362 * XmlWriter.cs : (WriteElementString and WriteAttributeString)
363 Skip empty string output.
365 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
367 * XmlTextWriter.cs : WriteRaw("") is not simply ignored but process
368 state check and closes open tag.
370 2006-02-11 Atsushi Enomoto <atsushi@ximian.com>
373 Avoid extra AppendValueChar() in ReadWhitespace().
375 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
377 * XmlTextReader.cs : ReadTextReader() is now assured to have current
378 node content, except for Text, CDATA and Comment. ReadName() does
379 not use nameBuffer and reuse peekChars.
381 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
383 * XmlTextReader.cs : eliminated currentTagBuffer. XmlDeclaration is
384 now once read as PI and then re-parsed from Value. DTD internal
385 subset is now parsed as usual "value".
387 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
389 * XmlTextReader.cs : Expect() could be written inline and it could
390 provide better information. ReadEndTag() could use Expect() instead
393 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
395 * XmlTextReader.cs : on ReadEndTag() we can avoid NameTable.Add().
396 Store name, local name and prefix in the stack instead of just name
397 and reuse them for EndElement.
399 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
401 * XmlDocumentNavigator.cs : make use of HasAttributes (avoid possible
402 XmlAttributeCollection creation).
404 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
406 * XmlTextReader.cs : no need to call Clear() for each attribute value.
408 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
410 * XmlDocument.cs : reverted most of the previous changes. It somehow
411 broke System.Data tests.
413 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
415 * XmlDocument.cs, XmlAttribute.cs, XmlElement.cs : Avoid unnecessary
416 name checks in CreateElement() and CreateAttribute().
417 get_DocumentType() could be stopped when the iterated child node
418 is the document element.
419 * XmlNode.cs : removed commented lines.
420 * XmlNameEntry.cs : hash code for a name entry is mostly identical by
421 its local name, so avoid extraneous GetHashCode() especially on
424 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
426 * XmlReader.cs : ReadOuterXml() returns meaingful value only for
427 element and attribute. ReadInnerXml() does not have to create
428 XmlTextWriter for empty elements.
430 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
432 * XmlNodeReader2.cs XmlException.cs XmlReader.cs XmlTextReader.cs
433 XmlWriter.cs XmlTextWriter.cs XmlValidatingReader.cs
434 XmlNodeReaderImpl.cs DTDValidatingReader.cs XmlSecureResolver.cs:
435 cleaning up obsolete NET_1_0 code.
437 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
439 * XmlTextWriter.cs : avoid case-insensitive String.Compare().
440 Use array for openElements rather than ArrayList.
442 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
444 * XmlElement.cs, XmlAttribute.cs :
445 Avoid ChildNodes.Count and use FirstChild/NextSibling.
447 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
449 * XmlNode.cs, XmlIteratorNodeList.cs :
450 Now we can enable XmlIteratorNodeList again (mcs, incorrectly
451 removing nodes in the node list, was fixed).
453 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
455 * XmlDocument.cs : in ReadNode() to consume element node, switched
456 to MoveToAttribute(int) since MoveToNextAttribute() was somehow
457 not working fine. It is needed to avoid Sys.Data test breakage
458 and anything else should be fixed indeed.
460 Fri Jan 27 20:39:48 CET 2006 Paolo Molaro <lupus@ximian.com>
462 * XmlTextReader.cs, XmlChar.cs: more tweaks and speedups.
464 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
466 * XmlTextReader.cs : optimization patch by Paolo.
467 Fast path optimization in PeekChar().
468 Avoid double-evaluation of PeekChar() and ReadChar() by new
471 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
473 * XmlNode.cs : disabled XmlIteratorNodeList optimization. It caused
474 some kind of regression under mcs/tests/xml-025.cs.
476 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
478 * XmlAttributeCollection.cs :
479 Replaced all Nodes.Count with Count (it could avoid extraneous
480 ArrayList creation in XmlNamedNodeMap). ID attribute adjustment
481 was extraneously done against all attribute nodes and thus there
482 was a plenty of call to Value.
483 * XmlNamedNodeMap.cs : added comment on SetNamedItem() W3C spec
486 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
492 Added internal AppendChild() override that omites node type
493 checking, and used it in many places.
495 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
497 * XmlDocument.cs : optimized ReadAttributeNode() to not call
498 MoveToAttribute() unneccesarily (call it only when ReadNode() is
499 called on an attribute node).
501 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
504 in get_InnerText(), avoid extraneous StringBuilder creation.
506 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
508 * XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
509 It does not iterate all nodes in advance.
510 * XmlNode.cs : use XmlIteratorNodeList in SelectNodes().
512 2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
514 * XmlWriter.cs : Dispose() is protected.
516 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
518 * XmlNamedNodeMap.cs : lazily create internal ArrayList. Thanks to
519 Joshua Tauberer for the hint.
521 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
523 * XmlConvert.cs : ToString(TimeSpan) should return valid duration
524 for TimeSpan.Zero, rather than "P". Fixed bug #77350
526 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
528 * XmlNameEntryCache.cs XmlNameEntry.cs :
529 Made name entry fields as not read-only. Added Update() to reset
530 members. Its semantics of Equals() is changed.
531 Now entry cache is based on Hashtable rather than ArrayList.
532 It saves heavy iteration in ArrayList.
534 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
536 * XmlNameEntryCache.cs XmlNameEntry.cs XmlDocument.cs :
537 Add Hash field to find name entry quickly.
538 In XmlNameEntryCache make use of name table (it is totally
539 unused there though).
541 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
543 * XmlConvert.cs : handle Ticks. Fixed bug #77252.
545 2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
547 * XmlTextWriter.cs : Fixed bug #77082.
548 When the state was Start, after WriteProcessingInstruction() and
549 WriteWhitespace() change it to Prolog.
550 After WriteDocType() set state to WriteState.Element.
552 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
554 * XmlTextWriter.cs : Do not local duplicate of automatically-created
555 prefixes (i.e. check local autocreated prefixes other than
556 namespaces from ancestors). Fixed bug #77086 and #77087.
558 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
560 * XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
561 ArgumentException in WriteNmTokenInternal().
563 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
565 * XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
566 such invalid "xml" prefix which is being mapped to different
567 namespace URI than the predefined one.
568 Removed comment that does not make sense.
569 * XmlNamespaceManager.cs : IsValidDeclaration() could be private.
572 2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
574 * DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an
575 attribute is #IMPLIED.
577 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
579 * XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
580 ReadSubtree() for non-element content since they are not allowed
581 in ReadSubtree() (but allowed here).
583 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
585 * XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
586 nodes as target string nodes as well as other text nodes.
588 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
590 * XmlValidatingReader.cs : ReadTypedValue() was not working with
591 non-XmlSchemaDatatype types.
593 2006-01-05 Gert Driesen <drieseng@users.sourceforge.net>
595 * XmlTextWriter.cs: Modified WriteWhitespace to throw ArgumentException
596 if value is null or zero-length string. Modified WriteNmToken to throw
597 ArgumentException if name is null or zero-length string. Cosmetic
598 change to WriteStringInternal.
599 * XmlElement.cs: In 2.0 profile, do not throw ArgumentNullException
600 if new value for Prefix is null.
602 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
604 * XmlTextWriter.cs : when namespaceURI is String.Empty, Prefix
605 should be just ignored (it is likely to happen that DOM nodes
606 with empty namespace URI are specified non-empty prefix by
607 users, which had better be just ignored). Fixed bug #77095.
609 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
611 * XmlElement.cs : patch for Prefix property by Vorobiev Maksim.
612 - null should cause ArgumentNullException.
613 - "" should not raise an error.
614 - throws ArgumentException when it is readonly.
616 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
618 * XmlTextWriter.cs : When xml:space or xml:lang attribute was
619 directly written without an element, it caused ArgumentOutOfRange.
622 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
624 * XmlTextWriter.cs : (WriteStartAttribute) set prefix as "xmlns" when
625 namespaceURI is that of xmlns attributes. Fixed bug #77083.
627 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
629 * DTDObjectModel.cs : (CreateXsdParticle) element particle was
630 missing occurence indicators.
632 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
634 * DTDObjectModel.cs : some fixes on GetXmlSchema()
635 - make generated schema cleaner.
636 - enumeration was missing for attribute type.
637 * XmlTextReader.cs, XmlTextReader2.cs : added tiny notes for dtd2xsd.
639 2005-12-15 Konstantin Triger <kostat@mainsoft.com>
641 * XmlTextWriter.cs: allow null string in WriteCData.
643 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
645 * XmlNode.cs : (GetNamespaceOfPrefix) return const xml/xmlns URIs
648 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
650 * XmlDocumentNavigator.cs : added UnderlyingObject as to behave as
653 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
655 * XmlNode.cs : under 2.0 xml/xmlns are treated as special cases in
656 GetNamespaceOfPrefix()/GetPrefixOfNamespace() (but it still does not
657 implement IXmlNamespaceResolver, bummer).
659 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
661 * XmlDocument.cs : changed some exception types.
662 * XmlDocumentNavigator.cs : added 2.0 SchemaInfo.
664 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
666 * XmlTextReader.cs : 1.x build fix.
668 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
670 * XmlTextReader.cs : when XmlReader.Create() creates this instance,
671 don't expect strict text declaration. Check SkipTextDeclaration()
674 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
676 * XmlReader.cs : fixed several misconception in MoveToNextSibling().
677 It should check its ReadState to avoid infinite loop.
679 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
681 * XmlException.cs : added another .ctor() overload that takes both
682 IXmlLineInfo and innerException.
683 * XmlQualifiedName.cs : added Parse() overload that takes XmlReader
684 (since XmlReader is not IXmlNamespaceResolver anymore).
685 * XmlReader.cs : made several fixes on 2.0 ReadContentAs(),
686 ReadElementContentAs() and all of its variants.
688 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
690 * XmlInputStream.cs :
691 Added Encoding property on NonBlockingStreamReader
693 set Encoding property when it proceeds to xml declaration.
695 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
697 * XmlReader.cs : ReadToDescendant() should work when its ReadState is
700 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
702 * XmlChar.cs : removed incorrect comment.
703 * XmlReader.cs : Create() clones XmlReaderSettings (if supplied).
704 For wrapped XmlReader, check ConformanceLevel to be consistent.
705 * XmlTextReader.cs, XmlTextReader2.cs : added get_Conformance for
706 internal use. Removed unused fields.
707 * XmlInputStream.cs : updated NonBlockingStreamReader to the latest
708 StreamReader (it is almost a copy).
710 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
712 * XmlTextReader.cs : avoid Char.IsSurrogate() and do it inside
713 PeekChar(), which improves notable performance.
715 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
717 * XmlReaderSettings.cs : Schemas will be created only when it is
720 2005-12-08 Andrew Skiba <andrews@mainsoft.com>
722 * IXmlNamespaceResolver.cs: delete TARGET_JVM,
723 no need to mangle the name
725 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
727 * Driver.cs, Profiler.cs, XmlQualifiedNameTable.cs :
730 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
732 * XmlReaderSettings.cs : thanks to idiotic MS design,
733 AllowXmlAttributes is turned on by default.
735 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
737 * XmlReaderSettings.cs :
738 set_Schemas() is fixed in 2.0 RTM (it just works).
739 * XmlResolver.cs : throw ArgumentNullException instead of
740 ArgumentException when both base and relative urls are null.
742 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
744 * XmlReaderSettings.cs : ProhibitDtd is set as default.
745 * XmlWriterSettings.cs : no set_OutputMethod.
747 2005-11-30 Konstantin Triger <kostat@mainsoft.com>
749 * IXmlNamespaceResolver.cs: TARGET_JVM namespace change.
751 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
753 * XmlInputStream.cs: fixed Initialize method to be able
754 to read unicode file without BOM. TARGET_JVM only.
756 2005-11-14 Atsushi Enomoto <atsushi@ximian.com>
758 * XmlNodeReader.cs : removed historical one.
760 2005-11-10 Atsushi Enomoto <atsushi@ximian.com>
762 * XmlReader.cs, XmlNode.cs :
763 [DebuggerDisplay] are not worthy of existing.
765 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
767 * XmlTokenizedType.cs, XmlNodeOrder.cs : so those enums happen to
768 have [Serializable] in .NET 1.x, and removed in 2.0 (enums are
769 anyways serializable, so those attributes do not make sense).
771 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
773 * XmlValidatingReader.cs : added CanReadBinaryContent.
774 * XmlTextReader.cs, XmlTextReader2.cs : GetNamespacesInScope() are
775 now both public and private (i.e. hush IsVirtual).
776 * XmlWriterSettings.cs, XmlWriter.cs, XmlTextWriter.cs :
777 NormalizeNewLines vanished.
779 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
781 * XmlReader.cs : MoveToAttribute(int) is virtual in NET_2_0.
783 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
785 * XmlConvert.cs : implemented VerifyTOKEN().
787 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
789 * XmlConvert.cs : VerifyNCName() and VerifyName() throws
790 ArgumentNullException for "".
792 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
794 * XmlReader.cs : dependent XmlSchemaValidationFlags fix.
795 Added ReadElementContentAsObject() and ReadContentAsObject().
796 * XmlReader.cs, XmlTextReader.cs :
797 LookupNamespace(string,bool) is now private.
798 * XmlReader.cs, XmlNode,cs :
801 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
803 * XmlElement.cs, XmlCDataSection.cs, XmlText.cs, XmlWhitespace.cs,
804 XmlSignificantWhitespace.cs : added ParentNode overrides (actually
805 they don't make sense since it just calls base.)
806 * XmlNode.cs, XmlDocument.cs : changed .NET 2.0 CreateNavigator() impl
807 to match signature and skip OwnerDocument check in XmlNode (since
808 it is overriden). Maybe MS does not have ownerDocument as a field and
809 costs too much on OwnerDocument property.
810 Added missing bits in XmlDocument.
812 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
814 * XmlAttribute.cs : added new overrides in 2.0 RTM (this scarcely
815 makes sense without real optimization though).
816 * XmlDocument.cs, XmlElement.cs, XmlNode.cs : avoid ChildNodes and
817 save extra XmlNodeList creation cost.
819 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
821 * XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
822 * XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
823 ReadTypedValue() is removed.
824 * XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
825 * XmlWriter.cs : Settings is virtual.
827 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
829 * XmlDocumentNavigator.cs : now MoveToFirst() invokes internal
832 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
834 * XmlTextWriter.cs : oops, so WriteState.Error is NET_2_0 only.
836 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
838 * XmlTextWriter.cs : (Error state check) actually I need to set Error.
840 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
842 * XmlTextWriter.cs : throw InvalidOperationException if any of
843 WriteBlah() methods were invoked at error state.
845 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
847 * XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
848 default namespace was returning "" instead of null. It didn't check
849 empty namespace URI for non-empty prefixes.
851 2005-10-07 Joshua Tauberer <tauberer@for.net>
853 * XmlTextReader.cs: SkipTextDeclaration would not accept processing
854 instructions that began with the string 'xml', e.g. rejecting
857 2005-10-08 Gert Driesen <drieseng@users.sourceforge.net>
859 * XmlAttribute.cs: InnerText and InnerXml do not override getters in
860 NET_2_0. Removed extra CLSCompliant attribute on SchemaInfo.
861 * XmlReaderSettings.cs: Marked sealed.
863 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
865 * XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
866 digits for "second" were not exactly 3. Fixed bug #76328.
868 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
870 * XmlReader.cs : Name is virtual in NET_2_0.
872 2005-10-03 Atsushi Enomoto <atsushi@ximian.com>
874 * XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
875 added supprot for NormalizeNewLines.
876 NewLineOnAttributes is considered only when Indent is true.
878 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
880 * XmlAttribute.cs, XmlDocument.cs : check id table updates when
881 XmlAttribute.set_Value() was invoked. Fixed bug #76311.
883 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
885 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs :
886 XmlReader.Create() with string url argument are not working because
887 of incorrect choice of the .ctor().
889 2005-09-28 Atsushi Enomoto <atsushi@ximian.com>
891 * XmlNodeReaderImpl.cs : when the source node was not a document and
892 it is an empty element, Read() was incorrectly moving to the parent
893 of the source node. Patch by Csaba Halasz. Fixed bug #76260.
895 2005-09-27 Atsushi Enomoto <atsushi@ximian.com>
897 * XmlTextReader.cs : surrogate computation is incorrect. Fixed bug
898 #76247. Patch by Brion Vibber.
900 2005-09-26 Atsushi Enomoto <atsushi@ximian.com>
902 * DTDValidatingReader.cs : Namespace manager was not handled correctly.
903 Now it does the same as XmlTextReader does. Fixed bug #76234.
905 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
907 * XmlNodeChangedEventArgs.cs: Only make ctor publicly available
908 in NET_2_0. Fixed API compatiblity with .NET 1.1.
909 * XmlOutputMethod.cs: Fixed values of enum fields to match MS.NET.
910 Only available in .NET 2.0.
912 2005-09-25 Atsushi Enomoto <atsushi@ximian.com>
914 * XmlReader.cs, XmlReaderSettings.cs, XmlDocument.cs:
915 XmlSchemaValidationFlags updates.
917 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
919 * XmlWriterSettings.cs : true NET_2_0 updates.
921 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
923 * XmlOutputMethod.cs : new file.
924 * XmlWriter.cs, XmlValidatingReader.cs, XmlReaderSettings.cs,
925 XmlUrlResolver.cs, XmlWriterSettings.cs :
926 more NET_2_0 updates.
928 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
930 * XmlNodeReader2.cs, XmlReader.cs,
931 XmlTextReader.cs, XmlTextReader2.cs,
932 XmlNodeChangedEventArgs.cs, XmlElement.cs,
933 XmlNode.cs, XmlDocument.cs :
936 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
938 * XmlTextReader.cs : when there is a heading half of surrogate at the
939 end of read buffer, it didn't treat it as a surrogate.
942 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
944 * XmlTextWriter.cs : for surrogate pair, output character reference
945 as a single character instead of two reference pairs. Fixed bug #76095.
946 Patch by Brion Vibber.
948 2005-08-31 Sebastien Pouliot <sebastien@ximian.com>
950 * XmlDocument.cs: Added an InheritanceDemand for Unrestricted on
951 CreateDocumentType and ReadNode methods.
952 * XmlException.cs: Added a Demand for SerializationFormatter on
953 GetObjectData method.
954 * XmlResolver.cs: Added an InheritanceDemand for Unrestricted on
956 * XmlSecureResolver.cs: Fixed exception when creating evidences with
957 an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy
958 and PermitOnly if the security manager is enabled.
959 * XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
961 * XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on
963 * XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted
966 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
968 * DTDReader.cs : no need to skip text declaration for such entity
969 declaration that has literal entity. It should not expand entities
970 inside ResolveExternalEntityReplacementText().
971 Finally fixed bug #51495.
973 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
975 * XmlTextReader.cs, XmlTextReader2.cs : added internal .ctor() to
976 receive both TextReader, XmlNodeType and BaseURI for entity
977 resolution (though it would be removed later).
978 * XmlParserInput.cs : Now to handle nested PE insertion and correct
979 BaseURI, it internally holds a stack of "input source".
982 Required fixes for XmlParserInput.
983 Handle BaseURI as expected. Added ActualUri for resolved actual
984 source URI (to resolve nested entities). Pass ActualUri to internal
985 XmlTextReader.ctor() in ResolveExternalEntityReplacementText()
986 (well, yes I remember, it is problematic.)
988 Incorrect Base URI handling bug (part of #51495) is fixed.
990 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
992 * DTDReader.cs, XmlParserInput.cs :
993 let's fix #51495. First of all, refactoring.
995 2005-08-04 Atsushi Enomoto <atsushi@ximian.com>
997 * XmlAttribute.cs : When there was only one child in attribute
998 and it was an entity reference, set_Value() tried to set text value
1001 2005-08-03 Gert Driesen <drieseng@users.sourceforge.net>
1003 * XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
1004 * XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to
1005 RoundtripKind to match .NET 2.0 Beta 2.
1006 * XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
1007 in .NET 2.0 Beta 2, and is explicit interface implementation.
1008 * XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
1010 * XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
1012 * XmlValidatingReader.cs: GetNamespacesInScope returns generic
1013 IDictionary in .NET 2.0 Beta 2.
1014 * IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic
1015 IDictionary in .NET 2.0 Beta 2.
1016 * XmlNamespaceManager.cs: GetNamespacesInScope returns generic
1017 IDictionary in .NET 2.0 Beta 2.
1018 * XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic
1019 IDictionary in .NET 2.0 Beta 2.
1020 * DTDValidatingReader.cs: GetNamespacesInScope returns generic
1021 IDictionary in .NET 2.0 Beta 2.
1023 2005-07-14 Atsushi Enomoto <atsushi@ximian.com>
1025 * XmlTextWriter.cs : In WriteQualifiedName(), when there is open
1026 attribute, it calls LookupPrefix() and then if namespace was empty,
1027 it resulted in an exception. Fixed bug #75546.
1029 2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
1031 * XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
1032 to ISO 8601 and XSD datatypes 3.2.6.1).
1034 2005-06-27 Andrew Skiba <andrews@mainsoft.com>
1036 * DTDReader.cs : don't validate entity values, when the entry is
1037 redefined so it will be never used. Fixes valid-sa-086 test from W3C
1040 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1042 * XmlQueryDialect.cs : removed.
1044 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1046 * XmlWriter.cs : added Create(XmlWriter).
1047 * XmlValidatingReader.cs : added Read*AsBase64/BinHex().
1048 * XmlReaderSettings.cs : added obsolete annoyances to hush corcompare.
1050 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1052 * XmlTextReader.cs : use StringBuilder.ToString(int,int) when it does
1053 not have a large chunk of data, following Ben's idea.
1055 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1057 * XmlTextReader.cs : use StringBuilder to store character values; that
1058 saves 40% memory for large chunk of xml. Patch by Gonzalo.
1060 2005-06-22 Andrew Skiba <andrews@mainsoft.com>
1062 * XmlNode.cs : cosmetic fix - remove unnecessary argument from
1063 AppendChildValues function.
1065 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1067 * XmlTextReader.cs : normalization is not required to check character
1068 validity everywhere except for character reference.
1070 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1072 * DTDValidatingReader.cs : removed some extra IsDefault check (with
1073 the latse code default attributes are stored in hashtables anyways.)
1074 Fixup attribute namespaces _after_ xmlns attributse are filled.
1075 The latest change is not good that namespaceURI of a local attribute
1076 was incorrectly globally looked up (it should be always "").
1078 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1080 * XmlValidatingReader.cs : LookupNamespace() was trying to access to
1081 null reference to validatingReader.
1082 * DTDValidatingReader.cs : Fixed default xmlns* attribute handling.
1083 It used to be valid only at the declaring element.
1085 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1087 * DTDValidatingReader.cs : further text node fixes.
1088 - Cut out validation code from Text node case.
1089 - Now it does not use error-prone case transition but uses
1090 DocumentFragment 'vacant room' and fixed incorrect transition from
1092 - CDATA should be validated the same as Text is.
1094 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1096 * DTDValidatingReader.cs : whitespace nodes were incorrectly rejected
1097 inside non-mixed content model.
1099 2005-06-09 Andrew Skiba <andrews@mainsoft.com>
1101 * XmlConvert.cs : add TARGET_JVM for roundtrip bug
1103 2005-06-06 Atsushi Enomoto <atsushi@ximian.com>
1105 * XmlEntityReference.cs, XmlNode.cs : protected api fix.
1107 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
1109 * XmlEntityReference.cs, XmlNode.cs : For entity references, BaseURI
1110 resolution should be different from that of parent since they might
1111 differ. Patch by Andrew Skiba.
1113 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1116 make sure to close parser input before parser stack pop.
1117 * DTDValidatingReader.cs : ditto.
1118 * DTDObjectModel.cs : Fixed another incorrect null BaseURI check.
1120 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1122 * DTDValidatingReader.cs : Last BaseURI exposed this hidden bug via
1125 2005-05-30 Atsushi Enomoto <atsushi@ximian.com>
1127 * DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
1128 BaseURI which results in incorrect URI resolution.
1130 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1132 * DTDObjectModel.cs : For simple type restriction creation it failed
1133 when there is no enumerations (largely failed).
1135 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1137 * XmlImplementation.cs : added new NET_2_0 ctor.
1138 Let's check corcompare:-/
1140 2005-05-11 Atsushi Enomoto <atsushi@ximian.com>
1142 * DTDValidatingReader.cs : namespace storing was stupid.
1144 2005-05-10 Atsushi Enomoto <atsushi@ximian.com>
1146 * DTDValidatingReader.cs : since namespace declarations might be
1147 resolved differently due to entity handling, it holds its own set
1148 of declared namespaces. NamespaceURI and LookupNamespace() use it.
1150 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
1152 * XmlReader.cs : added ReadElementContentAsLong().
1153 * XmlWriter.cs : removed some obsolete WriteValue() overloads.
1155 IXmlNamespaceResolver.cs : removed deprecated 2.0 bits.
1156 * XQueryConvert.cs : obsolete (yeah, now XQuery should be hidden).
1158 2005-05-06 Atsushi Enomoto <atsushi@ximian.com>
1160 * XmlInputStream.cs : Now XmlStreamReader uses non-blocking TextReader
1161 that is mostly copied from StreamReader. It should fix bug #74161.
1163 2005-05-05 Atsushi Enomoto <atsushi@ximian.com>
1165 * XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
1166 XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
1167 DTDValidatingReader.cs : Removed most of "atomizedName" related
1168 stuff that are obsoleted in 2.0 beta2.
1169 * XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.
1171 2005-05-04 Andrew Skiba <andrews@mainsoft.com>
1173 * IXmlNamespaceResolver.cs : mangle the interface method names when
1174 compiling for TARGET_JVM
1176 2005-03-30 Atsushi Enomoto <atsushi@ximian.com>
1178 * XmlUrlResolver.cs : just return connected Stream instead of fully
1179 downloaded memory cache. Fix by Konstantin Triger.
1181 2005-03-24 Atsushi Enomoto <atsushi@ximian.com>
1183 * XmlWriter.cs : WriteQualifiedName() should check namespace validity
1184 (whether it is in scope or not).
1185 * XmlTextWriter.cs : When WriteQualifiedName() is invoked inside
1186 attribute and no matching namespace declaration, create prefix
1187 on demand. Code reused from WriteStartAttribute().
1189 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1191 * XmlValidatingReader.cs : create schema set on demand.
1193 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1195 * XmlParserInput.cs,
1198 DTDValidatingReader.cs : removed/commented out those warned code.
1200 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1202 * XmlDocumentNavigator.cs : overriden IsDescendant (default
1203 implementation extraneously clones).
1205 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1207 * DTDValidatingReader.cs : When expanding entities and there is a
1208 sequence of text nodes, its value was not returned.
1209 * XmlTextReader.cs : better invalid char error report for EOF.
1211 2005-03-09 Andrew Skiba <andrews@mainsoft.com>
1213 * XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
1214 surrogate calculations. This fixes bug 73513.
1216 2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
1218 * XmlParserInput.cs : silly mixed line endings :(
1220 2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
1222 * XmlTextWriter.cs : namespace declaration check for those which starts
1223 with 'x' 'm' 'l' should not be done here (it might be 'declared'
1225 * XmlNamespaceManager.cs : error message for "'xml' prefix for
1226 different namespace" is incorrect.
1228 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1230 * XmlDocument.cs : ugh, so I introduced extraneous reader.Read() in
1231 ReadNode() for EntityReference and it resulted in unexpected skip.
1232 * DTDValidatingReader.cs : On EndEntity, LocalName and Name should
1233 return the name of entity. Removed unused entityReaderNameStack.
1235 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1237 * DTDValidatingReader.cs : reverted one change in r40985. Entity stack
1238 is nothing to do with ReadAttributeValue().
1240 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1242 * DTDValidatingReader.cs : When there was actual attribute in source
1243 XmlReader, MoveToAttribute(i) did not move source reader as expected.
1245 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1247 * XmlDocument.cs : In ReadNode(), on EntityReference node, when
1248 XmlReader can resolve entity, it expands entity and apppend
1249 children into the entity reference. Patch by Konstantin Triger.
1251 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1253 * XmlTextWriter.cs : For duplicating namespace mapping, it should
1254 create another prefix without throwing an exception.
1256 2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
1258 * XmlTextWriter.cs : LookupPrefix() should not return those prefix
1259 that is overriden by another xmlns declaration.
1261 2005-02-26 Atsushi Enomoto <atsushi@ximian.com>
1263 * XmlEntity.cs : it was not returning SYSTEM ID when there is no
1265 * XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
1266 get_NodeType() resulted in loop.
1268 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1270 * XmlComment.cs, XmlNode.cs, XmlText.cs, XmlProcessingInstruction.cs,
1271 XmlEntityReference.cs, XmlSignificantWhitespace.cs, XmlAttribute.cs,
1272 XmlElement.cs, XmlEntity.cs, XmlCDataSection.cs :
1273 For those nodes that are created by Clone(), IsReadOnly is false.
1274 Patch by Konstantin Triger.
1276 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1278 * XmlDocumentNavigator.cs : iteratedNames array could be fixed and
1279 performance got improved. Patch by Konstantin Triger.
1281 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1283 * XmlAttribute.cs : MS does not reject non-NCName prefix. Patch by
1286 2005-02-24 Atsushi Enomoto <atsushi@ximian.com>
1288 * XmlTextWriter.cs : WriteString() should be valid when
1289 WriteStartDocument() was not called.
1291 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1293 * XmlNamespaceManager.cs : IsValidDeclaration was giving useless error
1296 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1298 * XmlDocumentNavigator.cs : it should virtually expand EntityReference,
1299 so refactored to handle both entity references and top level children.
1301 2005-02-22 Atsushi Enomoto <atsushi@ximian.com>
1303 * XmlTextReader.cs : XmlParserContext was not properly popped on
1304 the expected timing and thus had lost BaseURI, XmlSpace and XmlLang.
1305 * XmlInputStream.cs : XmlTextReader does not allow invalid utf-8
1308 2005-02-21 Atsushi Enomoto <atsushi@ximian.com>
1310 * DTDValidatingReader.cs : It should not skip whitespace and
1311 significant whitespace nodes unless it is expanding entities.
1312 * XmlDocumentNavigator.cs : Fixed NodeType that was returning
1313 incorrect type when there is a sequence of text/cdata/space nodes.
1315 2005-02-18 Atsushi Enomoto <atsushi@ximian.com>
1317 * XmlNamespaceManager.cs : Prefix "xml" is bound to the fixed
1318 namespace "http://www.w3.org/XML/1998/namespace", but it is not
1319 vice versa (i.e. we can use other prefixes for this namespace URI).
1321 2005-02-17 Atsushi Enomoto <atsushi@ximian.com>
1323 * XmlNode.cs : It does not have to iterate children to find argument
1324 node. Fixed exception type to ArgumentException. Patch by Andrew
1327 2005-02-16 Atsushi Enomoto <atsushi@ximian.com>
1329 * XmlAttribute.cs : just use InnerText for Value. Patch by Andrew
1331 * XmlConvert.cs : Handle null and empty strings for EncodeName(),
1332 EncodeLocalName() and EncodeNmToken(). Patch by Andrew Skiba.
1333 * NameTable.cs : usually tail of namespaces are rather different than
1334 head of them. Patch by Andrew Skiba.
1335 * XmlUrlResolver.cs : missing %20 handling. Patch by Andrew Skiba.
1337 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1339 * XmlAttribute.cs : For default attributes, WriteTo() writes nothing
1341 * DTDValidatingReader.cs : reduced indentation using Linus trick
1342 (it was too deep in nest).
1344 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
1346 * DTDValidatingReader.cs : Namespaces and prefixes are not properly
1347 handled (it incorrectly assumed DTD definitions and thus always
1348 assumed empty namespace/prefixes).
1350 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
1352 * DTDValidatingReader.cs : element name stack might be empty when the
1353 input XmlReader contains fragments. Patch by Andrew Skiba.
1355 2005-01-25 Martin Baulig <martin@ximian.com>
1357 * XmlNode.cs (XmlNode.SchemaInfo): Mark this as not CLS-compliant
1360 * XmlReaderSettings.cs (XmlReaderSettings.XmlResolver): Mark this
1361 as not CLS-compliant to avoid a CS3025.
1363 2005-01-18 Atsushi Enomoto <atsushi@ximian.com>
1367 XmlAttributeCollection.cs :
1368 Now reuse parentNode field for XmlAttribute.OwnerElement and
1369 reduce class allocation size.
1371 New class that represents a name triplet.
1372 XmlNameEntryCache.cs :
1373 New type to cache name entries.
1376 Replace name strings with name entry and save class allocation size.
1378 Add name entry cache field to document and reuse name entries that
1379 are already allocated.
1381 2005-01-17 Atsushi Enomoto <atsushi@ximian.com>
1383 * XmlNode.cs, XmlAttribute.cs : reverted the previous patch. It broke
1384 several nunit tests.
1386 2005-01-15 Ben Maurer <bmaurer@ximian.com>
1388 * XmlNode.cs (InnerText, AppendChildValues): Don't allocate a
1389 string in the case where nothing needs to be appended.
1391 * XmlAttribute.cs (BuildChildValue): Start out the string with
1392 `null' not `String.Empty'. String.Concat (null, blah) == blah,
1393 pointerwise. ie, there is no allocation. This makes it so that
1394 getting the value of an attribute is faster for the fast case.
1396 2005-01-13 Atsushi Enomoto <atsushi@ximian.com>
1398 * XmlResolver.cs : throw ArgumentException in ResolveUri().
1400 2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
1402 * XmlTextWriter.cs : WriteComment() was outputting extraneous EOL.
1404 2004-12-26 Atsushi Enomoto <atsushi@ximian.com>
1406 * XmlReader.cs : ReadElementContentAsBinHex() was calling ..AsBase64().
1407 * XmlValidatingReader.cs : In set_EntityHandling(), set that property
1408 of DTDValidatingReader.
1409 * XmlNodeReader2.cs,
1410 XmlNodeReaderImpl.cs : added simplified implementation that splits
1411 entity handling and anything else.
1412 * XQueryConvert.cs : implemented ShouldCheckValueFacets().
1413 Use Convert class instead of simple casts (check range).
1414 * XmlReaderSettings.cs : added SetSchemas() for XPathNavigator.
1416 2004-12-22 Atsushi Enomoto <atsushi@ximian.com>
1418 * XmlParserContext.cs : all the string properties must not be set as
1419 null. Thanks to Joshua.
1422 DTDReader.cs : XmlResolver.ResolveUri() may return null.
1424 2004-12-17 Atsushi Enomoto <atsushi@ximian.com>
1426 * XmlReaderBinarySupport.cs : added support class for base64/binhex
1427 reading that mostly automates those reader support.
1428 * XmlReader.cs : added CanReadBinaryContent, CanReadValueChunk,
1429 ReadContentAsBase64(), ReadElementContentAsBase64(),
1430 ReadContentAsBinHex(), ReadElementContentAsBinHex() and
1432 * XmlTextReader.cs : Now ReadBase64() and ReadBinHex() implementations
1433 are moved to XmlReaderBinarySupport. Added CanReadBinaryContent and
1434 CanReadValueChunk overrides. Call Binary.Reset() to enable them.
1435 * XmlTextReader2.cs : added CanReadBinaryContent, CanReadValueChunk.
1436 Added ReadContentAsBase64(), ReadElementContentAsBase64(),
1437 ReadContentAsBinHex(), ReadElementContentAsBinHex() (just because
1438 they are overriden in MS.NET).
1439 * XmlNodeReader.cs : added CanReadBinaryContent and CanReadValueChunk.
1440 Call Binary.Reset() to enable them.
1442 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
1445 Added DateTime related methods with serialization mode.
1447 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
1449 * XmlReader.cs : added MoveToFollowing().
1452 XmlAttribute.cs : added SchemaInfo support.
1453 * XmlDocument.cs : added Schemas and Validate().
1454 ReadNode() now copies xmlReader's SchemaInfo.
1455 * XmlNodeReader.cs : ditto (just reflects node's SchemaInfo).
1457 2004-12-15 Atsushi Enomoto <atsushi@ximian.com>
1460 Create() should assure NameTable!=null on creating XmlTextReader.
1461 Now use XmlSchemaValidatingReader for all xsd validation.
1462 * XmlTextReader2.cs :
1463 Don't use input reader's Settings. It is null.
1464 * XmlReaderSettings.cs : added XmlResolver.
1466 2004-12-14 Atsushi Enomoto <atsushi@ximian.com>
1468 * XmlReaderSettings.cs : XsdValidate and DtdValidate are now
1470 * XmlReader.cs : In Create(), use XmlSchemaValidatingReader for xsd
1473 2004-12-12 Zoltan Varga <vargaz@freemail.hu>
1475 * XmlTextReader.cs: Work around a compiler bug in csc 2.0 beta 1.
1477 2004-12-09 Atsushi Enomoto <atsushi@ximian.com>
1479 * DTDObjectModel.cs : implemented lightweight XmlSchema generator.
1481 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
1483 * XmlValidatingReader.cs : making smarter relationship between
1484 XsdValidatingReader.
1486 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
1488 * XmlException.cs : added SecurityPermissionAttributes.
1489 * XmlReaderSettings.cs,
1490 XmlReader.cs : added ValidationFlags and removed obsolete ones.
1492 2004-12-06 Atsushi Enomoto <atsushi@ximian.com>
1494 * XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
1495 ns is null, and don't lookup prefix for empty namespace.
1497 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1499 * XmlTextReader.cs: don't use \0 as buffer terminator.
1500 * XmlInputStream.cs: s/Array.Copy/Buffer.BlockCopy/.
1502 2004-11-30 Atsushi Enomoto <atsushi@ximian.com>
1504 * DTDReader.cs : Consideration on parameter entity was missing for
1505 attribute default value. Fixed bug #70008.
1507 2004-11-26 Atsushi Enomoto <atsushi@ximian.com>
1509 * XmlReader.cs : not fixage, just explicitly formatted code a bit.
1512 XmlAttributeCollection.cs,
1519 XmlDocument.cs : warning removal.
1521 2004-11-25 Atsushi Enomoto <atsushi@ximian.com>
1523 * XmlQualifiedNameTable.cs : oops, it was not implemented.
1525 2004-11-24 Atsushi Enomoto <atsushi@ximian.com>
1527 * XmlQualifiedName.cs : in 2.0 it is [Serializable].
1528 * XmlTextReader.cs : removed unused local variable.
1529 * XmlTextWriter.cs : Improved some exception messages.
1530 moved some private fields into #if NET_2_0.
1531 * XmlValidatingReader.cs : rename specifiedResolver to
1532 resolverSpecified and use it in internal get_Resolver().
1533 Added [Obsolete] for ReadTypedValue() whose base is obsoleted.
1535 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
1537 * XmlTextReader.cs : Now attribute normalization is handled on Read(),
1538 not on get_Value. This caused a problem when we use
1539 XmlValidatingReader that value is not always normalized expectedly.
1541 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
1543 * XmlReader.cs : removed old ReadValueAsXXX() and added new
1544 ReadContentAsXXX() and ReadElementContentAsXXX().
1545 * XmlTextReader.cs : removed old ReadValueAsXXX() (no overrides now).
1546 * XmlTextWriter.cs : added indentation on Comment nodes.
1547 * XmlDateTimeSerializationMode.cs : updated.
1548 * XmlResolver.cs : added 2.0 NameTable field.
1549 * ValidationType.cs : added ObsoleteAttributes on some members.
1551 2004-11-18 Atsushi Enomoto <atsushi@ximian.com>
1553 * XmlParserContext.cs : the fix was not checked in :(
1555 2004-11-17 Atsushi Enomoto <atsushi@ximian.com>
1557 * XQueryConvert.cs : moved from System.Xml.Query.
1559 2004-11-14 Atsushi Enomoto <atsushi@ximian.com>
1561 * XmlWriter.cs : after WriteAttributes(), argument XmlReader must
1562 move to element. This fixes bug #69350.
1564 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
1566 * XmlParserContext.cs : PushScope() was accessing list out of range.
1568 2004-11-09 Atsushi Enomoto <atsushi@ximian.com>
1570 * DTDValidatingReader.cs, XmlTextReader.cs :
1571 needed more changes wrt XmlException.
1573 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1575 * DTDObjectModel.cs,
1581 Added support for 2.0 XmlException.SourceUri property. Improved
1582 exception handling to contain BaseURI everywhere in the parser.
1584 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1586 * XmlTextReader2.cs : added. It is used to serve public API, plus
1587 entity handling support.
1589 * DTDObjectModel.cs,
1590 DTDValidatingReader.cs,
1592 XmlParserContext.cs,
1594 Implemented XmlTextReader.EntityHandling and ResolveEntity(). To
1595 implement them, XmlTextReader in 2.0 itself is in XmlTextReader2.cs
1596 and XmlTextReader.cs contains Mono.Xml2.XmlTextReader which is the
1597 same as 1.x XmlTextReader. XmlTextReader2 switches entity reader and
1598 source reader, and never handles tokenization.
1599 The reason for "Mono.Xml2" is to avoid large changes in constructor.f
1601 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1603 * XmlAttribute.cs, XmlElement.cs : get_Name should consider name table.
1604 * XmlDocument.cs : use NameTable in Load() and LoadXml().
1605 * XmlReader.cs : In Create(), use NameTable in XmlReaderSettings.
1607 2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
1609 * XmlDocumentNavigator.cs : create rarely-used ArrayList later. This
1610 significantly improves XmlDocument-based XPath performance.
1612 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1614 * XmlTextReader.cs : Manually expanded some of AppendValueChar() and
1615 XmlChar.IsWhitespace() which are on critical points on performance
1616 (marked as FIXME, but it depends on JIT).
1618 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1620 * XmlTextReader.cs : Search xml:* attributes more efficiently.
1622 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1624 * XmlTextReader.cs : Reduced NameTable.Add() for prefixed names. First,
1625 ReadName() now returns atomized LocalName and Prefix. Second, to
1626 avoid extraneous split, SetProperties() now takes prefix and
1627 localName that might be given from ReadName(). Third, removed
1628 FillNames(). This optimizes "namespace-aware and prefixed document"
1629 parsing 10-20% faster.
1631 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1633 * XmlTextReader.cs :
1634 With related to AddNamespace(), there was extra string.StartsWith()
1635 calls. Now AttributeTokenInfo.FillNames() is splitted into
1636 FillPrefixAndXmlns() and FillNamespace(), and AddNamespace() is done
1637 at FillPrefixAndXmlns().
1639 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1641 * XmlTextReader.cs :
1642 Reduces LookupNamespace() call in FillNames(). This improves 6-7%
1643 speedup in some scenario.
1644 Code refactory; Removed unused code. AddAttribute() is used only for
1645 DTD, so renamed to AddDtdAttribute(). For PUBLIC and SYSTEM ids,
1646 FillNames() is not required. Two SetProperties() are ambiguous, so
1647 renamed one (that takes TokenInfo) as SetTokenProperties().
1649 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1651 * XmlParserContext.cs : rewrote; especially to avoid XmlSpace boxing.
1653 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1655 * XmlTextReader.cs : LookupNamespace() don't have to be called in
1656 ReadStartTag() to check prefix, since NamespaceURI is filled in
1657 FillNames(). 10% performance up by avoiding this extra check.
1659 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1661 * XmlValidatingReader.cs : fixed incorrect recursion between
1662 indexer and GetAttribute().
1664 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1666 * DTDReader.cs, DTDValidatingReader.cs, XmlTextReader.cs :
1667 When XmlTextReader is created with NodeType Element or Attribute,
1668 skip possible text declaration (that might be used for resolving
1669 entities) that specifies text encoding. With this fix, bug #61274
1670 must be regarded as fixed.
1672 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1674 * XmlNodeReader.cs : Reimplemented ResolveEntity(). It does not use
1675 XmlTextReader trick anymore. XmlNodeReader itself is used instead.
1677 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1679 * XmlNodeReader.cs : for NET_1_0 ReadInnerXml(), just use
1680 XmlReader.ReadInnerXmlInternal(). It should work fine.
1681 Ditto for ReadOuterXml().
1683 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1685 * XmlNodeReader.cs : removed unused/unreachable code. Simplify
1688 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1690 * XmlDocument.cs, XmlNodeReader.cs, XmlTextReader.cs,
1691 XmlValidatingReader.cs : Those readers could just implement internal
1692 interface IHasXmlParserContext.
1693 * XmlTextReader.cs, XmlValidatingReader.cs : this[] disappeared in 2.0.
1694 (XmlReader has them as virtual.)
1695 * XmlReader.cs : ReadAsObject() disappeared.
1696 * XmlWriter.cs : WriteFromObject() disappeared.
1698 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1700 * XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
1701 * XmlNode.cs : dustclean.
1703 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1705 * XmlDocument.cs : use XPathEditableDocument again.
1706 * XmlNode.cs : To be compatible with XPathEditableDocument, it should
1707 not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.
1709 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1711 * XmlChar.cs, XmlConstructs.cs :
1712 Switched again, for reducing per-process memory consumption.
1713 * XmlInputStream.cs :
1714 Just 64 bytes of buffer would be enough, for example like
1715 <?xml version="1.0" encoding="iso-8859-15" standalone="yes" ?>
1717 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1719 * IXmlDataEvidence.cs : disappeared.
1720 * XmlConvertDateTimeSerializationMode.cs : incorrect filename. removed.
1721 * XmlDateTimeSerializationMode.cs : added
1722 * NewLineHandling.cs : added
1723 * IXmlNamespaceResolver.cs, XmlNamespaceManager.cs :
1724 now 'atomizedNames' is obsolete.
1725 * XmlReaderSettings.cs, XmlWriterSettings.cs :
1726 Should not be sealed. Should not be ICloneable.
1728 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1730 * XmlDocument.cs : XPathEditableDocument looks broken. Just reverted
1731 to fix 2.0 corcompare.
1733 2004-10-26 Atsushi Enomoto <atsushi@ximian.com>
1735 * XmlTextReader.cs : Don't create attribute Value string on Read()
1736 (i.e. create string when get_Value() is invoked.) This optimizes
1737 some kind of XmlTextReader usage significantly such as Skip().
1739 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
1741 * XmlConvertDateTimeSerializationMode.cs : added.
1742 * XmlConvertDateTimeOption.cs : removed.
1744 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
1747 For net_2_0, CreateNavigator() returns editable XPathNavigator.
1748 * XmlReader.cs, XmlTextReader.cs, XmlValidatingReader.cs :
1749 They do not implement IXmlDataEvidence anymore.
1751 2004-10-18 Atsushi Enomoto <atsushi@ximian.com>
1753 * XmlTextReader.cs :
1754 Fixed CheckCharacters setter that always set false.
1755 CheckCharacters check is also required for ReadText(). This fixes
1758 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
1760 * XmlTextReader.cs : Inside DTD, '<' character inside XML comment
1761 is regatded as invalid. This fixes bug #68410. (Error message was
1764 2004-10-14 Atsushi Enomoto <atsushi@ximian.com>
1766 * XmlWriter.cs : CreateTextWriter() is private.
1768 2004-10-09 Atsushi Enomoto <atsushi@ximian.com>
1770 * XmlNodeReader.cs : LookupPrefix() was only after 2.0.
1772 2004-10-08 Atsushi Enomoto <atsushi@ximian.com>
1774 * XmlNamespaceManager.cs : GetNamespacesInScope() caused
1775 IndexOutOfRangeException (miscounted indexes).
1777 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
1779 * XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
1780 For attribute nodes, it should not use WriteSubtree() which does not
1781 support attribute nodes.
1783 2004-09-20 Gert Driesen <drieseng@users.sourceforge.net>
1785 * XmlValidatingReader.cs: Added deprecation message.
1787 2004-09-14 Atsushi Enomoto <atsushi@ximian.com>
1789 * XmlTextWriter.cs : Close() should not Flush() when the output is
1790 already closed. bug #65918 is fixed.
1792 2004-09-12 Atsushi Enomoto <atsushi@ximian.com>
1794 * XmlTextWriter.cs : CloseOutput must be true by default.
1796 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
1798 * XmlWriter.cs, XmlTextWriter.cs, XmlWriterSettings.cs :
1799 Implemented CheckCharacters and CloseOutput support.
1801 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
1803 * XmlReader.cs : evidence is always provided.
1804 * XmlWriter.cs, XmlTextWriter.cs :
1805 added support for ConformanceLevel and OmitXmlDeclaration.
1807 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
1809 * XmlTextReader.cs : Console.WriteLine() injected :(
1810 * XmlTextWriter.cs : It it partly supports XmlWriterSettings.
1811 * XmlWriter.cs : implemented Create().
1812 * XmlWriterSettings.cs : removed EncodeXmlBinary (deprecated).
1814 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1816 * XmlFactory.cs : removed (obsolete).
1818 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1820 * XmlNamespaceManager.cs : GetNamespacesInScope() ignored default
1821 namespace when scope is .ExcludeXml or .All.
1822 * XmlReader.cs : Implemented ValueType, SchemaInfo, ReadAsObject().
1823 Fixed ReadTypedValue() to call ReadValueAs().
1825 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1827 * XmlNamespaceManager.cs : Fixed GetNamespacesInScope() that returned
1828 inconsistent namespace pairs.
1830 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1832 * XmlReader.cs, XmlTextReader.cs :
1833 Added NET_2_0 CheckCharacters support.
1835 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
1837 * XmlNode.cs : GetEnumerator() does not have to create ChildNodes
1838 every time. Removed unused StringBuilder field.
1840 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
1842 * XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
1843 to read more (and might result in an error).
1845 2004-09-03 Atsushi Enomoto <atsushi@ximian.com>
1847 * XmlTextReader.cs : When Normalization is true, CRLF and CR should
1848 be converted to single LF. This should fix part of bug #62076.
1850 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
1852 * XmlWriter.cs : implemented WriteValue(object) for known types.
1854 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
1856 * XmlElement.cs : XmlAttributeCollection doesn't have to be created
1857 every time until the actual use. This sometimes optimizes
1858 attribute-less XML performance siginificantly.
1860 2004-08-27 Atsushi Enomoto <atsushi@ximian.com>
1862 * XmlAttribute.cs : some property getters threw NullReferenceException
1863 when the attribute is not added to an element.
1864 * XmlNode.cs : When a node is not appended to another node, BaseURI
1865 is empty. Bug #64120 is fixed.
1867 2004-08-26 Atsushi Enomoto <atsushi@ximian.com>
1869 * XmlTextWriter.cs : In CheckState(), don't create indentation string
1870 at every time. WriteIndent() now handles the indentation without
1873 2004-08-23 Atsushi Enomoto <atsushi@ximian.com>
1875 * XmlReader.cs, XmlTextReader.cs, XmlWriter.cs :
1876 eliminate MS.Internal.Xml.* classes.
1878 2004-08-21 Atsushi Enomoto <atsushi@ximian.com>
1880 * XmlElement.cs : set_InnerText was removing children incompletely.
1881 This fixes bug #63574.
1883 2004-08-20 Atsushi Enomoto <atsushi@ximian.com>
1885 * XmlTextReader.cs : Fixed EOF not to return true when it is just
1886 closed. Element and EndElement location is now adjusted to be the
1887 same as MS.NET does. This fixes bug #63505 and #63507.
1888 ResetState() now throws InvalidOperationException() as MS.NET does.
1890 * WriteState.cs : added missing 2_0 enumeration.
1891 * XmlReader.cs : ReadTypedValue() is virtual.
1892 * XmlValidatingReader.cs : ReadTypedValue() is override under 2_0.
1894 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
1896 * XmlValidatingReader.cs : Replaced XmlSchemaCollection with
1897 XmlSchemaSet. Added Settings property override
1899 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
1901 * DTDReader.cs : Replacing XmlSchemaDatatype .FromName(string) with
1902 .FromName(string, string) [going to remove former one; it is not
1903 good to support xdt:blah datatypes].
1905 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
1907 * DTDValidatingReader.cs,
1908 XmlValidatingReader.cs : implemented IXmlNamespaceResolver.
1909 * XmlNamespaceManager.cs,
1910 XmlNodeReader.cs : implemented GetNamespacesInScope().
1912 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
1914 * XmlCharacterData.cs,
1916 XmlNodeChangedEventArgs.cs :
1917 Implemented XmlNodeChangedEventArgs.OldValue and .NewValue.
1919 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
1921 * XmlWriter.cs : implemented settings-less Create().
1922 * XmlWriterSettings.cs : added some comments.
1924 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
1926 * XmlWriter.cs : implemented WriteNode(XPathNavigator, bool)
1927 incompletely, using XPathNavigator.ReadSubtree().
1929 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
1931 * XmlReader.cs : Implemented new 2.0 virtual members that used to be
1932 abstract in 1.x. Implemented ReadSubtree().
1934 2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
1936 * XmlTextReader.cs: Stop parsing when a null character is found.
1938 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
1940 * XmlReader.cs : Implemented missing MoveToNextSibling() and
1942 * XmlTextReader.cs : Added missing ReadValueAs() override (hmm...
1943 are they really worth overriding?)
1945 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
1947 * XmlWriter.cs : Added new WriteStartAttribute(string).
1949 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
1951 * XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
1952 * XmlQualifiedName.cs : Added internal static Parse().
1953 * XmlReader.cs : use XmlQualifiedName.Parse().
1954 * XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
1955 * XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
1956 Implemented 2.0 virtual methods that used to be abstract in 1.x.
1958 2004-07-26 Atsushi Enomoto <atsushi@ximian.com>
1960 * XmlReader.cs : Implemented ReadValueAsXxx() except for
1962 * XmlTextReader.cs : implemented them as well, just invoking
1963 base.ReadValueAsXxx ().
1964 * XmlWriter.cs : implemented some WriteValue() methods.
1966 2004-07-21 Atsushi Enomoto <atsushi@ximian.com>
1968 * XmlConvert.cs : added internal ToBinHexString() (BTW according to
1969 MSDN documentation it should be public).
1970 * XmlReader.cs : fixed one incorrect Create() overload. Added
1971 LookupNamespace (string, bool) (public for 2.0, internal for 1.x).
1972 * XmlTextReader.cs : Mostly implemented IXmlNamespaceResolver
1973 interface. Fixed HasLineInfo() access modifier on 2.0.
1974 * XmlNodeReader.cs : Mostly implemented IXmlNamespaceResolver
1975 interface. Wrote common namespace node lookup method and rewrote
1976 existing LookupNamespace().
1977 * XmlValidatingReader.cs : Fixed 2.0 IXmlLineInfo members' signatures.
1979 2004-07-20 Atsushi Enomoto <atsushi@ximian.com>
1981 * XmlNode.cs : When the argument node being inserted is the existing
1982 document element, it should not result in an error (since it should
1983 be first removed from document, thus no error should happen).
1985 2004-07-16 Atsushi Enomoto <atsushi@ximian.com>
1987 * XmlTextReader.cs : Fixed several problems on ReadBase64();
1988 Whitespaces should be ignored, and '=' was not skipped correctly.
1989 It caused "unexpected end of document" error at immediate close tag.
1991 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
1993 * Added MonoFIXAttribute.cs
1995 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
1997 * XmlWriter.cs : Added Create() stubs.
1998 * XmlWriterSettings.cs : Added missing property setters.
1999 * XmlValidatingReader.cs : added internal schemas setter.
2000 * XmlTextReader.cs : added internal XmlReaderSettings property setter.
2001 * XmlReader.cs : Halfly implemented Create().
2002 * DTDValidatingReader.cs : author information was missing.
2004 2004-07-11 Atsushi Enomoto <atsushi@ximian.com>
2006 * XmlConvertDateTimeOption.cs : it is NET_2_0.
2007 * IXmlNamespaceResolver.cs,
2008 XmlNamespaceScope.cs : Compile it in .net 1.1 (as internal).
2009 * XmlNamespaceManager.cs : Implement IXmlNamespaceResolver.
2011 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2013 * XmlConvertDateTimeOption.cs : Forgot to change the content...
2015 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2017 * ConformanceLevel.cs : Fixed integer value.
2018 * Added XmlConvertDateTimeOption.cs.
2019 * Removed XmlItemView.cs and XmlItemViewCollection.cs.
2021 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2023 * IXmlNamespaceResolver.cs :
2024 Fixed return value of GetNamespacesInScope().
2025 * IXmlDataEvidence.cs,
2028 XmlValidatingReader.cs : fixed Evidence (it is not array anymore).
2030 Implemented virtual indexers, QuoteChar, and Dispose() (2.0 stuff).
2032 In net_2_0, indexers vanished from XmlNodeReader.
2033 In net_2_0, overriden QuoteChar vanished.
2034 * XmlReaderSettings.cs : set_NameTable is missing.
2035 * XmlTextReader.cs : Implemented ProhibitDtd.
2037 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2039 * XmlAttributeCollection.cs : In .net 2.0, it became sealed class.
2040 * IXmlDataEvidence.cs : not "Evidences" but "Evidence".
2041 * XmlInputStream.cs : new csc rejected implicit int->char cast.
2042 * XmlNamespaceManager.cs : In net_2_0, LookupNamespace(string) and
2043 LookupPrefix(string) does not require argument string as atomized.
2044 Added HasNamespace (string, bool).
2045 * XmlReader.cs : Added Settings and SchemaInfo properties.
2046 * XmlReaderSettings.cs : Added NameTable. Throw XmlException when
2047 attempt to set Schemas.
2048 * XmlTextReader.cs : Fixed "Evidences" to "Evidence". new csc rejected
2049 implicit int->char cast.
2050 * XmlValidatingReader.cs : Fixed "Evidences" to "Evidence".
2052 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
2055 Close XmlReader only when it is created. This fixes bug #60809.
2057 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
2059 * DTDObjectModel.cs, DTDReader.cs, XmlConvert.cs, XmlDocument.cs,
2060 XmlException.cs, XmlParserInput.cs, XmlTextReader.cs,
2061 XmlTextWriter.cs : Globalization.
2062 * XmlNode.cs : Fixed error message that confused node type.
2064 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2066 * XmlDocumentNavigator.cs : MoveToNext() should skip concatenating
2067 text/cdata/whitespace nodes.
2069 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2071 * XmlInputStream.cs : Fixed encoding detection detected in xslt
2072 standalone tests. Removed extraneous code.
2074 2004-06-13 Atsushi Enomoto <atsushi@ximian.com>
2076 * XmlTextReader.cs : Character range check is always done. It is only
2077 character references for which check is not done when Normalization
2079 A bit more kind error message for multiple document element error.
2080 * XmlTextWriter.cs : Check if character is valid and entitize when
2083 2004-06-09 Atsushi Enomoto <atsushi@ximian.com>
2085 * XmlNamespaceManager.cs : The error message was improper.
2088 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2090 * XmlInputStream.cs: Initialize reads a larger buffer now when trying
2091 to guess the encoding.
2093 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2095 * NameTable.cs : Fixed incorrect hash computation. Thanks to Ben.
2096 * XmlTextWriter.cs : Fixed remaining LookupNamespace() atom problem
2097 shown in xslt standalone tests.
2099 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2101 * XmlTextWriter.cs : Improved indenting. For children of a mixed
2102 content element, it won't be indented.
2104 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2106 * DTDObjectModel.cs,
2107 XmlDocument.cs : Close stream always.
2108 * XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
2109 * XmlTextReader.cs : Namespace check was not done. Some tests depends
2110 on this failure and to be fixed.
2112 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2114 * XmlNamespaceManagre.cs : Fixed LookupNamespace() and LookupPrefix().
2115 They require that names are *already* atomized.
2117 XmlTextWriter.cs : use safe overload of LookupXXX().
2119 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
2121 * XmlTextReader.cs : Fixed version mismatch; ProhibitDtd should be
2124 2004-05-29 Gert Driesen (drieseng@users.sourceforge.net)
2126 * XmlTextReader.cs: Added ProhibitDtd property for NET 1.1 to match
2127 public API in MS.NET 1.1
2129 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2131 * XmlDocument.cs : Save() should indent only when PreserveWhitespace
2132 is false. Fixed bug #59155.
2133 Modified comment lines a bit.
2135 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2137 * XmlTextWriter.cs : WriteRaw() looks to proceed WriteState to Prolog
2138 (if it is Start). Fixed bug #59154.
2140 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2142 * XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
2143 and don't bork against <foo></foo>. Also mofidied this method to skip
2144 <foo/>. Fixed bug #59142.
2145 Modified some comments on the code (FIXME->LAMESPEC et al).
2147 2004-05-24 Atsushi Enomoto <atsushi@ximian.com>
2149 * DTDReader.cs : When sequential PE references exist, the reader only
2150 expands the first one and in some cases the parser complaints the
2151 content (such like expecting name character but found '%').
2152 This fixes bug #58818.
2154 2004-05-23 Atsushi Enomoto <atsushi@ximian.com>
2156 * XmlNode.cs : RemoveChild() should check null argument.
2157 Normalize() was broken in some cases.
2159 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2161 * ConformanceLevel.cs : added.
2163 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2165 * XmlNodeChangedEventArgs.cs : the last patch looks true
2166 ONLY AFTER .NET 2.0.
2168 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2170 * XmlReaderSettings.cs, XmlWriterSettings.cs : NET_2_0 were missed.
2172 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2176 XmlItemViewCollection.cs,
2177 XmlReaderSettings.cs,
2178 XmlWriterSettings.cs : added new .NET 2.0 classes.
2180 * AsyncXmlTextWriter.cs,
2181 IXPathChangeNavigator.cs,
2184 XmlChangeFilters.cs,
2186 XmlNodeChangeType.cs,
2187 XPathChangeNavigator.cs,
2189 XPathDocument2ChangedEventAction.cs,
2190 XPathDocument2ChangedEventHandler.cs,
2192 XPathNavigator2.cs : removed. (They are only in .NET 1.2)
2194 * XmlWriter.cs : added new NET_2_0 WriteElementString().
2196 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2198 * XmlNodeChangedEventArgs.cs : not properly inherited from EventArgs.
2200 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2202 * XmlConvert.cs : Fixed ToString(TimeSpan) that didn't handle Hour
2203 correctly. This fixes bug #57786.
2205 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2207 * XmlValidatingReader.cs : explicitly mark as MonoTODO for XDR (not
2210 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2212 * DTDObjectModel.cs,
2218 XmlUrlResolver.cs : removed reference to Mono.Xml.
2219 Made Mono.Xml.* classes internal.
2220 * XmlDocument.cs : output xml declaration for TextWriter output in Save()
2221 * XmlElement.cs : Name character check should be done in .ctor().
2222 * XmlNamespaceManager.cs : Removed dangerous internal .ctor()
2224 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2226 * XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
2227 node can be it as well) and added check for Attributes existence
2228 in GetAttribute() and MoveTo*Attribute().
2230 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2232 * XmlTextWriter.cs : comment not in the content state is indented.
2233 This fixes bug #58247.
2235 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
2237 * XmlTextWriter.cs: In WriteStartAttribute, when the prefix is xmlns and
2238 the name is empty, convert it to a xmlns attribute.
2240 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2242 * XmlTextReader.cs : don't use NET_1_0.
2244 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2246 * XmlComment.cs. XmlProcessingInstruction.cs : missing commits.
2248 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2250 W3C DOM compliant read-only check support (buggy part in MS.NET).
2253 XmlCharacterData.cs,
2257 XmlSignificantWhitespace.cs,
2259 : CloneNode() - set read-only when copied node is read-only.
2260 Check IsReadOnly on attempt to modify value.
2262 XmlEntityReference.cs : Set descendant nodes read-only.
2263 * XmlAttributeCollection.cs,
2265 : Fixed incompatible exception type.
2266 * XmlEntityReference.cs : CloneNode() should not pass an empty string
2268 * XmlEntityReference.cs,
2269 XmlProcessingInstruction.cs : Check XML name validity.
2270 * XmlText.cs : CloneNode() does not have to check children.
2272 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2274 * XmlDeclaration.cs : More strict check on InnerText and Value.
2276 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2278 * DTDReader.cs, XmlConvert.cs, XmlDeclaration.cs, XmlImplementation.cs,
2279 XmlNode.cs : Culture independency fix.
2281 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2283 * XmlEntityReference.cs : Added XPathNodeType (just for workaround).
2284 This should really fix bug #57248.
2286 2004-04-20 Atsushi Enomoto <atsushi@ximian.com>
2288 * XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
2289 only an EntityReference (not navigatable) child. Bug #57248 fixed.
2290 * XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
2291 instead of WriteAttributes() only for MS.NET behavior compatibility.
2292 This change makes SgmlReader usable (due to SgmlReader bug).
2294 2004-04-10 Atsushi Enomoto <atsushi@ximian.com>
2296 * XmlParserContext.cs : Fixed .ctor() not to reference null namespace
2297 manager. This fixes bug #56770.
2299 2004-04-06 Atsushi Enomoto <atsushi@ximian.com>
2301 * DTDReader.cs : In ProcessDTDSubset(), 1)error message was
2302 generated with incorrect stream character, 2)entity nest check
2303 should not depend on line info which might not be supplied, 3)
2304 empty PE should be skipped.
2305 * XmlParserInput.cs : use index for StringBuilder instead of calling
2306 Remove() many times. This highly optimizes DTD parser.
2308 * XmlAttribute.cs : removed commented code.
2309 * XmlEntity.cs : removed unused field.
2311 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2313 * DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList
2314 only when they are required.
2316 XmlParserInput.cs : raw tag string now don't have to be kept, while
2317 it cost so much. Removed unused code. 20% to 30% memory got saved.
2318 * XmlNotation.cs : removed unused code.
2319 * XmlTextReader.cs : Removed unused code. ReadString() now uses
2320 XmlReader's internal method. Fixed BaseURI to be conformant with
2321 W3C XML InfoSet and (subsequently) xml:base specification (i.e.
2322 reflect xml:base attribute correctly).
2324 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2326 * XmlAttribute.cs : get_Value should return all children's value.
2327 * XmlCharacterData.cs : DOM's substring does not raise an error when
2328 startIndex + count exceeds the length of Data.
2329 * XmlNamedNodeMap.cs : SetNamedItem() returns the new child when it
2330 does not replace another named item.
2331 * XmlElement.cs : with related to the XmlNamedNodeMap change,
2332 SetAttributeNode() is required to fix as to return null when it does
2333 not replace existing attribute.
2335 2004-03-31 Atsushi Enomoto <atsushi@ximian.com>
2337 * XmlDocumentNavigator.cs : When this instance is created from xmlns
2338 attributes, it should be Namespace node.
2340 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
2342 * XmlReader.cs : ReadInnerXml() should progress reader when it is on
2343 an empty element. This fixes bug #56064.
2345 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
2347 * DTDReader.cs : In some places sequential parameter entity was
2348 incorrectly skipped (and caused invalid result).
2350 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2352 * XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
2353 namespace nodes which has the same name as already-iterated nodes.
2354 Also xmlns='' should not be selected, and once it appeared, default
2355 namespace should not be selected anymore.
2357 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2359 * XmlCharacterData.cs : ReplaceData() should reject negative integer
2360 value for count argument.
2361 * XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
2362 On RemoveNamedItem(), default attribute value should be restored.
2364 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2366 * XmlAttributeCollection.cs : Remove() should throw an exception when
2367 target attribute is not included in the collection.
2368 * XmlDocument.cs : ImportNode() should reject null node.
2369 * XmlNode.cs : Fixed type of exception for invalid insertion.
2370 It should throw an exception not only when the owner document of the
2371 reference element is different but its parent element is different.
2372 Some error message improvement.
2374 2004-03-21 Atsushi Enomoto <atsushi@ximian.com>
2376 * XmlReader.cs : ReadInnerXml() incorrectly tried to get output xml.
2377 This fixes bug #55856.
2379 2004-03-20 Atsushi Enomoto <atsushi@ximian.com>
2381 * XmlTextWriter.cs : Fixed indentation on CDATA. This fixes bug #55828.
2383 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
2385 * XmlImplementation.cs : HasFeature() returns true when strVersion
2388 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
2390 * XmlWhitespace.cs : Fixed WriteTo(). Whitespace nodes should be
2391 written regardless of document's PreserveWhitespace.
2393 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
2395 * XmlDocumentNavigator.cs : Value should return concatenated string for
2396 sequential text nodes. Considered detached nodes, the result of
2397 MoveToParent() should be checked.
2399 2004-03-15 Atsushi Enomoto <atsushi@ximian.com>
2401 * XmlReader.cs : ReadInnerXml()/ReadOuterXml() should not bork when
2402 the reader is on EndElement. Patch by Jean-Marc Andre.
2404 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
2406 * XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
2407 to return attribute node. It affects on IHasXmlNode.GetNode() and
2408 SelectNodes()/SelectSingleNode().
2410 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2412 * XmlImplementation.cs : fixity fix (I need NUnit runnable ;)
2414 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2416 * XmlImplementation.cs : forgot to commit (renaming internal case)
2418 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2420 * XmlDocument.cs : Implementation should not return null.
2422 2004-02-25 Atsushi Enomoto <atsushi@ximian.com>
2424 * XmlTextWriterOpenElement.cs : Reset() should reset _all_ fields.
2425 This fixes indentation bug.
2427 2004-02-19 Atsushi Enomoto <atsushi@ximian.com>
2429 * XmlTextWriter.cs : Fixed bugzilla #54554 (incorrent end tag output).
2431 2004-02-16 Atsushi Enomoto <atsushi@ximian.com>
2436 DTDValidatingReader.cs : made classes internal.
2437 * XmlDocument.cs : removed extra FIXMEs.
2438 * XmlNamedNodeMap.cs,
2441 Fixed incorrect method signature.
2443 2004-02-13 Atsushi Enomoto <atsushi@ximian.com>
2445 * DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs :
2446 say goodbye to sys.collections.specialized.
2447 (replaced the classes in that namespace with ArrayList or Hashtable)
2449 2004-02-12 Atsushi Enomoto <atsushi@ximian.com>
2451 * XmlReader.cs : For performance reason, XmlTextReader now uses
2452 base ReadInnerXml() and don't store currentTag array unnecessarily.
2453 * XmlTextReader.cs :
2454 - Fixed GetAttribute(int) that might cause index out of range.
2455 - Now it consumes the text reader by reading blocks, as MS.NET does.
2456 Modified GetRemainder(), PeekChar(), ReadChar() and so on.
2457 - Now it doesn't create Value string for linked nodes, unless it
2458 is actually required.
2459 - some code refactory.
2461 2004-02-11 Atsushi Enomoto <atsushi@ximian.com>
2463 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs :
2464 Reduced creation of openlElement. It also saves much memory.
2466 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
2468 * XmlNode.cs : ChildNodes should not create XmlNodeListChildren
2469 every time. This fix heavily improved performance.
2471 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
2473 * XmlAttributeCollection.cs : set owner element as parent on removal
2474 events (though they are not "parent" in infoset or dom context)
2475 * XmlElement.cs : Don't remove attributes twice (raises extraneous
2477 * XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
2478 Added NET_2_0 members.
2480 2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
2482 * DTDObjectModel.cs : Limit external entity reference from DTD by 256.
2483 foreach elimination. DTDParameterEntityDeclaration should set Root.
2484 Compute attribute default value without raising an error.
2485 (for non-error reporting reader)
2486 * DTDReader.cs : Fixes for the above fixes. foreach elimination.
2487 * DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
2488 XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
2489 XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
2490 XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
2491 XmlText.cs : foreach elimination.
2492 * XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
2493 foreach elimination. Removed unnecesary methods.
2494 * XmlTextReader.cs : code format refactory. Optimized some methods.
2495 foreach elimination. Replaced Stack with string array.
2496 Replaced StringBuilder with char array. Removed unnecessary methods.
2498 2004-02-06 Atsushi Enomoto <atsushi@ximian.com>
2500 * DTDValidatingReader.cs : Fixed MoveToElement() that causes incorrect
2501 IsDefault and Depth.
2502 * XmlAttribute.cs : Fixed .ctor(). Omit more namespace check when
2503 checkNamespace = false.
2504 * XmlNamedNodeMap.cs : Fixed SetNamedItem() to raise events.
2505 * XmlAttributeCollection.cs : Reimplemented InsertAfter to use
2506 InsertBefore() (similar to XmlNode).
2507 * XmlDocument.cs : Added internal .ctor(). Reimplemented ReadNode()
2508 as recursive, to make event order compatible.
2509 * XmlDocumentType.cs : Use SetNamedItem() (to raise events).
2510 * XmlElement.cs : Some refactory. Fixed SetAttributeNode() with
2511 string name to block prefixed name.
2512 * XmlEntity.cs : Don't raise events on setting contents.
2513 * XmlNode.cs : Some refactory. Added raiseEvent argument to internal
2515 * XmlEntityReference.cs : related fix for XmlNode change.
2516 * XmlTextReader.cs : When the reader is on "attributes" of xmldecl or
2517 doctype, Depth 1 lower than usual attribute. Split large function.
2519 2004-02-05 Atsushi Enomoto <atsushi@ximian.com>
2521 * XmlConvert.cs : ToSingle() and ToDouble() should be culture
2522 independent. Patch by Rodolfo Campero.
2524 2004-02-04 Atsushi Enomoto <atsushi@ximian.com>
2526 * DTDObjectModel.cs : Never expand entity on ScanEntityValue().
2527 * DTDValidatingReader.cs : XmlDeclaration node requires attributes
2531 XmlDocumentFragment.cs,
2537 Added namespace checking flag (required for such xml readers
2538 that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
2539 * XmlDocumentType.cs,
2541 XmlEntityReference.cs : The children of Entity and EntityReference
2542 became correct. They now holds parsed nodes, but it is only when
2543 they are appended to the document.
2544 * XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
2545 boolean checkNodeType argument. This method also tries to create
2546 Entity's and EntityReference's child nodes. Also added internal
2547 RemoveChild() with boolean checkNodeType argument.
2548 * XmlNodeReader.cs : Quick hack for ResolveEntity() that became
2549 broken with these changes. use InnerXml as input to entityReader.
2550 * XmlTextReader.cs : XmlDeclaration's value LocalName should be the
2551 same as Name. The names of DTD's pseudo attributes should be empty.
2552 Fixed DTD node's Depth (was regarded as attribute value's depth).
2554 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2556 * XmlTextReader.cs, DTDReader.cs : fixity fix ;)
2558 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2560 * ChangeLog : Fixed incorrect description that should be written for
2561 DTDValidatingReader.cs but written for DTDReader.cs.
2562 * DTDValidatingReader.cs : Fixes described in the last DTDReader fix.
2565 XmlConstructs.cs : Made XmlChar and XmlConstructs equivalent and
2566 replaced XmlChar with XmlConstruts, renaming "XmlChar" to
2567 "XmlCharCompact" and "XmlConstructs" to "XmlChar".
2568 (XmlChar will be used for compact framework.)
2569 * DTDReader.cs, XmlParserInput.cs, XmlTextReader.cs :
2570 XmlChar related changes. Support for surrogate pair.
2571 It cannot use TextReader's peek anymore (for surrogate pair).
2572 Character range check for PI value, attribute value, text
2573 * XmlTextWriter.cs : Change openElements from Stack to ArrayList.
2574 (It calls ToArray() every time.)
2576 2004-02-03 Alon Gazit <along@mainsoft.com>
2577 * XmlNamedNodeMap - now Item(int index) returns null for nodeList.Count
2578 instead of throwing ArgumentOutOfRangeException.
2580 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2582 * XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
2583 predefined entity names.
2584 * DTDObjectModel.cs : DTDxxxCollection now derives from
2585 - DTDCollectionBase that derives from DictionaryBase.
2586 - "Literal value" and "replacement text" are handled differently.
2587 - Throw XmlException when external entity could not be resolved.
2588 - Return ReplacementText for EntityValue.
2590 - Support IXmlLineInfo.
2591 - Fixed IGNORE section handling to be more strict.
2592 - Compute replacement text on reading entity declarations.
2593 - Don't expand char references before getting literal entity value.
2594 - Check not allowed parameter entity inside internal subset.
2595 * DTDValidatingReader.cs :
2596 - Added ValidateWhitespaceNode() to check whitespace's Validity
2597 Constraints on external elementdecl and standalone document.
2598 - When invalid data against its datatype was found, don't throw
2600 - Other code refactory.
2601 * XmlTextReader.cs :
2602 - Check for invalid Text pattern "]]>" should not depend on line
2603 info since it might not be supported.
2604 - Check referenced character's validity (WFC).
2606 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
2608 * DTDReader.cs : Added Normalization. Parameter Entity declaration
2609 should block invalid characters. (GEDecl should be fixed as well.)
2610 * XmlConstruct.cs : Should allow surrogate chars.
2611 * XmlNotation.cs : When prefix is empty (i.e. almost all cases)
2612 Name should not add ':'. Patch by Boris Kirzner.
2613 * XmlTextReader.cs : Modified private ReadCharacterReference() to
2614 return the character (or -1 when should not return anything).
2615 Now Text character reference are checked their character range.
2616 Set DTDReader.Normalization as well as the reader itself.
2618 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
2620 * DTDReader.cs : Make sure that parameter entities are not allowed
2621 inside internal subset unless it appears as a markupdecl.
2622 * DTDValidatingReader.cs : ENTITY or ENTITIES type attributes must have
2623 a value that indicates *unparsed* entity (i.e. NDATA required).
2625 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
2627 * XmlTextWriter.cs : quick performance fix.
2628 Reduced memoty allocation (e.g. 12% when writing XMLSchema.xsd.)
2630 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
2632 * DTDObjectModel.cs :
2633 - DTDNode's BaseURI should not always refer to that of DTD's.
2634 - Use absolute URI's .ToString() instead of AbsolutePath.
2635 * DTDReader.cs : Throw XmlException for illegal character references.
2636 * DTDValidatingReader.cs :
2637 - Share XmlResolver when the actual reader is XmlTextReader.
2638 (MS's XmlValidatingReader and XmlTextReader do this.)
2639 - Added its own EntityHandling property.
2640 * XmlValidatingReader.cs : Share XmlResolver with XmlTextReader.
2642 XmlTextReader.cs : Added new NET_2_0 members.
2643 * XmlElement.cs : Removed extra lines (caused by XmlTextWriter bugs).
2644 * XmlEntityReference.cs : Forgot to add, the real fix by Boris.
2646 2004-01-23 Atsushi Enomoto <atsushi@ximian.com>
2648 * XmlWriter.cs, XmlTextWriter.cs :
2649 Several namespace related fixes.
2650 - Current element's NamespaceURI should be immediately available
2651 after the call of WriteStartElement() for LookupPrefix(), so
2652 AddMissingElementXmlns() only affects on output. This is
2653 now identified by shouldCheckElementXmlns field.
2654 - Attribute's overraped xmlns should be ignored for LookupPrefix(),
2655 Especially, when the owner element is written with the default
2656 namespace. HOWEVER, the attribute should be *written*. This is
2657 identified by shouldAddSavedNsToManager field.
2658 - In AddMissingElementXmlns(), non-empty prefix namespace was not
2659 checked user-written attributes.
2660 - XmlWriter.WriteAttributeString() never supplies namespace URI for
2661 xmlns attributes for other versions than NET_1_0. Instead, added
2662 ns check logic in WriteStartAttribute() only with NET_1_0.
2663 - WriteEndAttribute() should reject zero-length namespace for
2664 non-default xmlns declarations.
2665 - LookupPrefix() should reject argument null and empty.
2667 (added 2004-01-24 : forgot to mention more)
2668 - WriteAttributeString() w/o namespace should supply null, not ""
2669 - Added .NET 1.2 members.
2670 - Regard any name with "xml" prefix as in "namespace for XML".
2672 2004-01-22 Atsushi Enomoto <atsushi@ximian.com>
2674 * XmlElement.cs : Reverted previous fix since it broke monodoc web
2677 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
2679 * XmlNode.cs : When adding a node to child list, it should reject its
2680 ancestors. Patch by Boris Kirzner.
2681 * XmlNodeReader.cs : Related fix to the fix above. It should not move
2682 to children of XmlEntityReference nodes.
2683 * XmlTextWriter.cs : FixedWriteStartElement() not to write default
2684 namespace when ns is null (while ns is "", it writes default ns).
2685 * XmlElement.cs : Fixed WriteTo() to call WriteStartElement(localName)
2686 when NamespaceURI is an empty string.
2688 2004-01-14 Atsushi Enomoto <atsushi@ximian.com>
2690 * XmlAttribute.cs : when set a value, it is no longer default
2691 (even if the value is the same as default value).
2692 * XmlAttributeCollection.cs : Remove() should recover default attribute
2693 value to default, not specified value.
2694 Patch by Boris Kirzner (modified a bit)
2695 * XmlDocument.cs : Reference to undeclared entity is not allowed in
2696 Load(), while allowed in ReadNode(). Added such distinguishing logic.
2698 2004-01-13 Atsushi Enomoto <atsushi@ximian.com>
2700 * XmlValidatingReader.cs : Throw exception only in case of errors.
2701 Added NET_2_0 Evidences property.
2703 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
2705 * XmlElement.cs : Fixed .ctor(). Default attribute was not treated as
2706 Specified = false. Patch by Boris Kirzner.
2708 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
2710 * XmlException.cs : Fixed incorrect .ctor signature.
2711 * XmlParserInput.cs : Fixed in sync with the above fix.
2713 2004-01-08 Atsushi Enomoto <atsushi@ximian.com>
2715 * XmlAttribute.cs, XmlElement.cs :
2716 Fixed incorrect protected .ctor modification.
2718 2004-01-08 Nick Drochak <ndrochak@ieee.org>
2720 * DTDValidatingReader.cs: Removed unused variable
2722 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2724 * XmlNamespaceManager.cs : Implemented .NET 1.2 methods that take
2725 atomizedNames argument.
2726 * XmlTextReader.cs : Use new namespace manager methods.
2727 Reduced NameTable.Add().
2728 * DTDObjectModel.cs : fixed incorrectly commented-out line.
2730 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2732 * XmlAttribute.cs, XmlDocument.cs, XmlElement.cs :
2733 set_Prefix should atomize to name table.
2734 Avoided extraneous atomization attempt a bit.
2736 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2738 * DTDObjectModel.cs, DTDReader.cs, XmlSecureResolver.cs :
2739 avoiding obvious exception.
2740 * DTDReader.cs, XmlTextReader.cs : Some optimization.
2741 Avoided extraneous PeekChar() and reduced name string creation.
2743 2004-01-05 David Sheldon <dave-mono@earth.li>
2745 * XmlTextReader.cs: Fixed constructors taking string url to not
2746 loose the absolute part of the path.
2748 2004-01-04 Atsushi Enomoto <atsushi@ximian.com>
2750 * XmlDocument.cs : Fixed Load() to set XmlResolver correctly. Patch
2751 by Benjamin Jemlich.
2752 Assure closing XmlTextReader which are internally used.
2754 2004-01-03 Atsushi Enomoto <atsushi@ximian.com>
2756 * XmlTextWriter.cs : trivial character-case fix
2757 * XmlUrlResolver.cs : It downloads network stream content at
2758 GetEntity() call. You can try like below:
2759 for (int i=0;i<100;i++) u.GetEntity(url, null, typeof(Stream));
2761 2003-12-23 Atsushi Enomoto <atsushi@ximian.com>
2763 * XmlNamedNodeMap.cs : Fixed internal SetNamedItem(node, pos) to set
2764 replacing node correctly. This fixes bug #52453.
2766 2003-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2768 * XmlDocument.cs, XmlElement.cs, XmlNode.cs :
2769 GetElementsByTagName() - Fixed bugzilla #52419, refactored,
2770 and moved private implementation methods to XmlNode class.
2772 2003-12-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2774 * XmlTextWriter.cs :
2775 Element's namespace should be escaped as usual attribute.
2777 2003-12-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2779 * XmlTextWriter.cs : Indentation between xmldecl and doctype.
2780 * DTDValidatingReader.cs : AttList null reference fix.
2782 2003-12-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2784 * DTDValidatingReader.cs : Validity check and entity expansion were
2786 * DTDObjectModel.cs, DTDReader.cs, XmlInputStream.cs :
2787 Going to remove XmlInputStream. XmlStreamReader might be replacable.
2789 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2791 * XPathDocument2ChangedEventHandler.cs : fixed incorrect argument.
2792 * Moved UpdateEventHandler.cs and XmlUpdateEventArgs.cs to sqlxml.
2794 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2796 * XmlTextReader.cs : BaseURI was broken. This fixes bug #52098.
2798 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2800 * XmlUrlResolver.cs : GetEntity() does not return direct network stream
2801 that may hold up connection. Now it reads up all the content stream.
2803 2003-12-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2805 * XmlAttributeCollection.cs,
2806 XmlElement.cs : Fixed bug #51415.
2807 When adding attribute to an element using Attributes, it failed.
2809 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2811 * XmlDocument.cs : Fixed ReadNode() to call AppendChild() to document
2812 after setting all attribute nodes. Modified ReadNode() to handle
2813 Depth comparison and error handling (!= to <). It allows MS's
2814 SgmlReader bug that returns incorrect Depth.
2816 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2818 * XmlDocumentNavigator.cs : Fixed MoveToNextAttribute (and
2819 MoveToNextNamespace) that might result in NullReferenceException.
2820 patch by Sanjay Gupta. This fixed bug #51941 (and possibly #51415)
2822 2003-12-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2824 * XmlUrlResolver.cs : Update with recent System.Uri change. This fixes
2825 bugzilla #51808 (patch by Jeroen Zwartepoorte, a bit modified).
2827 2003-12-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2829 * XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
2830 * XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
2831 This may fix bug #51415.
2833 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2835 * XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".
2837 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2839 * XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
2840 shouldn't expect non-empty element content. This will fix bug #48287.
2842 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2844 * XmlTextWriter.cs : When element's namespace should be overwritten by
2845 one of its attribute, if exist as such. This fixes bug #51305.
2847 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2849 * DTDValidatingReader.cs : Fixed ReadContent() which may result in
2850 invalid additional Text node.
2852 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2854 * XmlTextWriter.cs :
2855 On WriteProcessingInstruction(), ArgumentException() is expected ;-)
2857 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2859 * XmlTextWriter.cs :
2860 WriteProcessingInstruction() should check name validity.
2861 AddMissingElementXmlns() should allow namespace emission even if it
2862 is identical to existing one.
2864 2003-11-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2866 * XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.
2868 2003-11-20 Eran Domb <erand@mainsoft.com>
2870 * XmlTextWriter.cs (WriteStartAttribute) : Check if the ket already exists in the newAttributeNamespaces table
2871 before trying to add it to the table.
2873 2003-11-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2875 * DTDValidatingReader.cs : Replaced entity should not treat whitespaces
2877 * XmlNode.cs : Removed extraneous MonoTODOs.
2879 2003-11-17 Jackson Harper <jackson@ximian.com>
2881 * XPathEditor.cs: .net 1.2 only
2883 2003-11-17 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2885 * AsyncXmlTextWriter.cs, IXPathChangeNavigator.cs, IXPathEditor.cs,
2886 IXPathNavigator.cs, IXmlDataEvidence.cs, IXmlNamespaceResolver.cs,
2887 UpdateEventHandler.cs, XPathChangeNavigator.cs, XPathDocument2.cs,
2888 XPathDocument2ChangedEventAction.cs,
2889 XPathDocument2ChangedEventHandler.cs, XPathEditor.cs,
2890 XPathNavigator2.cs, XmlChangeFilters.cs, XmlInfoItemType.cs,
2891 XmlNamespaceScope.cs, XmlNodeChangeType.cs, XmlQualifiedNameTable,cs,
2892 XmlQueryDialect.cs, XmlUpdateEventArgs.cs
2893 : Added .NET 1.2 classes (for convenience of ObjectSpaces stubbing).
2895 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2897 * XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
2898 to skip XmlEntityReference.
2899 * XmlTextWriter.cs : Fixed AddMissingElements() and
2900 WriteStartAttribute() not to emit extraneous xmlns.
2902 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2904 * XmlTextWriter.cs : Skip multiple xmlns when element and any of
2905 attributes have the same xmlns values.
2906 WriteEndElement() allows open attribute (calles WriteEndAttribute()).
2907 Indentation should be inserted between ">" and "</xxx>" .
2909 2003-11-02 Pedro MartÃnez Juliá <yoros@wanadoo.es>
2911 * XmlConvert.cs: Only parse INF/-INF/NaN. Other Infinty or NAN
2912 numbers are parsed with the respective ::Parse method.
2914 2003-11-01 Pedro MartÃnez Juliá <yoros@wanadoo.es>
2916 * XmlConvert.cs: Revert my last change. INF and -INF must be
2917 processed here because Double::Parse and Single::Parse doesn't
2918 understand anything of parsing [-]INF.
2920 2003-11-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2922 * XmlDocument.cs : Save(Stream) should not close the stream.
2924 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2926 * DTDReader.cs, DTDValidatingReader.cs, XmlInputStream.cs,
2927 XmlTextReader.cs : More cleanup.
2928 * XmlDocument.cs : Removed CheckName(). Code cleanup.
2929 * XmlElement.cs : .ctor() now adds default attributes (if required).
2930 * XmlAttribute.cs, XmlElement.cs, XmlEntity.cs, XmlEntityReference.cs,
2931 XmlNotation.cs : Now uses OwnerDocument's NameTable.
2933 2003-10-25 Pedro MartÃnez Juliá <yoros@wanadoo.es>
2935 * XmlConvert.cs: Support for the sign in double and single. The
2936 processing of the infinites and nan numbers are more complex than
2937 comparing to "INF" so we must let Double::Parse and Single::Parse
2940 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2942 * DTDValidatingReader.cs : Now it handles whitespace entity as
2944 * XmlConvert.cs : As to NIST testcases, exponential support on single
2945 and double floating point numbers.
2946 * XmlValidatingReader.cs : If it IsDefault, then line number and line
2949 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2954 XmlWriter.cs : Fixed incorrect access modifier.
2955 * XmlTextWriter.cs : Imported state variable from XmlWriter.
2956 * DTDValidatingReader.cs : Removed extraneous MonoTODO.
2957 * XmlConvert.cs : Implemented ToTimeSpan().
2958 Modified ToDateTime() to reuse the same array.
2960 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2962 * XmlAttributeCollection.cs : Fixed synchronization stuff.
2963 * XmlConvert.cs : Added two FromBinHexString() methods.
2964 * XmlTextReader.cs : Modified to use one of the above method.
2965 * XmlValidatingReader.cs : XsdValidatingReader.XmlResolver will be
2966 disabled (in the next commit), so resolver won' be set to it.
2967 Attempt to validate against XDR now throws NotSupportedException.
2969 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2971 * XmlChar.cs : added WhitespaceChars, used in common.
2976 XmlTextWriter.cs : String.Trim()
2977 * XmlConvert.cs : shifted XmlConstructs to XmlChar.
2978 * XmlTextReader.cs : Implemented Normalization.
2980 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2982 * XmlNode.cs : GetPrefixOfNamespace() also contained a bug similar to
2983 GetNamespaceOfPrefix() fixed at 2003-10-13.
2984 * XmlTextReader.cs : ReadBase64() should keep incomplete base64 block
2985 which remained by previous call of this method.
2986 * XmlUrlResolver.cs : Added assertion for file Uri path's absoluteness.
2987 * XmlValidatingReader.cs : Notice about intention of XDR won't be
2988 supported (at least in Mono 1.0).
2990 2003-10-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2992 * XmlDocument.cs : CloneNode() does not copy PreserveWhitespace.
2993 * XmlWriter.cs : Calling WriteNode() with XmlReader whose state is
2994 XmlDeclaration now calls WriteProcessingInstruction(). This fixes
2995 testcase XmlWriterTests.WriteNodeFullDocument().
2996 * XmlTextWriter.cs : Added LAMESPEC comments related to above.
2998 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3000 * XmlDocument.cs : Fixed bugzilla #49607. Save() outputs XML
3001 declaration even though there is no XmlDeclaration child.
3002 * XmlTextReader.cs : Fixed Init() so that ResetState() should work.
3004 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3006 * XmlTextWriter.cs : Implemented WriteSurrogateCharEntity().
3007 Reverted my recent extraneous check in WriteStartAttribute().
3009 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3011 * XmlNode.cs : GetNamespaceOfPrefix() should check Attributes existence.
3012 And it should throw ArgumentNullException.
3014 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3016 * XmlAttribute.cs : Fixed InnerText that did not removed its content
3017 if there is two or more children.
3018 * XmlNode.cs : XmlNode.cs : Fixed bugzilla #49580 (1)to return "",
3019 (2)not to compare NodeType for detached nodes, (3)optimization to
3020 compare element's prefix.
3021 * XmlSecureResolver.cs : Removed extraneous members.
3023 2003-10-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3025 * Added DTDReader.cs. It is almost importation of XmlTextReader.
3026 * DTDObjectModel.cs :
3027 - More .NET-ism. Properties took place of fields.
3028 - Imported PE set from XmlTextReader. Added location info.
3029 - Added DTDEntityBase common to PE and GE.
3030 - More correct text declaration handling with new XmlTextReader.
3031 * DTDValidatingReader.cs :
3032 - Now uses entity resolving XmlTextReader to validate attributes
3033 correctly. Implemented standalone
3034 - Standalone and default related validity constraints check.
3035 * XmlImplementation.cs: Implemented HasFeature().
3036 * XmlNode.cs : Implemented Supports().
3037 * XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
3038 * XmlParserInput.cs : Removed extraneous members.
3039 * XmlTextReader.cs :
3040 - All DTD related functionality now goes to DTDReader.cs
3041 - It became old simple TextReader input style.
3042 - Implemented GetRemainder().
3043 - Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
3044 additional new private method ReadUntilEndTag().
3045 - Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
3046 ReadXmlDeclaration() now became simple.
3047 - More strict entity reference check at SetEntityReferenceProperty()
3048 - Removed extraneous members.
3049 * XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.
3051 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3053 * XmlTextReader.cs: when we get an unexpected EOF in ReadContent, set
3054 the state before throwing the exception if depth > 0.
3056 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3058 * XmlAttribute.cs : Removed extraneous MonoTODO.
3059 * XmlTextWriter.cs : Implemented WriteBinHex() and WriteChars().
3060 WriteStartElement() and WriteStartAttribute() should ignore Prefix
3061 if namespace uri is not specified.
3063 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3065 * XmlDocumentFragment.cs,
3067 XmlEntityReference.cs : Removed extraneous MonoTODO.
3068 * XmlNode.cs : Implemented Normalize().
3069 * XmlNodeReader.cs :
3070 - AttributeCount and HasAttributes should return its owner element's
3071 value, to be consistent with XmlTextReader.
3072 - Fixed Depth to reflect correct attribute/attribute-value iteration.
3073 - simplified ownerElement and HasValue.
3074 - Prefix won't return null.
3075 - MoveToElement() should also work against attribute value nodes.
3076 * XmlTextReader.cs : MoveToElement() should return false if it is
3077 positioned at element itself.
3079 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3081 * XmlTextReader.cs : Improved SignificantWhitespace handling.
3083 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3085 * XmlSecureResolver.cs : Implemented basic feature.
3087 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3089 * XmlUrlResolver.cs : Should work with null type argument.
3091 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
3093 * XmlTextWriter.cs : An attribute can require a prefix for the default
3094 namespace, so we need to store the prefix as well as the namespace.
3096 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3098 * DTDValidatingReader.cs : Simplified to use
3099 XmlSchemaUtil.GetParserContext().
3100 * XmlValidatingReader.cs : ValidationType.Auto should always use
3101 XsdValidatingReader because xsi:schemaLocation might be used.
3103 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3105 * XmlTextReader.cs : Attribute value token properties were incorrectly
3106 set by the linked node.
3108 2003-09-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3110 * XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
3111 considers such case that target node was not adapted to the document.
3112 * XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
3113 * XmlTextWriter.cs : use 'as' instead of 'try..catch'.
3115 2003-09-25 Ben Maurer <bmaurer@users.sourceforge.net>
3117 * XmlNode.cs (XPathNodeType): Give more useful debugging message.
3118 * XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
3121 2003-09-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3123 * XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
3124 recovery was still not enough. Fixed GrowScopes() (incorrect index).
3126 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3128 * XmlTextReader.cs :
3129 - Fix for bugzilla #48337 (containing Ben's advice on that).
3130 - Added internal XmlTokenInfo classes. Nodes are now handled as token
3131 objects (linked node, attributes and attribute values). Most of the
3132 node state properties and iterating methods are changed to refer to
3133 the token classes (except for value builder availability). Removed
3134 fields which are never used. CompileDTDSubset() is changed in
3135 reflection to nodeType field removal.
3136 - Fixed Depth that should vary in moving between attributes and/or
3137 reading attribute values.
3138 - LineNumber and LinePosition now returns more correct location.
3139 - Fixed Value that should still return true if its value is an empty
3140 attribute value string.
3141 - EntityValue is checked WFC constraints even thoug it is not used.
3142 - All .ctor() now initializes ReadState as Initial.
3143 - Read() should be available for attribute value constructor.
3144 * XmlAttribute.cs : set_InnerXml() now calls reader's Read().
3146 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3148 * XmlNamespaceManager.cs: PopScope() must retain those namespaces which
3149 are added in the scope before PushScope() was called.
3151 2003-09-20 Ben Maurer <bmaurer@users.sourceforge.net>
3153 * XmlNamespaceManager.cs: Rewrote. Uses arrays, rather than linked
3154 lists and removes uses of Hashtable. Results in huge speed gains.
3156 2003-09-19 Ben Maurer <bmaurer@users.sourceforge.net>
3158 * XmlConvert.cs: NaN.ToString () != INF.
3160 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
3162 * XmlTextWriter.cs: Attributes that have a namespace must be always
3165 2003-09-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3167 * XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
3169 * XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
3170 Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
3171 add Namespaces immediately, but adds at AddMissingElementXmlns so
3172 that we don't have to have extra check than namespaceManager's
3173 LookupPrefix(). 2) Removed writtenAttributes for performance reason
3174 since it is no more required.
3176 2003-09-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3178 * XmlDocument.cs : patch by Jonathan Hogg. Fixed CreateAttribute()
3179 that handled xmlns attributes inproperly.
3181 2003-09-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3183 * XmlNamespaceManager.cs : GetEnumerator() should return all of the
3184 available pairs (of prefix and namespace).
3185 * XmlQualifiedName.cs : Quick fix for NullReferenceException in case
3186 of name (or ns) is null. (The description of the immediate previous
3187 changes will be inserted below.)
3188 * XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
3189 * XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
3190 will release resources it had allocated.
3192 2003-09-01 Ben Maurer <bmaurer@users.sourceforge.net>
3194 * XmlDocument.cs (Save): use the encoding of the document, if
3197 2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3199 * XmlValidatingReader.cs : Implemented SchemaType. Added support for
3200 ValidationType.Schema. Added support for XmlResolver. Fixed
3201 ReadTypedValue() not to consume EndElement.
3203 2003-08-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3205 * XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
3207 * XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
3208 Commented out Console.Error.WriteLine().
3209 * XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
3210 escape and unescape for relative URI string.
3212 2003-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
3214 * XmlParserContext.cs: Make each context inherit next.
3216 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3218 * XmlChar.cs (IsWhitespace): Spare enumerator allocation.
3219 * XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
3220 fat, use low-fat loops instead. Even better, call the function
3221 inside XmlChar for code reuse.
3222 * HighWaterStack.cs (added): New class that acts like a Stack, but
3223 helps with memory allocation.
3224 * XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
3226 * XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
3227 use a variable that stores the position in the ArrayList.
3229 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3231 * XmlTextWriter.cs: Begin diet. String.Format has too much
3232 saturated fat, lets replace with the fat-free .Write ()
3233 calls. Effects best seen when Paolo's StreamWriter patch is
3236 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3238 * XmlNodeReader.cs : Fixed ReadAttributeValue() that might result in
3239 vanishing current node.
3241 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3243 * DTDValidatingReader.cs : Added SchemaType.
3244 Read() Assures to return to element.
3245 * DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
3246 * XmlReader.cs : ReadString() should be virtual in NET_1_1.
3247 * XmlTextReader.cs : 1) Depth should consider Attribute and its values.
3248 Introduced insideAttribute field to support them.
3249 2) ReadAttributeValue() should consider empty string.
3250 * XmlValidatingReader.cs :
3251 Fixed several properties which premised as if it was already read.
3252 Encoding and Namespaces now throws NotSupportedException for other
3254 Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
3256 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3258 * XmlInputStream.cs : Reverted CanSeek as to return false anyway.
3260 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3262 * DTDObjectModel.cs : added XmlResolver related members. Added
3263 invalid entity recursion logic. Added encodingdecl check on textdecl.
3264 * DTDValidatingReader.cs : It now implements IHasXmlParserContext.
3265 * XmlChar.cs : IsPubidChar() should not allow TAB(	).
3266 * XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
3267 to receive DTDObjectModel to support other than XmlTextReader.
3268 2) Most of its public member is now based on DTDObjectModel.
3269 * XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
3270 2) ReadNode() now considers XmlParserContext's DTDObjectModel for
3271 other than XmlTextReader (such as XmlValidatingReader).
3272 * XmlNode.cs : code cleanup only.
3273 * XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
3274 * XmlTextReader.cs : 1) Illegal entity reference check logic was moved
3275 from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
3276 change on ReadEntityReference(). 3) ReadAttribute() now checks
3277 reference to external entity reference. 4) Added textdecl encoding
3278 check. 5) DTDObjectModel fields are now set correctly. 6) added
3279 PERef markup nest check. 7) If PEDecl was not found, it might be WFC
3280 violation, not only be VC violation. 8) ReadEntityDecl() now receives
3281 its declared entity itself, and this method checks IsInternalSubset.
3282 * XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
3283 2) ValidationType.None should be the same as Auto, not DTD (in the
3284 future it should keep xml schema's default values).
3286 Pending Stuff in XmlTextReader which breaks some NUnit tests;
3287 1) SetEntityReferenceProperies() has check for illegal references.
3288 2) ReadAttribute(bool) has similar check for illegal references.
3290 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3292 * DTDAutomata.cs : Fixed (modified or added) TryEndElement() of choice,
3293 sequence and oneOrMore. Fixed DTDChoiceAutomata.TryStartElement().
3295 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3297 * XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
3298 and supplied SkipWhitespace() as they needed. It broke monodoc.
3299 Fixed ReadEntityValueDecl() to get correct value.
3301 2003-08-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3303 * XmlInputStream.cs :
3304 Fixed Initialize() that might result in incorrect buffer.
3305 CanRead and Position should consider buffer (especially when the
3307 CanSeek should use stream's CanSeek.
3309 * XmlChar.cs : added GetPredefinedEntity().
3310 * DTDObjectModel.cs :
3311 - Modified ComputeDefaultValue() to use it.
3312 - Fixed NormalizedDefaultValue not to expect parsed value as string.
3313 - ResolveExternalEntity now detects invalid standalone specification.
3314 - DTDParameterEntityDeclaration.Value is now changed to property and
3315 keep its resolved value of literal value of external value using
3316 new Resolve (XmlResolver) method (called only by XmlTextReader).
3317 * DTDValidatingReader.cs :
3318 - It now handles entity-expanded Whitespace and SignificantWhitespace
3319 correctly. Does not raise unexpected text not allowed error.
3320 - Fixed MoveToAttribute()s to move internal reader correctly, and
3321 should be able to move in other cases than on element node.
3322 - On Read()ing document type and ResolveEntity(), it now sets
3323 XmlResolver on text reader.
3324 - On ID constraints check and type verification, it now uses
3325 normalized attribute or its tokenized value(s).
3326 - Fixed ValidateAttributes() to add default values when
3327 ValidationType is Auto.
3328 * XmlParserContext.cs : added internal Dtd setter.
3329 * XmlParserInput.cs :
3330 InsertParameterEntityBuffer() should add surrounding whitespaces.
3331 Removed unused code block.
3332 * XmlTextReader.cs :
3333 - Modified ReadReference(), ReadAttribute() and Dereference() to use
3334 XmlChar.GetPredefinedEntity().
3335 - When returning entity reference, it checks extity declaration
3336 existence in certain conditions.
3337 - ReadAttribute() now skips general entity replacement on reading
3339 - ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
3340 - ReadXmlDeclaration() holds isStandalone, which might be used in
3341 entity reference's well-formedness check.
3342 - internal 'DTD' now uses XmlParserContext.Dtd.
3343 - isInternalSubset was meaningless. Now uses input stack's Count.
3344 - Added some required SkipWhitespace().
3345 - Several parameter entity handling changes. Added GetPEValue(name).
3346 TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
3347 now uses its Resolve() when it was external PE. Now it uses value
3348 buffer instead of currentTag, to efficiently read (included) PE.
3349 CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
3350 ImportAsPERef() simply inserts the value to currentInput.
3351 ReadEntityDecl() also uses value buffer. Removed non-used methods.
3352 - Default attributes are now stored in normalized form.
3353 - Dereference() now considers non-expanding predefined entities.
3354 * XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
3355 is more correctly supported.
3357 * XmlAttributeCollection.cs :
3358 When removing default attribute, it immediately inserts the attribute.
3359 RemoveAll() should consider default (not-removable) attributes.
3361 Should have its default XmlResolver. Added Internal Resolver.
3362 Some Load() should use its XmlResolver.
3363 ImportNode() should copy its children in node level, not value level.
3364 It also have to consider not to copy default attribute on importing
3366 * XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
3368 XmlDocumentFragment.cs.
3369 XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
3370 * XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
3371 ResolveEntity() uses XmlResolver on entityReader.
3373 2003-08-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3375 * DTDObjectModel.cs :
3376 - Added validation error check (and AddError(), Errors).
3377 - Fixed ComputeDefaultValue() to handle various references correctly.
3378 - DTDEntityDeclaration.EntityValue became property, and added
3379 LiteralEntityValue. The new one holds resolved value.
3380 Added ResolveExternalEntity(). It now required root in .ctor().
3381 * DTDValidatingReader.cs :
3382 - Now it handles namespaced attributes (as input to xsd validator).
3383 - Added XmlResolver property as usual XmlReader.
3384 - Added currentEntityHandling field so that it can stand changing
3385 XmlValidatingReader's EntityHandling dynamically.
3386 - FilterNormalization() now requires name for getting datatypes and
3387 can stand for non-current attribute normalization.
3388 - Splitted ReadContent() from Read() that can be called recursively
3389 when expanding entities.
3390 - Now handles Entity not found error *after* resolution of entities,
3392 - Read()ing DTD checks its Errors and raises validation error events.
3393 In some situations, DTD parsing may detect VC error, not WFC error.
3394 It also strictly checks NData existence.
3395 - Handling of entity-resolved text is a bit changed and Read()ing
3396 element, endElement, cdata now changed to switch collecting text
3398 - content type ANY should allow texts.
3399 - Added enumerated attribute validity check.
3400 - Added Name/Names creation rule check for ID/IDREF/IDREFS.
3401 - Added entity existence check for ENTITY/ENTITIES attributes.
3402 - Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
3403 - Fixed to remove extraneous #REQUIRED check.
3404 - Contributing default attribute is now only applied to the case
3405 ValidationType is DTD or None.
3406 - ResolveEntity() now handles external entities.
3407 Added Mono.Xml.IXmlParserContext interface support.
3408 * XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
3409 * XmlTextReader.cs :
3410 - Fixed ReadAttributeValue() to reset returnEntityReference.
3411 - Added bool MaybeTextDecl only for ResolveEntity().
3412 - Fixed ReadWhitespace(). In fact its value is considered even if it
3413 is in the end of the XML.
3414 - Fixed ReadXmlDeclaration(). Now skips text declaration.
3415 - CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
3416 - ReadContentSpec() should set OrderType = OR for mixed model.
3417 Fixed to set content element name correctly.
3418 - ImportAsPERef() now skips Text declaration.
3419 - Type of enumerated default attributes shold be string.
3420 - Undeclared PE error is now handled as DTD's VC error, not
3421 XmlTextReader's WFC error.
3422 * XmlValidatingReader.cs : BaseURI should provide that of
3423 original XmlReader's when read was not started yet.
3424 Fixed XmlResolver to delegate to DTDValidatingReader.
3426 * XmlAttributeCollection.cs : Acquiring attList declaration is
3427 insufficient especially in case of lack of elementdecl.
3428 * XmlChar.cs : (Maybe this is compact than XmlConstructs.)
3429 added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
3430 IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
3432 * XmlInputStream.cs : Removed "version" declaration check. It should
3433 be done by XmlTextReader.
3435 * XmlNodeReader.cs : added internal GetInternalParserContext() and now
3436 it can be used in XmlValidatingReader.ResolveEntity().
3437 ResolveEntity() sets XmlTextReader.MaybeTextDecl.
3439 2003-08-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3441 * DTDValidatingReader.cs :
3442 Added full ExpandEntities support for text node and entity reference
3443 node (although require many usage tests). Almost all methods and
3444 properties now have currentTextValue != null check, that field means
3445 that there are cached (entity-resolved) text.
3446 Implemented default attribute aware XmlLang and XmlSpace.
3447 * XmlNodeReader.cs : ResolveEntity() should not require DTD.
3449 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3451 * DTDValidatingReader.cs,
3455 XmlValidatingReader.cs : fixed pragma USE_VERSION_1_0 to NET_1_0.
3457 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3459 * DTDObjectModel.cs : Added BaseURI (but not used yet).
3460 DTDAttListDeclaration.ctro() now requires root dtd object model.
3461 * DTDValidatingReader.cs : Read() now expands EntityReference if
3462 entity handling of validating reader is ExpandEntities.
3466 XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
3467 ReadOuterXml which are modified in MS.NET 1.1.
3468 * XmlConstructs.cs : added int version of IsValid, IsInvalid,
3469 IsContent, IsMarkup and IsNCNameStart.
3470 Fixed int version of IsXXX() to check array index range.
3471 Added IsValidName (string).
3472 * XmlTextReader.cs :
3473 - Read() handles document with non document element as an error.
3474 - ReadText() and ReadCharacterReference() checkes illegal characters.
3475 - ReadEntityReference() checks name validity.
3476 - ReadProcessingInstruction() rejects such name that starts with
3477 "xml" ignoring case, and checks attributes more strictly.
3478 - ReadDeclaration() rejects unrecognized kind of declaration.
3479 - In many places, added "required whitespace" check in DTD markup.
3480 - DTD content model now disallows mixing use of '|' and ','.
3482 2003-08-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3484 * XmlDocumentFragment.cs : I missed to add it in relation to the
3485 previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
3486 * XmlNodeReader.cs : removed some TODO attributes.
3487 * DTDValidatingReader.cs,
3488 XmlValidatingReader.cs : Implemented ResolveEntity().
3490 2003-07-31 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3492 * XmlParserContext.cs,
3494 XmlElement.cs : Added internal Dtd and new internal XmlParserContext
3495 .ctor() that takes DTDObjectModel. And then rewrote classes which
3496 uses DTD information. Changed DocTypeName, InternalSubset, PublicId
3497 and SystemId to use DTDObjectModel.
3498 * DTDObjectModel.cs :
3499 Added DTDObjectModel.InternalSubsetHasPEReference.
3500 Added DTDEntityDeclaration.IsInternalSubset.
3501 * XmlTextReader.cs :
3502 Added internal GetInternalParserContext (to build entity reader).
3503 Added private isIntSubset to check if the DTD subset is internal or
3504 external, which might affect well-formedness constraints.
3505 Changed GenerateDTDObjectModel to return the resulting DTD model.
3507 * XmlEntityReference.cs : implemented BaseURI.
3508 * XmlNodeReader.cs :
3509 - Implemented ResolveEntity() and CanResolveEntity(). In fact
3510 it leads too many changes on almost all methods and properties,
3511 since they now must be aware of entityReader.
3512 - fixed ownerElement that might be used to return from attribute
3513 value to the element through parent attribtues.
3514 - Now changed indexer to call GetAttribute() and moved actual logic
3515 to the matching GetAttribute() methods.
3517 2003-07-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3519 * XmlNode.cs : fixed internal ConstructNamespaceManager() for InnerXml
3520 not to create extraneous xmlns="".
3522 2003-07-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3524 * DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
3525 attribute declaration should be got independently of elementdecl.
3527 Added internal SetDefault() to mark as default.
3528 Removed InnerText implementation that is just the same as XmlNode.
3529 * XmlDocument.cs : id shouldn't be removed from table at 'trying' to
3530 get matching elements. ReadAttributeNode() now sets default mark.
3531 * XmlElement.cs : WriteTo() should ignore default attributes.
3532 * XmlTextWriter.cs : shuold allow valid name char such as digits.
3534 2003-07-27 Piers Haken <piersh@friskit.com>
3536 * XmlQualifiedName.cs : fields should never be null
3538 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3540 * XmlDocumentFragment.cs : added XPathNodeType indicating Root.
3542 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3544 * XmlDocument.cs (GetIdenticalAttribute): restored OwnerElement.IsRooted
3546 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3548 * XmlLinkedNode.cs : added internal IsRooted.
3550 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3552 * DTDValidatingReader.cs :
3553 - Added ID support in ValidateAttributes().
3554 - More refined ReadAttributeValue() support for non-expanding entity
3556 - It should handle LocalName, Name, Prefix, NamespaceURI and Value
3557 correctly when the reader is on each of the value nodes of an
3558 attribute. Now XmlDocument.ReadNode() should work well.
3560 - added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
3561 RemoveIdenticalAttribute()
3562 - Implemented GetElementById().
3563 * XmlAttributeCollection.cs :
3564 - added private ownerDocument property and replaced
3565 ownerElement.OwnerDocument with it.
3566 - Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
3567 It calls XmlDocument.{Add|Remove}IdenticalAttribute().
3568 - Added RemoveIdenticalAttribute() and it is used in Remove().
3569 (I also added AddIdenticalAttribute() but is not used.)
3571 2003-07-26 Duncan Mak <duncan@ximian.com>
3573 * XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
3574 for OwnerElement.IsRooted to fix the build..
3576 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3578 * XmlDocumentType.cs :
3579 modified private DTD to dtd and added internal DTD (the same thing).
3581 Fixed SetAttributeNode() to check if specified attribute is already
3582 set to the other element. In fact it is W3C DOM's specification but
3583 MS.NET 1.0 failed to catch it.
3584 * XmlTextReader.cs :
3585 ReadAttributeValue() should check if the value of the attribute is
3586 already read when the whole value is entity reference.
3587 Also, Name of text nodes should be "", not "#text"
3589 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3591 * XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
3592 with http://www.w3.org/XML/1998/namespace.
3593 * XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
3594 * XmlNode.cs : InnerText should handle CDATA and whitespaces.
3595 * XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
3596 * XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
3597 attributes (as MS.NET does). It isn't good way and I may change it.
3599 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3601 * DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
3602 DTDNotationDeclarationCollection and replaced Hashtables with them.
3603 Added NormalizedDefaultValue property for DTDAttributeDefinition.
3604 * DTDValidatingReader.cs :
3605 - It now reads attribute values into value collection.
3606 - Renamed consumedDefaultAttribute to consumedAttribute, and
3607 inContent to insideContent.
3608 - GetAttribute() should allow reader's other node state than element.
3609 - MoveToNextAttribute() should move when reader is placed other than
3610 the first attribute.
3611 - HandleError() now supports ValidationType.None (i.e. does nothing).
3612 - ValidateAttribute() now collects and resolves attribute value
3613 entity references. (On the other hand, it doesn't support
3614 EntityHandling.ExpandCharEntity.)
3615 - NodeType shouldn't return Attribute after ReadAttributeValue().
3616 Now only Text is supported, but must also support EntityReference.
3617 - Add FilterNormalization() and partially support Normalization.
3619 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3621 * XmlTextReader.cs :
3622 Read() now handles parser context stuff (BaseURI, XmlLang and
3623 XmlSpace) correctly for an empty element.
3624 Normalization property now doesn't throw an error. Will be used soon.
3625 * XmlValidatingReader.cs : added ValidationType.None support (wait for
3626 the next DTDValidatingReader update for "not firing event handler).
3627 * XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
3629 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3631 * DTDValidatingReader.cs :
3632 changed base class to XmlReader and implemented IXmlLineInfo members.
3633 changed .ctor() argument from event handler to validating reader.
3634 Removed some #if ... #else ... #endif blocks.
3635 Added validation event support for Read() using HandleError().
3636 * XmlValidatingReader.cs : added internal OnValidationEvent().
3637 * XmlDocument.cs : ReadNode() now checks reader's state more strictly.
3639 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3641 * XmlUrlResolver.cs : applied BenM's patch for file uri problem
3644 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3646 * DTDValidatingReader.cs :
3647 added DTDObjectModel support for non-XmlTextReader XmlReader
3648 e.g. XmlNodeReader (Read() method).
3650 added internal CreateDocumentType(XmlTextReader) and moved
3651 ReadDoctypeNode() to XmlDocumentType.ImportFromDTD().
3652 * XmlDocumentType.cs :
3653 added internal .ctor(XmlTextReader, document) and ImportFromDTD().
3654 * XmlTextReader.cs :
3655 Renamed useSbForVal (valueBuilderAvailable), valSb (valueBuilder)
3656 and currentSubset (DTD).
3657 Added GenerateDTDObjectModel() (for independent doctype parsing).
3659 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3662 .ctor() should reject xml- or xmlns-prefixed node.
3663 * XmlNamespaceManager.cs :
3664 added some xmlns validity check.
3666 optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
3667 avoiding XmlNamespaceManager creation.
3668 * XmlNodeReader.cs :
3669 doctype node should return PUBLIC and SYSTEM for its indexer,
3670 and Value should be internal subset,
3672 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3674 * DTDObjectModel.cs,
3675 DTDValidatingReader.cs : Completely rewrote attribute handling.
3677 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3680 XmlElement.cs : Fixed CloneNode() for bug #46129.
3681 * XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
3682 String.Format arguments, and basically XmlException.ctor(
3683 IXmlLineInfo, message) seems good idea to use.
3684 * XmlTextReader.cs :
3685 - Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
3686 required non-null context which don't have to exist.
3687 - Added state check. Introduced 'currentState' and 'maybeTextDecl'
3688 (for external entity) and removed hasEnteredDocument. Added
3689 state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
3690 ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
3691 - Replaced throw ReaderError() with throw new XmlException() and
3692 fixed that some error hadn't thrown, only created.
3693 - ResetState() should re-initialize existing private members other
3694 than some specified fields.
3695 - Private AddAttribute() should check if the same-named attribute
3697 * DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
3699 2003-07-09 Lluis Sanchez Gual <lluis@ximian.com>
3701 * XmlTextReader.cs : Implemented ResetState() method.
3703 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3705 * XmlElement.cs : IsEmpty has removed attributes since it incorrectly
3708 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3710 * XmlDocument.cs : Load(string filename) should close its stream.
3711 Small change for the latest DTDObjectModel change.
3712 * XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
3713 changed methods are only related to DTD stuff).
3714 Now uses XmlSchemaDatatype for attribute type definition.
3715 * XmlValidatingReader : initial (limited) support for DTD validation.
3716 It can handle only XmlTextReader.
3717 * DTDObjectModel.cs : changed radically for initial validation support.
3718 * added DTDAutomata.cs and DTDValidatingReader.cs.
3720 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3722 * XmlElement.cs : Removed extraneous xmlns output support (it should
3723 be done by XmlTextWriter).
3724 * XmlNode.cs : InsertBefore() now checks validity of the newChild (and
3725 most of the changes are in fact indentation changes).
3726 * XmlWriter.cs : WriteAttributes() now can write entity references.
3727 WriteNode() now writes xmldecl attributes correctly.
3728 Removed namespaceManager and xmlns check logic, since it should be
3729 done by individual XmlTextWriter.
3730 * XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
3731 written multiple xmlns declarations.
3732 Moved namespaceManager from abstract XmlWriter.
3733 Write{Start|End}Attribute() and WriteString() now checks xmlns
3734 attribute value. (MS.NET holds value only with this write method).
3736 2003-07-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3738 * XmlDocument.cs : removed xmlReader.Close() from Load(XmlReader).
3740 2003-06-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3742 * XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
3743 essentially changed most of the property handling (e.g. removed attribute
3744 enumerator and it now became really cloneable).
3745 * XmlNodeReader.cs : ReadInnerXml() changes its state as error
3746 when the method is called at Initial state.
3748 2003-06-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3750 * XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
3751 as non-empty, and XmlElement's IsEmpty is designed as such.
3752 Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
3754 * XmlNode.cs : Fixed XPathNodeType. It should throw an exception
3755 instead of returning undefined enum value.
3756 Modified some code comments.
3757 * XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
3758 when XmlReader's node is not at empty element or at EndElement.
3759 Fixed XmlDeclaration's standalone check.
3761 2003-06-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3763 * XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
3764 to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
3766 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3768 * XmlInputStream.cs : quick fix for public ctor() BaseURI bug.
3770 2003-06-20 Ben Maurer <bmaurer@users.sourceforge.net>
3772 * XmlTextReader.cs: Reduces memory allocation when the reader is
3773 not queried for some values.
3774 * NameTable.cs: Now uses a custom hashtable to implement. As a
3775 result, when Get (char[], int, int) is called, a string is only
3776 allocated if it is actually a new entry.
3777 (StrEqArray) Compares a string and a char[]
3778 (AddEntry) Adds a new entry to the hashtable
3779 (Entry) Represents a hashtable entry.
3781 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3783 * XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.
3785 2003-06-16 Ben Maurer <bmaurer@users.sourceforge.net>
3786 * XmlUrlResolver.cs: really fixed #44231
3788 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3790 * XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
3791 this method set current node null.
3792 * XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
3793 String.Empty instead of null (expected value).
3796 XmlInputStream.cs : fixed BaseURI problem (bug #44231).
3798 2003-06-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3800 * XmlNodeReader.cs : this [name] and this [name, ns] (and
3801 GetAttribute() methods in turn) returns null instead of String.Empty.
3802 * XmlTextWriter.cs : WriteStartAttribute() should try to use specified
3803 prefix before auto-generating prefixes.
3804 Implemented WriteBase64().
3806 2003-06-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3808 * XmlNodeReader.cs : LookupNamespace () has refered invalid current
3809 node for attributes. Modified to use private "document" property.
3811 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
3813 * XmlTextWriter.cs: when adding an attribute with a namespace, a prefix must be automaticaly
3814 generated, and a namespace declaration must be added.
3815 * XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
3817 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
3819 * XmlAttribute.cs: Accept a null prefix or namespaceURI.
3821 2003-06-10 Duncan Mak <duncan@ximian.com>
3823 * XmlDocumentNavigator.cs (GetNode): Make it implement
3826 2003-06-05 Lluis Sanchez Gual <lluis@ideary.com>
3828 * XmlTextWriter.cs : Fixed bug. After calling for example WriteStartElement ("pref","ln","ns");
3829 a call to LookupPrefix ("pref") when still writting attributes should
3830 return "ns", and it didn't.
3832 2003-06-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3834 * XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
3835 * XmlConvert.cs : fixed VerifyNCName() to check correctly.
3837 2003-06-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3839 * XmlDocumentNavigator.cs : Compute document node one time.
3840 MoveToFirstChild() should move to PIs and comments.
3842 2003-05-30 Miguel de Icaza <miguel@ximian.com>
3844 * XmlReader.cs (ReadStartElement): Improve error message.
3846 2003-05-28 Lluis Sanchez Gual <lluis@ideary.com>
3848 * XmlTextReader.cs : MoveToAttribute methods must set the enumerator to the right
3849 position, since MoveToNextAttribute may be called after it.
3850 SetProperties(): attributes do not "inherit" the namespace.
3851 * XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
3853 2003-05-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3855 * NameTable.cs : Add() sets the given name string interned.
3856 * XmlParserContext.cs : added internal PushScope() and PopScope() to
3857 hold stacks of xml:base, xml:lang and xml:space.
3858 * XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
3859 property for stacked attributes). Renamed Initialize() to Initialize-
3860 Context(). Modified to use XmlParserContext.PushScope()/PopScope().
3862 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
3864 * XmlReader.cs: Little fix to WriteAttributeString()
3866 2003-05-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3868 * XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
3869 XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
3870 XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
3871 XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
3872 Reverted the recent accessibility mistake (5/16).
3873 * XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic
3874 from XmlNode to XmlDocument.
3876 2003-05-18 Lluis Sanchez Gual <lluis@ideary.com>
3878 * XmlQualifiedName.cs : Fixed bug in equality operator.
3880 2003-05-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3882 * XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
3883 any open attributes or elements. WriteWhitespace() checks state and
3884 closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
3885 when it is called inside attribute value.
3886 * XmlException.cs : added .NET 1.1 .ctor.
3887 * added XmlSecureResolver.cs (only stubbing).
3888 * XmlAttribute.cs : set_InnerXml() should remove children.
3891 XmlDocumentFragment.cs,
3892 XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
3893 * XmlNode.cs : RemoveAll() should also remove all attributes.
3894 * XmlTextRader.cs : .ctor() for attribute value reader should add
3895 quotations at initialization, since it requires quote chars.
3896 * XmlWriter.cs : WriteAttributeString() more correct xmlns check.
3898 2003-05-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3900 * changed XPathNodeType modifier to internal *protected* override.
3901 * XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
3902 * XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
3903 * XmlAttributeCollection.cs : removed some incorrect TODO attributes.
3904 * XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
3905 when the argument is "xmlns".
3906 * XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
3907 * XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
3908 * XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
3909 * XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
3910 not to set error state for non-started XmlNodeReader.
3911 * XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
3912 BaseURI support. Fixed Initialize() to handle Attribute correctly.
3913 SetProperty for attribute auto-completes xmlns NSURI.
3914 Attribute and whitespace handling became more correct.
3915 Don't parse external DTD if XmlResolver is null.
3916 * XmlTextWriter.cs : implemented WriteEntityRef().
3917 WriteStartAttribute() checks if ns does not equal to that of xmlns.
3918 * XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
3920 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3922 * XmlConvert.cs : IsInvalid() Now uses XmlConstructs.IsName(Start).
3923 EncodeName() now correctly encodes invalid names.
3924 Result string of ToString(DateTime) contains "fffffff".
3926 2003-04-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3928 * XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
3929 * XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
3931 Fixed this[] to work correctly against XmlDeclarations.
3932 Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
3933 (which may prevent validations etc.)
3936 XmlTextReader.cs : Fixed ReadString() to be compliant with each
3938 * XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
3940 2003-04-27 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3942 * XmlNode.cs: ensure to get a valid Uri in BaseUri when loading the
3943 source document from a file.
3945 2003-04-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3947 * XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
3948 content EntityReference correctly.
3949 * XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
3950 HasAttributes, indexers, MoveTo*Attribute() and Read() ).
3951 Modified Skip() to call Read () explicitly.
3952 * XmlTextReader.cs :
3953 Fixed ReadInnerXml() which ignored EndElement token in certain cases.
3954 Implemented MoveToAttribute (local, ns), and modified GetAttribute()
3955 in relation to this change.
3956 Attributes for XmlDeclaration are now correctly set.
3957 * XmlTextWriter.cs : WriteRaw() is now different from WriteString().
3958 Simplified WriteAttributes() for XmlDeclaration.
3960 2003-04-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3962 * XmlTextReader.cs : fixed ReadInnerXml(). it was inconsistent with
3965 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3967 * XmlDocument.cs : fixed Load() to set baseURI correctly.
3968 * XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
3969 * XmlTextReader.cs :
3970 fixed Depth. When it's on StartElement, Depth was already incremented.
3971 fixed private SaveProperty(), which moved away its saved properties
3972 when MoveToElement was called repeatedly.
3973 * XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
3975 WriteAttributes() refactory (for XMLDecl).
3976 WriteNode() don't Read() when the reader is Initial state, let other
3977 invokation to Read(). In case of Element, it should write entire
3978 element. In case of Attribute, it shouldn't Read().
3979 WriteStartDocument() should omit standalone decl. when there is no
3982 2003-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3984 * XmlReader.cs: reverted last patch. It breaks System.Configuration
3985 because 1. it considers XmlDeclaration as content and 2. always
3986 returns XmlNodeType.None.
3989 2003-04-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3991 * Added missing ChangeLog of 4/4/2003.
3992 * XmlTextWriter.cs : patch by Erik. fixed WriteQualifiedName.
3993 (write prefix instead of ns.)
3994 * XmlInputStream.cs : file access mode fix (FileAccess.Read was missing)
3995 * XmlTextReader.cs : modified to call Read() instead of ReadContent().
3996 (It may be required for decorated reader such as XmlValidatingReader.)
3997 Changed Read() error message for mismatch end tag.
3998 * XmlDocument.cs : (ReadNode) friendly message for mismatch EndElement.
3999 * XmlReader.cs : Corrected misinterpreted MoveToContent() method.
4001 2003-04-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4003 * XmlDocument.cs : Load() now closes the given XmlReader.
4004 Don't allow creation of XmlTextReader for Doctype. (workaround.)
4005 * XmlInputStream.cs : It now closes its internal stream explicitly.
4006 * XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
4007 * XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
4008 * XmlParserInput.cs : added Close() method.
4009 * XmlReader.cs : MoveToContent() should (1) not Read in case of empty
4010 element, and (2) MoveToElement() in case of attribute.
4011 * XmlTextReader.cs : Close() now actually closes source TextReaders.
4013 2003-03-26 Duncan Mak <duncan@ximian.com>
4015 * XmlTextWriter.cs (Write): A patch from Atsushi to fix
4016 prematurely ending the write, or something like that. It was
4017 causing us to chop off the end of the document when we're trying
4018 to generate XML Schemas.
4020 2003-03-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4022 * XmlTextReader.cs : implemented ReadString().
4023 fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
4024 null reference exception when context is null.
4025 * XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
4026 fixed Read() - when positioned at EndElement, it didn't progress.
4027 fixed HasAttribute - it didn't return false in all cases.
4028 fixed Name and LocalName - only limited type of nodes return names.
4029 fixed AttributeCount - in some cases it threw null ref exception.
4031 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4033 * XmlTextWriter.cs : WriteStartDocument doesn't set hasRoot=true, then
4034 WriteEndDocument without root element now raises an error correctly.
4035 * XmlDocumentNavigator.cs : (MoveToFirstChild) fixed bugzilla #36672.
4036 implemented BaseURI, NameTable, XmlLang, GetAttributes, GetNamespace,
4039 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4041 * XmlElement.cs : RemoveAttribute now don't throws when specified
4042 attribute does not exist.
4044 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4046 * XmlNode.cs : add descriptions for some node type error.
4048 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4050 * XmlNodeArrayList.cs, XmlNodeListChildren.cs : bugzilla #39920 fix.
4052 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4054 * XmlDeclaration.cs : quick fix, not to use regex for set_Value.
4056 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4058 * XmlTextReader.cs : Fixed wrong notationdecl SYSTEM id read.
4059 * XmlInputStream.cs : Should allow versionless input stream entity.
4061 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4063 * added XmlParserInput.cs for multi xml document sources.
4064 * added DTDObjectModel.cs (maybe temporary).
4065 * XmlTextReader.cs :
4066 + fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
4067 + Some members such as LineNumber, ReadChar now uses XmlParserInput.
4068 + added support for Namespaces (namespace-ignorant parse available).
4069 + added support for XmlResolver.
4070 + replace SetReaderContext()/SetReaderFragment() with Initialize().
4071 + use NameTable in CreateNameString.
4072 + fixed ReadCData(). Now reads "]]]>" correctly.
4073 + support for DTD parse.
4074 + Read() now throws an error when it reached EOF while Depth > 0.
4076 XmlDocumentFragment.cs,
4077 XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
4078 * XmlDocument.cs : ReadNode() now reads DocumentType.
4079 * XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
4081 XmlNotation.cs : added override LastLinkedChild (for doctype node).
4082 * XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
4083 * XmlElement.cs : bugfix for node removal of set_InnerXml.
4084 * XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
4085 (to append child XmlEntity into XmlDocumentType correctly.)
4086 * XmlInputStream.cs : fixed to access file with FileAccess.Read.
4088 2003-03-15 Duncan Mak <duncan@ximian.com>
4090 * XmlElement.cs (Name): Only append prefix + ':' when prefix is
4091 neither String.Empty nor null. Thanks to Simon Guindon for
4092 reporting the bug and Jackson for fixing this bug with me.
4094 2003-03-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4096 * XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
4097 * XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
4098 fixed ReadNode(), it should call reader.Read() only on Initial state.
4099 * XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
4100 and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
4101 System.Net.WebClient directly.
4102 * XmlParserContext.cs : baseURI never be null.
4103 * XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
4104 * XmlUrlResolver.cs : namespace change for XmlInputStream.
4106 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
4108 * XmlTextReader.cs: When throwing a ReaderException, show what
4109 character was the culprit
4111 2003-03-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4113 * XmlDocumentFragment.cs, XmlElement.cs :
4114 modified InnerXml (fragment type from Element to DocumentFragment).
4116 * XmlElement.cs : fixed WriteTo() ns check.
4117 * XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
4118 * XmlNode.cs : fixed ConstructNamespaceManager().
4120 * XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
4121 IsPubid with an int arg.
4122 * XmlReader.cs : changed to use XmlChar.cs (its role is as same as
4124 * XmlTextReader.cs :
4125 improved error messages with line info.
4126 / checking matching start and end tags.
4127 / prevents the apperance of multiple root elements. (patch by Erik)
4128 fixed and refactored ReadInnerXml() and ReadOuterXml()
4129 changed to use XmlChar.cs.
4131 * XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
4132 (It will help c14n implementation.)
4133 / blocks multiple attribute output with element node.
4135 2003-02-28 Alan Tam <Tam@SiuLung.com>
4137 * XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
4138 methods to make them compatible with the XML Schema Spec from W3C
4139 ToString(TimeSpan) is still outstanding
4141 2003-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4144 (Load (string)): hack to workaround some issues with Uri.Parse. Once
4145 Parse is fixed, remove the hack.
4147 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4149 * XmlQualifiedName.cs : fixed GetHashCode() to avoid null reference
4150 * XmlTextReader.cs : fixed ReadAttributeValue() to handle
4151 entity reference, and some refactory.
4153 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4155 * XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.
4157 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4159 * XmlInputStream.cs : added (also contains internal XmlStreamReader).
4160 * XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
4161 and can read non-UTF-8 stream.
4162 * XmlTextReader.cs : related to above stream fix.
4163 * XmlUrlResolver.cs : implemented GetEntity ().
4165 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4167 * XmlTextWriter.cs: implemented WriteRaw (char[], int, int).
4169 2003-02-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4171 * XmlTextReader.cs : implemented QuoteChar.
4173 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4175 * XmlNode.cs : implemented ReplaceChild.
4176 removed DocElem checking at InsertBefore.
4177 * XmlNodeReader.cs : fixed ReadString and Read for correct node info.
4178 * XmlText.cs : implemented CloneNode and SplitText.
4180 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4182 * XmlCharacterData.cs: added XPathNodeType property.
4184 2003-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4186 * XmlTextWriter.cs: throw an exception if WriteEndDocument is
4187 called without a prior call to WriteStartDocument.
4189 2003-01-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4191 * XmlNodeReader.cs : several fix to get more compatible with MS.NET.
4193 2003-01-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4195 * XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
4196 null when no matching uri.
4197 * XmlElement.cs : removed unnecessary xmlns output.
4198 * XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
4199 * XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
4200 along with the change above, and moved timing of 'xmlns' output
4201 to CloseStartElement.
4202 * XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
4204 2003-01-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4206 * XmlWriter.cs: modified WriteStartElement (see test for detail).
4209 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
4211 * XmlDocument.cs: Added CheckName () method to check names validity.
4213 2003-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4216 (ReadOuterXml): use Depth property which return elementDepth, not depth.
4218 2003-01-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4220 * XmlElement.cs : (by ville) XmlElement.set_InnerText event bugfix.
4221 * XmlTextReader.cs : some fix for ReadOuterXml().
4223 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4225 * XmlTextReader.cs : bugfix for attributes related to creation of
4226 XmlAttribute *node*.
4228 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4230 * XmlTextReader.cs : bugfix for attribute values which have entity
4233 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
4235 * XmlDocument.cs: XmlTextWriter.Formatting == Indented when
4236 calling Save () -methods.
4238 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4240 * XmlNodeReader.cs : primitive reading implementation.
4242 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4244 * XmlElement.cs : quick fix for the incomplete patch of #35308 below.
4246 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4248 * XmlDocument.cs : removed inconsistent line-feed output.
4249 * XmlElement.cs, XmlTextWriter.cs :
4250 fixed for bugzilla 35308 (default ns output)
4251 * XmlWhitespace.cs : limited output only when preserving whitespace.
4253 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4255 * XmlAttribute.cs, XmlDocument.cs, XmlTextReader.cs:
4256 Implemented XmlTextReader.ReadAttributeValue().
4257 Added internal ReadAttributeNodeValue().
4258 Fixed XmlAttribute.InnerXml to use these methods.
4260 * XmlDocument.cs, XmlDocumentFragment.cs, XmlElement.cs, XmlNode.cs:
4261 Implemented XmlDocument.ReadNode() and removed ConstructDOM().
4262 Other changes are replacing them.
4264 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4266 * XmlDocument.cs: patch by Ville (fixed default PreserveWhitespace)
4268 2002-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4270 * XmlElement.cs, XmlTextWriter.cs, XmlWriter.cs:
4271 patch by JD Conley <jconley@winfessor.com>.
4272 (Fix for xmlns attribute output.)
4274 2002-12-05 Ville Palo <vi64p@koti.soon.fi>
4276 * XmlQualifiedName.cs: Little fix to ToString () -method
4278 2002-12-04 Tim Haynes <thaynes@openlinksw.com>
4280 * class/System.XML/System.Xml/XmlElement.cs: Made more refined
4281 checks on attributeNode to fix 32262.
4283 2002-12-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4285 * XmlDocument.cs (CreateNavigator(XmlNode)) : reverted
4286 * XmlTextWriter.cs (WriteStartElementInternal):
4287 fixed when default namespace was specified, all descendants
4288 fail to omit the default namespace declarations.
4291 XmlNode.cs (internal XmlLang/XmlSpace) : implemented(defined)
4293 XmlDocumentFragment.cs,
4294 XmlElement.cs (set_InnerXml): now uses XmlLang/XmlSpace
4295 * XmlElement.cs (set_IsEmpty) : implemented
4296 (WriteTo) : removed my improper indenting (Writer already done)
4297 * XmlNode.cs (BaseURI) : fixed if ParentNode is null, NullPointerEx
4298 (ConstructDOM) : implemented when xmlReader isn't XmlTextReader
4299 ...and renamed XmlDocument.ConventionalParser to ReusableReader ;-)
4301 2002-12-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4303 * XmlNode.cs (RemoveChild):
4304 bugfixed when XmlNode is Document OwnerDocument is null
4305 * XmlDeclaration.cs (Value):
4306 bugfixed regular expression pattern.
4307 * XmlDocument.cs (CreateNavigator): bugfixed access modifier.
4309 2002-11-24 Duncan Mak <duncan@ximian.com>
4311 * XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
4312 Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
4313 first patch to Mono! ;-)
4315 2002-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4318 (AppendChild): readded refChild != null condition before throwing
4319 "cannot insert this node in this position" exception. There's probably
4320 a better solution. Fixes #34191.
4321 (RemoveAll): changed following Atsushi instructions.
4324 2002-11-13 Duncan Mak <duncan@ximian.com>
4326 * XmlElement.cs (IsEmpty): A temporary check-in to keep gtk-sharp
4329 2002-11-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4331 * XmlDocument.cs : unified all constructors, added ConventionalParser,
4332 implemented CloneNode() and CreateEntityReference(),
4333 * XmlEntityReference.cs : set_Value, WriteContentTo, WriteTo
4334 set BaseURI to MonoTODO
4335 * XmlNode.cs : implemented PrependChild, modified ConstructDOM,
4336 bugfix InsertAfter (incorrect prepending) and InsertBefore
4337 (more than one DocumentElements hadn't caused errors)
4338 * XmlTextReader.cs : unified all constructors,
4339 added internal SetReaderContext(), SetReaderFragment()
4340 bugfix (syntax check of PUBLIC / getting internal subset)
4342 2002-11-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4344 XmlAttribute.cs : set_InnerText, set_InnerXml, some check for set_Prefix
4345 XmlAttributeCollection.cs : (indexer) this[localName, namespaceURI]
4346 XmlCharacterData.cs : exchanged Data and Value
4347 (for processing events and inheritance)
4348 XmlDocumentFragment.cs : set_InnerXml
4349 XmlSignificantWhitespace.cs : set_Value
4350 XmlTextReader.cs : ReadAttributeValue
4352 2002-11-04 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4354 XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement'
4356 2002-11-03 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4358 * XmlAttributeCollection.cs : checks owner element.
4359 implemented CopyTo, InsertAfter, InsertBefore, Prepend,
4360 Remove, RemoveAt, SetNamedItem.
4361 removed some logics that sets 'Parent' (that should be null)
4362 * XmlDocument.cs : set_InnerXml, [PreserveWhitespace(incomplete)]
4363 * XmlDocumentFragment.cs : get_InnerXml, WriteContentTo, WriteTo
4364 * XmlElement.cs : implemented WriteTo, set_InnerText.
4365 Fixed WriteTo() to add xmlns:* attributes when
4366 writer.LookupPrefix() returned mismatching.
4367 * XmlNamedNodeMap.cs : compare not only name but localname and nsuri.
4368 Removing different prefixes for the same uri now runs correct.
4369 added SetNamedItem(XmlNode node, int position_to_insert).
4370 * XmlNode.cs : ConstructDOM (logically) creates XmlEntityReference,
4371 XmlWhitespace, and XmlSignificantWhitespace
4373 2002-10-31 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4375 * XmlDocument.cs : implemented CreateDocumentFragment()
4376 * XmlElement.cs, XmlLinkedNode.cs :
4377 moved LastLinkedChild from XmlElement to XmlLinkedNode.
4378 * XmlEntityReference.cs : must throw NotImplementedException.
4380 + implemented InsertBefore() and then implemented InsertAfter()
4381 and modified AppendChild() to call it.
4382 + added logic to check ReadOnly, parent document equivalence,
4383 and inserting any 'content' before/after DocumentElement.
4384 + implemented Clone() [it is equals to CloneNode() by MS doc.]
4385 + added logic in RemoveChild() to check parent of oldChild.
4386 + fixed ConstructNamespaceManager() to internal only.
4388 2002-10-29 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4390 * XmlAttribute.cs : add internal 'IsDefault' property
4391 (equals to !Specified)
4392 * XmlImplementation.cs : added 'internalNameTable' property.
4394 + now allows "" for 'standalone' in CreateXmlDeclaration.
4395 + implemented 'Implementation' property and constructor with it.
4396 + added logic for appending name table (but still no use)
4397 + implemented property 'DocumentType'
4398 (but without internalSubset parsing. wait for next update.)
4400 + modified AppendChild() and RemoveChild() to support fragment.
4401 + modified AppendChild() to remove newChild from its parent
4402 when newChild is already in the other place.
4403 + modified RemoveChild() to set parentNode null.
4404 + modified ConstructDOM() to create DocumentType,
4405 and fixed access modifier ('internal protected' to 'internal')
4406 * XmlLinkedNode.cs : fixed 'NextSibling' to return null
4407 when its parent is null.
4408 * XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
4409 property to enable AppendChild() for this class.
4410 * XmlTextReader.cs : appended private publicId and systemId fields.
4412 2002-10-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4414 * XmlTextReader.cs: make it work when the underlying Stream is not
4417 2002-10-26 Piers Haken <piersh@friskit.com>
4419 * XmlNode.cs: add virtual property XPathNodeType
4424 * XmlProcessingInstruction.cs:
4425 * XmlSignificantWhitespace.cs:
4427 * XmlWhitespace.cs: implement XPathNodeType property
4428 * XmlDocumentNavigator.cs: use XPathNodeType property instead of switch
4430 2002-10-26 Piers Haken <piersh@friskit.com>
4432 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
4434 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4436 * XmlTextReader.cs: don't increment depth for entity references.
4438 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
4440 * - Fixed the duplication of xmlns:xx = yy when serializing the
4441 XML for serialization
4443 Fixed the unnecessary parsing/serializing when adding assemblies
4446 Avoided setting the XmlNode.InnerXml property
4447 (as it's not implemented)
4449 Fixed the usage/implementation of
4450 XmlElement.GetElementsByTagName()
4452 2002-10-21 Duncan Mak <duncan@ximian.com>
4457 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
4458 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
4460 2002-10-18 Duncan Mak <duncan@ximian.com>
4462 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
4463 <ginga@kit.hi-ho.ne.jp>.
4465 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
4467 * XmlDocument.cs (ImportNode): Implemented
4469 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4471 * XmlDocument.cs: one more Load method implemented.
4472 * XmlTextReader.cs: Depth now works.
4474 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4476 * XmlConvert.cs: IsInvalid is now internal.
4477 * XmlNamespaceManager.cs: implemented RemoveNamespace
4478 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
4479 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
4481 2002-09-19 Matt Hunter <mahunter@tconl.com>
4483 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
4484 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
4486 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4488 * XmlConvert.cs: finished implementation.
4489 * XmlTextReader.cs: fixed #30239.
4490 * XmlTextWriter.cs: fixed #30240.
4492 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4494 * XmlTextReader.cs: line and position begin with 1.
4496 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4498 * XmlException.cs: added a new internal constructor for IXmlLineInfo
4499 and output line and position info in Message.
4501 * XmlReader.cs: implemented missing bits.
4503 2002-09-12 Piers Haken <piersh@friksit.com>
4505 * XmlDocumentNavigator.cs: implement MoveToId()
4507 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4509 * XmlTextWriter.cs: fixed bug #29886.
4511 2002-08-26 Ravi Pratap <ravi@ximian.com>
4514 * XmlAttribute.cs (InnerText): Implement getting this property.
4516 * XmlNode.cs (InnerText): Ensure that we append only values of
4519 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4521 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
4522 that allowed compiling this.
4523 [ FIXME: filed bug #29435. mcs should have failed on this ]
4525 2002-08-25 Tim Coleman <tim@timcoleman.com>
4527 Change CreateNavigator to not be virtual.
4529 Add set_Prefix and InnerText accessors.
4530 * XmlEntityReference.cs:
4531 Add set_Value accessor.
4533 Make objects which should be private private.
4535 Remove WriteStartElementInternal abstract definition.
4536 * XmlValidatingReader.cs:
4539 2002-08-22 Jason Diamond <jason@injektilo.org>
4541 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
4542 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
4544 2002-08-22 Jason Diamond <jason@injektilo.org>
4546 * XmlElement.cs: Correction to previous GetElementsByTagName patch
4547 courtesy of Matt Hunter <xrkune@tconl.com>.
4549 2002-08-22 Jason Diamond <jason@injektilo.org>
4551 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
4552 qualified GetElementsByTagName courtesy of Matt Hunter
4555 2002-08-19 Jason Diamond <jason@injektilo.org>
4557 * XmlDocument.cs, XmlElement.cs: Added implementation of
4558 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
4560 2002-08-16 Jason Diamond <jason@injektilo.org>
4562 * XmlElement.cs: Fixed writing out qualified elements courtesy of
4563 Marcus Bürgel <marcus.buergel@gmx.de>.
4565 2002-08-13 Tim Coleman <tim@timcoleman.com>
4567 Partial implementation of WriteQualifiedName ().
4569 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
4570 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
4571 InsertData(), and ReplaceData(). These methods fire the
4572 NodeChanging and NodeChanged events.
4574 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
4576 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
4577 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
4579 2002-08-03 Tim Coleman <tim@timcoleman.com>
4580 * XmlNamespaceManager.cs:
4581 .Net allows the empty namespace to be redefined
4582 at a later point, but the current implementation
4583 did not. This fixes a hashtable conflict.
4585 2002-07-26 Tim Coleman <tim@timcoleman.com>
4587 When given a textwriter, check to see if it has a
4588 null encoding. This was being done for other inputs
4591 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
4593 * XmlTextReader.cs: rough line/column support.
4595 2002-07-23 Duncan Mak <duncan@ximian.com>
4597 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
4598 (string, string []) is particularly strange.
4600 * XmlException.cs: Remember to call the base serialization
4603 * XmlNodeReader.cs: Keep a new variable to store the Depth.
4605 2002-07-14 Jason Diamond <jason@injektilo.org>
4607 * XmlAttribute.cs: Removed ownerElement field since we can reuse
4610 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
4611 if the current node is an attribute.
4613 * XmlElement.cs: SetAttributeNode now sets the new attribute's
4616 2002-07-12 Jason Diamond <jason@injektilo.org>
4618 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
4619 creating an element, use String.Empty instead.
4621 2002-07-12 Piers Haken <piersh@friksit.com>
4623 * XmlAttributeCollection.cs: implement some ItemOf indexers
4624 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
4625 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
4627 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
4630 2002-10-26 Piers Haken <piersh@friskit.com>
4632 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
4634 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4636 * XmlTextReader.cs: don't increment depth for entity references.
4638 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
4640 * - Fixed the duplication of xmlns:xx = yy when serializing the
4641 XML for serialization
4643 Fixed the unnecessary parsing/serializing when adding assemblies
4646 Avoided setting the XmlNode.InnerXml property
4647 (as it's not implemented)
4649 Fixed the usage/implementation of
4650 XmlElement.GetElementsByTagName()
4652 2002-10-21 Duncan Mak <duncan@ximian.com>
4657 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
4658 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
4660 2002-10-18 Duncan Mak <duncan@ximian.com>
4662 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
4663 <ginga@kit.hi-ho.ne.jp>.
4665 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
4667 * XmlDocument.cs (ImportNode): Implemented
4669 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4671 * XmlDocument.cs: one more Load method implemented.
4672 * XmlTextReader.cs: Depth now works.
4674 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4676 * XmlConvert.cs: IsInvalid is now internal.
4677 * XmlNamespaceManager.cs: implemented RemoveNamespace
4678 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
4679 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
4681 2002-09-19 Matt Hunter <mahunter@tconl.com>
4683 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
4684 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
4686 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4688 * XmlConvert.cs: finished implementation.
4689 * XmlTextReader.cs: fixed #30239.
4690 * XmlTextWriter.cs: fixed #30240.
4692 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4694 * XmlTextReader.cs: line and position begin with 1.
4696 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4698 * XmlException.cs: added a new internal constructor for IXmlLineInfo
4699 and output line and position info in Message.
4701 * XmlReader.cs: implemented missing bits.
4703 2002-09-12 Piers Haken <piersh@friksit.com>
4705 * XmlDocumentNavigator.cs: implement MoveToId()
4707 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4709 * XmlTextWriter.cs: fixed bug #29886.
4711 2002-08-26 Ravi Pratap <ravi@ximian.com>
4714 * XmlAttribute.cs (InnerText): Implement getting this property.
4716 * XmlNode.cs (InnerText): Ensure that we append only values of
4719 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4721 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
4722 that allowed compiling this.
4723 [ FIXME: filed bug #29435. mcs should have failed on this ]
4725 2002-08-25 Tim Coleman <tim@timcoleman.com>
4727 Change CreateNavigator to not be virtual.
4729 Add set_Prefix and InnerText accessors.
4730 * XmlEntityReference.cs:
4731 Add set_Value accessor.
4733 Make objects which should be private private.
4735 Remove WriteStartElementInternal abstract definition.
4736 * XmlValidatingReader.cs:
4739 2002-08-22 Jason Diamond <jason@injektilo.org>
4741 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
4742 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
4744 2002-08-22 Jason Diamond <jason@injektilo.org>
4746 * XmlElement.cs: Correction to previous GetElementsByTagName patch
4747 courtesy of Matt Hunter <xrkune@tconl.com>.
4749 2002-08-22 Jason Diamond <jason@injektilo.org>
4751 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
4752 qualified GetElementsByTagName courtesy of Matt Hunter
4755 2002-08-19 Jason Diamond <jason@injektilo.org>
4757 * XmlDocument.cs, XmlElement.cs: Added implementation of
4758 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
4760 2002-08-16 Jason Diamond <jason@injektilo.org>
4762 * XmlElement.cs: Fixed writing out qualified elements courtesy of
4763 Marcus Bürgel <marcus.buergel@gmx.de>.
4765 2002-08-13 Tim Coleman <tim@timcoleman.com>
4767 Partial implementation of WriteQualifiedName ().
4769 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
4770 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
4771 InsertData(), and ReplaceData(). These methods fire the
4772 NodeChanging and NodeChanged events.
4774 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
4776 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
4777 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
4779 2002-08-03 Tim Coleman <tim@timcoleman.com>
4780 * XmlNamespaceManager.cs:
4781 .Net allows the empty namespace to be redefined
4782 at a later point, but the current implementation
4783 did not. This fixes a hashtable conflict.
4785 2002-07-26 Tim Coleman <tim@timcoleman.com>
4787 When given a textwriter, check to see if it has a
4788 null encoding. This was being done for other inputs
4791 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
4793 * XmlTextReader.cs: rough line/column support.
4795 2002-07-23 Duncan Mak <duncan@ximian.com>
4797 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
4798 (string, string []) is particularly strange.
4800 * XmlException.cs: Remember to call the base serialization
4803 * XmlNodeReader.cs: Keep a new variable to store the Depth.
4805 2002-07-14 Jason Diamond <jason@injektilo.org>
4807 * XmlAttribute.cs: Removed ownerElement field since we can reuse
4810 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
4811 if the current node is an attribute.
4813 * XmlElement.cs: SetAttributeNode now sets the new attribute's
4816 2002-07-12 Jason Diamond <jason@injektilo.org>
4818 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
4819 creating an element, use String.Empty instead.
4821 2002-07-12 Piers Haken <piersh@friksit.com>
4823 * XmlAttributeCollection.cs: implement some ItemOf indexers
4824 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
4825 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
4827 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
4829 * XmlTextWriter: Fixed Indentation. IndentationOverridden should
4830 not be set when inside a attribute.
4832 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
4834 * XmlTextWriter: In WriteStartElement, if namespace is null and
4835 prefix is null|empty do not write out xmlns=""
4837 * XmlWriter: WriteStartElement calls the virtual method with null
4838 argument instead of empty string.
4840 2002-07-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4842 * XmlTextReader.cs: implemented .ctor (Stream).
4844 2002-06-26 Duncan Mak <duncan@ximian.com>
4846 * XmlNodeReader.cs: Implementation of most of the properties, and
4847 some of the related methods.
4849 2002-06-23 Piers Haken <piersh@friskit.com>
4851 * XmlDocumentNavigator.cs: implement Clone()
4852 * XmlElement.cs: remove bogus unimplemented override of InnerText
4853 * XmlNode.cs: implment SelectNodes/SelectSingleNode
4854 * XmlNodeArrayList.cs: new support class for SelectNodes
4856 2002-06-21 Ajay kumar Dwivedi <adwiv@yahoo.com>
4858 * XmlQualifiedName: Name and Namespaces are never null. If null is passed
4859 to the constructor, set them to empty strings.
4860 Fixed the Operators.
4862 2002-06-18 Ajay kumar Dwivedi <adwiv@yahoo.com>
4864 * XmlTextReader.cs: HasLineInfo returns false instead of throwing an
4867 2002-06-14 Duncan Mak <duncan@ximian.com>
4869 * XmlConvert.cs: Added CLSCompliant attributes to methods.
4871 2002-06-12 Duncan Mak <duncan@ximian.com>
4873 * XmlCharacterData.cs (Value): Throw an ArgumentException in the
4874 set block if the node is read-only.
4876 2002-06-10 Ajay kumar Dwivedi <adwiv@yahoo.com>
4877 * XmlConstruct.cs : New Internal class with Helper methods for
4878 Checking XmlConstructs
4879 * XmlConvert.cs: Implemented most of the methods
4881 2002-06-08 Duncan Mak <duncan@ximian.com>
4883 * XmlDocument.cs (Load):
4884 Added bits to Load (string) for BaseURI support.
4886 * XmlAttribute.cs (BaseURI):
4887 * XmlDocument.cs (BaseURI):
4888 * XmlEntity.cs (BaseURI): Implemented.
4890 2002-05-27 Jason Diamond <jason@injektilo.org>
4892 * XmlDocumentNavigator.cs: Added file to directory.
4894 * XmlNode.cs (CreateNavigator): Implemented.
4895 (InnerText): Implemented.
4897 * XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
4899 (Load(XmlReader)): Allow for namespace qualified attributes.
4901 * XmlElement.cs: Implemented GetAttribute(string, string) and both
4902 GetAttributeNode overloads.
4903 (SetAttributeNode(XmlAttribute)): Implemented.
4905 * XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
4906 and RemoveNamedItem(string, string).
4908 * XmlLinkedNode.cs (PreviousSibling): Implemented.
4910 * XmlTextReader.cs: Added code to maintain the order of attributes as
4911 they're parsed. XML doesn't require this but Microsoft's parser does it and
4912 matching them makes testing easier so now we have it, too.
4914 2002-05-26 Miguel de Icaza <miguel@ximian.com>
4916 * XmlDocument.cs: Implement the Save methods.
4918 2002-05-08 Mike Kestner <mkestner@speakeasy.net>
4920 * XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
4922 2002-04-28 Duncan Mak <duncan@ximian.com>
4924 * XmlSignificantWhitespace.cs (Value):
4925 * XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
4926 block. Added new private method, IsValidWhitespaceChar, for
4929 2002-04-16 Duncan Mak <duncan@ximian.com>
4931 * XmlParserContext.cs (NameTable): Fixed a typo in the set block.
4933 2002-04-12 Duncan Mak <duncan@ximian.com>
4935 * XmlAttribute.cs (Prefix): Added preliminary code for set block,
4936 added comment on work that needs to be done here. A new MonoTODO item.
4938 * XmlDocument.cs (ctor): Corrected constructor signature, changed
4939 parameter from 'NameTable' to 'XmlNameTable'.
4941 * XmlDocumentFragment.cs (InnerXml): Added missing set block.
4943 * XmlCaseOrder.cs: Moved to System.Xml.XPath.
4945 2002-04-10 Duncan Mak <duncan@ximian.com>
4947 * XmlNodeReader.cs: Initial stubs for the class.
4949 2002-04-08 Kral Ferch <kral_ferch@hotmail.com>
4951 * XmlAttributes.cs: InnerXml getter, WriteContentTo, and WriteTo
4954 * XmlDeclaration.cs: WriteTo implementation.
4956 * XmlDocument.cs: InnerXml getter implementation.
4958 * XmlElement.cs: InnerXml getter implementation.
4960 * XmlNode.cs: Removed MonoTODO attrib on OuterXml.
4962 * XmlSignificantWhitespace.cs: WriteTo implementation.
4964 * XmlText.cs: WriteContentTo and WriteTo implementation.
4966 * XmlTextWriter.cs: WriteRaw implementation.
4968 * XmlWhitespace.cs: WriteContentTo and WriteTo implementations.
4970 2002-04-05 Kral Ferch <kral_ferch@hotmail.com>
4972 * XmlAttributes.cs: Added reminder MonoTODO to set NamespaceURI
4973 if prefix in constructor is one of the default ones.
4975 * XmlCharacterData.cs: Returns String.Empty for Value and Data
4976 even when constructed with null.
4978 * XmlDeclaration.cs: Value doesn't put encoding or standalone
4979 in if they are empty.
4981 * XmlDocument.cs: Implemented CreateNode methods and this caused
4982 the changes in the other files in this checkin.
4984 * XmlProcessingInstruction.cs: Returns String.Empty for Value and Data
4985 even when constructed with null.
4987 * XmlWhitespace.cs: Changed Value 'get' to return Data.
4989 2002-04-01 Kral Ferch <kral_ferch@hotmail.com>
4991 * XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
4993 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
4995 * XmlTextWriter.cs: Impls for LookupPrefix, WriteBase64,
4996 and WriteCharEntity.
4998 * XmlWrite.cs: Fixed bug where attribute namespace decl
4999 was pushing a scope onto the namespace manager when it shouldn't
5002 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
5004 * XmlTextWriter.cs: Some tweaks for WriteAttibuteString
5005 in different states (no open start element, in WriteState.Content mode).
5007 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
5009 * XmlTextWriter.cs: XmlLang and XmlSpace properties
5010 and WriteWhitespace.
5012 * XmlTextWriterOpenElement.cs: scope support for XmlLang
5015 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
5017 * XmlTextWriter.cs: Working on Attribute methods.
5019 * XmlWriter.cs: Working on Attribute methods.
5021 2002-03-28 Duncan Mak <duncan@ximian.com>
5023 * XmlDocument.cs (CreateWhitespace):
5024 (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
5027 * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
5029 2002-03-26 Duncan Mak <duncan@ximian.com>
5031 * XmlDocument.cs (CreateDocumentType): Implemented.
5033 * XmlNode.cs (Value): Implemented.
5035 * XmlProcessingInstruction.cs (InnerText): Implemented. It works just
5036 like XmlCharacterData.
5038 * XmlDeclaration.cs (CloneNode):
5039 * XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
5042 * XmlCharacterData.cs (InnerText): Implemented. Funny that the
5043 docs say it is the "The concatenated values of the node and all
5044 the children of the node.". I wrote some test programs and
5045 couldn't get any of the derived nodes to AppendChild. For now,
5046 InnerText == Data == Value.
5047 (Substring): Fixed typo.
5049 * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
5051 * XmlImplementation.cs (CreateDocument): Implemented.
5053 2002-03-25 Duncan Mak <duncan@ximian.com>
5055 * XmlDeclaration.cs: Rewrote the class, fixed formatting, added
5056 missing properties (InnerText, Value).
5058 * XmlDocument.cs (CreateXmlDeclaration): Implemented.
5060 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5062 * XmlTextWriter.cs: Impls for BaseStream and
5063 Namespaces and WriteState.
5065 * XmlWriter.cs: WriteState and WriteStartElementInternal.
5067 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5069 * XmlNodeListChildren.cs: made class internal
5070 instead of public. Shouldn't be visible outside
5073 * XmlTextWriter.cs: Implementations for Formatting,
5074 IndentChar, Indenting, QuoteChar, WriteStartDocument(standalone).
5075 Suppresses encoding on xml declaration if null stream passed in.
5076 Formats output including suppressing indentation for elements in
5079 * XmlTextWriterOpenElement.cs: Initial checkin.
5080 XmlTextWriter uses stack of these objects to track
5083 2002-03-22 Mike Kestner <mkestner@speakeasy.net>
5085 * XmlElement.cs: impl HasAttribute(string name).
5087 2002-03-22 Duncan Mak <duncan@ximian.com>
5089 * XmlElement.cs: Reformatted.
5090 (CloneNode) Corrected.
5092 * XmlDocument.cs (CreateWhitespace):
5093 (CreateSignificantWhitespace): Implemented.
5095 * XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
5096 true, because Attributes have ChildNodes.
5098 2002-03-21 Kral Ferch <kral_ferch@hotmail.com>
5100 * XmlTextWriter.cs: WriteStartDocument tracks state, writes out
5101 xml declaration along with encoding. WriteEndElement throws
5102 exception if no WriteStartElement exists.
5104 2002-03-20 Duncan Mak <duncan@ximian.com>
5106 * XmlEntityReference.cs (CloneNode): Implemented.
5108 * XmlException.cs (Message): Implemented. We need to cache the
5109 message string because SystemException doesn't expose 'message'
5112 * XmlText.cs (Value): Added in the missing Value property.
5114 2002-03-20 Duncan Mak <duncan@ximian.com>
5116 * XmlAttribute.cs (CloneNode): Implemented.
5118 * XmlDocumentFragment.cs (CloneNode): Implemented.
5120 * XmlElement.cs (CloneNode): Implemented.
5122 2002-03-19 Duncan Mak <duncan@ximian.com>
5124 * XmlNotation.cs: Added to CVS.
5126 * XmlAttribute.cs (CloneNode): First crack at the CloneNode method.
5128 * XmlCDataSection.cs (CloneNode): Implemented.
5130 * XmlDocumentFragment.cs: Reformatted and added the missing properties
5131 (InnerXml, OwnerDocument, ParentNode).
5132 (CloneNode): Implemented.
5134 * XmlSignificantWhitespace.cs (CloneNode): Implemented.
5135 (Value) Implemented the 'get' property.
5137 * XmlWhitespace.cs (Module): implemented.
5139 2002-03-19 Jason Diamond <jason@injektilo.org>
5141 * XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
5144 2002-03-18 Jason Diamond <jason@injektilo.org>
5146 * XmlTextReader.cs: Don't restore properties after reading last
5147 attribute on an element.
5149 * XmlDocument.cs: Move back to element after reading attributes
5150 so that IsEmptyElement test succeeds.
5152 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5154 * XmlNamespaceManager.cs: Implemented LookupPrefix.
5156 * XmlTextWriter.cs: Implemented namespace and prefix support.
5158 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5160 * XmlTextReader.cs: Restores properties after
5161 reading last attribute on an element.
5163 * XmlNode.cs: AppendChild sets the parent
5166 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5168 * XmlCDataSection.cs: Formatting, Implementation for WriteTo.
5170 * XmlComment.cs: Implementations for WriteTo and WriteContentTo.
5172 * XmlElement.cs: Fixed bug in WriteTo.
5174 * XmlProcessingInstruction.cs: Formatting.
5176 * XmlTextWriter.cs: Implementations for Close, WriteCData, WriteComment,
5177 fixes for WriteEndElement, WriteProcessingInstruction.
5179 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5181 * XmlDocument.cs: Implementations for WriteTo() and WriteContentTo(),
5182 had Load() add PIs to the document, moved onXXX methods to alphabetical
5185 * XmlElement.cs: Implementations for WriteTo() and WriteContentTo().
5187 * XmlNode.cs: Implementations for InnerXml Get and OuterXml.
5189 * XmlProcessingInstruction.cs: Implementations for WriteTo() and
5192 * XmlTextWriter.cs: Implementations for WriteEndElement,
5193 WriteProcessingInstruction, WriteStartElement, and WriteString.
5195 * XmlWriter.cs: Implemented WriteStartElement() methods.
5197 2002-03-15 Duncan Mak <duncan@ximian.com>
5199 * XmlEntity.cs: Added to CVS. Need to implement BaseURI and
5200 InnerText once I know what they do.
5202 * XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
5203 that we can properly chain constructors.
5204 (CloneNode): implemented.
5205 (WriteContentTo): Removed MonoTODO attribute as this method has no
5206 effect in this class.
5208 * XmlProcessingInstruction.cs (Value): Added the missing Set
5210 (InnerText): Added in, but not implemented.
5212 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5214 * XmlTextWriter.cs: implemented constructors and
5215 WriteCData and WriteComment.
5217 2002-03-14 Duncan Mak <duncan@ximian.com>
5219 * XmlDocument.cs: Moved the NodeChanged EventHandler to its own
5220 file, and updated the callbacks to reflect the change.
5221 (XmlDocument): Added the NameTable constructor.
5222 (NameTable): Also the NameTable property.
5224 * XmlNodeChangedEventHandler.cs: Added, replacing the version that
5225 was in XmlDocument.cs. It has two arguments now (object,
5226 EventArgs) , instead of one (object).
5228 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5230 * XmlWriter.cs: Formatting.
5232 * XmlTextWriter.cs: Initial checkin.
5234 2002-03-14 Duncan Mak <duncan@ximian.com>
5236 * Validation.cs: Removed, replaced by ValidationType.cs.
5238 * ValidationType.cs: Added.
5240 2002-03-13 Duncan Mak <duncan@ximian.com>
5242 * XmlException.cs: Made it [Serializable], implemented good ol'
5243 GetObjectData, and the serialization constructor.
5245 * XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
5246 (SetNamedItem): Reverted (added back in) the patch with the
5247 ReadOnly checks. "Don't doubt yourself, my son... you were right!"
5249 * XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
5250 (GetNamedItem (string, string)): implemented.
5251 (RemoveNamedItem): implemented.
5252 (SetNamedItem): implemented.
5254 2002-03-12 Kral Ferch <kral_ferch@hotmail.com>
5256 * XmlAttribute.cs: Moved a method from amongst properties down to
5257 it's alphabetical position in the methods section.
5259 * XmlNode.cs: Passes in 'this' to XmlNodeList constructor instead of
5260 last linked child. Set XmlNode base class to return false for IsReadOnly().
5261 Implemented GetEnumerator() and RemoveChild().
5263 * XmlNodeListChildren.cs: Now stores the parent instead of the last child.
5264 This is to support the behavior that the Enumerator doesn't become invalid
5265 when changes to the children occur. Flushed out rest of implementation for
5266 MoveNext, Current, and Reset.
5268 2002-03-12 Duncan Mak <duncan@ximian.com>
5270 * XmlCharacterData.cs: Reformatted the properties for better readability.
5272 * XmlLinkedNode.cs: Removed the awful boxy comments.
5274 * XmlNamedNodeMap.cs (Count):
5275 (Item): Implemented. Tests will be coming.
5277 * XmlEntityReference.cs:
5278 * XmlSignificantWhitespace.cs: Implemented these classes except for
5279 the Clone, WriteContentTo and WriteTo methods. Will have to
5280 investigate into these later.
5282 2002-03-11 Duncan Mak <duncan@ximian.com>
5284 * IHasXmlNode.cs: Added to CVS.
5286 2002-03-08 Jason Diamond <jason@injektilo.org>
5288 * XmlParserContext.cs: Added missing constructors and missing Encoding
5291 * XmlTextReader.cs: Start using the XmlParserContext class.
5293 2002-03-08 Jason Diamond <jason@injektilo.org>
5295 * XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
5297 2002-03-08 Mike Kestner <mkestner@speakeasy.net>
5299 * XmlNode.cs (Item): Implemented both indexers.
5301 2002-03-08 Jason Diamond <jason@injektilo.org>
5303 * DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
5304 XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
5306 2002-03-08 Jason Diamond <jason@injektilo.org>
5308 * XmlAttribute.cs: Attribute nodes are supposed to store their values
5309 as child nodes so updated to reflect that.
5311 * XmlDocument.cs, XmlElement.cs, XmlNode.cs: Moved code that was
5312 duplicated in XmlDocument and XmlElement into XmlNode so that it
5313 wouldn't have to be duplicated in XmlAttribute, too.
5315 2002-03-08 Kral Ferch <kral_ferch@hotmail.com>
5317 * XmlNodeList.cs, XmlDocument.cs, XmlLinkedNode.cs,
5318 XmlNode.cs: Formatting.
5320 * XmlNodeListChildren.cs: Implementation of XmlNodeList
5321 for XmlNode.ChildNodes property.
5323 * XmlNodeListAsArrayList.cs: Removed file. Using different
5324 data structure (circular list) in XmlNode so this file
5327 * XmlDocument.cs, XmlElement.cs: New ChildNodes tests found
5328 bug in setter property of LastLinkedChild so fixed it.
5330 2002-03-06 Jason Diamond <jason@injektilo.org>
5332 * XmlInputSource.cs, XmlNames_1_0.cs, XmlParse.cs: Removed files.
5333 We already have a parser in XmlTextReader.
5335 * XmlException.cs: Removed constructor accepting XmlInputSource.
5337 2002-03-06 Kral Ferch <kral_ferch@hotmail.com>
5339 * XmlNode.cs: Rewrote this class from scratch with
5340 MonoToDo attribs and NotImplementedExceptions. Now defines an
5341 internal LastLinkedNode property to aid the new implementation.
5342 XmlNodes only have ref to owner doc and parent nodes now.
5344 * XmlLinkedNode.cs: Added NextLinkedSibling internal property
5345 and ref to next sibling to support walking our circular child
5348 * XmlDocument.cs: Added ref to last child node and overrides
5349 XmlNode's internal LastLinkedChild property to support walking
5350 our circular child node list.
5352 2002-03-02 Kral Ferch <kral_ferch@hotmail.com>
5354 * XmlProcessingInstructions.cs: Class was empty. Implemented
5355 constructor, properties, and CloneNode() method. Put in
5356 MonoToDo attrib for remaining methods.
5358 * XmlComment.cs: Reformatted and put in MonoToDo attribs.
5359 Got rid of helper methods and fields since they were no
5362 * XmlLinkedNode.cs: Reformatted and put in MonoToDo attribs.
5364 * XmlDocument.cs: Added code to Load(XmlReader) to create XmlComment,
5365 XmlCDataSection, and XmlProcessingInstruction nodes. Implemented
5366 Createxxx() methods for those three node types.
5368 2002-03-02 Jason Diamond <jason@injektilo.org>
5370 * XmlDocument.cs: Implemented the remaining CreateElement and
5371 CreateAttribute methods.
5373 * XmlAttribute.cs: Re-implemented.
5375 * XmlElement.cs: Set owner element on attributes. Reformatted.
5377 2002-03-02 Jason Diamond <jason@injektilo.org>
5379 * XmlTextReader.cs: Implemented MoveToNextAttribute().
5381 * XmlDocument.cs: Reformatted. Adding missing methods and MonoTODO
5382 attributes. Create attribute nodes while loading. Implemented
5383 Load(string) and CreateTextNode().
5385 * XmlCharacterData.cs, XmlText.cs: Re-implemented.
5387 * XmlCDataSection.cs, XmlComment.cs: Call correct constructor in
5390 * XmlNamedNodeMap.cs, XmlAttributeCollection.cs: Stubbed out.
5392 2002-03-02 Mike Kestner <mkestner@speakeasy.net>
5394 * XmlAttribute.cs : Using fix.
5395 * XmlDocument.cs (CreateAttribute(String)): Implement.
5397 2002-03-02 Jason Diamond <jason@injektilo.org>
5399 * XmlNamespaceManager.cs: Atomize prefixes and namespaces strings in
5402 2002-02-28 Jason Diamond <jason@injektilo.org>
5404 * XmlDocument.cs, XmlNode.cs: Initial implementation of LoadXml
5405 courtesy of Kral Ferch <kral.ferch@hotmail.com>.
5407 2002-02-28 Jason Diamond <jason@injektilo.org>
5409 * XmlException.cs, XmlReader.cs, XmlTextReader.cs: Reformatted,
5410 added missing members and MonoTODO attributes.
5412 * XmlTextReader.cs: Throw XmlException instead of System.Exception.
5414 2002-02-27 Jason Diamond <jason@injektilo.org>
5416 * XmlElement.cs: Reformatted, added missing members and MonoTODO
5419 2002-02-26 Duncan Mak <duncan@ximian.com>
5421 * XmlCDataSection.cs: Initial implementation.
5423 * NameTable.cs: Fixed the whole thing. Wrote a NUnit test to test
5424 it out. This should (hopefully) be correct.
5426 2002-02-26 Jason Diamond <jason@injektilo.org>
5428 * XmlTextReader.cs: Apparently Microsoft's implementation treats
5429 namespace declarations as attributes so we do now, too.
5431 * XmlNamespaceManager.cs: HasNamespace fixed so that it only
5432 checks the current scope.
5434 2002-02-26 Duncan Mak <duncan@ximian.com>
5436 * XmlDocumentType.cs: Added a few hacks here and there to
5437 temporarily fix the "I broke the build issue".
5439 2002-02-25 Jason Diamond <jason@injektilo.org>
5441 * XmlDocument.cs, XmlElement.cs, XmlNode.xs, XmlNodeList.cs,
5442 XmlNodeListAsArrayList.cs: Multiple fixes necessary to get
5443 simple test to pass. The existing code is really shitty so I'll
5444 probably start writing tests and refactoring before much else
5447 2002-02-25 Duncan Mak <duncan@ximian.com>
5449 * NameTable.cs: Implemented.
5451 * XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.
5453 2002-02-24 Duncan Mak <duncan@ximian.com>
5455 * XmlNodeOrder.cs: Added to CVS.
5457 * XmlQualifiedName.cs: Fixed a warning from Equals ().
5459 * XmlTokenizedType.cs: Added to CVS.
5461 * XmlUrlResolver.cs: Added to CVS with one TODO task.
5463 2002-02-23 Duncan Mak <duncan@ximian.com>
5465 * XmlQualifiedName.cs: Fixed ToString () and added the operators
5468 2002-02-23 Jason Diamond <jason@injektilo.org>
5470 * XmlTextReader.cs: Added support for qualified attributes.
5472 2002-02-23 Jason Diamond <jason@injektilo.org>
5474 * XmlNamespaceManager.cs: Initial implementation.
5476 * XmlTextReader.cs: Added support for NamespaceURI property on
5479 2002-02-23 Nick Drochak <ndrochak@gol.com>
5481 * ChangeLog: Add the change log to this directory
5483 * XmlQualifiedName.cs: Fixed compile errors so it would build. Still has