1 2006-09-27 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlTextWriter2.cs : null arg check.
5 2006-09-26 Atsushi Enomoto <atsushi@ximian.com>
8 Removed bogus return statement in Value. Fixed bug #79496.
10 2006-09-21 Atsushi Enomoto <atsushi@ximian.com>
12 * XmlNameEntryCache.cs : It should expand temporary buffer even at
13 initial state. Fixed bug #79468.
15 2006-09-19 Atsushi Enomoto <atsushi@ximian.com>
17 * XmlElement.cs : for non-atomized names, alter null prefix with "".
20 2006-09-04 Atsushi Enomoto <atsushi@ximian.com>
22 * XmlReader.cs : ReadContentAsString() and its family should allow
23 attribute node. Fixed bug #79268.
25 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
27 * XmlTextWriter2.cs : expect atomized names only when it is
28 appropriate. Fixed bug #79047.
30 2006-08-26 Atsushi Enomoto <atsushi@ximian.com>
32 * XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
33 so that it could fill default and fixed attributes. This ends up
34 to fix bug #79163 (it fills fixed "xmlns" attribute and thus
35 the node's namespace URI becomes that of glade-2.0).
37 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
39 * XmlEntity.cs, XmlEntityReference.cs, XmlNode.cs :
40 create entity content only when its children is being accessed.
41 It results differently when there is no actual reference in the
42 document - an invalid entity value (when it is used to create
43 child nodes) is ignored unless a code tries to access the Value
44 of an XmlEntity. Fixed bug #79091
45 * DTDReader.cs : the fix above uncovered another bug (ibm66n03.xml).
46 Check illegal reference name in literal entity value.
48 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
50 * XmlTextReader.cs, XmlTextReader2.cs, DTDReader.cs :
51 (ResolveExternalEntityReplacementText) need to skip text
52 declaration in external entities. To make it possible internalize
53 SkipTextDeclaration() in XmlTextReader(2). Fixed bug #79090.
55 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
57 * XmlTextReader2.cs : Check recursive entity reference.
58 Fixed bug #79085. It makes W3C standalone tests on NET_2_0 working.
60 2006-08-14 Atsushi Enomoto <atsushi@ximian.com>
62 * XmlTextReader.cs : When a whitespace node comes after a text
63 declaration in XML external entity (i.e. .ctor() with
64 XmlNodeType.Element), it contained extra value character ('<').
66 2006-08-10 Atsushi Enomoto <atsushi@ximian.com>
68 * XmlTextWriter2.cs : more indentation fixes. Now I believe it is
69 almost MS compat, but it won't help poor Mike.
71 2006-08-07 Atsushi Enomoto <atsushi@ximian.com>
73 * XmlTextWriter2.cs : WriteBinHex() is allowed at Attribute state.
76 2006-07-28 Atsushi Enomoto <atsushi@ximian.com>
78 * XmlTextWriter2.cs : fixed some indentation bugs: comments and PIs
79 should not cause indentation override like text, cdata and
81 Fixed some error messages on node kind.
82 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs : removed old code.
83 (I don't want to remove old great code but it confused mike today.)
85 2006-07-26 Atsushi Enomoto <atsushi@ximian.com>
88 For DTD validator, call to SetSchemas() makes no sense.
89 * XmlValidatingReader.cs : now it internally holds old
90 XmlSchemaCollection instead of new XmlSchemaSet, to make
91 XmlSchemaSet.SchemaCollection unneccessary.
92 Removed SetSchemas() since it is now extraneous because of the
93 XmlReaderChange above.
95 2006-07-25 Atsushi Enomoto <atsushi@ximian.com>
97 * XmlConvert.cs : TimeSpan conversion for TimeSpan.MinValue was
100 2006-07-19 Atsushi Enomoto <atsushi@ximian.com>
102 * XmlReader.cs : In Create(), support validation flags for DTD.
103 * DTDValidatingReader2.cs : when NET_2_0 and ProcessIdentityConstraints
104 is false, skip ID validation.
106 2006-06-26 Atsushi Enomoto <atsushi@ximian.com>
108 * XmlReader.cs : when Create() received string url, it should set
109 XmlTextReader2.CloseInput always true. Fixed bug #78706.
111 2006-06-08 Atsushi Enomoto <atsushi@ximian.com>
113 * XmlTextWriter2.cs : if an attribute being written has the same
114 non-empty namespace URI as current default namespace, its prefix
115 should be written. Fixed bug #78598.
117 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
119 * XmlAttribute.cs : (WriteTo) when the namespace URI is empty,
120 always use empty string for prefix.
122 2006-04-27 Geoff Norton <gnorton@customerdna.com>
124 * XmlDocument.cs: Move back to the element after
125 reading an attribute. This mimics Microsofts behaviour.
127 2006-04-21 Atsushi Enomoto <atsushi@ximian.com>
129 * XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
130 rejected after writing some content. I totally disagree on that
131 it should be allowed, but here is the fix.
133 2006-04-14 Atsushi Enomoto <atsushi@ximian.com>
135 * XmlReader.cs : ReadElementContentAsObject() incorrectly rejected
136 the argument type System.Object.
138 2006-04-10 Atsushi Enomoto <atsushi@ximian.com>
140 * XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
141 and root nodes instead of dispatching to ReadSubtree().
143 2006-04-06 Atsushi Enomoto <atsushi@ximian.com>
145 * XmlReader.cs : ReadElementContentAsXXX() did not consume empty
148 2006-04-05 Atsushi Enomoto <atsushi@ximian.com>
150 * XmlWriter.cs : Create(StringBuilder,XmlWriterSettings) was missing
151 settings argument to pass another .ctor().
152 * XmlWriterSettings.cs : set_NewLineChars() should reject null.
154 2006-04-03 Boris Kirzner <borisk@mainsoft.com>
155 * XmlException.cs: fix .net soap serialization compatibility.
157 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
159 * XmlNameEntry.cs XmlNameEntryCache.cs :
160 Added atomization support for prefixed names.
161 Inspired by Joshua Tauberer's patch.
162 * XmlElement.cs XmlAttribute.cs : use above.
164 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
166 * XmlReader.cs : in XmlReader.Create() ValidationType Auto and XDR
167 are simply ignored (it was found on running NvdlValidatingReader
170 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
172 * DTDValidatingReader.cs : avoid NullReferenceException. Input
173 XmlReader might not be IHasXmlParserContext.
175 2006-03-08 Atsushi Enomoto <atsushi@ximian.com>
177 * XmlReader.cs: ReadContentAsXXX() just stops at start element,
178 without rejecting it as an error.
179 ReadElementContentAsXXX() rejects child element nodes.
181 2006-02-28 Atsushi Enomoto <atsushi@ximian.com>
183 * XmlElement.cs : (WriteTo) use IsEmpty to determine which to use:
184 WriteEndElement() and WriteFullEndElement(). Fixed sys.security
187 2006-02-24 Atsushi Enomoto <atsushi@ximian.com>
189 * XmlTextWriter2.cs :
190 WriteRaw() has stupid second arg. Fixed bug #77623.
191 WriteString() should raise an error when it is called immediately
192 after WriteStartDocument().
194 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
196 * XmlTextWriter2.cs : WriteChars() should allow Attribute state.
198 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
200 * XmlChar.cs : (IndexOfInvalidChar) fixed surrogate pairs handling.
201 They were always regarded as invalid.
202 * XmlTextWriter2.cs : seems like MS XmlTextWriter outputs invalid
203 characters as character references. It totally does not make sense
204 but corcompare depended on that behavior.
206 This "compatibility" fix causes 10% or more performance loss!!!
208 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
210 * XmlTextWriter2.cs : (WriteStartAtribute) more == removal.
211 * XmlNode.cs : (get_InnerText) reduce extra StringBuilder creation.
213 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
215 * XmlTextWriter2.cs : (WriteStartAttribute) reduced string == string.
217 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
219 * XmlDocument.cs : (ReadNodeCore) not public.
221 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
223 * XmlTextWriter2.cs : (CloseStartElement)
224 Avoid ArrayList.Clear() and culture-sensitive Contains().
226 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
228 * XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
229 which discards "overriden" namespaces.
230 * XmlTextWriter2.cs : fresh implementation.
231 - The source structure is simplified and cleaner.
232 - When outputting escaped string, output directly to TextWriter.
233 - roughly 20% performance improvement.
235 (Also fixed previous perf. evaluation excess in ChangeLog.)
237 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
239 * XmlElement.cs : (WriteTo) make use of HasAttributes. Remove extra
240 check. 5% speed improvement.
242 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
244 * DTDValidatingReader2.cs : added Source XmlReader property for
245 XsdValidatingReader use (see XsdValidatingReader change as well).
247 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
249 * EntityResolvingXmlReader.cs, XmlNodeReader2.cs, XmlTextReader2.cs :
250 in get_NodeType() entity reader existence check is faster.
251 * DTDValidatingReader2.cs : IsDefault could be avoided.
253 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
255 * XmlNodeReaderImpl.cs : optimized Depth.
257 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
259 * XmlValidatingReader.cs : reducing layered ReadState invocation
260 results in 10% speed up.
262 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
264 * XmlNodeReaderImpl.cs : Reimplemented Read(). Points are:
265 - reduced call to NextSibling which is very unlikely to be inlined
266 - reorganized conditioning to avoid extra check
267 - added description on each returning branch.
268 - And then, removed unused code.
269 It is 1.5x faster than before.
271 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
273 * XmlElement.cs : NextSibling could be effectively computed using
274 LastLinkedChild, beyond previous XmlLinkedNode optimization.
276 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
278 * XmlLinkedNode.cs : In NextSibling, use LastChild directly.
279 It improves NextSibling performance in bulky document.
281 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
283 * XmlNodeReaderImpl.cs : do not compute ownerLinkedNode, just store
284 it in Read(). Simply use state field in EOF. They result in 20%
285 perf. boost. Expanding EOF also improved performance by 2-3%
286 (mono --optimize=inline might work in the later stage).
288 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
290 * DTDValidatingReader2.cs : more refactoring. Split ReadContent()
291 into some methods. Reduced some extra MoveToElement().
293 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
295 * DTDValidatingReader2.cs : more refactoring. Removed and simplified
296 some error check. String += would be enough for entity-reference-
297 mixed attributes which rarely happen, so simplify the code.
298 Added comments on how the fields are used.
300 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
302 * DTDValidatingReader2.cs : attribute node simplification. It now
303 stores attribute node slots, including default attributes for
306 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
308 * DTDValidatingReader2.cs, EntityResolvingXmlReader.cs :
309 new files for refactoring DTD validating reader. As the first stage,
310 it splits entity handling process from DTD validation step.
312 (DTDValidatingReader.cs will be removed at some stage).
314 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
316 * DTDObjectModel.cs : entity resolution method will be used in
317 the next DTD validating reader in 1.x.
319 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
321 * IHasXmlChildNode.cs :
322 New internal interface to hold LastLinkedChild.
323 * XmlNodeListChildren.cs XmlEntity.cs XmlElement.cs XmlAttribute.cs
324 XmlLinkedNode.cs XmlEntityReference.cs XmlNode.cs
325 XmlDocumentFragment.cs XmlDocument.cs : use it. It minimizes memory
326 consumption in XmlText, XmlWhitespace, XmlComment etc.
328 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
330 * XmlChar.cs : added IndexOfNonWhitespace() and IndexOfInvalid() (not
332 * NewLineHandling.cs : prepared to be used internally in 1.x.
334 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
336 * XmlDocument.cs XmlTextReader.cs : in ReadNode(), we can avoid
337 extraneous whitespace node creation for XmlTextReader by setting
338 WhitespaceHandling.Significant when PreserveWhitespace is false.
340 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
342 * XmlTextReader.cs : atomize whitespace values. It effectively saves
343 memory consumption when an input XML is indented.
345 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
347 * XmlTextReader.cs : When "Significant" is assigned to
348 WhitespaceHandling, it should ignore non-significant whitespaces.
350 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
352 * XmlWriter.cs : (WriteElementString and WriteAttributeString)
353 Skip empty string output.
355 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
357 * XmlTextWriter.cs : WriteRaw("") is not simply ignored but process
358 state check and closes open tag.
360 2006-02-11 Atsushi Enomoto <atsushi@ximian.com>
363 Avoid extra AppendValueChar() in ReadWhitespace().
365 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
367 * XmlTextReader.cs : ReadTextReader() is now assured to have current
368 node content, except for Text, CDATA and Comment. ReadName() does
369 not use nameBuffer and reuse peekChars.
371 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
373 * XmlTextReader.cs : eliminated currentTagBuffer. XmlDeclaration is
374 now once read as PI and then re-parsed from Value. DTD internal
375 subset is now parsed as usual "value".
377 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
379 * XmlTextReader.cs : Expect() could be written inline and it could
380 provide better information. ReadEndTag() could use Expect() instead
383 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
385 * XmlTextReader.cs : on ReadEndTag() we can avoid NameTable.Add().
386 Store name, local name and prefix in the stack instead of just name
387 and reuse them for EndElement.
389 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
391 * XmlDocumentNavigator.cs : make use of HasAttributes (avoid possible
392 XmlAttributeCollection creation).
394 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
396 * XmlTextReader.cs : no need to call Clear() for each attribute value.
398 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
400 * XmlDocument.cs : reverted most of the previous changes. It somehow
401 broke System.Data tests.
403 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
405 * XmlDocument.cs, XmlAttribute.cs, XmlElement.cs : Avoid unnecessary
406 name checks in CreateElement() and CreateAttribute().
407 get_DocumentType() could be stopped when the iterated child node
408 is the document element.
409 * XmlNode.cs : removed commented lines.
410 * XmlNameEntry.cs : hash code for a name entry is mostly identical by
411 its local name, so avoid extraneous GetHashCode() especially on
414 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
416 * XmlReader.cs : ReadOuterXml() returns meaingful value only for
417 element and attribute. ReadInnerXml() does not have to create
418 XmlTextWriter for empty elements.
420 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
422 * XmlNodeReader2.cs XmlException.cs XmlReader.cs XmlTextReader.cs
423 XmlWriter.cs XmlTextWriter.cs XmlValidatingReader.cs
424 XmlNodeReaderImpl.cs DTDValidatingReader.cs XmlSecureResolver.cs:
425 cleaning up obsolete NET_1_0 code.
427 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
429 * XmlTextWriter.cs : avoid case-insensitive String.Compare().
430 Use array for openElements rather than ArrayList.
432 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
434 * XmlElement.cs, XmlAttribute.cs :
435 Avoid ChildNodes.Count and use FirstChild/NextSibling.
437 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
439 * XmlNode.cs, XmlIteratorNodeList.cs :
440 Now we can enable XmlIteratorNodeList again (mcs, incorrectly
441 removing nodes in the node list, was fixed).
443 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
445 * XmlDocument.cs : in ReadNode() to consume element node, switched
446 to MoveToAttribute(int) since MoveToNextAttribute() was somehow
447 not working fine. It is needed to avoid Sys.Data test breakage
448 and anything else should be fixed indeed.
450 Fri Jan 27 20:39:48 CET 2006 Paolo Molaro <lupus@ximian.com>
452 * XmlTextReader.cs, XmlChar.cs: more tweaks and speedups.
454 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
456 * XmlTextReader.cs : optimization patch by Paolo.
457 Fast path optimization in PeekChar().
458 Avoid double-evaluation of PeekChar() and ReadChar() by new
461 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
463 * XmlNode.cs : disabled XmlIteratorNodeList optimization. It caused
464 some kind of regression under mcs/tests/xml-025.cs.
466 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
468 * XmlAttributeCollection.cs :
469 Replaced all Nodes.Count with Count (it could avoid extraneous
470 ArrayList creation in XmlNamedNodeMap). ID attribute adjustment
471 was extraneously done against all attribute nodes and thus there
472 was a plenty of call to Value.
473 * XmlNamedNodeMap.cs : added comment on SetNamedItem() W3C spec
476 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
482 Added internal AppendChild() override that omites node type
483 checking, and used it in many places.
485 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
487 * XmlDocument.cs : optimized ReadAttributeNode() to not call
488 MoveToAttribute() unneccesarily (call it only when ReadNode() is
489 called on an attribute node).
491 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
494 in get_InnerText(), avoid extraneous StringBuilder creation.
496 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
498 * XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
499 It does not iterate all nodes in advance.
500 * XmlNode.cs : use XmlIteratorNodeList in SelectNodes().
502 2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
504 * XmlWriter.cs : Dispose() is protected.
506 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
508 * XmlNamedNodeMap.cs : lazily create internal ArrayList. Thanks to
509 Joshua Tauberer for the hint.
511 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
513 * XmlConvert.cs : ToString(TimeSpan) should return valid duration
514 for TimeSpan.Zero, rather than "P". Fixed bug #77350
516 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
518 * XmlNameEntryCache.cs XmlNameEntry.cs :
519 Made name entry fields as not read-only. Added Update() to reset
520 members. Its semantics of Equals() is changed.
521 Now entry cache is based on Hashtable rather than ArrayList.
522 It saves heavy iteration in ArrayList.
524 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
526 * XmlNameEntryCache.cs XmlNameEntry.cs XmlDocument.cs :
527 Add Hash field to find name entry quickly.
528 In XmlNameEntryCache make use of name table (it is totally
529 unused there though).
531 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
533 * XmlConvert.cs : handle Ticks. Fixed bug #77252.
535 2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
537 * XmlTextWriter.cs : Fixed bug #77082.
538 When the state was Start, after WriteProcessingInstruction() and
539 WriteWhitespace() change it to Prolog.
540 After WriteDocType() set state to WriteState.Element.
542 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
544 * XmlTextWriter.cs : Do not local duplicate of automatically-created
545 prefixes (i.e. check local autocreated prefixes other than
546 namespaces from ancestors). Fixed bug #77086 and #77087.
548 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
550 * XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
551 ArgumentException in WriteNmTokenInternal().
553 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
555 * XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
556 such invalid "xml" prefix which is being mapped to different
557 namespace URI than the predefined one.
558 Removed comment that does not make sense.
559 * XmlNamespaceManager.cs : IsValidDeclaration() could be private.
562 2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
564 * DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an
565 attribute is #IMPLIED.
567 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
569 * XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
570 ReadSubtree() for non-element content since they are not allowed
571 in ReadSubtree() (but allowed here).
573 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
575 * XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
576 nodes as target string nodes as well as other text nodes.
578 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
580 * XmlValidatingReader.cs : ReadTypedValue() was not working with
581 non-XmlSchemaDatatype types.
583 2006-01-05 Gert Driesen <drieseng@users.sourceforge.net>
585 * XmlTextWriter.cs: Modified WriteWhitespace to throw ArgumentException
586 if value is null or zero-length string. Modified WriteNmToken to throw
587 ArgumentException if name is null or zero-length string. Cosmetic
588 change to WriteStringInternal.
589 * XmlElement.cs: In 2.0 profile, do not throw ArgumentNullException
590 if new value for Prefix is null.
592 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
594 * XmlTextWriter.cs : when namespaceURI is String.Empty, Prefix
595 should be just ignored (it is likely to happen that DOM nodes
596 with empty namespace URI are specified non-empty prefix by
597 users, which had better be just ignored). Fixed bug #77095.
599 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
601 * XmlElement.cs : patch for Prefix property by Vorobiev Maksim.
602 - null should cause ArgumentNullException.
603 - "" should not raise an error.
604 - throws ArgumentException when it is readonly.
606 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
608 * XmlTextWriter.cs : When xml:space or xml:lang attribute was
609 directly written without an element, it caused ArgumentOutOfRange.
612 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
614 * XmlTextWriter.cs : (WriteStartAttribute) set prefix as "xmlns" when
615 namespaceURI is that of xmlns attributes. Fixed bug #77083.
617 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
619 * DTDObjectModel.cs : (CreateXsdParticle) element particle was
620 missing occurence indicators.
622 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
624 * DTDObjectModel.cs : some fixes on GetXmlSchema()
625 - make generated schema cleaner.
626 - enumeration was missing for attribute type.
627 * XmlTextReader.cs, XmlTextReader2.cs : added tiny notes for dtd2xsd.
629 2005-12-15 Konstantin Triger <kostat@mainsoft.com>
631 * XmlTextWriter.cs: allow null string in WriteCData.
633 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
635 * XmlNode.cs : (GetNamespaceOfPrefix) return const xml/xmlns URIs
638 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
640 * XmlDocumentNavigator.cs : added UnderlyingObject as to behave as
643 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
645 * XmlNode.cs : under 2.0 xml/xmlns are treated as special cases in
646 GetNamespaceOfPrefix()/GetPrefixOfNamespace() (but it still does not
647 implement IXmlNamespaceResolver, bummer).
649 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
651 * XmlDocument.cs : changed some exception types.
652 * XmlDocumentNavigator.cs : added 2.0 SchemaInfo.
654 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
656 * XmlTextReader.cs : 1.x build fix.
658 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
660 * XmlTextReader.cs : when XmlReader.Create() creates this instance,
661 don't expect strict text declaration. Check SkipTextDeclaration()
664 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
666 * XmlReader.cs : fixed several misconception in MoveToNextSibling().
667 It should check its ReadState to avoid infinite loop.
669 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
671 * XmlException.cs : added another .ctor() overload that takes both
672 IXmlLineInfo and innerException.
673 * XmlQualifiedName.cs : added Parse() overload that takes XmlReader
674 (since XmlReader is not IXmlNamespaceResolver anymore).
675 * XmlReader.cs : made several fixes on 2.0 ReadContentAs(),
676 ReadElementContentAs() and all of its variants.
678 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
680 * XmlInputStream.cs :
681 Added Encoding property on NonBlockingStreamReader
683 set Encoding property when it proceeds to xml declaration.
685 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
687 * XmlReader.cs : ReadToDescendant() should work when its ReadState is
690 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
692 * XmlChar.cs : removed incorrect comment.
693 * XmlReader.cs : Create() clones XmlReaderSettings (if supplied).
694 For wrapped XmlReader, check ConformanceLevel to be consistent.
695 * XmlTextReader.cs, XmlTextReader2.cs : added get_Conformance for
696 internal use. Removed unused fields.
697 * XmlInputStream.cs : updated NonBlockingStreamReader to the latest
698 StreamReader (it is almost a copy).
700 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
702 * XmlTextReader.cs : avoid Char.IsSurrogate() and do it inside
703 PeekChar(), which improves notable performance.
705 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
707 * XmlReaderSettings.cs : Schemas will be created only when it is
710 2005-12-08 Andrew Skiba <andrews@mainsoft.com>
712 * IXmlNamespaceResolver.cs: delete TARGET_JVM,
713 no need to mangle the name
715 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
717 * Driver.cs, Profiler.cs, XmlQualifiedNameTable.cs :
720 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
722 * XmlReaderSettings.cs : thanks to idiotic MS design,
723 AllowXmlAttributes is turned on by default.
725 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
727 * XmlReaderSettings.cs :
728 set_Schemas() is fixed in 2.0 RTM (it just works).
729 * XmlResolver.cs : throw ArgumentNullException instead of
730 ArgumentException when both base and relative urls are null.
732 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
734 * XmlReaderSettings.cs : ProhibitDtd is set as default.
735 * XmlWriterSettings.cs : no set_OutputMethod.
737 2005-11-30 Konstantin Triger <kostat@mainsoft.com>
739 * IXmlNamespaceResolver.cs: TARGET_JVM namespace change.
741 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
743 * XmlInputStream.cs: fixed Initialize method to be able
744 to read unicode file without BOM. TARGET_JVM only.
746 2005-11-14 Atsushi Enomoto <atsushi@ximian.com>
748 * XmlNodeReader.cs : removed historical one.
750 2005-11-10 Atsushi Enomoto <atsushi@ximian.com>
752 * XmlReader.cs, XmlNode.cs :
753 [DebuggerDisplay] are not worthy of existing.
755 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
757 * XmlTokenizedType.cs, XmlNodeOrder.cs : so those enums happen to
758 have [Serializable] in .NET 1.x, and removed in 2.0 (enums are
759 anyways serializable, so those attributes do not make sense).
761 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
763 * XmlValidatingReader.cs : added CanReadBinaryContent.
764 * XmlTextReader.cs, XmlTextReader2.cs : GetNamespacesInScope() are
765 now both public and private (i.e. hush IsVirtual).
766 * XmlWriterSettings.cs, XmlWriter.cs, XmlTextWriter.cs :
767 NormalizeNewLines vanished.
769 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
771 * XmlReader.cs : MoveToAttribute(int) is virtual in NET_2_0.
773 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
775 * XmlConvert.cs : implemented VerifyTOKEN().
777 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
779 * XmlConvert.cs : VerifyNCName() and VerifyName() throws
780 ArgumentNullException for "".
782 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
784 * XmlReader.cs : dependent XmlSchemaValidationFlags fix.
785 Added ReadElementContentAsObject() and ReadContentAsObject().
786 * XmlReader.cs, XmlTextReader.cs :
787 LookupNamespace(string,bool) is now private.
788 * XmlReader.cs, XmlNode,cs :
791 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
793 * XmlElement.cs, XmlCDataSection.cs, XmlText.cs, XmlWhitespace.cs,
794 XmlSignificantWhitespace.cs : added ParentNode overrides (actually
795 they don't make sense since it just calls base.)
796 * XmlNode.cs, XmlDocument.cs : changed .NET 2.0 CreateNavigator() impl
797 to match signature and skip OwnerDocument check in XmlNode (since
798 it is overriden). Maybe MS does not have ownerDocument as a field and
799 costs too much on OwnerDocument property.
800 Added missing bits in XmlDocument.
802 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
804 * XmlAttribute.cs : added new overrides in 2.0 RTM (this scarcely
805 makes sense without real optimization though).
806 * XmlDocument.cs, XmlElement.cs, XmlNode.cs : avoid ChildNodes and
807 save extra XmlNodeList creation cost.
809 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
811 * XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
812 * XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
813 ReadTypedValue() is removed.
814 * XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
815 * XmlWriter.cs : Settings is virtual.
817 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
819 * XmlDocumentNavigator.cs : now MoveToFirst() invokes internal
822 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
824 * XmlTextWriter.cs : oops, so WriteState.Error is NET_2_0 only.
826 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
828 * XmlTextWriter.cs : (Error state check) actually I need to set Error.
830 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
832 * XmlTextWriter.cs : throw InvalidOperationException if any of
833 WriteBlah() methods were invoked at error state.
835 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
837 * XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
838 default namespace was returning "" instead of null. It didn't check
839 empty namespace URI for non-empty prefixes.
841 2005-10-07 Joshua Tauberer <tauberer@for.net>
843 * XmlTextReader.cs: SkipTextDeclaration would not accept processing
844 instructions that began with the string 'xml', e.g. rejecting
847 2005-10-08 Gert Driesen <drieseng@users.sourceforge.net>
849 * XmlAttribute.cs: InnerText and InnerXml do not override getters in
850 NET_2_0. Removed extra CLSCompliant attribute on SchemaInfo.
851 * XmlReaderSettings.cs: Marked sealed.
853 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
855 * XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
856 digits for "second" were not exactly 3. Fixed bug #76328.
858 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
860 * XmlReader.cs : Name is virtual in NET_2_0.
862 2005-10-03 Atsushi Enomoto <atsushi@ximian.com>
864 * XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
865 added supprot for NormalizeNewLines.
866 NewLineOnAttributes is considered only when Indent is true.
868 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
870 * XmlAttribute.cs, XmlDocument.cs : check id table updates when
871 XmlAttribute.set_Value() was invoked. Fixed bug #76311.
873 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
875 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs :
876 XmlReader.Create() with string url argument are not working because
877 of incorrect choice of the .ctor().
879 2005-09-28 Atsushi Enomoto <atsushi@ximian.com>
881 * XmlNodeReaderImpl.cs : when the source node was not a document and
882 it is an empty element, Read() was incorrectly moving to the parent
883 of the source node. Patch by Csaba Halasz. Fixed bug #76260.
885 2005-09-27 Atsushi Enomoto <atsushi@ximian.com>
887 * XmlTextReader.cs : surrogate computation is incorrect. Fixed bug
888 #76247. Patch by Brion Vibber.
890 2005-09-26 Atsushi Enomoto <atsushi@ximian.com>
892 * DTDValidatingReader.cs : Namespace manager was not handled correctly.
893 Now it does the same as XmlTextReader does. Fixed bug #76234.
895 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
897 * XmlNodeChangedEventArgs.cs: Only make ctor publicly available
898 in NET_2_0. Fixed API compatiblity with .NET 1.1.
899 * XmlOutputMethod.cs: Fixed values of enum fields to match MS.NET.
900 Only available in .NET 2.0.
902 2005-09-25 Atsushi Enomoto <atsushi@ximian.com>
904 * XmlReader.cs, XmlReaderSettings.cs, XmlDocument.cs:
905 XmlSchemaValidationFlags updates.
907 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
909 * XmlWriterSettings.cs : true NET_2_0 updates.
911 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
913 * XmlOutputMethod.cs : new file.
914 * XmlWriter.cs, XmlValidatingReader.cs, XmlReaderSettings.cs,
915 XmlUrlResolver.cs, XmlWriterSettings.cs :
916 more NET_2_0 updates.
918 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
920 * XmlNodeReader2.cs, XmlReader.cs,
921 XmlTextReader.cs, XmlTextReader2.cs,
922 XmlNodeChangedEventArgs.cs, XmlElement.cs,
923 XmlNode.cs, XmlDocument.cs :
926 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
928 * XmlTextReader.cs : when there is a heading half of surrogate at the
929 end of read buffer, it didn't treat it as a surrogate.
932 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
934 * XmlTextWriter.cs : for surrogate pair, output character reference
935 as a single character instead of two reference pairs. Fixed bug #76095.
936 Patch by Brion Vibber.
938 2005-08-31 Sebastien Pouliot <sebastien@ximian.com>
940 * XmlDocument.cs: Added an InheritanceDemand for Unrestricted on
941 CreateDocumentType and ReadNode methods.
942 * XmlException.cs: Added a Demand for SerializationFormatter on
943 GetObjectData method.
944 * XmlResolver.cs: Added an InheritanceDemand for Unrestricted on
946 * XmlSecureResolver.cs: Fixed exception when creating evidences with
947 an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy
948 and PermitOnly if the security manager is enabled.
949 * XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
951 * XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on
953 * XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted
956 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
958 * DTDReader.cs : no need to skip text declaration for such entity
959 declaration that has literal entity. It should not expand entities
960 inside ResolveExternalEntityReplacementText().
961 Finally fixed bug #51495.
963 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
965 * XmlTextReader.cs, XmlTextReader2.cs : added internal .ctor() to
966 receive both TextReader, XmlNodeType and BaseURI for entity
967 resolution (though it would be removed later).
968 * XmlParserInput.cs : Now to handle nested PE insertion and correct
969 BaseURI, it internally holds a stack of "input source".
972 Required fixes for XmlParserInput.
973 Handle BaseURI as expected. Added ActualUri for resolved actual
974 source URI (to resolve nested entities). Pass ActualUri to internal
975 XmlTextReader.ctor() in ResolveExternalEntityReplacementText()
976 (well, yes I remember, it is problematic.)
978 Incorrect Base URI handling bug (part of #51495) is fixed.
980 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
982 * DTDReader.cs, XmlParserInput.cs :
983 let's fix #51495. First of all, refactoring.
985 2005-08-04 Atsushi Enomoto <atsushi@ximian.com>
987 * XmlAttribute.cs : When there was only one child in attribute
988 and it was an entity reference, set_Value() tried to set text value
991 2005-08-03 Gert Driesen <drieseng@users.sourceforge.net>
993 * XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
994 * XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to
995 RoundtripKind to match .NET 2.0 Beta 2.
996 * XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
997 in .NET 2.0 Beta 2, and is explicit interface implementation.
998 * XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
1000 * XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
1002 * XmlValidatingReader.cs: GetNamespacesInScope returns generic
1003 IDictionary in .NET 2.0 Beta 2.
1004 * IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic
1005 IDictionary in .NET 2.0 Beta 2.
1006 * XmlNamespaceManager.cs: GetNamespacesInScope returns generic
1007 IDictionary in .NET 2.0 Beta 2.
1008 * XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic
1009 IDictionary in .NET 2.0 Beta 2.
1010 * DTDValidatingReader.cs: GetNamespacesInScope returns generic
1011 IDictionary in .NET 2.0 Beta 2.
1013 2005-07-14 Atsushi Enomoto <atsushi@ximian.com>
1015 * XmlTextWriter.cs : In WriteQualifiedName(), when there is open
1016 attribute, it calls LookupPrefix() and then if namespace was empty,
1017 it resulted in an exception. Fixed bug #75546.
1019 2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
1021 * XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
1022 to ISO 8601 and XSD datatypes 3.2.6.1).
1024 2005-06-27 Andrew Skiba <andrews@mainsoft.com>
1026 * DTDReader.cs : don't validate entity values, when the entry is
1027 redefined so it will be never used. Fixes valid-sa-086 test from W3C
1030 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1032 * XmlQueryDialect.cs : removed.
1034 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1036 * XmlWriter.cs : added Create(XmlWriter).
1037 * XmlValidatingReader.cs : added Read*AsBase64/BinHex().
1038 * XmlReaderSettings.cs : added obsolete annoyances to hush corcompare.
1040 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1042 * XmlTextReader.cs : use StringBuilder.ToString(int,int) when it does
1043 not have a large chunk of data, following Ben's idea.
1045 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1047 * XmlTextReader.cs : use StringBuilder to store character values; that
1048 saves 40% memory for large chunk of xml. Patch by Gonzalo.
1050 2005-06-22 Andrew Skiba <andrews@mainsoft.com>
1052 * XmlNode.cs : cosmetic fix - remove unnecessary argument from
1053 AppendChildValues function.
1055 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1057 * XmlTextReader.cs : normalization is not required to check character
1058 validity everywhere except for character reference.
1060 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1062 * DTDValidatingReader.cs : removed some extra IsDefault check (with
1063 the latse code default attributes are stored in hashtables anyways.)
1064 Fixup attribute namespaces _after_ xmlns attributse are filled.
1065 The latest change is not good that namespaceURI of a local attribute
1066 was incorrectly globally looked up (it should be always "").
1068 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1070 * XmlValidatingReader.cs : LookupNamespace() was trying to access to
1071 null reference to validatingReader.
1072 * DTDValidatingReader.cs : Fixed default xmlns* attribute handling.
1073 It used to be valid only at the declaring element.
1075 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1077 * DTDValidatingReader.cs : further text node fixes.
1078 - Cut out validation code from Text node case.
1079 - Now it does not use error-prone case transition but uses
1080 DocumentFragment 'vacant room' and fixed incorrect transition from
1082 - CDATA should be validated the same as Text is.
1084 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1086 * DTDValidatingReader.cs : whitespace nodes were incorrectly rejected
1087 inside non-mixed content model.
1089 2005-06-09 Andrew Skiba <andrews@mainsoft.com>
1091 * XmlConvert.cs : add TARGET_JVM for roundtrip bug
1093 2005-06-06 Atsushi Enomoto <atsushi@ximian.com>
1095 * XmlEntityReference.cs, XmlNode.cs : protected api fix.
1097 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
1099 * XmlEntityReference.cs, XmlNode.cs : For entity references, BaseURI
1100 resolution should be different from that of parent since they might
1101 differ. Patch by Andrew Skiba.
1103 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1106 make sure to close parser input before parser stack pop.
1107 * DTDValidatingReader.cs : ditto.
1108 * DTDObjectModel.cs : Fixed another incorrect null BaseURI check.
1110 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1112 * DTDValidatingReader.cs : Last BaseURI exposed this hidden bug via
1115 2005-05-30 Atsushi Enomoto <atsushi@ximian.com>
1117 * DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
1118 BaseURI which results in incorrect URI resolution.
1120 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1122 * DTDObjectModel.cs : For simple type restriction creation it failed
1123 when there is no enumerations (largely failed).
1125 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1127 * XmlImplementation.cs : added new NET_2_0 ctor.
1128 Let's check corcompare:-/
1130 2005-05-11 Atsushi Enomoto <atsushi@ximian.com>
1132 * DTDValidatingReader.cs : namespace storing was stupid.
1134 2005-05-10 Atsushi Enomoto <atsushi@ximian.com>
1136 * DTDValidatingReader.cs : since namespace declarations might be
1137 resolved differently due to entity handling, it holds its own set
1138 of declared namespaces. NamespaceURI and LookupNamespace() use it.
1140 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
1142 * XmlReader.cs : added ReadElementContentAsLong().
1143 * XmlWriter.cs : removed some obsolete WriteValue() overloads.
1145 IXmlNamespaceResolver.cs : removed deprecated 2.0 bits.
1146 * XQueryConvert.cs : obsolete (yeah, now XQuery should be hidden).
1148 2005-05-06 Atsushi Enomoto <atsushi@ximian.com>
1150 * XmlInputStream.cs : Now XmlStreamReader uses non-blocking TextReader
1151 that is mostly copied from StreamReader. It should fix bug #74161.
1153 2005-05-05 Atsushi Enomoto <atsushi@ximian.com>
1155 * XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
1156 XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
1157 DTDValidatingReader.cs : Removed most of "atomizedName" related
1158 stuff that are obsoleted in 2.0 beta2.
1159 * XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.
1161 2005-05-04 Andrew Skiba <andrews@mainsoft.com>
1163 * IXmlNamespaceResolver.cs : mangle the interface method names when
1164 compiling for TARGET_JVM
1166 2005-03-30 Atsushi Enomoto <atsushi@ximian.com>
1168 * XmlUrlResolver.cs : just return connected Stream instead of fully
1169 downloaded memory cache. Fix by Konstantin Triger.
1171 2005-03-24 Atsushi Enomoto <atsushi@ximian.com>
1173 * XmlWriter.cs : WriteQualifiedName() should check namespace validity
1174 (whether it is in scope or not).
1175 * XmlTextWriter.cs : When WriteQualifiedName() is invoked inside
1176 attribute and no matching namespace declaration, create prefix
1177 on demand. Code reused from WriteStartAttribute().
1179 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1181 * XmlValidatingReader.cs : create schema set on demand.
1183 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1185 * XmlParserInput.cs,
1188 DTDValidatingReader.cs : removed/commented out those warned code.
1190 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1192 * XmlDocumentNavigator.cs : overriden IsDescendant (default
1193 implementation extraneously clones).
1195 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1197 * DTDValidatingReader.cs : When expanding entities and there is a
1198 sequence of text nodes, its value was not returned.
1199 * XmlTextReader.cs : better invalid char error report for EOF.
1201 2005-03-09 Andrew Skiba <andrews@mainsoft.com>
1203 * XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
1204 surrogate calculations. This fixes bug 73513.
1206 2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
1208 * XmlParserInput.cs : silly mixed line endings :(
1210 2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
1212 * XmlTextWriter.cs : namespace declaration check for those which starts
1213 with 'x' 'm' 'l' should not be done here (it might be 'declared'
1215 * XmlNamespaceManager.cs : error message for "'xml' prefix for
1216 different namespace" is incorrect.
1218 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1220 * XmlDocument.cs : ugh, so I introduced extraneous reader.Read() in
1221 ReadNode() for EntityReference and it resulted in unexpected skip.
1222 * DTDValidatingReader.cs : On EndEntity, LocalName and Name should
1223 return the name of entity. Removed unused entityReaderNameStack.
1225 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1227 * DTDValidatingReader.cs : reverted one change in r40985. Entity stack
1228 is nothing to do with ReadAttributeValue().
1230 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1232 * DTDValidatingReader.cs : When there was actual attribute in source
1233 XmlReader, MoveToAttribute(i) did not move source reader as expected.
1235 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1237 * XmlDocument.cs : In ReadNode(), on EntityReference node, when
1238 XmlReader can resolve entity, it expands entity and apppend
1239 children into the entity reference. Patch by Konstantin Triger.
1241 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1243 * XmlTextWriter.cs : For duplicating namespace mapping, it should
1244 create another prefix without throwing an exception.
1246 2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
1248 * XmlTextWriter.cs : LookupPrefix() should not return those prefix
1249 that is overriden by another xmlns declaration.
1251 2005-02-26 Atsushi Enomoto <atsushi@ximian.com>
1253 * XmlEntity.cs : it was not returning SYSTEM ID when there is no
1255 * XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
1256 get_NodeType() resulted in loop.
1258 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1260 * XmlComment.cs, XmlNode.cs, XmlText.cs, XmlProcessingInstruction.cs,
1261 XmlEntityReference.cs, XmlSignificantWhitespace.cs, XmlAttribute.cs,
1262 XmlElement.cs, XmlEntity.cs, XmlCDataSection.cs :
1263 For those nodes that are created by Clone(), IsReadOnly is false.
1264 Patch by Konstantin Triger.
1266 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1268 * XmlDocumentNavigator.cs : iteratedNames array could be fixed and
1269 performance got improved. Patch by Konstantin Triger.
1271 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1273 * XmlAttribute.cs : MS does not reject non-NCName prefix. Patch by
1276 2005-02-24 Atsushi Enomoto <atsushi@ximian.com>
1278 * XmlTextWriter.cs : WriteString() should be valid when
1279 WriteStartDocument() was not called.
1281 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1283 * XmlNamespaceManager.cs : IsValidDeclaration was giving useless error
1286 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1288 * XmlDocumentNavigator.cs : it should virtually expand EntityReference,
1289 so refactored to handle both entity references and top level children.
1291 2005-02-22 Atsushi Enomoto <atsushi@ximian.com>
1293 * XmlTextReader.cs : XmlParserContext was not properly popped on
1294 the expected timing and thus had lost BaseURI, XmlSpace and XmlLang.
1295 * XmlInputStream.cs : XmlTextReader does not allow invalid utf-8
1298 2005-02-21 Atsushi Enomoto <atsushi@ximian.com>
1300 * DTDValidatingReader.cs : It should not skip whitespace and
1301 significant whitespace nodes unless it is expanding entities.
1302 * XmlDocumentNavigator.cs : Fixed NodeType that was returning
1303 incorrect type when there is a sequence of text/cdata/space nodes.
1305 2005-02-18 Atsushi Enomoto <atsushi@ximian.com>
1307 * XmlNamespaceManager.cs : Prefix "xml" is bound to the fixed
1308 namespace "http://www.w3.org/XML/1998/namespace", but it is not
1309 vice versa (i.e. we can use other prefixes for this namespace URI).
1311 2005-02-17 Atsushi Enomoto <atsushi@ximian.com>
1313 * XmlNode.cs : It does not have to iterate children to find argument
1314 node. Fixed exception type to ArgumentException. Patch by Andrew
1317 2005-02-16 Atsushi Enomoto <atsushi@ximian.com>
1319 * XmlAttribute.cs : just use InnerText for Value. Patch by Andrew
1321 * XmlConvert.cs : Handle null and empty strings for EncodeName(),
1322 EncodeLocalName() and EncodeNmToken(). Patch by Andrew Skiba.
1323 * NameTable.cs : usually tail of namespaces are rather different than
1324 head of them. Patch by Andrew Skiba.
1325 * XmlUrlResolver.cs : missing %20 handling. Patch by Andrew Skiba.
1327 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1329 * XmlAttribute.cs : For default attributes, WriteTo() writes nothing
1331 * DTDValidatingReader.cs : reduced indentation using Linus trick
1332 (it was too deep in nest).
1334 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
1336 * DTDValidatingReader.cs : Namespaces and prefixes are not properly
1337 handled (it incorrectly assumed DTD definitions and thus always
1338 assumed empty namespace/prefixes).
1340 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
1342 * DTDValidatingReader.cs : element name stack might be empty when the
1343 input XmlReader contains fragments. Patch by Andrew Skiba.
1345 2005-01-25 Martin Baulig <martin@ximian.com>
1347 * XmlNode.cs (XmlNode.SchemaInfo): Mark this as not CLS-compliant
1350 * XmlReaderSettings.cs (XmlReaderSettings.XmlResolver): Mark this
1351 as not CLS-compliant to avoid a CS3025.
1353 2005-01-18 Atsushi Enomoto <atsushi@ximian.com>
1357 XmlAttributeCollection.cs :
1358 Now reuse parentNode field for XmlAttribute.OwnerElement and
1359 reduce class allocation size.
1361 New class that represents a name triplet.
1362 XmlNameEntryCache.cs :
1363 New type to cache name entries.
1366 Replace name strings with name entry and save class allocation size.
1368 Add name entry cache field to document and reuse name entries that
1369 are already allocated.
1371 2005-01-17 Atsushi Enomoto <atsushi@ximian.com>
1373 * XmlNode.cs, XmlAttribute.cs : reverted the previous patch. It broke
1374 several nunit tests.
1376 2005-01-15 Ben Maurer <bmaurer@ximian.com>
1378 * XmlNode.cs (InnerText, AppendChildValues): Don't allocate a
1379 string in the case where nothing needs to be appended.
1381 * XmlAttribute.cs (BuildChildValue): Start out the string with
1382 `null' not `String.Empty'. String.Concat (null, blah) == blah,
1383 pointerwise. ie, there is no allocation. This makes it so that
1384 getting the value of an attribute is faster for the fast case.
1386 2005-01-13 Atsushi Enomoto <atsushi@ximian.com>
1388 * XmlResolver.cs : throw ArgumentException in ResolveUri().
1390 2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
1392 * XmlTextWriter.cs : WriteComment() was outputting extraneous EOL.
1394 2004-12-26 Atsushi Enomoto <atsushi@ximian.com>
1396 * XmlReader.cs : ReadElementContentAsBinHex() was calling ..AsBase64().
1397 * XmlValidatingReader.cs : In set_EntityHandling(), set that property
1398 of DTDValidatingReader.
1399 * XmlNodeReader2.cs,
1400 XmlNodeReaderImpl.cs : added simplified implementation that splits
1401 entity handling and anything else.
1402 * XQueryConvert.cs : implemented ShouldCheckValueFacets().
1403 Use Convert class instead of simple casts (check range).
1404 * XmlReaderSettings.cs : added SetSchemas() for XPathNavigator.
1406 2004-12-22 Atsushi Enomoto <atsushi@ximian.com>
1408 * XmlParserContext.cs : all the string properties must not be set as
1409 null. Thanks to Joshua.
1412 DTDReader.cs : XmlResolver.ResolveUri() may return null.
1414 2004-12-17 Atsushi Enomoto <atsushi@ximian.com>
1416 * XmlReaderBinarySupport.cs : added support class for base64/binhex
1417 reading that mostly automates those reader support.
1418 * XmlReader.cs : added CanReadBinaryContent, CanReadValueChunk,
1419 ReadContentAsBase64(), ReadElementContentAsBase64(),
1420 ReadContentAsBinHex(), ReadElementContentAsBinHex() and
1422 * XmlTextReader.cs : Now ReadBase64() and ReadBinHex() implementations
1423 are moved to XmlReaderBinarySupport. Added CanReadBinaryContent and
1424 CanReadValueChunk overrides. Call Binary.Reset() to enable them.
1425 * XmlTextReader2.cs : added CanReadBinaryContent, CanReadValueChunk.
1426 Added ReadContentAsBase64(), ReadElementContentAsBase64(),
1427 ReadContentAsBinHex(), ReadElementContentAsBinHex() (just because
1428 they are overriden in MS.NET).
1429 * XmlNodeReader.cs : added CanReadBinaryContent and CanReadValueChunk.
1430 Call Binary.Reset() to enable them.
1432 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
1435 Added DateTime related methods with serialization mode.
1437 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
1439 * XmlReader.cs : added MoveToFollowing().
1442 XmlAttribute.cs : added SchemaInfo support.
1443 * XmlDocument.cs : added Schemas and Validate().
1444 ReadNode() now copies xmlReader's SchemaInfo.
1445 * XmlNodeReader.cs : ditto (just reflects node's SchemaInfo).
1447 2004-12-15 Atsushi Enomoto <atsushi@ximian.com>
1450 Create() should assure NameTable!=null on creating XmlTextReader.
1451 Now use XmlSchemaValidatingReader for all xsd validation.
1452 * XmlTextReader2.cs :
1453 Don't use input reader's Settings. It is null.
1454 * XmlReaderSettings.cs : added XmlResolver.
1456 2004-12-14 Atsushi Enomoto <atsushi@ximian.com>
1458 * XmlReaderSettings.cs : XsdValidate and DtdValidate are now
1460 * XmlReader.cs : In Create(), use XmlSchemaValidatingReader for xsd
1463 2004-12-12 Zoltan Varga <vargaz@freemail.hu>
1465 * XmlTextReader.cs: Work around a compiler bug in csc 2.0 beta 1.
1467 2004-12-09 Atsushi Enomoto <atsushi@ximian.com>
1469 * DTDObjectModel.cs : implemented lightweight XmlSchema generator.
1471 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
1473 * XmlValidatingReader.cs : making smarter relationship between
1474 XsdValidatingReader.
1476 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
1478 * XmlException.cs : added SecurityPermissionAttributes.
1479 * XmlReaderSettings.cs,
1480 XmlReader.cs : added ValidationFlags and removed obsolete ones.
1482 2004-12-06 Atsushi Enomoto <atsushi@ximian.com>
1484 * XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
1485 ns is null, and don't lookup prefix for empty namespace.
1487 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1489 * XmlTextReader.cs: don't use \0 as buffer terminator.
1490 * XmlInputStream.cs: s/Array.Copy/Buffer.BlockCopy/.
1492 2004-11-30 Atsushi Enomoto <atsushi@ximian.com>
1494 * DTDReader.cs : Consideration on parameter entity was missing for
1495 attribute default value. Fixed bug #70008.
1497 2004-11-26 Atsushi Enomoto <atsushi@ximian.com>
1499 * XmlReader.cs : not fixage, just explicitly formatted code a bit.
1502 XmlAttributeCollection.cs,
1509 XmlDocument.cs : warning removal.
1511 2004-11-25 Atsushi Enomoto <atsushi@ximian.com>
1513 * XmlQualifiedNameTable.cs : oops, it was not implemented.
1515 2004-11-24 Atsushi Enomoto <atsushi@ximian.com>
1517 * XmlQualifiedName.cs : in 2.0 it is [Serializable].
1518 * XmlTextReader.cs : removed unused local variable.
1519 * XmlTextWriter.cs : Improved some exception messages.
1520 moved some private fields into #if NET_2_0.
1521 * XmlValidatingReader.cs : rename specifiedResolver to
1522 resolverSpecified and use it in internal get_Resolver().
1523 Added [Obsolete] for ReadTypedValue() whose base is obsoleted.
1525 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
1527 * XmlTextReader.cs : Now attribute normalization is handled on Read(),
1528 not on get_Value. This caused a problem when we use
1529 XmlValidatingReader that value is not always normalized expectedly.
1531 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
1533 * XmlReader.cs : removed old ReadValueAsXXX() and added new
1534 ReadContentAsXXX() and ReadElementContentAsXXX().
1535 * XmlTextReader.cs : removed old ReadValueAsXXX() (no overrides now).
1536 * XmlTextWriter.cs : added indentation on Comment nodes.
1537 * XmlDateTimeSerializationMode.cs : updated.
1538 * XmlResolver.cs : added 2.0 NameTable field.
1539 * ValidationType.cs : added ObsoleteAttributes on some members.
1541 2004-11-18 Atsushi Enomoto <atsushi@ximian.com>
1543 * XmlParserContext.cs : the fix was not checked in :(
1545 2004-11-17 Atsushi Enomoto <atsushi@ximian.com>
1547 * XQueryConvert.cs : moved from System.Xml.Query.
1549 2004-11-14 Atsushi Enomoto <atsushi@ximian.com>
1551 * XmlWriter.cs : after WriteAttributes(), argument XmlReader must
1552 move to element. This fixes bug #69350.
1554 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
1556 * XmlParserContext.cs : PushScope() was accessing list out of range.
1558 2004-11-09 Atsushi Enomoto <atsushi@ximian.com>
1560 * DTDValidatingReader.cs, XmlTextReader.cs :
1561 needed more changes wrt XmlException.
1563 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1565 * DTDObjectModel.cs,
1571 Added support for 2.0 XmlException.SourceUri property. Improved
1572 exception handling to contain BaseURI everywhere in the parser.
1574 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1576 * XmlTextReader2.cs : added. It is used to serve public API, plus
1577 entity handling support.
1579 * DTDObjectModel.cs,
1580 DTDValidatingReader.cs,
1582 XmlParserContext.cs,
1584 Implemented XmlTextReader.EntityHandling and ResolveEntity(). To
1585 implement them, XmlTextReader in 2.0 itself is in XmlTextReader2.cs
1586 and XmlTextReader.cs contains Mono.Xml2.XmlTextReader which is the
1587 same as 1.x XmlTextReader. XmlTextReader2 switches entity reader and
1588 source reader, and never handles tokenization.
1589 The reason for "Mono.Xml2" is to avoid large changes in constructor.f
1591 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
1593 * XmlAttribute.cs, XmlElement.cs : get_Name should consider name table.
1594 * XmlDocument.cs : use NameTable in Load() and LoadXml().
1595 * XmlReader.cs : In Create(), use NameTable in XmlReaderSettings.
1597 2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
1599 * XmlDocumentNavigator.cs : create rarely-used ArrayList later. This
1600 significantly improves XmlDocument-based XPath performance.
1602 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1604 * XmlTextReader.cs : Manually expanded some of AppendValueChar() and
1605 XmlChar.IsWhitespace() which are on critical points on performance
1606 (marked as FIXME, but it depends on JIT).
1608 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1610 * XmlTextReader.cs : Search xml:* attributes more efficiently.
1612 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
1614 * XmlTextReader.cs : Reduced NameTable.Add() for prefixed names. First,
1615 ReadName() now returns atomized LocalName and Prefix. Second, to
1616 avoid extraneous split, SetProperties() now takes prefix and
1617 localName that might be given from ReadName(). Third, removed
1618 FillNames(). This optimizes "namespace-aware and prefixed document"
1619 parsing 10-20% faster.
1621 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1623 * XmlTextReader.cs :
1624 With related to AddNamespace(), there was extra string.StartsWith()
1625 calls. Now AttributeTokenInfo.FillNames() is splitted into
1626 FillPrefixAndXmlns() and FillNamespace(), and AddNamespace() is done
1627 at FillPrefixAndXmlns().
1629 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1631 * XmlTextReader.cs :
1632 Reduces LookupNamespace() call in FillNames(). This improves 6-7%
1633 speedup in some scenario.
1634 Code refactory; Removed unused code. AddAttribute() is used only for
1635 DTD, so renamed to AddDtdAttribute(). For PUBLIC and SYSTEM ids,
1636 FillNames() is not required. Two SetProperties() are ambiguous, so
1637 renamed one (that takes TokenInfo) as SetTokenProperties().
1639 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1641 * XmlParserContext.cs : rewrote; especially to avoid XmlSpace boxing.
1643 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
1645 * XmlTextReader.cs : LookupNamespace() don't have to be called in
1646 ReadStartTag() to check prefix, since NamespaceURI is filled in
1647 FillNames(). 10% performance up by avoiding this extra check.
1649 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1651 * XmlValidatingReader.cs : fixed incorrect recursion between
1652 indexer and GetAttribute().
1654 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1656 * DTDReader.cs, DTDValidatingReader.cs, XmlTextReader.cs :
1657 When XmlTextReader is created with NodeType Element or Attribute,
1658 skip possible text declaration (that might be used for resolving
1659 entities) that specifies text encoding. With this fix, bug #61274
1660 must be regarded as fixed.
1662 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1664 * XmlNodeReader.cs : Reimplemented ResolveEntity(). It does not use
1665 XmlTextReader trick anymore. XmlNodeReader itself is used instead.
1667 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1669 * XmlNodeReader.cs : for NET_1_0 ReadInnerXml(), just use
1670 XmlReader.ReadInnerXmlInternal(). It should work fine.
1671 Ditto for ReadOuterXml().
1673 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1675 * XmlNodeReader.cs : removed unused/unreachable code. Simplify
1678 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1680 * XmlDocument.cs, XmlNodeReader.cs, XmlTextReader.cs,
1681 XmlValidatingReader.cs : Those readers could just implement internal
1682 interface IHasXmlParserContext.
1683 * XmlTextReader.cs, XmlValidatingReader.cs : this[] disappeared in 2.0.
1684 (XmlReader has them as virtual.)
1685 * XmlReader.cs : ReadAsObject() disappeared.
1686 * XmlWriter.cs : WriteFromObject() disappeared.
1688 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
1690 * XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
1691 * XmlNode.cs : dustclean.
1693 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1695 * XmlDocument.cs : use XPathEditableDocument again.
1696 * XmlNode.cs : To be compatible with XPathEditableDocument, it should
1697 not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.
1699 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1701 * XmlChar.cs, XmlConstructs.cs :
1702 Switched again, for reducing per-process memory consumption.
1703 * XmlInputStream.cs :
1704 Just 64 bytes of buffer would be enough, for example like
1705 <?xml version="1.0" encoding="iso-8859-15" standalone="yes" ?>
1707 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1709 * IXmlDataEvidence.cs : disappeared.
1710 * XmlConvertDateTimeSerializationMode.cs : incorrect filename. removed.
1711 * XmlDateTimeSerializationMode.cs : added
1712 * NewLineHandling.cs : added
1713 * IXmlNamespaceResolver.cs, XmlNamespaceManager.cs :
1714 now 'atomizedNames' is obsolete.
1715 * XmlReaderSettings.cs, XmlWriterSettings.cs :
1716 Should not be sealed. Should not be ICloneable.
1718 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
1720 * XmlDocument.cs : XPathEditableDocument looks broken. Just reverted
1721 to fix 2.0 corcompare.
1723 2004-10-26 Atsushi Enomoto <atsushi@ximian.com>
1725 * XmlTextReader.cs : Don't create attribute Value string on Read()
1726 (i.e. create string when get_Value() is invoked.) This optimizes
1727 some kind of XmlTextReader usage significantly such as Skip().
1729 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
1731 * XmlConvertDateTimeSerializationMode.cs : added.
1732 * XmlConvertDateTimeOption.cs : removed.
1734 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
1737 For net_2_0, CreateNavigator() returns editable XPathNavigator.
1738 * XmlReader.cs, XmlTextReader.cs, XmlValidatingReader.cs :
1739 They do not implement IXmlDataEvidence anymore.
1741 2004-10-18 Atsushi Enomoto <atsushi@ximian.com>
1743 * XmlTextReader.cs :
1744 Fixed CheckCharacters setter that always set false.
1745 CheckCharacters check is also required for ReadText(). This fixes
1748 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
1750 * XmlTextReader.cs : Inside DTD, '<' character inside XML comment
1751 is regatded as invalid. This fixes bug #68410. (Error message was
1754 2004-10-14 Atsushi Enomoto <atsushi@ximian.com>
1756 * XmlWriter.cs : CreateTextWriter() is private.
1758 2004-10-09 Atsushi Enomoto <atsushi@ximian.com>
1760 * XmlNodeReader.cs : LookupPrefix() was only after 2.0.
1762 2004-10-08 Atsushi Enomoto <atsushi@ximian.com>
1764 * XmlNamespaceManager.cs : GetNamespacesInScope() caused
1765 IndexOutOfRangeException (miscounted indexes).
1767 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
1769 * XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
1770 For attribute nodes, it should not use WriteSubtree() which does not
1771 support attribute nodes.
1773 2004-09-20 Gert Driesen <drieseng@users.sourceforge.net>
1775 * XmlValidatingReader.cs: Added deprecation message.
1777 2004-09-14 Atsushi Enomoto <atsushi@ximian.com>
1779 * XmlTextWriter.cs : Close() should not Flush() when the output is
1780 already closed. bug #65918 is fixed.
1782 2004-09-12 Atsushi Enomoto <atsushi@ximian.com>
1784 * XmlTextWriter.cs : CloseOutput must be true by default.
1786 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
1788 * XmlWriter.cs, XmlTextWriter.cs, XmlWriterSettings.cs :
1789 Implemented CheckCharacters and CloseOutput support.
1791 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
1793 * XmlReader.cs : evidence is always provided.
1794 * XmlWriter.cs, XmlTextWriter.cs :
1795 added support for ConformanceLevel and OmitXmlDeclaration.
1797 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
1799 * XmlTextReader.cs : Console.WriteLine() injected :(
1800 * XmlTextWriter.cs : It it partly supports XmlWriterSettings.
1801 * XmlWriter.cs : implemented Create().
1802 * XmlWriterSettings.cs : removed EncodeXmlBinary (deprecated).
1804 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1806 * XmlFactory.cs : removed (obsolete).
1808 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1810 * XmlNamespaceManager.cs : GetNamespacesInScope() ignored default
1811 namespace when scope is .ExcludeXml or .All.
1812 * XmlReader.cs : Implemented ValueType, SchemaInfo, ReadAsObject().
1813 Fixed ReadTypedValue() to call ReadValueAs().
1815 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1817 * XmlNamespaceManager.cs : Fixed GetNamespacesInScope() that returned
1818 inconsistent namespace pairs.
1820 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
1822 * XmlReader.cs, XmlTextReader.cs :
1823 Added NET_2_0 CheckCharacters support.
1825 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
1827 * XmlNode.cs : GetEnumerator() does not have to create ChildNodes
1828 every time. Removed unused StringBuilder field.
1830 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
1832 * XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
1833 to read more (and might result in an error).
1835 2004-09-03 Atsushi Enomoto <atsushi@ximian.com>
1837 * XmlTextReader.cs : When Normalization is true, CRLF and CR should
1838 be converted to single LF. This should fix part of bug #62076.
1840 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
1842 * XmlWriter.cs : implemented WriteValue(object) for known types.
1844 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
1846 * XmlElement.cs : XmlAttributeCollection doesn't have to be created
1847 every time until the actual use. This sometimes optimizes
1848 attribute-less XML performance siginificantly.
1850 2004-08-27 Atsushi Enomoto <atsushi@ximian.com>
1852 * XmlAttribute.cs : some property getters threw NullReferenceException
1853 when the attribute is not added to an element.
1854 * XmlNode.cs : When a node is not appended to another node, BaseURI
1855 is empty. Bug #64120 is fixed.
1857 2004-08-26 Atsushi Enomoto <atsushi@ximian.com>
1859 * XmlTextWriter.cs : In CheckState(), don't create indentation string
1860 at every time. WriteIndent() now handles the indentation without
1863 2004-08-23 Atsushi Enomoto <atsushi@ximian.com>
1865 * XmlReader.cs, XmlTextReader.cs, XmlWriter.cs :
1866 eliminate MS.Internal.Xml.* classes.
1868 2004-08-21 Atsushi Enomoto <atsushi@ximian.com>
1870 * XmlElement.cs : set_InnerText was removing children incompletely.
1871 This fixes bug #63574.
1873 2004-08-20 Atsushi Enomoto <atsushi@ximian.com>
1875 * XmlTextReader.cs : Fixed EOF not to return true when it is just
1876 closed. Element and EndElement location is now adjusted to be the
1877 same as MS.NET does. This fixes bug #63505 and #63507.
1878 ResetState() now throws InvalidOperationException() as MS.NET does.
1880 * WriteState.cs : added missing 2_0 enumeration.
1881 * XmlReader.cs : ReadTypedValue() is virtual.
1882 * XmlValidatingReader.cs : ReadTypedValue() is override under 2_0.
1884 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
1886 * XmlValidatingReader.cs : Replaced XmlSchemaCollection with
1887 XmlSchemaSet. Added Settings property override
1889 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
1891 * DTDReader.cs : Replacing XmlSchemaDatatype .FromName(string) with
1892 .FromName(string, string) [going to remove former one; it is not
1893 good to support xdt:blah datatypes].
1895 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
1897 * DTDValidatingReader.cs,
1898 XmlValidatingReader.cs : implemented IXmlNamespaceResolver.
1899 * XmlNamespaceManager.cs,
1900 XmlNodeReader.cs : implemented GetNamespacesInScope().
1902 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
1904 * XmlCharacterData.cs,
1906 XmlNodeChangedEventArgs.cs :
1907 Implemented XmlNodeChangedEventArgs.OldValue and .NewValue.
1909 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
1911 * XmlWriter.cs : implemented settings-less Create().
1912 * XmlWriterSettings.cs : added some comments.
1914 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
1916 * XmlWriter.cs : implemented WriteNode(XPathNavigator, bool)
1917 incompletely, using XPathNavigator.ReadSubtree().
1919 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
1921 * XmlReader.cs : Implemented new 2.0 virtual members that used to be
1922 abstract in 1.x. Implemented ReadSubtree().
1924 2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
1926 * XmlTextReader.cs: Stop parsing when a null character is found.
1928 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
1930 * XmlReader.cs : Implemented missing MoveToNextSibling() and
1932 * XmlTextReader.cs : Added missing ReadValueAs() override (hmm...
1933 are they really worth overriding?)
1935 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
1937 * XmlWriter.cs : Added new WriteStartAttribute(string).
1939 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
1941 * XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
1942 * XmlQualifiedName.cs : Added internal static Parse().
1943 * XmlReader.cs : use XmlQualifiedName.Parse().
1944 * XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
1945 * XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
1946 Implemented 2.0 virtual methods that used to be abstract in 1.x.
1948 2004-07-26 Atsushi Enomoto <atsushi@ximian.com>
1950 * XmlReader.cs : Implemented ReadValueAsXxx() except for
1952 * XmlTextReader.cs : implemented them as well, just invoking
1953 base.ReadValueAsXxx ().
1954 * XmlWriter.cs : implemented some WriteValue() methods.
1956 2004-07-21 Atsushi Enomoto <atsushi@ximian.com>
1958 * XmlConvert.cs : added internal ToBinHexString() (BTW according to
1959 MSDN documentation it should be public).
1960 * XmlReader.cs : fixed one incorrect Create() overload. Added
1961 LookupNamespace (string, bool) (public for 2.0, internal for 1.x).
1962 * XmlTextReader.cs : Mostly implemented IXmlNamespaceResolver
1963 interface. Fixed HasLineInfo() access modifier on 2.0.
1964 * XmlNodeReader.cs : Mostly implemented IXmlNamespaceResolver
1965 interface. Wrote common namespace node lookup method and rewrote
1966 existing LookupNamespace().
1967 * XmlValidatingReader.cs : Fixed 2.0 IXmlLineInfo members' signatures.
1969 2004-07-20 Atsushi Enomoto <atsushi@ximian.com>
1971 * XmlNode.cs : When the argument node being inserted is the existing
1972 document element, it should not result in an error (since it should
1973 be first removed from document, thus no error should happen).
1975 2004-07-16 Atsushi Enomoto <atsushi@ximian.com>
1977 * XmlTextReader.cs : Fixed several problems on ReadBase64();
1978 Whitespaces should be ignored, and '=' was not skipped correctly.
1979 It caused "unexpected end of document" error at immediate close tag.
1981 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
1983 * Added MonoFIXAttribute.cs
1985 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
1987 * XmlWriter.cs : Added Create() stubs.
1988 * XmlWriterSettings.cs : Added missing property setters.
1989 * XmlValidatingReader.cs : added internal schemas setter.
1990 * XmlTextReader.cs : added internal XmlReaderSettings property setter.
1991 * XmlReader.cs : Halfly implemented Create().
1992 * DTDValidatingReader.cs : author information was missing.
1994 2004-07-11 Atsushi Enomoto <atsushi@ximian.com>
1996 * XmlConvertDateTimeOption.cs : it is NET_2_0.
1997 * IXmlNamespaceResolver.cs,
1998 XmlNamespaceScope.cs : Compile it in .net 1.1 (as internal).
1999 * XmlNamespaceManager.cs : Implement IXmlNamespaceResolver.
2001 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2003 * XmlConvertDateTimeOption.cs : Forgot to change the content...
2005 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2007 * ConformanceLevel.cs : Fixed integer value.
2008 * Added XmlConvertDateTimeOption.cs.
2009 * Removed XmlItemView.cs and XmlItemViewCollection.cs.
2011 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2013 * IXmlNamespaceResolver.cs :
2014 Fixed return value of GetNamespacesInScope().
2015 * IXmlDataEvidence.cs,
2018 XmlValidatingReader.cs : fixed Evidence (it is not array anymore).
2020 Implemented virtual indexers, QuoteChar, and Dispose() (2.0 stuff).
2022 In net_2_0, indexers vanished from XmlNodeReader.
2023 In net_2_0, overriden QuoteChar vanished.
2024 * XmlReaderSettings.cs : set_NameTable is missing.
2025 * XmlTextReader.cs : Implemented ProhibitDtd.
2027 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2029 * XmlAttributeCollection.cs : In .net 2.0, it became sealed class.
2030 * IXmlDataEvidence.cs : not "Evidences" but "Evidence".
2031 * XmlInputStream.cs : new csc rejected implicit int->char cast.
2032 * XmlNamespaceManager.cs : In net_2_0, LookupNamespace(string) and
2033 LookupPrefix(string) does not require argument string as atomized.
2034 Added HasNamespace (string, bool).
2035 * XmlReader.cs : Added Settings and SchemaInfo properties.
2036 * XmlReaderSettings.cs : Added NameTable. Throw XmlException when
2037 attempt to set Schemas.
2038 * XmlTextReader.cs : Fixed "Evidences" to "Evidence". new csc rejected
2039 implicit int->char cast.
2040 * XmlValidatingReader.cs : Fixed "Evidences" to "Evidence".
2042 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
2045 Close XmlReader only when it is created. This fixes bug #60809.
2047 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
2049 * DTDObjectModel.cs, DTDReader.cs, XmlConvert.cs, XmlDocument.cs,
2050 XmlException.cs, XmlParserInput.cs, XmlTextReader.cs,
2051 XmlTextWriter.cs : Globalization.
2052 * XmlNode.cs : Fixed error message that confused node type.
2054 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2056 * XmlDocumentNavigator.cs : MoveToNext() should skip concatenating
2057 text/cdata/whitespace nodes.
2059 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2061 * XmlInputStream.cs : Fixed encoding detection detected in xslt
2062 standalone tests. Removed extraneous code.
2064 2004-06-13 Atsushi Enomoto <atsushi@ximian.com>
2066 * XmlTextReader.cs : Character range check is always done. It is only
2067 character references for which check is not done when Normalization
2069 A bit more kind error message for multiple document element error.
2070 * XmlTextWriter.cs : Check if character is valid and entitize when
2073 2004-06-09 Atsushi Enomoto <atsushi@ximian.com>
2075 * XmlNamespaceManager.cs : The error message was improper.
2078 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2080 * XmlInputStream.cs: Initialize reads a larger buffer now when trying
2081 to guess the encoding.
2083 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2085 * NameTable.cs : Fixed incorrect hash computation. Thanks to Ben.
2086 * XmlTextWriter.cs : Fixed remaining LookupNamespace() atom problem
2087 shown in xslt standalone tests.
2089 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2091 * XmlTextWriter.cs : Improved indenting. For children of a mixed
2092 content element, it won't be indented.
2094 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2096 * DTDObjectModel.cs,
2097 XmlDocument.cs : Close stream always.
2098 * XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
2099 * XmlTextReader.cs : Namespace check was not done. Some tests depends
2100 on this failure and to be fixed.
2102 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2104 * XmlNamespaceManagre.cs : Fixed LookupNamespace() and LookupPrefix().
2105 They require that names are *already* atomized.
2107 XmlTextWriter.cs : use safe overload of LookupXXX().
2109 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
2111 * XmlTextReader.cs : Fixed version mismatch; ProhibitDtd should be
2114 2004-05-29 Gert Driesen (drieseng@users.sourceforge.net)
2116 * XmlTextReader.cs: Added ProhibitDtd property for NET 1.1 to match
2117 public API in MS.NET 1.1
2119 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2121 * XmlDocument.cs : Save() should indent only when PreserveWhitespace
2122 is false. Fixed bug #59155.
2123 Modified comment lines a bit.
2125 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2127 * XmlTextWriter.cs : WriteRaw() looks to proceed WriteState to Prolog
2128 (if it is Start). Fixed bug #59154.
2130 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2132 * XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
2133 and don't bork against <foo></foo>. Also mofidied this method to skip
2134 <foo/>. Fixed bug #59142.
2135 Modified some comments on the code (FIXME->LAMESPEC et al).
2137 2004-05-24 Atsushi Enomoto <atsushi@ximian.com>
2139 * DTDReader.cs : When sequential PE references exist, the reader only
2140 expands the first one and in some cases the parser complaints the
2141 content (such like expecting name character but found '%').
2142 This fixes bug #58818.
2144 2004-05-23 Atsushi Enomoto <atsushi@ximian.com>
2146 * XmlNode.cs : RemoveChild() should check null argument.
2147 Normalize() was broken in some cases.
2149 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2151 * ConformanceLevel.cs : added.
2153 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2155 * XmlNodeChangedEventArgs.cs : the last patch looks true
2156 ONLY AFTER .NET 2.0.
2158 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2160 * XmlReaderSettings.cs, XmlWriterSettings.cs : NET_2_0 were missed.
2162 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2166 XmlItemViewCollection.cs,
2167 XmlReaderSettings.cs,
2168 XmlWriterSettings.cs : added new .NET 2.0 classes.
2170 * AsyncXmlTextWriter.cs,
2171 IXPathChangeNavigator.cs,
2174 XmlChangeFilters.cs,
2176 XmlNodeChangeType.cs,
2177 XPathChangeNavigator.cs,
2179 XPathDocument2ChangedEventAction.cs,
2180 XPathDocument2ChangedEventHandler.cs,
2182 XPathNavigator2.cs : removed. (They are only in .NET 1.2)
2184 * XmlWriter.cs : added new NET_2_0 WriteElementString().
2186 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2188 * XmlNodeChangedEventArgs.cs : not properly inherited from EventArgs.
2190 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2192 * XmlConvert.cs : Fixed ToString(TimeSpan) that didn't handle Hour
2193 correctly. This fixes bug #57786.
2195 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2197 * XmlValidatingReader.cs : explicitly mark as MonoTODO for XDR (not
2200 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2202 * DTDObjectModel.cs,
2208 XmlUrlResolver.cs : removed reference to Mono.Xml.
2209 Made Mono.Xml.* classes internal.
2210 * XmlDocument.cs : output xml declaration for TextWriter output in Save()
2211 * XmlElement.cs : Name character check should be done in .ctor().
2212 * XmlNamespaceManager.cs : Removed dangerous internal .ctor()
2214 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2216 * XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
2217 node can be it as well) and added check for Attributes existence
2218 in GetAttribute() and MoveTo*Attribute().
2220 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2222 * XmlTextWriter.cs : comment not in the content state is indented.
2223 This fixes bug #58247.
2225 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
2227 * XmlTextWriter.cs: In WriteStartAttribute, when the prefix is xmlns and
2228 the name is empty, convert it to a xmlns attribute.
2230 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2232 * XmlTextReader.cs : don't use NET_1_0.
2234 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2236 * XmlComment.cs. XmlProcessingInstruction.cs : missing commits.
2238 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2240 W3C DOM compliant read-only check support (buggy part in MS.NET).
2243 XmlCharacterData.cs,
2247 XmlSignificantWhitespace.cs,
2249 : CloneNode() - set read-only when copied node is read-only.
2250 Check IsReadOnly on attempt to modify value.
2252 XmlEntityReference.cs : Set descendant nodes read-only.
2253 * XmlAttributeCollection.cs,
2255 : Fixed incompatible exception type.
2256 * XmlEntityReference.cs : CloneNode() should not pass an empty string
2258 * XmlEntityReference.cs,
2259 XmlProcessingInstruction.cs : Check XML name validity.
2260 * XmlText.cs : CloneNode() does not have to check children.
2262 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2264 * XmlDeclaration.cs : More strict check on InnerText and Value.
2266 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2268 * DTDReader.cs, XmlConvert.cs, XmlDeclaration.cs, XmlImplementation.cs,
2269 XmlNode.cs : Culture independency fix.
2271 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2273 * XmlEntityReference.cs : Added XPathNodeType (just for workaround).
2274 This should really fix bug #57248.
2276 2004-04-20 Atsushi Enomoto <atsushi@ximian.com>
2278 * XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
2279 only an EntityReference (not navigatable) child. Bug #57248 fixed.
2280 * XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
2281 instead of WriteAttributes() only for MS.NET behavior compatibility.
2282 This change makes SgmlReader usable (due to SgmlReader bug).
2284 2004-04-10 Atsushi Enomoto <atsushi@ximian.com>
2286 * XmlParserContext.cs : Fixed .ctor() not to reference null namespace
2287 manager. This fixes bug #56770.
2289 2004-04-06 Atsushi Enomoto <atsushi@ximian.com>
2291 * DTDReader.cs : In ProcessDTDSubset(), 1)error message was
2292 generated with incorrect stream character, 2)entity nest check
2293 should not depend on line info which might not be supplied, 3)
2294 empty PE should be skipped.
2295 * XmlParserInput.cs : use index for StringBuilder instead of calling
2296 Remove() many times. This highly optimizes DTD parser.
2298 * XmlAttribute.cs : removed commented code.
2299 * XmlEntity.cs : removed unused field.
2301 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2303 * DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList
2304 only when they are required.
2306 XmlParserInput.cs : raw tag string now don't have to be kept, while
2307 it cost so much. Removed unused code. 20% to 30% memory got saved.
2308 * XmlNotation.cs : removed unused code.
2309 * XmlTextReader.cs : Removed unused code. ReadString() now uses
2310 XmlReader's internal method. Fixed BaseURI to be conformant with
2311 W3C XML InfoSet and (subsequently) xml:base specification (i.e.
2312 reflect xml:base attribute correctly).
2314 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2316 * XmlAttribute.cs : get_Value should return all children's value.
2317 * XmlCharacterData.cs : DOM's substring does not raise an error when
2318 startIndex + count exceeds the length of Data.
2319 * XmlNamedNodeMap.cs : SetNamedItem() returns the new child when it
2320 does not replace another named item.
2321 * XmlElement.cs : with related to the XmlNamedNodeMap change,
2322 SetAttributeNode() is required to fix as to return null when it does
2323 not replace existing attribute.
2325 2004-03-31 Atsushi Enomoto <atsushi@ximian.com>
2327 * XmlDocumentNavigator.cs : When this instance is created from xmlns
2328 attributes, it should be Namespace node.
2330 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
2332 * XmlReader.cs : ReadInnerXml() should progress reader when it is on
2333 an empty element. This fixes bug #56064.
2335 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
2337 * DTDReader.cs : In some places sequential parameter entity was
2338 incorrectly skipped (and caused invalid result).
2340 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2342 * XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
2343 namespace nodes which has the same name as already-iterated nodes.
2344 Also xmlns='' should not be selected, and once it appeared, default
2345 namespace should not be selected anymore.
2347 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2349 * XmlCharacterData.cs : ReplaceData() should reject negative integer
2350 value for count argument.
2351 * XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
2352 On RemoveNamedItem(), default attribute value should be restored.
2354 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2356 * XmlAttributeCollection.cs : Remove() should throw an exception when
2357 target attribute is not included in the collection.
2358 * XmlDocument.cs : ImportNode() should reject null node.
2359 * XmlNode.cs : Fixed type of exception for invalid insertion.
2360 It should throw an exception not only when the owner document of the
2361 reference element is different but its parent element is different.
2362 Some error message improvement.
2364 2004-03-21 Atsushi Enomoto <atsushi@ximian.com>
2366 * XmlReader.cs : ReadInnerXml() incorrectly tried to get output xml.
2367 This fixes bug #55856.
2369 2004-03-20 Atsushi Enomoto <atsushi@ximian.com>
2371 * XmlTextWriter.cs : Fixed indentation on CDATA. This fixes bug #55828.
2373 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
2375 * XmlImplementation.cs : HasFeature() returns true when strVersion
2378 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
2380 * XmlWhitespace.cs : Fixed WriteTo(). Whitespace nodes should be
2381 written regardless of document's PreserveWhitespace.
2383 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
2385 * XmlDocumentNavigator.cs : Value should return concatenated string for
2386 sequential text nodes. Considered detached nodes, the result of
2387 MoveToParent() should be checked.
2389 2004-03-15 Atsushi Enomoto <atsushi@ximian.com>
2391 * XmlReader.cs : ReadInnerXml()/ReadOuterXml() should not bork when
2392 the reader is on EndElement. Patch by Jean-Marc Andre.
2394 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
2396 * XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
2397 to return attribute node. It affects on IHasXmlNode.GetNode() and
2398 SelectNodes()/SelectSingleNode().
2400 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2402 * XmlImplementation.cs : fixity fix (I need NUnit runnable ;)
2404 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2406 * XmlImplementation.cs : forgot to commit (renaming internal case)
2408 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2410 * XmlDocument.cs : Implementation should not return null.
2412 2004-02-25 Atsushi Enomoto <atsushi@ximian.com>
2414 * XmlTextWriterOpenElement.cs : Reset() should reset _all_ fields.
2415 This fixes indentation bug.
2417 2004-02-19 Atsushi Enomoto <atsushi@ximian.com>
2419 * XmlTextWriter.cs : Fixed bugzilla #54554 (incorrent end tag output).
2421 2004-02-16 Atsushi Enomoto <atsushi@ximian.com>
2426 DTDValidatingReader.cs : made classes internal.
2427 * XmlDocument.cs : removed extra FIXMEs.
2428 * XmlNamedNodeMap.cs,
2431 Fixed incorrect method signature.
2433 2004-02-13 Atsushi Enomoto <atsushi@ximian.com>
2435 * DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs :
2436 say goodbye to sys.collections.specialized.
2437 (replaced the classes in that namespace with ArrayList or Hashtable)
2439 2004-02-12 Atsushi Enomoto <atsushi@ximian.com>
2441 * XmlReader.cs : For performance reason, XmlTextReader now uses
2442 base ReadInnerXml() and don't store currentTag array unnecessarily.
2443 * XmlTextReader.cs :
2444 - Fixed GetAttribute(int) that might cause index out of range.
2445 - Now it consumes the text reader by reading blocks, as MS.NET does.
2446 Modified GetRemainder(), PeekChar(), ReadChar() and so on.
2447 - Now it doesn't create Value string for linked nodes, unless it
2448 is actually required.
2449 - some code refactory.
2451 2004-02-11 Atsushi Enomoto <atsushi@ximian.com>
2453 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs :
2454 Reduced creation of openlElement. It also saves much memory.
2456 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
2458 * XmlNode.cs : ChildNodes should not create XmlNodeListChildren
2459 every time. This fix heavily improved performance.
2461 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
2463 * XmlAttributeCollection.cs : set owner element as parent on removal
2464 events (though they are not "parent" in infoset or dom context)
2465 * XmlElement.cs : Don't remove attributes twice (raises extraneous
2467 * XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
2468 Added NET_2_0 members.
2470 2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
2472 * DTDObjectModel.cs : Limit external entity reference from DTD by 256.
2473 foreach elimination. DTDParameterEntityDeclaration should set Root.
2474 Compute attribute default value without raising an error.
2475 (for non-error reporting reader)
2476 * DTDReader.cs : Fixes for the above fixes. foreach elimination.
2477 * DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
2478 XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
2479 XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
2480 XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
2481 XmlText.cs : foreach elimination.
2482 * XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
2483 foreach elimination. Removed unnecesary methods.
2484 * XmlTextReader.cs : code format refactory. Optimized some methods.
2485 foreach elimination. Replaced Stack with string array.
2486 Replaced StringBuilder with char array. Removed unnecessary methods.
2488 2004-02-06 Atsushi Enomoto <atsushi@ximian.com>
2490 * DTDValidatingReader.cs : Fixed MoveToElement() that causes incorrect
2491 IsDefault and Depth.
2492 * XmlAttribute.cs : Fixed .ctor(). Omit more namespace check when
2493 checkNamespace = false.
2494 * XmlNamedNodeMap.cs : Fixed SetNamedItem() to raise events.
2495 * XmlAttributeCollection.cs : Reimplemented InsertAfter to use
2496 InsertBefore() (similar to XmlNode).
2497 * XmlDocument.cs : Added internal .ctor(). Reimplemented ReadNode()
2498 as recursive, to make event order compatible.
2499 * XmlDocumentType.cs : Use SetNamedItem() (to raise events).
2500 * XmlElement.cs : Some refactory. Fixed SetAttributeNode() with
2501 string name to block prefixed name.
2502 * XmlEntity.cs : Don't raise events on setting contents.
2503 * XmlNode.cs : Some refactory. Added raiseEvent argument to internal
2505 * XmlEntityReference.cs : related fix for XmlNode change.
2506 * XmlTextReader.cs : When the reader is on "attributes" of xmldecl or
2507 doctype, Depth 1 lower than usual attribute. Split large function.
2509 2004-02-05 Atsushi Enomoto <atsushi@ximian.com>
2511 * XmlConvert.cs : ToSingle() and ToDouble() should be culture
2512 independent. Patch by Rodolfo Campero.
2514 2004-02-04 Atsushi Enomoto <atsushi@ximian.com>
2516 * DTDObjectModel.cs : Never expand entity on ScanEntityValue().
2517 * DTDValidatingReader.cs : XmlDeclaration node requires attributes
2521 XmlDocumentFragment.cs,
2527 Added namespace checking flag (required for such xml readers
2528 that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
2529 * XmlDocumentType.cs,
2531 XmlEntityReference.cs : The children of Entity and EntityReference
2532 became correct. They now holds parsed nodes, but it is only when
2533 they are appended to the document.
2534 * XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
2535 boolean checkNodeType argument. This method also tries to create
2536 Entity's and EntityReference's child nodes. Also added internal
2537 RemoveChild() with boolean checkNodeType argument.
2538 * XmlNodeReader.cs : Quick hack for ResolveEntity() that became
2539 broken with these changes. use InnerXml as input to entityReader.
2540 * XmlTextReader.cs : XmlDeclaration's value LocalName should be the
2541 same as Name. The names of DTD's pseudo attributes should be empty.
2542 Fixed DTD node's Depth (was regarded as attribute value's depth).
2544 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2546 * XmlTextReader.cs, DTDReader.cs : fixity fix ;)
2548 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2550 * ChangeLog : Fixed incorrect description that should be written for
2551 DTDValidatingReader.cs but written for DTDReader.cs.
2552 * DTDValidatingReader.cs : Fixes described in the last DTDReader fix.
2555 XmlConstructs.cs : Made XmlChar and XmlConstructs equivalent and
2556 replaced XmlChar with XmlConstruts, renaming "XmlChar" to
2557 "XmlCharCompact" and "XmlConstructs" to "XmlChar".
2558 (XmlChar will be used for compact framework.)
2559 * DTDReader.cs, XmlParserInput.cs, XmlTextReader.cs :
2560 XmlChar related changes. Support for surrogate pair.
2561 It cannot use TextReader's peek anymore (for surrogate pair).
2562 Character range check for PI value, attribute value, text
2563 * XmlTextWriter.cs : Change openElements from Stack to ArrayList.
2564 (It calls ToArray() every time.)
2566 2004-02-03 Alon Gazit <along@mainsoft.com>
2567 * XmlNamedNodeMap - now Item(int index) returns null for nodeList.Count
2568 instead of throwing ArgumentOutOfRangeException.
2570 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
2572 * XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
2573 predefined entity names.
2574 * DTDObjectModel.cs : DTDxxxCollection now derives from
2575 - DTDCollectionBase that derives from DictionaryBase.
2576 - "Literal value" and "replacement text" are handled differently.
2577 - Throw XmlException when external entity could not be resolved.
2578 - Return ReplacementText for EntityValue.
2580 - Support IXmlLineInfo.
2581 - Fixed IGNORE section handling to be more strict.
2582 - Compute replacement text on reading entity declarations.
2583 - Don't expand char references before getting literal entity value.
2584 - Check not allowed parameter entity inside internal subset.
2585 * DTDValidatingReader.cs :
2586 - Added ValidateWhitespaceNode() to check whitespace's Validity
2587 Constraints on external elementdecl and standalone document.
2588 - When invalid data against its datatype was found, don't throw
2590 - Other code refactory.
2591 * XmlTextReader.cs :
2592 - Check for invalid Text pattern "]]>" should not depend on line
2593 info since it might not be supported.
2594 - Check referenced character's validity (WFC).
2596 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
2598 * DTDReader.cs : Added Normalization. Parameter Entity declaration
2599 should block invalid characters. (GEDecl should be fixed as well.)
2600 * XmlConstruct.cs : Should allow surrogate chars.
2601 * XmlNotation.cs : When prefix is empty (i.e. almost all cases)
2602 Name should not add ':'. Patch by Boris Kirzner.
2603 * XmlTextReader.cs : Modified private ReadCharacterReference() to
2604 return the character (or -1 when should not return anything).
2605 Now Text character reference are checked their character range.
2606 Set DTDReader.Normalization as well as the reader itself.
2608 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
2610 * DTDReader.cs : Make sure that parameter entities are not allowed
2611 inside internal subset unless it appears as a markupdecl.
2612 * DTDValidatingReader.cs : ENTITY or ENTITIES type attributes must have
2613 a value that indicates *unparsed* entity (i.e. NDATA required).
2615 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
2617 * XmlTextWriter.cs : quick performance fix.
2618 Reduced memoty allocation (e.g. 12% when writing XMLSchema.xsd.)
2620 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
2622 * DTDObjectModel.cs :
2623 - DTDNode's BaseURI should not always refer to that of DTD's.
2624 - Use absolute URI's .ToString() instead of AbsolutePath.
2625 * DTDReader.cs : Throw XmlException for illegal character references.
2626 * DTDValidatingReader.cs :
2627 - Share XmlResolver when the actual reader is XmlTextReader.
2628 (MS's XmlValidatingReader and XmlTextReader do this.)
2629 - Added its own EntityHandling property.
2630 * XmlValidatingReader.cs : Share XmlResolver with XmlTextReader.
2632 XmlTextReader.cs : Added new NET_2_0 members.
2633 * XmlElement.cs : Removed extra lines (caused by XmlTextWriter bugs).
2634 * XmlEntityReference.cs : Forgot to add, the real fix by Boris.
2636 2004-01-23 Atsushi Enomoto <atsushi@ximian.com>
2638 * XmlWriter.cs, XmlTextWriter.cs :
2639 Several namespace related fixes.
2640 - Current element's NamespaceURI should be immediately available
2641 after the call of WriteStartElement() for LookupPrefix(), so
2642 AddMissingElementXmlns() only affects on output. This is
2643 now identified by shouldCheckElementXmlns field.
2644 - Attribute's overraped xmlns should be ignored for LookupPrefix(),
2645 Especially, when the owner element is written with the default
2646 namespace. HOWEVER, the attribute should be *written*. This is
2647 identified by shouldAddSavedNsToManager field.
2648 - In AddMissingElementXmlns(), non-empty prefix namespace was not
2649 checked user-written attributes.
2650 - XmlWriter.WriteAttributeString() never supplies namespace URI for
2651 xmlns attributes for other versions than NET_1_0. Instead, added
2652 ns check logic in WriteStartAttribute() only with NET_1_0.
2653 - WriteEndAttribute() should reject zero-length namespace for
2654 non-default xmlns declarations.
2655 - LookupPrefix() should reject argument null and empty.
2657 (added 2004-01-24 : forgot to mention more)
2658 - WriteAttributeString() w/o namespace should supply null, not ""
2659 - Added .NET 1.2 members.
2660 - Regard any name with "xml" prefix as in "namespace for XML".
2662 2004-01-22 Atsushi Enomoto <atsushi@ximian.com>
2664 * XmlElement.cs : Reverted previous fix since it broke monodoc web
2667 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
2669 * XmlNode.cs : When adding a node to child list, it should reject its
2670 ancestors. Patch by Boris Kirzner.
2671 * XmlNodeReader.cs : Related fix to the fix above. It should not move
2672 to children of XmlEntityReference nodes.
2673 * XmlTextWriter.cs : FixedWriteStartElement() not to write default
2674 namespace when ns is null (while ns is "", it writes default ns).
2675 * XmlElement.cs : Fixed WriteTo() to call WriteStartElement(localName)
2676 when NamespaceURI is an empty string.
2678 2004-01-14 Atsushi Enomoto <atsushi@ximian.com>
2680 * XmlAttribute.cs : when set a value, it is no longer default
2681 (even if the value is the same as default value).
2682 * XmlAttributeCollection.cs : Remove() should recover default attribute
2683 value to default, not specified value.
2684 Patch by Boris Kirzner (modified a bit)
2685 * XmlDocument.cs : Reference to undeclared entity is not allowed in
2686 Load(), while allowed in ReadNode(). Added such distinguishing logic.
2688 2004-01-13 Atsushi Enomoto <atsushi@ximian.com>
2690 * XmlValidatingReader.cs : Throw exception only in case of errors.
2691 Added NET_2_0 Evidences property.
2693 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
2695 * XmlElement.cs : Fixed .ctor(). Default attribute was not treated as
2696 Specified = false. Patch by Boris Kirzner.
2698 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
2700 * XmlException.cs : Fixed incorrect .ctor signature.
2701 * XmlParserInput.cs : Fixed in sync with the above fix.
2703 2004-01-08 Atsushi Enomoto <atsushi@ximian.com>
2705 * XmlAttribute.cs, XmlElement.cs :
2706 Fixed incorrect protected .ctor modification.
2708 2004-01-08 Nick Drochak <ndrochak@ieee.org>
2710 * DTDValidatingReader.cs: Removed unused variable
2712 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2714 * XmlNamespaceManager.cs : Implemented .NET 1.2 methods that take
2715 atomizedNames argument.
2716 * XmlTextReader.cs : Use new namespace manager methods.
2717 Reduced NameTable.Add().
2718 * DTDObjectModel.cs : fixed incorrectly commented-out line.
2720 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2722 * XmlAttribute.cs, XmlDocument.cs, XmlElement.cs :
2723 set_Prefix should atomize to name table.
2724 Avoided extraneous atomization attempt a bit.
2726 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
2728 * DTDObjectModel.cs, DTDReader.cs, XmlSecureResolver.cs :
2729 avoiding obvious exception.
2730 * DTDReader.cs, XmlTextReader.cs : Some optimization.
2731 Avoided extraneous PeekChar() and reduced name string creation.
2733 2004-01-05 David Sheldon <dave-mono@earth.li>
2735 * XmlTextReader.cs: Fixed constructors taking string url to not
2736 loose the absolute part of the path.
2738 2004-01-04 Atsushi Enomoto <atsushi@ximian.com>
2740 * XmlDocument.cs : Fixed Load() to set XmlResolver correctly. Patch
2741 by Benjamin Jemlich.
2742 Assure closing XmlTextReader which are internally used.
2744 2004-01-03 Atsushi Enomoto <atsushi@ximian.com>
2746 * XmlTextWriter.cs : trivial character-case fix
2747 * XmlUrlResolver.cs : It downloads network stream content at
2748 GetEntity() call. You can try like below:
2749 for (int i=0;i<100;i++) u.GetEntity(url, null, typeof(Stream));
2751 2003-12-23 Atsushi Enomoto <atsushi@ximian.com>
2753 * XmlNamedNodeMap.cs : Fixed internal SetNamedItem(node, pos) to set
2754 replacing node correctly. This fixes bug #52453.
2756 2003-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2758 * XmlDocument.cs, XmlElement.cs, XmlNode.cs :
2759 GetElementsByTagName() - Fixed bugzilla #52419, refactored,
2760 and moved private implementation methods to XmlNode class.
2762 2003-12-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2764 * XmlTextWriter.cs :
2765 Element's namespace should be escaped as usual attribute.
2767 2003-12-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2769 * XmlTextWriter.cs : Indentation between xmldecl and doctype.
2770 * DTDValidatingReader.cs : AttList null reference fix.
2772 2003-12-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2774 * DTDValidatingReader.cs : Validity check and entity expansion were
2776 * DTDObjectModel.cs, DTDReader.cs, XmlInputStream.cs :
2777 Going to remove XmlInputStream. XmlStreamReader might be replacable.
2779 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2781 * XPathDocument2ChangedEventHandler.cs : fixed incorrect argument.
2782 * Moved UpdateEventHandler.cs and XmlUpdateEventArgs.cs to sqlxml.
2784 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2786 * XmlTextReader.cs : BaseURI was broken. This fixes bug #52098.
2788 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2790 * XmlUrlResolver.cs : GetEntity() does not return direct network stream
2791 that may hold up connection. Now it reads up all the content stream.
2793 2003-12-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2795 * XmlAttributeCollection.cs,
2796 XmlElement.cs : Fixed bug #51415.
2797 When adding attribute to an element using Attributes, it failed.
2799 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2801 * XmlDocument.cs : Fixed ReadNode() to call AppendChild() to document
2802 after setting all attribute nodes. Modified ReadNode() to handle
2803 Depth comparison and error handling (!= to <). It allows MS's
2804 SgmlReader bug that returns incorrect Depth.
2806 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2808 * XmlDocumentNavigator.cs : Fixed MoveToNextAttribute (and
2809 MoveToNextNamespace) that might result in NullReferenceException.
2810 patch by Sanjay Gupta. This fixed bug #51941 (and possibly #51415)
2812 2003-12-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2814 * XmlUrlResolver.cs : Update with recent System.Uri change. This fixes
2815 bugzilla #51808 (patch by Jeroen Zwartepoorte, a bit modified).
2817 2003-12-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2819 * XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
2820 * XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
2821 This may fix bug #51415.
2823 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2825 * XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".
2827 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2829 * XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
2830 shouldn't expect non-empty element content. This will fix bug #48287.
2832 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2834 * XmlTextWriter.cs : When element's namespace should be overwritten by
2835 one of its attribute, if exist as such. This fixes bug #51305.
2837 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2839 * DTDValidatingReader.cs : Fixed ReadContent() which may result in
2840 invalid additional Text node.
2842 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2844 * XmlTextWriter.cs :
2845 On WriteProcessingInstruction(), ArgumentException() is expected ;-)
2847 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2849 * XmlTextWriter.cs :
2850 WriteProcessingInstruction() should check name validity.
2851 AddMissingElementXmlns() should allow namespace emission even if it
2852 is identical to existing one.
2854 2003-11-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2856 * XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.
2858 2003-11-20 Eran Domb <erand@mainsoft.com>
2860 * XmlTextWriter.cs (WriteStartAttribute) : Check if the ket already exists in the newAttributeNamespaces table
2861 before trying to add it to the table.
2863 2003-11-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2865 * DTDValidatingReader.cs : Replaced entity should not treat whitespaces
2867 * XmlNode.cs : Removed extraneous MonoTODOs.
2869 2003-11-17 Jackson Harper <jackson@ximian.com>
2871 * XPathEditor.cs: .net 1.2 only
2873 2003-11-17 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2875 * AsyncXmlTextWriter.cs, IXPathChangeNavigator.cs, IXPathEditor.cs,
2876 IXPathNavigator.cs, IXmlDataEvidence.cs, IXmlNamespaceResolver.cs,
2877 UpdateEventHandler.cs, XPathChangeNavigator.cs, XPathDocument2.cs,
2878 XPathDocument2ChangedEventAction.cs,
2879 XPathDocument2ChangedEventHandler.cs, XPathEditor.cs,
2880 XPathNavigator2.cs, XmlChangeFilters.cs, XmlInfoItemType.cs,
2881 XmlNamespaceScope.cs, XmlNodeChangeType.cs, XmlQualifiedNameTable,cs,
2882 XmlQueryDialect.cs, XmlUpdateEventArgs.cs
2883 : Added .NET 1.2 classes (for convenience of ObjectSpaces stubbing).
2885 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2887 * XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
2888 to skip XmlEntityReference.
2889 * XmlTextWriter.cs : Fixed AddMissingElements() and
2890 WriteStartAttribute() not to emit extraneous xmlns.
2892 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2894 * XmlTextWriter.cs : Skip multiple xmlns when element and any of
2895 attributes have the same xmlns values.
2896 WriteEndElement() allows open attribute (calles WriteEndAttribute()).
2897 Indentation should be inserted between ">" and "</xxx>" .
2899 2003-11-02 Pedro MartÃnez Juliá <yoros@wanadoo.es>
2901 * XmlConvert.cs: Only parse INF/-INF/NaN. Other Infinty or NAN
2902 numbers are parsed with the respective ::Parse method.
2904 2003-11-01 Pedro MartÃnez Juliá <yoros@wanadoo.es>
2906 * XmlConvert.cs: Revert my last change. INF and -INF must be
2907 processed here because Double::Parse and Single::Parse doesn't
2908 understand anything of parsing [-]INF.
2910 2003-11-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2912 * XmlDocument.cs : Save(Stream) should not close the stream.
2914 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2916 * DTDReader.cs, DTDValidatingReader.cs, XmlInputStream.cs,
2917 XmlTextReader.cs : More cleanup.
2918 * XmlDocument.cs : Removed CheckName(). Code cleanup.
2919 * XmlElement.cs : .ctor() now adds default attributes (if required).
2920 * XmlAttribute.cs, XmlElement.cs, XmlEntity.cs, XmlEntityReference.cs,
2921 XmlNotation.cs : Now uses OwnerDocument's NameTable.
2923 2003-10-25 Pedro MartÃnez Juliá <yoros@wanadoo.es>
2925 * XmlConvert.cs: Support for the sign in double and single. The
2926 processing of the infinites and nan numbers are more complex than
2927 comparing to "INF" so we must let Double::Parse and Single::Parse
2930 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2932 * DTDValidatingReader.cs : Now it handles whitespace entity as
2934 * XmlConvert.cs : As to NIST testcases, exponential support on single
2935 and double floating point numbers.
2936 * XmlValidatingReader.cs : If it IsDefault, then line number and line
2939 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2944 XmlWriter.cs : Fixed incorrect access modifier.
2945 * XmlTextWriter.cs : Imported state variable from XmlWriter.
2946 * DTDValidatingReader.cs : Removed extraneous MonoTODO.
2947 * XmlConvert.cs : Implemented ToTimeSpan().
2948 Modified ToDateTime() to reuse the same array.
2950 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2952 * XmlAttributeCollection.cs : Fixed synchronization stuff.
2953 * XmlConvert.cs : Added two FromBinHexString() methods.
2954 * XmlTextReader.cs : Modified to use one of the above method.
2955 * XmlValidatingReader.cs : XsdValidatingReader.XmlResolver will be
2956 disabled (in the next commit), so resolver won' be set to it.
2957 Attempt to validate against XDR now throws NotSupportedException.
2959 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2961 * XmlChar.cs : added WhitespaceChars, used in common.
2966 XmlTextWriter.cs : String.Trim()
2967 * XmlConvert.cs : shifted XmlConstructs to XmlChar.
2968 * XmlTextReader.cs : Implemented Normalization.
2970 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2972 * XmlNode.cs : GetPrefixOfNamespace() also contained a bug similar to
2973 GetNamespaceOfPrefix() fixed at 2003-10-13.
2974 * XmlTextReader.cs : ReadBase64() should keep incomplete base64 block
2975 which remained by previous call of this method.
2976 * XmlUrlResolver.cs : Added assertion for file Uri path's absoluteness.
2977 * XmlValidatingReader.cs : Notice about intention of XDR won't be
2978 supported (at least in Mono 1.0).
2980 2003-10-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2982 * XmlDocument.cs : CloneNode() does not copy PreserveWhitespace.
2983 * XmlWriter.cs : Calling WriteNode() with XmlReader whose state is
2984 XmlDeclaration now calls WriteProcessingInstruction(). This fixes
2985 testcase XmlWriterTests.WriteNodeFullDocument().
2986 * XmlTextWriter.cs : Added LAMESPEC comments related to above.
2988 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2990 * XmlDocument.cs : Fixed bugzilla #49607. Save() outputs XML
2991 declaration even though there is no XmlDeclaration child.
2992 * XmlTextReader.cs : Fixed Init() so that ResetState() should work.
2994 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2996 * XmlTextWriter.cs : Implemented WriteSurrogateCharEntity().
2997 Reverted my recent extraneous check in WriteStartAttribute().
2999 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3001 * XmlNode.cs : GetNamespaceOfPrefix() should check Attributes existence.
3002 And it should throw ArgumentNullException.
3004 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3006 * XmlAttribute.cs : Fixed InnerText that did not removed its content
3007 if there is two or more children.
3008 * XmlNode.cs : XmlNode.cs : Fixed bugzilla #49580 (1)to return "",
3009 (2)not to compare NodeType for detached nodes, (3)optimization to
3010 compare element's prefix.
3011 * XmlSecureResolver.cs : Removed extraneous members.
3013 2003-10-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3015 * Added DTDReader.cs. It is almost importation of XmlTextReader.
3016 * DTDObjectModel.cs :
3017 - More .NET-ism. Properties took place of fields.
3018 - Imported PE set from XmlTextReader. Added location info.
3019 - Added DTDEntityBase common to PE and GE.
3020 - More correct text declaration handling with new XmlTextReader.
3021 * DTDValidatingReader.cs :
3022 - Now uses entity resolving XmlTextReader to validate attributes
3023 correctly. Implemented standalone
3024 - Standalone and default related validity constraints check.
3025 * XmlImplementation.cs: Implemented HasFeature().
3026 * XmlNode.cs : Implemented Supports().
3027 * XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
3028 * XmlParserInput.cs : Removed extraneous members.
3029 * XmlTextReader.cs :
3030 - All DTD related functionality now goes to DTDReader.cs
3031 - It became old simple TextReader input style.
3032 - Implemented GetRemainder().
3033 - Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
3034 additional new private method ReadUntilEndTag().
3035 - Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
3036 ReadXmlDeclaration() now became simple.
3037 - More strict entity reference check at SetEntityReferenceProperty()
3038 - Removed extraneous members.
3039 * XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.
3041 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3043 * XmlTextReader.cs: when we get an unexpected EOF in ReadContent, set
3044 the state before throwing the exception if depth > 0.
3046 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3048 * XmlAttribute.cs : Removed extraneous MonoTODO.
3049 * XmlTextWriter.cs : Implemented WriteBinHex() and WriteChars().
3050 WriteStartElement() and WriteStartAttribute() should ignore Prefix
3051 if namespace uri is not specified.
3053 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3055 * XmlDocumentFragment.cs,
3057 XmlEntityReference.cs : Removed extraneous MonoTODO.
3058 * XmlNode.cs : Implemented Normalize().
3059 * XmlNodeReader.cs :
3060 - AttributeCount and HasAttributes should return its owner element's
3061 value, to be consistent with XmlTextReader.
3062 - Fixed Depth to reflect correct attribute/attribute-value iteration.
3063 - simplified ownerElement and HasValue.
3064 - Prefix won't return null.
3065 - MoveToElement() should also work against attribute value nodes.
3066 * XmlTextReader.cs : MoveToElement() should return false if it is
3067 positioned at element itself.
3069 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3071 * XmlTextReader.cs : Improved SignificantWhitespace handling.
3073 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3075 * XmlSecureResolver.cs : Implemented basic feature.
3077 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3079 * XmlUrlResolver.cs : Should work with null type argument.
3081 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
3083 * XmlTextWriter.cs : An attribute can require a prefix for the default
3084 namespace, so we need to store the prefix as well as the namespace.
3086 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3088 * DTDValidatingReader.cs : Simplified to use
3089 XmlSchemaUtil.GetParserContext().
3090 * XmlValidatingReader.cs : ValidationType.Auto should always use
3091 XsdValidatingReader because xsi:schemaLocation might be used.
3093 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3095 * XmlTextReader.cs : Attribute value token properties were incorrectly
3096 set by the linked node.
3098 2003-09-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3100 * XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
3101 considers such case that target node was not adapted to the document.
3102 * XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
3103 * XmlTextWriter.cs : use 'as' instead of 'try..catch'.
3105 2003-09-25 Ben Maurer <bmaurer@users.sourceforge.net>
3107 * XmlNode.cs (XPathNodeType): Give more useful debugging message.
3108 * XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
3111 2003-09-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3113 * XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
3114 recovery was still not enough. Fixed GrowScopes() (incorrect index).
3116 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3118 * XmlTextReader.cs :
3119 - Fix for bugzilla #48337 (containing Ben's advice on that).
3120 - Added internal XmlTokenInfo classes. Nodes are now handled as token
3121 objects (linked node, attributes and attribute values). Most of the
3122 node state properties and iterating methods are changed to refer to
3123 the token classes (except for value builder availability). Removed
3124 fields which are never used. CompileDTDSubset() is changed in
3125 reflection to nodeType field removal.
3126 - Fixed Depth that should vary in moving between attributes and/or
3127 reading attribute values.
3128 - LineNumber and LinePosition now returns more correct location.
3129 - Fixed Value that should still return true if its value is an empty
3130 attribute value string.
3131 - EntityValue is checked WFC constraints even thoug it is not used.
3132 - All .ctor() now initializes ReadState as Initial.
3133 - Read() should be available for attribute value constructor.
3134 * XmlAttribute.cs : set_InnerXml() now calls reader's Read().
3136 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3138 * XmlNamespaceManager.cs: PopScope() must retain those namespaces which
3139 are added in the scope before PushScope() was called.
3141 2003-09-20 Ben Maurer <bmaurer@users.sourceforge.net>
3143 * XmlNamespaceManager.cs: Rewrote. Uses arrays, rather than linked
3144 lists and removes uses of Hashtable. Results in huge speed gains.
3146 2003-09-19 Ben Maurer <bmaurer@users.sourceforge.net>
3148 * XmlConvert.cs: NaN.ToString () != INF.
3150 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
3152 * XmlTextWriter.cs: Attributes that have a namespace must be always
3155 2003-09-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3157 * XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
3159 * XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
3160 Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
3161 add Namespaces immediately, but adds at AddMissingElementXmlns so
3162 that we don't have to have extra check than namespaceManager's
3163 LookupPrefix(). 2) Removed writtenAttributes for performance reason
3164 since it is no more required.
3166 2003-09-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3168 * XmlDocument.cs : patch by Jonathan Hogg. Fixed CreateAttribute()
3169 that handled xmlns attributes inproperly.
3171 2003-09-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3173 * XmlNamespaceManager.cs : GetEnumerator() should return all of the
3174 available pairs (of prefix and namespace).
3175 * XmlQualifiedName.cs : Quick fix for NullReferenceException in case
3176 of name (or ns) is null. (The description of the immediate previous
3177 changes will be inserted below.)
3178 * XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
3179 * XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
3180 will release resources it had allocated.
3182 2003-09-01 Ben Maurer <bmaurer@users.sourceforge.net>
3184 * XmlDocument.cs (Save): use the encoding of the document, if
3187 2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3189 * XmlValidatingReader.cs : Implemented SchemaType. Added support for
3190 ValidationType.Schema. Added support for XmlResolver. Fixed
3191 ReadTypedValue() not to consume EndElement.
3193 2003-08-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3195 * XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
3197 * XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
3198 Commented out Console.Error.WriteLine().
3199 * XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
3200 escape and unescape for relative URI string.
3202 2003-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
3204 * XmlParserContext.cs: Make each context inherit next.
3206 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3208 * XmlChar.cs (IsWhitespace): Spare enumerator allocation.
3209 * XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
3210 fat, use low-fat loops instead. Even better, call the function
3211 inside XmlChar for code reuse.
3212 * HighWaterStack.cs (added): New class that acts like a Stack, but
3213 helps with memory allocation.
3214 * XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
3216 * XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
3217 use a variable that stores the position in the ArrayList.
3219 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3221 * XmlTextWriter.cs: Begin diet. String.Format has too much
3222 saturated fat, lets replace with the fat-free .Write ()
3223 calls. Effects best seen when Paolo's StreamWriter patch is
3226 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3228 * XmlNodeReader.cs : Fixed ReadAttributeValue() that might result in
3229 vanishing current node.
3231 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3233 * DTDValidatingReader.cs : Added SchemaType.
3234 Read() Assures to return to element.
3235 * DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
3236 * XmlReader.cs : ReadString() should be virtual in NET_1_1.
3237 * XmlTextReader.cs : 1) Depth should consider Attribute and its values.
3238 Introduced insideAttribute field to support them.
3239 2) ReadAttributeValue() should consider empty string.
3240 * XmlValidatingReader.cs :
3241 Fixed several properties which premised as if it was already read.
3242 Encoding and Namespaces now throws NotSupportedException for other
3244 Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
3246 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3248 * XmlInputStream.cs : Reverted CanSeek as to return false anyway.
3250 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3252 * DTDObjectModel.cs : added XmlResolver related members. Added
3253 invalid entity recursion logic. Added encodingdecl check on textdecl.
3254 * DTDValidatingReader.cs : It now implements IHasXmlParserContext.
3255 * XmlChar.cs : IsPubidChar() should not allow TAB(	).
3256 * XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
3257 to receive DTDObjectModel to support other than XmlTextReader.
3258 2) Most of its public member is now based on DTDObjectModel.
3259 * XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
3260 2) ReadNode() now considers XmlParserContext's DTDObjectModel for
3261 other than XmlTextReader (such as XmlValidatingReader).
3262 * XmlNode.cs : code cleanup only.
3263 * XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
3264 * XmlTextReader.cs : 1) Illegal entity reference check logic was moved
3265 from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
3266 change on ReadEntityReference(). 3) ReadAttribute() now checks
3267 reference to external entity reference. 4) Added textdecl encoding
3268 check. 5) DTDObjectModel fields are now set correctly. 6) added
3269 PERef markup nest check. 7) If PEDecl was not found, it might be WFC
3270 violation, not only be VC violation. 8) ReadEntityDecl() now receives
3271 its declared entity itself, and this method checks IsInternalSubset.
3272 * XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
3273 2) ValidationType.None should be the same as Auto, not DTD (in the
3274 future it should keep xml schema's default values).
3276 Pending Stuff in XmlTextReader which breaks some NUnit tests;
3277 1) SetEntityReferenceProperies() has check for illegal references.
3278 2) ReadAttribute(bool) has similar check for illegal references.
3280 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3282 * DTDAutomata.cs : Fixed (modified or added) TryEndElement() of choice,
3283 sequence and oneOrMore. Fixed DTDChoiceAutomata.TryStartElement().
3285 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3287 * XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
3288 and supplied SkipWhitespace() as they needed. It broke monodoc.
3289 Fixed ReadEntityValueDecl() to get correct value.
3291 2003-08-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3293 * XmlInputStream.cs :
3294 Fixed Initialize() that might result in incorrect buffer.
3295 CanRead and Position should consider buffer (especially when the
3297 CanSeek should use stream's CanSeek.
3299 * XmlChar.cs : added GetPredefinedEntity().
3300 * DTDObjectModel.cs :
3301 - Modified ComputeDefaultValue() to use it.
3302 - Fixed NormalizedDefaultValue not to expect parsed value as string.
3303 - ResolveExternalEntity now detects invalid standalone specification.
3304 - DTDParameterEntityDeclaration.Value is now changed to property and
3305 keep its resolved value of literal value of external value using
3306 new Resolve (XmlResolver) method (called only by XmlTextReader).
3307 * DTDValidatingReader.cs :
3308 - It now handles entity-expanded Whitespace and SignificantWhitespace
3309 correctly. Does not raise unexpected text not allowed error.
3310 - Fixed MoveToAttribute()s to move internal reader correctly, and
3311 should be able to move in other cases than on element node.
3312 - On Read()ing document type and ResolveEntity(), it now sets
3313 XmlResolver on text reader.
3314 - On ID constraints check and type verification, it now uses
3315 normalized attribute or its tokenized value(s).
3316 - Fixed ValidateAttributes() to add default values when
3317 ValidationType is Auto.
3318 * XmlParserContext.cs : added internal Dtd setter.
3319 * XmlParserInput.cs :
3320 InsertParameterEntityBuffer() should add surrounding whitespaces.
3321 Removed unused code block.
3322 * XmlTextReader.cs :
3323 - Modified ReadReference(), ReadAttribute() and Dereference() to use
3324 XmlChar.GetPredefinedEntity().
3325 - When returning entity reference, it checks extity declaration
3326 existence in certain conditions.
3327 - ReadAttribute() now skips general entity replacement on reading
3329 - ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
3330 - ReadXmlDeclaration() holds isStandalone, which might be used in
3331 entity reference's well-formedness check.
3332 - internal 'DTD' now uses XmlParserContext.Dtd.
3333 - isInternalSubset was meaningless. Now uses input stack's Count.
3334 - Added some required SkipWhitespace().
3335 - Several parameter entity handling changes. Added GetPEValue(name).
3336 TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
3337 now uses its Resolve() when it was external PE. Now it uses value
3338 buffer instead of currentTag, to efficiently read (included) PE.
3339 CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
3340 ImportAsPERef() simply inserts the value to currentInput.
3341 ReadEntityDecl() also uses value buffer. Removed non-used methods.
3342 - Default attributes are now stored in normalized form.
3343 - Dereference() now considers non-expanding predefined entities.
3344 * XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
3345 is more correctly supported.
3347 * XmlAttributeCollection.cs :
3348 When removing default attribute, it immediately inserts the attribute.
3349 RemoveAll() should consider default (not-removable) attributes.
3351 Should have its default XmlResolver. Added Internal Resolver.
3352 Some Load() should use its XmlResolver.
3353 ImportNode() should copy its children in node level, not value level.
3354 It also have to consider not to copy default attribute on importing
3356 * XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
3358 XmlDocumentFragment.cs.
3359 XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
3360 * XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
3361 ResolveEntity() uses XmlResolver on entityReader.
3363 2003-08-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3365 * DTDObjectModel.cs :
3366 - Added validation error check (and AddError(), Errors).
3367 - Fixed ComputeDefaultValue() to handle various references correctly.
3368 - DTDEntityDeclaration.EntityValue became property, and added
3369 LiteralEntityValue. The new one holds resolved value.
3370 Added ResolveExternalEntity(). It now required root in .ctor().
3371 * DTDValidatingReader.cs :
3372 - Now it handles namespaced attributes (as input to xsd validator).
3373 - Added XmlResolver property as usual XmlReader.
3374 - Added currentEntityHandling field so that it can stand changing
3375 XmlValidatingReader's EntityHandling dynamically.
3376 - FilterNormalization() now requires name for getting datatypes and
3377 can stand for non-current attribute normalization.
3378 - Splitted ReadContent() from Read() that can be called recursively
3379 when expanding entities.
3380 - Now handles Entity not found error *after* resolution of entities,
3382 - Read()ing DTD checks its Errors and raises validation error events.
3383 In some situations, DTD parsing may detect VC error, not WFC error.
3384 It also strictly checks NData existence.
3385 - Handling of entity-resolved text is a bit changed and Read()ing
3386 element, endElement, cdata now changed to switch collecting text
3388 - content type ANY should allow texts.
3389 - Added enumerated attribute validity check.
3390 - Added Name/Names creation rule check for ID/IDREF/IDREFS.
3391 - Added entity existence check for ENTITY/ENTITIES attributes.
3392 - Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
3393 - Fixed to remove extraneous #REQUIRED check.
3394 - Contributing default attribute is now only applied to the case
3395 ValidationType is DTD or None.
3396 - ResolveEntity() now handles external entities.
3397 Added Mono.Xml.IXmlParserContext interface support.
3398 * XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
3399 * XmlTextReader.cs :
3400 - Fixed ReadAttributeValue() to reset returnEntityReference.
3401 - Added bool MaybeTextDecl only for ResolveEntity().
3402 - Fixed ReadWhitespace(). In fact its value is considered even if it
3403 is in the end of the XML.
3404 - Fixed ReadXmlDeclaration(). Now skips text declaration.
3405 - CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
3406 - ReadContentSpec() should set OrderType = OR for mixed model.
3407 Fixed to set content element name correctly.
3408 - ImportAsPERef() now skips Text declaration.
3409 - Type of enumerated default attributes shold be string.
3410 - Undeclared PE error is now handled as DTD's VC error, not
3411 XmlTextReader's WFC error.
3412 * XmlValidatingReader.cs : BaseURI should provide that of
3413 original XmlReader's when read was not started yet.
3414 Fixed XmlResolver to delegate to DTDValidatingReader.
3416 * XmlAttributeCollection.cs : Acquiring attList declaration is
3417 insufficient especially in case of lack of elementdecl.
3418 * XmlChar.cs : (Maybe this is compact than XmlConstructs.)
3419 added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
3420 IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
3422 * XmlInputStream.cs : Removed "version" declaration check. It should
3423 be done by XmlTextReader.
3425 * XmlNodeReader.cs : added internal GetInternalParserContext() and now
3426 it can be used in XmlValidatingReader.ResolveEntity().
3427 ResolveEntity() sets XmlTextReader.MaybeTextDecl.
3429 2003-08-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3431 * DTDValidatingReader.cs :
3432 Added full ExpandEntities support for text node and entity reference
3433 node (although require many usage tests). Almost all methods and
3434 properties now have currentTextValue != null check, that field means
3435 that there are cached (entity-resolved) text.
3436 Implemented default attribute aware XmlLang and XmlSpace.
3437 * XmlNodeReader.cs : ResolveEntity() should not require DTD.
3439 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3441 * DTDValidatingReader.cs,
3445 XmlValidatingReader.cs : fixed pragma USE_VERSION_1_0 to NET_1_0.
3447 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3449 * DTDObjectModel.cs : Added BaseURI (but not used yet).
3450 DTDAttListDeclaration.ctro() now requires root dtd object model.
3451 * DTDValidatingReader.cs : Read() now expands EntityReference if
3452 entity handling of validating reader is ExpandEntities.
3456 XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
3457 ReadOuterXml which are modified in MS.NET 1.1.
3458 * XmlConstructs.cs : added int version of IsValid, IsInvalid,
3459 IsContent, IsMarkup and IsNCNameStart.
3460 Fixed int version of IsXXX() to check array index range.
3461 Added IsValidName (string).
3462 * XmlTextReader.cs :
3463 - Read() handles document with non document element as an error.
3464 - ReadText() and ReadCharacterReference() checkes illegal characters.
3465 - ReadEntityReference() checks name validity.
3466 - ReadProcessingInstruction() rejects such name that starts with
3467 "xml" ignoring case, and checks attributes more strictly.
3468 - ReadDeclaration() rejects unrecognized kind of declaration.
3469 - In many places, added "required whitespace" check in DTD markup.
3470 - DTD content model now disallows mixing use of '|' and ','.
3472 2003-08-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3474 * XmlDocumentFragment.cs : I missed to add it in relation to the
3475 previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
3476 * XmlNodeReader.cs : removed some TODO attributes.
3477 * DTDValidatingReader.cs,
3478 XmlValidatingReader.cs : Implemented ResolveEntity().
3480 2003-07-31 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3482 * XmlParserContext.cs,
3484 XmlElement.cs : Added internal Dtd and new internal XmlParserContext
3485 .ctor() that takes DTDObjectModel. And then rewrote classes which
3486 uses DTD information. Changed DocTypeName, InternalSubset, PublicId
3487 and SystemId to use DTDObjectModel.
3488 * DTDObjectModel.cs :
3489 Added DTDObjectModel.InternalSubsetHasPEReference.
3490 Added DTDEntityDeclaration.IsInternalSubset.
3491 * XmlTextReader.cs :
3492 Added internal GetInternalParserContext (to build entity reader).
3493 Added private isIntSubset to check if the DTD subset is internal or
3494 external, which might affect well-formedness constraints.
3495 Changed GenerateDTDObjectModel to return the resulting DTD model.
3497 * XmlEntityReference.cs : implemented BaseURI.
3498 * XmlNodeReader.cs :
3499 - Implemented ResolveEntity() and CanResolveEntity(). In fact
3500 it leads too many changes on almost all methods and properties,
3501 since they now must be aware of entityReader.
3502 - fixed ownerElement that might be used to return from attribute
3503 value to the element through parent attribtues.
3504 - Now changed indexer to call GetAttribute() and moved actual logic
3505 to the matching GetAttribute() methods.
3507 2003-07-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3509 * XmlNode.cs : fixed internal ConstructNamespaceManager() for InnerXml
3510 not to create extraneous xmlns="".
3512 2003-07-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3514 * DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
3515 attribute declaration should be got independently of elementdecl.
3517 Added internal SetDefault() to mark as default.
3518 Removed InnerText implementation that is just the same as XmlNode.
3519 * XmlDocument.cs : id shouldn't be removed from table at 'trying' to
3520 get matching elements. ReadAttributeNode() now sets default mark.
3521 * XmlElement.cs : WriteTo() should ignore default attributes.
3522 * XmlTextWriter.cs : shuold allow valid name char such as digits.
3524 2003-07-27 Piers Haken <piersh@friskit.com>
3526 * XmlQualifiedName.cs : fields should never be null
3528 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3530 * XmlDocumentFragment.cs : added XPathNodeType indicating Root.
3532 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3534 * XmlDocument.cs (GetIdenticalAttribute): restored OwnerElement.IsRooted
3536 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3538 * XmlLinkedNode.cs : added internal IsRooted.
3540 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3542 * DTDValidatingReader.cs :
3543 - Added ID support in ValidateAttributes().
3544 - More refined ReadAttributeValue() support for non-expanding entity
3546 - It should handle LocalName, Name, Prefix, NamespaceURI and Value
3547 correctly when the reader is on each of the value nodes of an
3548 attribute. Now XmlDocument.ReadNode() should work well.
3550 - added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
3551 RemoveIdenticalAttribute()
3552 - Implemented GetElementById().
3553 * XmlAttributeCollection.cs :
3554 - added private ownerDocument property and replaced
3555 ownerElement.OwnerDocument with it.
3556 - Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
3557 It calls XmlDocument.{Add|Remove}IdenticalAttribute().
3558 - Added RemoveIdenticalAttribute() and it is used in Remove().
3559 (I also added AddIdenticalAttribute() but is not used.)
3561 2003-07-26 Duncan Mak <duncan@ximian.com>
3563 * XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
3564 for OwnerElement.IsRooted to fix the build..
3566 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3568 * XmlDocumentType.cs :
3569 modified private DTD to dtd and added internal DTD (the same thing).
3571 Fixed SetAttributeNode() to check if specified attribute is already
3572 set to the other element. In fact it is W3C DOM's specification but
3573 MS.NET 1.0 failed to catch it.
3574 * XmlTextReader.cs :
3575 ReadAttributeValue() should check if the value of the attribute is
3576 already read when the whole value is entity reference.
3577 Also, Name of text nodes should be "", not "#text"
3579 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3581 * XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
3582 with http://www.w3.org/XML/1998/namespace.
3583 * XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
3584 * XmlNode.cs : InnerText should handle CDATA and whitespaces.
3585 * XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
3586 * XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
3587 attributes (as MS.NET does). It isn't good way and I may change it.
3589 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3591 * DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
3592 DTDNotationDeclarationCollection and replaced Hashtables with them.
3593 Added NormalizedDefaultValue property for DTDAttributeDefinition.
3594 * DTDValidatingReader.cs :
3595 - It now reads attribute values into value collection.
3596 - Renamed consumedDefaultAttribute to consumedAttribute, and
3597 inContent to insideContent.
3598 - GetAttribute() should allow reader's other node state than element.
3599 - MoveToNextAttribute() should move when reader is placed other than
3600 the first attribute.
3601 - HandleError() now supports ValidationType.None (i.e. does nothing).
3602 - ValidateAttribute() now collects and resolves attribute value
3603 entity references. (On the other hand, it doesn't support
3604 EntityHandling.ExpandCharEntity.)
3605 - NodeType shouldn't return Attribute after ReadAttributeValue().
3606 Now only Text is supported, but must also support EntityReference.
3607 - Add FilterNormalization() and partially support Normalization.
3609 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3611 * XmlTextReader.cs :
3612 Read() now handles parser context stuff (BaseURI, XmlLang and
3613 XmlSpace) correctly for an empty element.
3614 Normalization property now doesn't throw an error. Will be used soon.
3615 * XmlValidatingReader.cs : added ValidationType.None support (wait for
3616 the next DTDValidatingReader update for "not firing event handler).
3617 * XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
3619 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3621 * DTDValidatingReader.cs :
3622 changed base class to XmlReader and implemented IXmlLineInfo members.
3623 changed .ctor() argument from event handler to validating reader.
3624 Removed some #if ... #else ... #endif blocks.
3625 Added validation event support for Read() using HandleError().
3626 * XmlValidatingReader.cs : added internal OnValidationEvent().
3627 * XmlDocument.cs : ReadNode() now checks reader's state more strictly.
3629 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3631 * XmlUrlResolver.cs : applied BenM's patch for file uri problem
3634 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3636 * DTDValidatingReader.cs :
3637 added DTDObjectModel support for non-XmlTextReader XmlReader
3638 e.g. XmlNodeReader (Read() method).
3640 added internal CreateDocumentType(XmlTextReader) and moved
3641 ReadDoctypeNode() to XmlDocumentType.ImportFromDTD().
3642 * XmlDocumentType.cs :
3643 added internal .ctor(XmlTextReader, document) and ImportFromDTD().
3644 * XmlTextReader.cs :
3645 Renamed useSbForVal (valueBuilderAvailable), valSb (valueBuilder)
3646 and currentSubset (DTD).
3647 Added GenerateDTDObjectModel() (for independent doctype parsing).
3649 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3652 .ctor() should reject xml- or xmlns-prefixed node.
3653 * XmlNamespaceManager.cs :
3654 added some xmlns validity check.
3656 optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
3657 avoiding XmlNamespaceManager creation.
3658 * XmlNodeReader.cs :
3659 doctype node should return PUBLIC and SYSTEM for its indexer,
3660 and Value should be internal subset,
3662 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3664 * DTDObjectModel.cs,
3665 DTDValidatingReader.cs : Completely rewrote attribute handling.
3667 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3670 XmlElement.cs : Fixed CloneNode() for bug #46129.
3671 * XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
3672 String.Format arguments, and basically XmlException.ctor(
3673 IXmlLineInfo, message) seems good idea to use.
3674 * XmlTextReader.cs :
3675 - Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
3676 required non-null context which don't have to exist.
3677 - Added state check. Introduced 'currentState' and 'maybeTextDecl'
3678 (for external entity) and removed hasEnteredDocument. Added
3679 state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
3680 ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
3681 - Replaced throw ReaderError() with throw new XmlException() and
3682 fixed that some error hadn't thrown, only created.
3683 - ResetState() should re-initialize existing private members other
3684 than some specified fields.
3685 - Private AddAttribute() should check if the same-named attribute
3687 * DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
3689 2003-07-09 Lluis Sanchez Gual <lluis@ximian.com>
3691 * XmlTextReader.cs : Implemented ResetState() method.
3693 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3695 * XmlElement.cs : IsEmpty has removed attributes since it incorrectly
3698 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3700 * XmlDocument.cs : Load(string filename) should close its stream.
3701 Small change for the latest DTDObjectModel change.
3702 * XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
3703 changed methods are only related to DTD stuff).
3704 Now uses XmlSchemaDatatype for attribute type definition.
3705 * XmlValidatingReader : initial (limited) support for DTD validation.
3706 It can handle only XmlTextReader.
3707 * DTDObjectModel.cs : changed radically for initial validation support.
3708 * added DTDAutomata.cs and DTDValidatingReader.cs.
3710 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3712 * XmlElement.cs : Removed extraneous xmlns output support (it should
3713 be done by XmlTextWriter).
3714 * XmlNode.cs : InsertBefore() now checks validity of the newChild (and
3715 most of the changes are in fact indentation changes).
3716 * XmlWriter.cs : WriteAttributes() now can write entity references.
3717 WriteNode() now writes xmldecl attributes correctly.
3718 Removed namespaceManager and xmlns check logic, since it should be
3719 done by individual XmlTextWriter.
3720 * XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
3721 written multiple xmlns declarations.
3722 Moved namespaceManager from abstract XmlWriter.
3723 Write{Start|End}Attribute() and WriteString() now checks xmlns
3724 attribute value. (MS.NET holds value only with this write method).
3726 2003-07-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3728 * XmlDocument.cs : removed xmlReader.Close() from Load(XmlReader).
3730 2003-06-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3732 * XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
3733 essentially changed most of the property handling (e.g. removed attribute
3734 enumerator and it now became really cloneable).
3735 * XmlNodeReader.cs : ReadInnerXml() changes its state as error
3736 when the method is called at Initial state.
3738 2003-06-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3740 * XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
3741 as non-empty, and XmlElement's IsEmpty is designed as such.
3742 Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
3744 * XmlNode.cs : Fixed XPathNodeType. It should throw an exception
3745 instead of returning undefined enum value.
3746 Modified some code comments.
3747 * XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
3748 when XmlReader's node is not at empty element or at EndElement.
3749 Fixed XmlDeclaration's standalone check.
3751 2003-06-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3753 * XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
3754 to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
3756 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3758 * XmlInputStream.cs : quick fix for public ctor() BaseURI bug.
3760 2003-06-20 Ben Maurer <bmaurer@users.sourceforge.net>
3762 * XmlTextReader.cs: Reduces memory allocation when the reader is
3763 not queried for some values.
3764 * NameTable.cs: Now uses a custom hashtable to implement. As a
3765 result, when Get (char[], int, int) is called, a string is only
3766 allocated if it is actually a new entry.
3767 (StrEqArray) Compares a string and a char[]
3768 (AddEntry) Adds a new entry to the hashtable
3769 (Entry) Represents a hashtable entry.
3771 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3773 * XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.
3775 2003-06-16 Ben Maurer <bmaurer@users.sourceforge.net>
3776 * XmlUrlResolver.cs: really fixed #44231
3778 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3780 * XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
3781 this method set current node null.
3782 * XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
3783 String.Empty instead of null (expected value).
3786 XmlInputStream.cs : fixed BaseURI problem (bug #44231).
3788 2003-06-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3790 * XmlNodeReader.cs : this [name] and this [name, ns] (and
3791 GetAttribute() methods in turn) returns null instead of String.Empty.
3792 * XmlTextWriter.cs : WriteStartAttribute() should try to use specified
3793 prefix before auto-generating prefixes.
3794 Implemented WriteBase64().
3796 2003-06-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3798 * XmlNodeReader.cs : LookupNamespace () has refered invalid current
3799 node for attributes. Modified to use private "document" property.
3801 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
3803 * XmlTextWriter.cs: when adding an attribute with a namespace, a prefix must be automaticaly
3804 generated, and a namespace declaration must be added.
3805 * XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
3807 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
3809 * XmlAttribute.cs: Accept a null prefix or namespaceURI.
3811 2003-06-10 Duncan Mak <duncan@ximian.com>
3813 * XmlDocumentNavigator.cs (GetNode): Make it implement
3816 2003-06-05 Lluis Sanchez Gual <lluis@ideary.com>
3818 * XmlTextWriter.cs : Fixed bug. After calling for example WriteStartElement ("pref","ln","ns");
3819 a call to LookupPrefix ("pref") when still writting attributes should
3820 return "ns", and it didn't.
3822 2003-06-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3824 * XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
3825 * XmlConvert.cs : fixed VerifyNCName() to check correctly.
3827 2003-06-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3829 * XmlDocumentNavigator.cs : Compute document node one time.
3830 MoveToFirstChild() should move to PIs and comments.
3832 2003-05-30 Miguel de Icaza <miguel@ximian.com>
3834 * XmlReader.cs (ReadStartElement): Improve error message.
3836 2003-05-28 Lluis Sanchez Gual <lluis@ideary.com>
3838 * XmlTextReader.cs : MoveToAttribute methods must set the enumerator to the right
3839 position, since MoveToNextAttribute may be called after it.
3840 SetProperties(): attributes do not "inherit" the namespace.
3841 * XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
3843 2003-05-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3845 * NameTable.cs : Add() sets the given name string interned.
3846 * XmlParserContext.cs : added internal PushScope() and PopScope() to
3847 hold stacks of xml:base, xml:lang and xml:space.
3848 * XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
3849 property for stacked attributes). Renamed Initialize() to Initialize-
3850 Context(). Modified to use XmlParserContext.PushScope()/PopScope().
3852 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
3854 * XmlReader.cs: Little fix to WriteAttributeString()
3856 2003-05-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3858 * XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
3859 XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
3860 XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
3861 XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
3862 Reverted the recent accessibility mistake (5/16).
3863 * XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic
3864 from XmlNode to XmlDocument.
3866 2003-05-18 Lluis Sanchez Gual <lluis@ideary.com>
3868 * XmlQualifiedName.cs : Fixed bug in equality operator.
3870 2003-05-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3872 * XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
3873 any open attributes or elements. WriteWhitespace() checks state and
3874 closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
3875 when it is called inside attribute value.
3876 * XmlException.cs : added .NET 1.1 .ctor.
3877 * added XmlSecureResolver.cs (only stubbing).
3878 * XmlAttribute.cs : set_InnerXml() should remove children.
3881 XmlDocumentFragment.cs,
3882 XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
3883 * XmlNode.cs : RemoveAll() should also remove all attributes.
3884 * XmlTextRader.cs : .ctor() for attribute value reader should add
3885 quotations at initialization, since it requires quote chars.
3886 * XmlWriter.cs : WriteAttributeString() more correct xmlns check.
3888 2003-05-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3890 * changed XPathNodeType modifier to internal *protected* override.
3891 * XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
3892 * XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
3893 * XmlAttributeCollection.cs : removed some incorrect TODO attributes.
3894 * XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
3895 when the argument is "xmlns".
3896 * XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
3897 * XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
3898 * XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
3899 * XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
3900 not to set error state for non-started XmlNodeReader.
3901 * XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
3902 BaseURI support. Fixed Initialize() to handle Attribute correctly.
3903 SetProperty for attribute auto-completes xmlns NSURI.
3904 Attribute and whitespace handling became more correct.
3905 Don't parse external DTD if XmlResolver is null.
3906 * XmlTextWriter.cs : implemented WriteEntityRef().
3907 WriteStartAttribute() checks if ns does not equal to that of xmlns.
3908 * XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
3910 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3912 * XmlConvert.cs : IsInvalid() Now uses XmlConstructs.IsName(Start).
3913 EncodeName() now correctly encodes invalid names.
3914 Result string of ToString(DateTime) contains "fffffff".
3916 2003-04-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3918 * XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
3919 * XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
3921 Fixed this[] to work correctly against XmlDeclarations.
3922 Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
3923 (which may prevent validations etc.)
3926 XmlTextReader.cs : Fixed ReadString() to be compliant with each
3928 * XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
3930 2003-04-27 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3932 * XmlNode.cs: ensure to get a valid Uri in BaseUri when loading the
3933 source document from a file.
3935 2003-04-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3937 * XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
3938 content EntityReference correctly.
3939 * XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
3940 HasAttributes, indexers, MoveTo*Attribute() and Read() ).
3941 Modified Skip() to call Read () explicitly.
3942 * XmlTextReader.cs :
3943 Fixed ReadInnerXml() which ignored EndElement token in certain cases.
3944 Implemented MoveToAttribute (local, ns), and modified GetAttribute()
3945 in relation to this change.
3946 Attributes for XmlDeclaration are now correctly set.
3947 * XmlTextWriter.cs : WriteRaw() is now different from WriteString().
3948 Simplified WriteAttributes() for XmlDeclaration.
3950 2003-04-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3952 * XmlTextReader.cs : fixed ReadInnerXml(). it was inconsistent with
3955 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3957 * XmlDocument.cs : fixed Load() to set baseURI correctly.
3958 * XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
3959 * XmlTextReader.cs :
3960 fixed Depth. When it's on StartElement, Depth was already incremented.
3961 fixed private SaveProperty(), which moved away its saved properties
3962 when MoveToElement was called repeatedly.
3963 * XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
3965 WriteAttributes() refactory (for XMLDecl).
3966 WriteNode() don't Read() when the reader is Initial state, let other
3967 invokation to Read(). In case of Element, it should write entire
3968 element. In case of Attribute, it shouldn't Read().
3969 WriteStartDocument() should omit standalone decl. when there is no
3972 2003-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3974 * XmlReader.cs: reverted last patch. It breaks System.Configuration
3975 because 1. it considers XmlDeclaration as content and 2. always
3976 returns XmlNodeType.None.
3979 2003-04-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3981 * Added missing ChangeLog of 4/4/2003.
3982 * XmlTextWriter.cs : patch by Erik. fixed WriteQualifiedName.
3983 (write prefix instead of ns.)
3984 * XmlInputStream.cs : file access mode fix (FileAccess.Read was missing)
3985 * XmlTextReader.cs : modified to call Read() instead of ReadContent().
3986 (It may be required for decorated reader such as XmlValidatingReader.)
3987 Changed Read() error message for mismatch end tag.
3988 * XmlDocument.cs : (ReadNode) friendly message for mismatch EndElement.
3989 * XmlReader.cs : Corrected misinterpreted MoveToContent() method.
3991 2003-04-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3993 * XmlDocument.cs : Load() now closes the given XmlReader.
3994 Don't allow creation of XmlTextReader for Doctype. (workaround.)
3995 * XmlInputStream.cs : It now closes its internal stream explicitly.
3996 * XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
3997 * XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
3998 * XmlParserInput.cs : added Close() method.
3999 * XmlReader.cs : MoveToContent() should (1) not Read in case of empty
4000 element, and (2) MoveToElement() in case of attribute.
4001 * XmlTextReader.cs : Close() now actually closes source TextReaders.
4003 2003-03-26 Duncan Mak <duncan@ximian.com>
4005 * XmlTextWriter.cs (Write): A patch from Atsushi to fix
4006 prematurely ending the write, or something like that. It was
4007 causing us to chop off the end of the document when we're trying
4008 to generate XML Schemas.
4010 2003-03-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4012 * XmlTextReader.cs : implemented ReadString().
4013 fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
4014 null reference exception when context is null.
4015 * XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
4016 fixed Read() - when positioned at EndElement, it didn't progress.
4017 fixed HasAttribute - it didn't return false in all cases.
4018 fixed Name and LocalName - only limited type of nodes return names.
4019 fixed AttributeCount - in some cases it threw null ref exception.
4021 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4023 * XmlTextWriter.cs : WriteStartDocument doesn't set hasRoot=true, then
4024 WriteEndDocument without root element now raises an error correctly.
4025 * XmlDocumentNavigator.cs : (MoveToFirstChild) fixed bugzilla #36672.
4026 implemented BaseURI, NameTable, XmlLang, GetAttributes, GetNamespace,
4029 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4031 * XmlElement.cs : RemoveAttribute now don't throws when specified
4032 attribute does not exist.
4034 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4036 * XmlNode.cs : add descriptions for some node type error.
4038 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4040 * XmlNodeArrayList.cs, XmlNodeListChildren.cs : bugzilla #39920 fix.
4042 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4044 * XmlDeclaration.cs : quick fix, not to use regex for set_Value.
4046 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4048 * XmlTextReader.cs : Fixed wrong notationdecl SYSTEM id read.
4049 * XmlInputStream.cs : Should allow versionless input stream entity.
4051 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4053 * added XmlParserInput.cs for multi xml document sources.
4054 * added DTDObjectModel.cs (maybe temporary).
4055 * XmlTextReader.cs :
4056 + fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
4057 + Some members such as LineNumber, ReadChar now uses XmlParserInput.
4058 + added support for Namespaces (namespace-ignorant parse available).
4059 + added support for XmlResolver.
4060 + replace SetReaderContext()/SetReaderFragment() with Initialize().
4061 + use NameTable in CreateNameString.
4062 + fixed ReadCData(). Now reads "]]]>" correctly.
4063 + support for DTD parse.
4064 + Read() now throws an error when it reached EOF while Depth > 0.
4066 XmlDocumentFragment.cs,
4067 XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
4068 * XmlDocument.cs : ReadNode() now reads DocumentType.
4069 * XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
4071 XmlNotation.cs : added override LastLinkedChild (for doctype node).
4072 * XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
4073 * XmlElement.cs : bugfix for node removal of set_InnerXml.
4074 * XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
4075 (to append child XmlEntity into XmlDocumentType correctly.)
4076 * XmlInputStream.cs : fixed to access file with FileAccess.Read.
4078 2003-03-15 Duncan Mak <duncan@ximian.com>
4080 * XmlElement.cs (Name): Only append prefix + ':' when prefix is
4081 neither String.Empty nor null. Thanks to Simon Guindon for
4082 reporting the bug and Jackson for fixing this bug with me.
4084 2003-03-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4086 * XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
4087 * XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
4088 fixed ReadNode(), it should call reader.Read() only on Initial state.
4089 * XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
4090 and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
4091 System.Net.WebClient directly.
4092 * XmlParserContext.cs : baseURI never be null.
4093 * XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
4094 * XmlUrlResolver.cs : namespace change for XmlInputStream.
4096 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
4098 * XmlTextReader.cs: When throwing a ReaderException, show what
4099 character was the culprit
4101 2003-03-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4103 * XmlDocumentFragment.cs, XmlElement.cs :
4104 modified InnerXml (fragment type from Element to DocumentFragment).
4106 * XmlElement.cs : fixed WriteTo() ns check.
4107 * XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
4108 * XmlNode.cs : fixed ConstructNamespaceManager().
4110 * XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
4111 IsPubid with an int arg.
4112 * XmlReader.cs : changed to use XmlChar.cs (its role is as same as
4114 * XmlTextReader.cs :
4115 improved error messages with line info.
4116 / checking matching start and end tags.
4117 / prevents the apperance of multiple root elements. (patch by Erik)
4118 fixed and refactored ReadInnerXml() and ReadOuterXml()
4119 changed to use XmlChar.cs.
4121 * XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
4122 (It will help c14n implementation.)
4123 / blocks multiple attribute output with element node.
4125 2003-02-28 Alan Tam <Tam@SiuLung.com>
4127 * XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
4128 methods to make them compatible with the XML Schema Spec from W3C
4129 ToString(TimeSpan) is still outstanding
4131 2003-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4134 (Load (string)): hack to workaround some issues with Uri.Parse. Once
4135 Parse is fixed, remove the hack.
4137 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4139 * XmlQualifiedName.cs : fixed GetHashCode() to avoid null reference
4140 * XmlTextReader.cs : fixed ReadAttributeValue() to handle
4141 entity reference, and some refactory.
4143 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4145 * XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.
4147 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4149 * XmlInputStream.cs : added (also contains internal XmlStreamReader).
4150 * XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
4151 and can read non-UTF-8 stream.
4152 * XmlTextReader.cs : related to above stream fix.
4153 * XmlUrlResolver.cs : implemented GetEntity ().
4155 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4157 * XmlTextWriter.cs: implemented WriteRaw (char[], int, int).
4159 2003-02-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4161 * XmlTextReader.cs : implemented QuoteChar.
4163 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4165 * XmlNode.cs : implemented ReplaceChild.
4166 removed DocElem checking at InsertBefore.
4167 * XmlNodeReader.cs : fixed ReadString and Read for correct node info.
4168 * XmlText.cs : implemented CloneNode and SplitText.
4170 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4172 * XmlCharacterData.cs: added XPathNodeType property.
4174 2003-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4176 * XmlTextWriter.cs: throw an exception if WriteEndDocument is
4177 called without a prior call to WriteStartDocument.
4179 2003-01-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4181 * XmlNodeReader.cs : several fix to get more compatible with MS.NET.
4183 2003-01-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4185 * XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
4186 null when no matching uri.
4187 * XmlElement.cs : removed unnecessary xmlns output.
4188 * XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
4189 * XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
4190 along with the change above, and moved timing of 'xmlns' output
4191 to CloseStartElement.
4192 * XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
4194 2003-01-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4196 * XmlWriter.cs: modified WriteStartElement (see test for detail).
4199 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
4201 * XmlDocument.cs: Added CheckName () method to check names validity.
4203 2003-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4206 (ReadOuterXml): use Depth property which return elementDepth, not depth.
4208 2003-01-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4210 * XmlElement.cs : (by ville) XmlElement.set_InnerText event bugfix.
4211 * XmlTextReader.cs : some fix for ReadOuterXml().
4213 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4215 * XmlTextReader.cs : bugfix for attributes related to creation of
4216 XmlAttribute *node*.
4218 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4220 * XmlTextReader.cs : bugfix for attribute values which have entity
4223 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
4225 * XmlDocument.cs: XmlTextWriter.Formatting == Indented when
4226 calling Save () -methods.
4228 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4230 * XmlNodeReader.cs : primitive reading implementation.
4232 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4234 * XmlElement.cs : quick fix for the incomplete patch of #35308 below.
4236 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4238 * XmlDocument.cs : removed inconsistent line-feed output.
4239 * XmlElement.cs, XmlTextWriter.cs :
4240 fixed for bugzilla 35308 (default ns output)
4241 * XmlWhitespace.cs : limited output only when preserving whitespace.
4243 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4245 * XmlAttribute.cs, XmlDocument.cs, XmlTextReader.cs:
4246 Implemented XmlTextReader.ReadAttributeValue().
4247 Added internal ReadAttributeNodeValue().
4248 Fixed XmlAttribute.InnerXml to use these methods.
4250 * XmlDocument.cs, XmlDocumentFragment.cs, XmlElement.cs, XmlNode.cs:
4251 Implemented XmlDocument.ReadNode() and removed ConstructDOM().
4252 Other changes are replacing them.
4254 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4256 * XmlDocument.cs: patch by Ville (fixed default PreserveWhitespace)
4258 2002-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4260 * XmlElement.cs, XmlTextWriter.cs, XmlWriter.cs:
4261 patch by JD Conley <jconley@winfessor.com>.
4262 (Fix for xmlns attribute output.)
4264 2002-12-05 Ville Palo <vi64p@koti.soon.fi>
4266 * XmlQualifiedName.cs: Little fix to ToString () -method
4268 2002-12-04 Tim Haynes <thaynes@openlinksw.com>
4270 * class/System.XML/System.Xml/XmlElement.cs: Made more refined
4271 checks on attributeNode to fix 32262.
4273 2002-12-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4275 * XmlDocument.cs (CreateNavigator(XmlNode)) : reverted
4276 * XmlTextWriter.cs (WriteStartElementInternal):
4277 fixed when default namespace was specified, all descendants
4278 fail to omit the default namespace declarations.
4281 XmlNode.cs (internal XmlLang/XmlSpace) : implemented(defined)
4283 XmlDocumentFragment.cs,
4284 XmlElement.cs (set_InnerXml): now uses XmlLang/XmlSpace
4285 * XmlElement.cs (set_IsEmpty) : implemented
4286 (WriteTo) : removed my improper indenting (Writer already done)
4287 * XmlNode.cs (BaseURI) : fixed if ParentNode is null, NullPointerEx
4288 (ConstructDOM) : implemented when xmlReader isn't XmlTextReader
4289 ...and renamed XmlDocument.ConventionalParser to ReusableReader ;-)
4291 2002-12-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4293 * XmlNode.cs (RemoveChild):
4294 bugfixed when XmlNode is Document OwnerDocument is null
4295 * XmlDeclaration.cs (Value):
4296 bugfixed regular expression pattern.
4297 * XmlDocument.cs (CreateNavigator): bugfixed access modifier.
4299 2002-11-24 Duncan Mak <duncan@ximian.com>
4301 * XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
4302 Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
4303 first patch to Mono! ;-)
4305 2002-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4308 (AppendChild): readded refChild != null condition before throwing
4309 "cannot insert this node in this position" exception. There's probably
4310 a better solution. Fixes #34191.
4311 (RemoveAll): changed following Atsushi instructions.
4314 2002-11-13 Duncan Mak <duncan@ximian.com>
4316 * XmlElement.cs (IsEmpty): A temporary check-in to keep gtk-sharp
4319 2002-11-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4321 * XmlDocument.cs : unified all constructors, added ConventionalParser,
4322 implemented CloneNode() and CreateEntityReference(),
4323 * XmlEntityReference.cs : set_Value, WriteContentTo, WriteTo
4324 set BaseURI to MonoTODO
4325 * XmlNode.cs : implemented PrependChild, modified ConstructDOM,
4326 bugfix InsertAfter (incorrect prepending) and InsertBefore
4327 (more than one DocumentElements hadn't caused errors)
4328 * XmlTextReader.cs : unified all constructors,
4329 added internal SetReaderContext(), SetReaderFragment()
4330 bugfix (syntax check of PUBLIC / getting internal subset)
4332 2002-11-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4334 XmlAttribute.cs : set_InnerText, set_InnerXml, some check for set_Prefix
4335 XmlAttributeCollection.cs : (indexer) this[localName, namespaceURI]
4336 XmlCharacterData.cs : exchanged Data and Value
4337 (for processing events and inheritance)
4338 XmlDocumentFragment.cs : set_InnerXml
4339 XmlSignificantWhitespace.cs : set_Value
4340 XmlTextReader.cs : ReadAttributeValue
4342 2002-11-04 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4344 XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement'
4346 2002-11-03 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4348 * XmlAttributeCollection.cs : checks owner element.
4349 implemented CopyTo, InsertAfter, InsertBefore, Prepend,
4350 Remove, RemoveAt, SetNamedItem.
4351 removed some logics that sets 'Parent' (that should be null)
4352 * XmlDocument.cs : set_InnerXml, [PreserveWhitespace(incomplete)]
4353 * XmlDocumentFragment.cs : get_InnerXml, WriteContentTo, WriteTo
4354 * XmlElement.cs : implemented WriteTo, set_InnerText.
4355 Fixed WriteTo() to add xmlns:* attributes when
4356 writer.LookupPrefix() returned mismatching.
4357 * XmlNamedNodeMap.cs : compare not only name but localname and nsuri.
4358 Removing different prefixes for the same uri now runs correct.
4359 added SetNamedItem(XmlNode node, int position_to_insert).
4360 * XmlNode.cs : ConstructDOM (logically) creates XmlEntityReference,
4361 XmlWhitespace, and XmlSignificantWhitespace
4363 2002-10-31 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4365 * XmlDocument.cs : implemented CreateDocumentFragment()
4366 * XmlElement.cs, XmlLinkedNode.cs :
4367 moved LastLinkedChild from XmlElement to XmlLinkedNode.
4368 * XmlEntityReference.cs : must throw NotImplementedException.
4370 + implemented InsertBefore() and then implemented InsertAfter()
4371 and modified AppendChild() to call it.
4372 + added logic to check ReadOnly, parent document equivalence,
4373 and inserting any 'content' before/after DocumentElement.
4374 + implemented Clone() [it is equals to CloneNode() by MS doc.]
4375 + added logic in RemoveChild() to check parent of oldChild.
4376 + fixed ConstructNamespaceManager() to internal only.
4378 2002-10-29 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4380 * XmlAttribute.cs : add internal 'IsDefault' property
4381 (equals to !Specified)
4382 * XmlImplementation.cs : added 'internalNameTable' property.
4384 + now allows "" for 'standalone' in CreateXmlDeclaration.
4385 + implemented 'Implementation' property and constructor with it.
4386 + added logic for appending name table (but still no use)
4387 + implemented property 'DocumentType'
4388 (but without internalSubset parsing. wait for next update.)
4390 + modified AppendChild() and RemoveChild() to support fragment.
4391 + modified AppendChild() to remove newChild from its parent
4392 when newChild is already in the other place.
4393 + modified RemoveChild() to set parentNode null.
4394 + modified ConstructDOM() to create DocumentType,
4395 and fixed access modifier ('internal protected' to 'internal')
4396 * XmlLinkedNode.cs : fixed 'NextSibling' to return null
4397 when its parent is null.
4398 * XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
4399 property to enable AppendChild() for this class.
4400 * XmlTextReader.cs : appended private publicId and systemId fields.
4402 2002-10-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4404 * XmlTextReader.cs: make it work when the underlying Stream is not
4407 2002-10-26 Piers Haken <piersh@friskit.com>
4409 * XmlNode.cs: add virtual property XPathNodeType
4414 * XmlProcessingInstruction.cs:
4415 * XmlSignificantWhitespace.cs:
4417 * XmlWhitespace.cs: implement XPathNodeType property
4418 * XmlDocumentNavigator.cs: use XPathNodeType property instead of switch
4420 2002-10-26 Piers Haken <piersh@friskit.com>
4422 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
4424 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4426 * XmlTextReader.cs: don't increment depth for entity references.
4428 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
4430 * - Fixed the duplication of xmlns:xx = yy when serializing the
4431 XML for serialization
4433 Fixed the unnecessary parsing/serializing when adding assemblies
4436 Avoided setting the XmlNode.InnerXml property
4437 (as it's not implemented)
4439 Fixed the usage/implementation of
4440 XmlElement.GetElementsByTagName()
4442 2002-10-21 Duncan Mak <duncan@ximian.com>
4447 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
4448 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
4450 2002-10-18 Duncan Mak <duncan@ximian.com>
4452 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
4453 <ginga@kit.hi-ho.ne.jp>.
4455 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
4457 * XmlDocument.cs (ImportNode): Implemented
4459 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4461 * XmlDocument.cs: one more Load method implemented.
4462 * XmlTextReader.cs: Depth now works.
4464 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4466 * XmlConvert.cs: IsInvalid is now internal.
4467 * XmlNamespaceManager.cs: implemented RemoveNamespace
4468 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
4469 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
4471 2002-09-19 Matt Hunter <mahunter@tconl.com>
4473 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
4474 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
4476 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4478 * XmlConvert.cs: finished implementation.
4479 * XmlTextReader.cs: fixed #30239.
4480 * XmlTextWriter.cs: fixed #30240.
4482 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4484 * XmlTextReader.cs: line and position begin with 1.
4486 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4488 * XmlException.cs: added a new internal constructor for IXmlLineInfo
4489 and output line and position info in Message.
4491 * XmlReader.cs: implemented missing bits.
4493 2002-09-12 Piers Haken <piersh@friksit.com>
4495 * XmlDocumentNavigator.cs: implement MoveToId()
4497 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4499 * XmlTextWriter.cs: fixed bug #29886.
4501 2002-08-26 Ravi Pratap <ravi@ximian.com>
4504 * XmlAttribute.cs (InnerText): Implement getting this property.
4506 * XmlNode.cs (InnerText): Ensure that we append only values of
4509 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4511 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
4512 that allowed compiling this.
4513 [ FIXME: filed bug #29435. mcs should have failed on this ]
4515 2002-08-25 Tim Coleman <tim@timcoleman.com>
4517 Change CreateNavigator to not be virtual.
4519 Add set_Prefix and InnerText accessors.
4520 * XmlEntityReference.cs:
4521 Add set_Value accessor.
4523 Make objects which should be private private.
4525 Remove WriteStartElementInternal abstract definition.
4526 * XmlValidatingReader.cs:
4529 2002-08-22 Jason Diamond <jason@injektilo.org>
4531 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
4532 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
4534 2002-08-22 Jason Diamond <jason@injektilo.org>
4536 * XmlElement.cs: Correction to previous GetElementsByTagName patch
4537 courtesy of Matt Hunter <xrkune@tconl.com>.
4539 2002-08-22 Jason Diamond <jason@injektilo.org>
4541 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
4542 qualified GetElementsByTagName courtesy of Matt Hunter
4545 2002-08-19 Jason Diamond <jason@injektilo.org>
4547 * XmlDocument.cs, XmlElement.cs: Added implementation of
4548 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
4550 2002-08-16 Jason Diamond <jason@injektilo.org>
4552 * XmlElement.cs: Fixed writing out qualified elements courtesy of
4553 Marcus Bürgel <marcus.buergel@gmx.de>.
4555 2002-08-13 Tim Coleman <tim@timcoleman.com>
4557 Partial implementation of WriteQualifiedName ().
4559 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
4560 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
4561 InsertData(), and ReplaceData(). These methods fire the
4562 NodeChanging and NodeChanged events.
4564 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
4566 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
4567 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
4569 2002-08-03 Tim Coleman <tim@timcoleman.com>
4570 * XmlNamespaceManager.cs:
4571 .Net allows the empty namespace to be redefined
4572 at a later point, but the current implementation
4573 did not. This fixes a hashtable conflict.
4575 2002-07-26 Tim Coleman <tim@timcoleman.com>
4577 When given a textwriter, check to see if it has a
4578 null encoding. This was being done for other inputs
4581 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
4583 * XmlTextReader.cs: rough line/column support.
4585 2002-07-23 Duncan Mak <duncan@ximian.com>
4587 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
4588 (string, string []) is particularly strange.
4590 * XmlException.cs: Remember to call the base serialization
4593 * XmlNodeReader.cs: Keep a new variable to store the Depth.
4595 2002-07-14 Jason Diamond <jason@injektilo.org>
4597 * XmlAttribute.cs: Removed ownerElement field since we can reuse
4600 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
4601 if the current node is an attribute.
4603 * XmlElement.cs: SetAttributeNode now sets the new attribute's
4606 2002-07-12 Jason Diamond <jason@injektilo.org>
4608 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
4609 creating an element, use String.Empty instead.
4611 2002-07-12 Piers Haken <piersh@friksit.com>
4613 * XmlAttributeCollection.cs: implement some ItemOf indexers
4614 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
4615 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
4617 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
4620 2002-10-26 Piers Haken <piersh@friskit.com>
4622 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
4624 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4626 * XmlTextReader.cs: don't increment depth for entity references.
4628 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
4630 * - Fixed the duplication of xmlns:xx = yy when serializing the
4631 XML for serialization
4633 Fixed the unnecessary parsing/serializing when adding assemblies
4636 Avoided setting the XmlNode.InnerXml property
4637 (as it's not implemented)
4639 Fixed the usage/implementation of
4640 XmlElement.GetElementsByTagName()
4642 2002-10-21 Duncan Mak <duncan@ximian.com>
4647 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
4648 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
4650 2002-10-18 Duncan Mak <duncan@ximian.com>
4652 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
4653 <ginga@kit.hi-ho.ne.jp>.
4655 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
4657 * XmlDocument.cs (ImportNode): Implemented
4659 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4661 * XmlDocument.cs: one more Load method implemented.
4662 * XmlTextReader.cs: Depth now works.
4664 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4666 * XmlConvert.cs: IsInvalid is now internal.
4667 * XmlNamespaceManager.cs: implemented RemoveNamespace
4668 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
4669 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
4671 2002-09-19 Matt Hunter <mahunter@tconl.com>
4673 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
4674 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
4676 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4678 * XmlConvert.cs: finished implementation.
4679 * XmlTextReader.cs: fixed #30239.
4680 * XmlTextWriter.cs: fixed #30240.
4682 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4684 * XmlTextReader.cs: line and position begin with 1.
4686 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4688 * XmlException.cs: added a new internal constructor for IXmlLineInfo
4689 and output line and position info in Message.
4691 * XmlReader.cs: implemented missing bits.
4693 2002-09-12 Piers Haken <piersh@friksit.com>
4695 * XmlDocumentNavigator.cs: implement MoveToId()
4697 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4699 * XmlTextWriter.cs: fixed bug #29886.
4701 2002-08-26 Ravi Pratap <ravi@ximian.com>
4704 * XmlAttribute.cs (InnerText): Implement getting this property.
4706 * XmlNode.cs (InnerText): Ensure that we append only values of
4709 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4711 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
4712 that allowed compiling this.
4713 [ FIXME: filed bug #29435. mcs should have failed on this ]
4715 2002-08-25 Tim Coleman <tim@timcoleman.com>
4717 Change CreateNavigator to not be virtual.
4719 Add set_Prefix and InnerText accessors.
4720 * XmlEntityReference.cs:
4721 Add set_Value accessor.
4723 Make objects which should be private private.
4725 Remove WriteStartElementInternal abstract definition.
4726 * XmlValidatingReader.cs:
4729 2002-08-22 Jason Diamond <jason@injektilo.org>
4731 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
4732 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
4734 2002-08-22 Jason Diamond <jason@injektilo.org>
4736 * XmlElement.cs: Correction to previous GetElementsByTagName patch
4737 courtesy of Matt Hunter <xrkune@tconl.com>.
4739 2002-08-22 Jason Diamond <jason@injektilo.org>
4741 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
4742 qualified GetElementsByTagName courtesy of Matt Hunter
4745 2002-08-19 Jason Diamond <jason@injektilo.org>
4747 * XmlDocument.cs, XmlElement.cs: Added implementation of
4748 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
4750 2002-08-16 Jason Diamond <jason@injektilo.org>
4752 * XmlElement.cs: Fixed writing out qualified elements courtesy of
4753 Marcus Bürgel <marcus.buergel@gmx.de>.
4755 2002-08-13 Tim Coleman <tim@timcoleman.com>
4757 Partial implementation of WriteQualifiedName ().
4759 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
4760 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
4761 InsertData(), and ReplaceData(). These methods fire the
4762 NodeChanging and NodeChanged events.
4764 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
4766 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
4767 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
4769 2002-08-03 Tim Coleman <tim@timcoleman.com>
4770 * XmlNamespaceManager.cs:
4771 .Net allows the empty namespace to be redefined
4772 at a later point, but the current implementation
4773 did not. This fixes a hashtable conflict.
4775 2002-07-26 Tim Coleman <tim@timcoleman.com>
4777 When given a textwriter, check to see if it has a
4778 null encoding. This was being done for other inputs
4781 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
4783 * XmlTextReader.cs: rough line/column support.
4785 2002-07-23 Duncan Mak <duncan@ximian.com>
4787 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
4788 (string, string []) is particularly strange.
4790 * XmlException.cs: Remember to call the base serialization
4793 * XmlNodeReader.cs: Keep a new variable to store the Depth.
4795 2002-07-14 Jason Diamond <jason@injektilo.org>
4797 * XmlAttribute.cs: Removed ownerElement field since we can reuse
4800 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
4801 if the current node is an attribute.
4803 * XmlElement.cs: SetAttributeNode now sets the new attribute's
4806 2002-07-12 Jason Diamond <jason@injektilo.org>
4808 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
4809 creating an element, use String.Empty instead.
4811 2002-07-12 Piers Haken <piersh@friksit.com>
4813 * XmlAttributeCollection.cs: implement some ItemOf indexers
4814 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
4815 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
4817 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
4819 * XmlTextWriter: Fixed Indentation. IndentationOverridden should
4820 not be set when inside a attribute.
4822 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
4824 * XmlTextWriter: In WriteStartElement, if namespace is null and
4825 prefix is null|empty do not write out xmlns=""
4827 * XmlWriter: WriteStartElement calls the virtual method with null
4828 argument instead of empty string.
4830 2002-07-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4832 * XmlTextReader.cs: implemented .ctor (Stream).
4834 2002-06-26 Duncan Mak <duncan@ximian.com>
4836 * XmlNodeReader.cs: Implementation of most of the properties, and
4837 some of the related methods.
4839 2002-06-23 Piers Haken <piersh@friskit.com>
4841 * XmlDocumentNavigator.cs: implement Clone()
4842 * XmlElement.cs: remove bogus unimplemented override of InnerText
4843 * XmlNode.cs: implment SelectNodes/SelectSingleNode
4844 * XmlNodeArrayList.cs: new support class for SelectNodes
4846 2002-06-21 Ajay kumar Dwivedi <adwiv@yahoo.com>
4848 * XmlQualifiedName: Name and Namespaces are never null. If null is passed
4849 to the constructor, set them to empty strings.
4850 Fixed the Operators.
4852 2002-06-18 Ajay kumar Dwivedi <adwiv@yahoo.com>
4854 * XmlTextReader.cs: HasLineInfo returns false instead of throwing an
4857 2002-06-14 Duncan Mak <duncan@ximian.com>
4859 * XmlConvert.cs: Added CLSCompliant attributes to methods.
4861 2002-06-12 Duncan Mak <duncan@ximian.com>
4863 * XmlCharacterData.cs (Value): Throw an ArgumentException in the
4864 set block if the node is read-only.
4866 2002-06-10 Ajay kumar Dwivedi <adwiv@yahoo.com>
4867 * XmlConstruct.cs : New Internal class with Helper methods for
4868 Checking XmlConstructs
4869 * XmlConvert.cs: Implemented most of the methods
4871 2002-06-08 Duncan Mak <duncan@ximian.com>
4873 * XmlDocument.cs (Load):
4874 Added bits to Load (string) for BaseURI support.
4876 * XmlAttribute.cs (BaseURI):
4877 * XmlDocument.cs (BaseURI):
4878 * XmlEntity.cs (BaseURI): Implemented.
4880 2002-05-27 Jason Diamond <jason@injektilo.org>
4882 * XmlDocumentNavigator.cs: Added file to directory.
4884 * XmlNode.cs (CreateNavigator): Implemented.
4885 (InnerText): Implemented.
4887 * XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
4889 (Load(XmlReader)): Allow for namespace qualified attributes.
4891 * XmlElement.cs: Implemented GetAttribute(string, string) and both
4892 GetAttributeNode overloads.
4893 (SetAttributeNode(XmlAttribute)): Implemented.
4895 * XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
4896 and RemoveNamedItem(string, string).
4898 * XmlLinkedNode.cs (PreviousSibling): Implemented.
4900 * XmlTextReader.cs: Added code to maintain the order of attributes as
4901 they're parsed. XML doesn't require this but Microsoft's parser does it and
4902 matching them makes testing easier so now we have it, too.
4904 2002-05-26 Miguel de Icaza <miguel@ximian.com>
4906 * XmlDocument.cs: Implement the Save methods.
4908 2002-05-08 Mike Kestner <mkestner@speakeasy.net>
4910 * XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
4912 2002-04-28 Duncan Mak <duncan@ximian.com>
4914 * XmlSignificantWhitespace.cs (Value):
4915 * XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
4916 block. Added new private method, IsValidWhitespaceChar, for
4919 2002-04-16 Duncan Mak <duncan@ximian.com>
4921 * XmlParserContext.cs (NameTable): Fixed a typo in the set block.
4923 2002-04-12 Duncan Mak <duncan@ximian.com>
4925 * XmlAttribute.cs (Prefix): Added preliminary code for set block,
4926 added comment on work that needs to be done here. A new MonoTODO item.
4928 * XmlDocument.cs (ctor): Corrected constructor signature, changed
4929 parameter from 'NameTable' to 'XmlNameTable'.
4931 * XmlDocumentFragment.cs (InnerXml): Added missing set block.
4933 * XmlCaseOrder.cs: Moved to System.Xml.XPath.
4935 2002-04-10 Duncan Mak <duncan@ximian.com>
4937 * XmlNodeReader.cs: Initial stubs for the class.
4939 2002-04-08 Kral Ferch <kral_ferch@hotmail.com>
4941 * XmlAttributes.cs: InnerXml getter, WriteContentTo, and WriteTo
4944 * XmlDeclaration.cs: WriteTo implementation.
4946 * XmlDocument.cs: InnerXml getter implementation.
4948 * XmlElement.cs: InnerXml getter implementation.
4950 * XmlNode.cs: Removed MonoTODO attrib on OuterXml.
4952 * XmlSignificantWhitespace.cs: WriteTo implementation.
4954 * XmlText.cs: WriteContentTo and WriteTo implementation.
4956 * XmlTextWriter.cs: WriteRaw implementation.
4958 * XmlWhitespace.cs: WriteContentTo and WriteTo implementations.
4960 2002-04-05 Kral Ferch <kral_ferch@hotmail.com>
4962 * XmlAttributes.cs: Added reminder MonoTODO to set NamespaceURI
4963 if prefix in constructor is one of the default ones.
4965 * XmlCharacterData.cs: Returns String.Empty for Value and Data
4966 even when constructed with null.
4968 * XmlDeclaration.cs: Value doesn't put encoding or standalone
4969 in if they are empty.
4971 * XmlDocument.cs: Implemented CreateNode methods and this caused
4972 the changes in the other files in this checkin.
4974 * XmlProcessingInstruction.cs: Returns String.Empty for Value and Data
4975 even when constructed with null.
4977 * XmlWhitespace.cs: Changed Value 'get' to return Data.
4979 2002-04-01 Kral Ferch <kral_ferch@hotmail.com>
4981 * XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
4983 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
4985 * XmlTextWriter.cs: Impls for LookupPrefix, WriteBase64,
4986 and WriteCharEntity.
4988 * XmlWrite.cs: Fixed bug where attribute namespace decl
4989 was pushing a scope onto the namespace manager when it shouldn't
4992 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
4994 * XmlTextWriter.cs: Some tweaks for WriteAttibuteString
4995 in different states (no open start element, in WriteState.Content mode).
4997 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
4999 * XmlTextWriter.cs: XmlLang and XmlSpace properties
5000 and WriteWhitespace.
5002 * XmlTextWriterOpenElement.cs: scope support for XmlLang
5005 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
5007 * XmlTextWriter.cs: Working on Attribute methods.
5009 * XmlWriter.cs: Working on Attribute methods.
5011 2002-03-28 Duncan Mak <duncan@ximian.com>
5013 * XmlDocument.cs (CreateWhitespace):
5014 (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
5017 * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
5019 2002-03-26 Duncan Mak <duncan@ximian.com>
5021 * XmlDocument.cs (CreateDocumentType): Implemented.
5023 * XmlNode.cs (Value): Implemented.
5025 * XmlProcessingInstruction.cs (InnerText): Implemented. It works just
5026 like XmlCharacterData.
5028 * XmlDeclaration.cs (CloneNode):
5029 * XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
5032 * XmlCharacterData.cs (InnerText): Implemented. Funny that the
5033 docs say it is the "The concatenated values of the node and all
5034 the children of the node.". I wrote some test programs and
5035 couldn't get any of the derived nodes to AppendChild. For now,
5036 InnerText == Data == Value.
5037 (Substring): Fixed typo.
5039 * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
5041 * XmlImplementation.cs (CreateDocument): Implemented.
5043 2002-03-25 Duncan Mak <duncan@ximian.com>
5045 * XmlDeclaration.cs: Rewrote the class, fixed formatting, added
5046 missing properties (InnerText, Value).
5048 * XmlDocument.cs (CreateXmlDeclaration): Implemented.
5050 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5052 * XmlTextWriter.cs: Impls for BaseStream and
5053 Namespaces and WriteState.
5055 * XmlWriter.cs: WriteState and WriteStartElementInternal.
5057 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5059 * XmlNodeListChildren.cs: made class internal
5060 instead of public. Shouldn't be visible outside
5063 * XmlTextWriter.cs: Implementations for Formatting,
5064 IndentChar, Indenting, QuoteChar, WriteStartDocument(standalone).
5065 Suppresses encoding on xml declaration if null stream passed in.
5066 Formats output including suppressing indentation for elements in
5069 * XmlTextWriterOpenElement.cs: Initial checkin.
5070 XmlTextWriter uses stack of these objects to track
5073 2002-03-22 Mike Kestner <mkestner@speakeasy.net>
5075 * XmlElement.cs: impl HasAttribute(string name).
5077 2002-03-22 Duncan Mak <duncan@ximian.com>
5079 * XmlElement.cs: Reformatted.
5080 (CloneNode) Corrected.
5082 * XmlDocument.cs (CreateWhitespace):
5083 (CreateSignificantWhitespace): Implemented.
5085 * XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
5086 true, because Attributes have ChildNodes.
5088 2002-03-21 Kral Ferch <kral_ferch@hotmail.com>
5090 * XmlTextWriter.cs: WriteStartDocument tracks state, writes out
5091 xml declaration along with encoding. WriteEndElement throws
5092 exception if no WriteStartElement exists.
5094 2002-03-20 Duncan Mak <duncan@ximian.com>
5096 * XmlEntityReference.cs (CloneNode): Implemented.
5098 * XmlException.cs (Message): Implemented. We need to cache the
5099 message string because SystemException doesn't expose 'message'
5102 * XmlText.cs (Value): Added in the missing Value property.
5104 2002-03-20 Duncan Mak <duncan@ximian.com>
5106 * XmlAttribute.cs (CloneNode): Implemented.
5108 * XmlDocumentFragment.cs (CloneNode): Implemented.
5110 * XmlElement.cs (CloneNode): Implemented.
5112 2002-03-19 Duncan Mak <duncan@ximian.com>
5114 * XmlNotation.cs: Added to CVS.
5116 * XmlAttribute.cs (CloneNode): First crack at the CloneNode method.
5118 * XmlCDataSection.cs (CloneNode): Implemented.
5120 * XmlDocumentFragment.cs: Reformatted and added the missing properties
5121 (InnerXml, OwnerDocument, ParentNode).
5122 (CloneNode): Implemented.
5124 * XmlSignificantWhitespace.cs (CloneNode): Implemented.
5125 (Value) Implemented the 'get' property.
5127 * XmlWhitespace.cs (Module): implemented.
5129 2002-03-19 Jason Diamond <jason@injektilo.org>
5131 * XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
5134 2002-03-18 Jason Diamond <jason@injektilo.org>
5136 * XmlTextReader.cs: Don't restore properties after reading last
5137 attribute on an element.
5139 * XmlDocument.cs: Move back to element after reading attributes
5140 so that IsEmptyElement test succeeds.
5142 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5144 * XmlNamespaceManager.cs: Implemented LookupPrefix.
5146 * XmlTextWriter.cs: Implemented namespace and prefix support.
5148 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5150 * XmlTextReader.cs: Restores properties after
5151 reading last attribute on an element.
5153 * XmlNode.cs: AppendChild sets the parent
5156 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5158 * XmlCDataSection.cs: Formatting, Implementation for WriteTo.
5160 * XmlComment.cs: Implementations for WriteTo and WriteContentTo.
5162 * XmlElement.cs: Fixed bug in WriteTo.
5164 * XmlProcessingInstruction.cs: Formatting.
5166 * XmlTextWriter.cs: Implementations for Close, WriteCData, WriteComment,
5167 fixes for WriteEndElement, WriteProcessingInstruction.
5169 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5171 * XmlDocument.cs: Implementations for WriteTo() and WriteContentTo(),
5172 had Load() add PIs to the document, moved onXXX methods to alphabetical
5175 * XmlElement.cs: Implementations for WriteTo() and WriteContentTo().
5177 * XmlNode.cs: Implementations for InnerXml Get and OuterXml.
5179 * XmlProcessingInstruction.cs: Implementations for WriteTo() and
5182 * XmlTextWriter.cs: Implementations for WriteEndElement,
5183 WriteProcessingInstruction, WriteStartElement, and WriteString.
5185 * XmlWriter.cs: Implemented WriteStartElement() methods.
5187 2002-03-15 Duncan Mak <duncan@ximian.com>
5189 * XmlEntity.cs: Added to CVS. Need to implement BaseURI and
5190 InnerText once I know what they do.
5192 * XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
5193 that we can properly chain constructors.
5194 (CloneNode): implemented.
5195 (WriteContentTo): Removed MonoTODO attribute as this method has no
5196 effect in this class.
5198 * XmlProcessingInstruction.cs (Value): Added the missing Set
5200 (InnerText): Added in, but not implemented.
5202 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5204 * XmlTextWriter.cs: implemented constructors and
5205 WriteCData and WriteComment.
5207 2002-03-14 Duncan Mak <duncan@ximian.com>
5209 * XmlDocument.cs: Moved the NodeChanged EventHandler to its own
5210 file, and updated the callbacks to reflect the change.
5211 (XmlDocument): Added the NameTable constructor.
5212 (NameTable): Also the NameTable property.
5214 * XmlNodeChangedEventHandler.cs: Added, replacing the version that
5215 was in XmlDocument.cs. It has two arguments now (object,
5216 EventArgs) , instead of one (object).
5218 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5220 * XmlWriter.cs: Formatting.
5222 * XmlTextWriter.cs: Initial checkin.
5224 2002-03-14 Duncan Mak <duncan@ximian.com>
5226 * Validation.cs: Removed, replaced by ValidationType.cs.
5228 * ValidationType.cs: Added.
5230 2002-03-13 Duncan Mak <duncan@ximian.com>
5232 * XmlException.cs: Made it [Serializable], implemented good ol'
5233 GetObjectData, and the serialization constructor.
5235 * XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
5236 (SetNamedItem): Reverted (added back in) the patch with the
5237 ReadOnly checks. "Don't doubt yourself, my son... you were right!"
5239 * XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
5240 (GetNamedItem (string, string)): implemented.
5241 (RemoveNamedItem): implemented.
5242 (SetNamedItem): implemented.
5244 2002-03-12 Kral Ferch <kral_ferch@hotmail.com>
5246 * XmlAttribute.cs: Moved a method from amongst properties down to
5247 it's alphabetical position in the methods section.
5249 * XmlNode.cs: Passes in 'this' to XmlNodeList constructor instead of
5250 last linked child. Set XmlNode base class to return false for IsReadOnly().
5251 Implemented GetEnumerator() and RemoveChild().
5253 * XmlNodeListChildren.cs: Now stores the parent instead of the last child.
5254 This is to support the behavior that the Enumerator doesn't become invalid
5255 when changes to the children occur. Flushed out rest of implementation for
5256 MoveNext, Current, and Reset.
5258 2002-03-12 Duncan Mak <duncan@ximian.com>
5260 * XmlCharacterData.cs: Reformatted the properties for better readability.
5262 * XmlLinkedNode.cs: Removed the awful boxy comments.
5264 * XmlNamedNodeMap.cs (Count):
5265 (Item): Implemented. Tests will be coming.
5267 * XmlEntityReference.cs:
5268 * XmlSignificantWhitespace.cs: Implemented these classes except for
5269 the Clone, WriteContentTo and WriteTo methods. Will have to
5270 investigate into these later.
5272 2002-03-11 Duncan Mak <duncan@ximian.com>
5274 * IHasXmlNode.cs: Added to CVS.
5276 2002-03-08 Jason Diamond <jason@injektilo.org>
5278 * XmlParserContext.cs: Added missing constructors and missing Encoding
5281 * XmlTextReader.cs: Start using the XmlParserContext class.
5283 2002-03-08 Jason Diamond <jason@injektilo.org>
5285 * XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
5287 2002-03-08 Mike Kestner <mkestner@speakeasy.net>
5289 * XmlNode.cs (Item): Implemented both indexers.
5291 2002-03-08 Jason Diamond <jason@injektilo.org>
5293 * DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
5294 XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
5296 2002-03-08 Jason Diamond <jason@injektilo.org>
5298 * XmlAttribute.cs: Attribute nodes are supposed to store their values
5299 as child nodes so updated to reflect that.
5301 * XmlDocument.cs, XmlElement.cs, XmlNode.cs: Moved code that was
5302 duplicated in XmlDocument and XmlElement into XmlNode so that it
5303 wouldn't have to be duplicated in XmlAttribute, too.
5305 2002-03-08 Kral Ferch <kral_ferch@hotmail.com>
5307 * XmlNodeList.cs, XmlDocument.cs, XmlLinkedNode.cs,
5308 XmlNode.cs: Formatting.
5310 * XmlNodeListChildren.cs: Implementation of XmlNodeList
5311 for XmlNode.ChildNodes property.
5313 * XmlNodeListAsArrayList.cs: Removed file. Using different
5314 data structure (circular list) in XmlNode so this file
5317 * XmlDocument.cs, XmlElement.cs: New ChildNodes tests found
5318 bug in setter property of LastLinkedChild so fixed it.
5320 2002-03-06 Jason Diamond <jason@injektilo.org>
5322 * XmlInputSource.cs, XmlNames_1_0.cs, XmlParse.cs: Removed files.
5323 We already have a parser in XmlTextReader.
5325 * XmlException.cs: Removed constructor accepting XmlInputSource.
5327 2002-03-06 Kral Ferch <kral_ferch@hotmail.com>
5329 * XmlNode.cs: Rewrote this class from scratch with
5330 MonoToDo attribs and NotImplementedExceptions. Now defines an
5331 internal LastLinkedNode property to aid the new implementation.
5332 XmlNodes only have ref to owner doc and parent nodes now.
5334 * XmlLinkedNode.cs: Added NextLinkedSibling internal property
5335 and ref to next sibling to support walking our circular child
5338 * XmlDocument.cs: Added ref to last child node and overrides
5339 XmlNode's internal LastLinkedChild property to support walking
5340 our circular child node list.
5342 2002-03-02 Kral Ferch <kral_ferch@hotmail.com>
5344 * XmlProcessingInstructions.cs: Class was empty. Implemented
5345 constructor, properties, and CloneNode() method. Put in
5346 MonoToDo attrib for remaining methods.
5348 * XmlComment.cs: Reformatted and put in MonoToDo attribs.
5349 Got rid of helper methods and fields since they were no
5352 * XmlLinkedNode.cs: Reformatted and put in MonoToDo attribs.
5354 * XmlDocument.cs: Added code to Load(XmlReader) to create XmlComment,
5355 XmlCDataSection, and XmlProcessingInstruction nodes. Implemented
5356 Createxxx() methods for those three node types.
5358 2002-03-02 Jason Diamond <jason@injektilo.org>
5360 * XmlDocument.cs: Implemented the remaining CreateElement and
5361 CreateAttribute methods.
5363 * XmlAttribute.cs: Re-implemented.
5365 * XmlElement.cs: Set owner element on attributes. Reformatted.
5367 2002-03-02 Jason Diamond <jason@injektilo.org>
5369 * XmlTextReader.cs: Implemented MoveToNextAttribute().
5371 * XmlDocument.cs: Reformatted. Adding missing methods and MonoTODO
5372 attributes. Create attribute nodes while loading. Implemented
5373 Load(string) and CreateTextNode().
5375 * XmlCharacterData.cs, XmlText.cs: Re-implemented.
5377 * XmlCDataSection.cs, XmlComment.cs: Call correct constructor in
5380 * XmlNamedNodeMap.cs, XmlAttributeCollection.cs: Stubbed out.
5382 2002-03-02 Mike Kestner <mkestner@speakeasy.net>
5384 * XmlAttribute.cs : Using fix.
5385 * XmlDocument.cs (CreateAttribute(String)): Implement.
5387 2002-03-02 Jason Diamond <jason@injektilo.org>
5389 * XmlNamespaceManager.cs: Atomize prefixes and namespaces strings in
5392 2002-02-28 Jason Diamond <jason@injektilo.org>
5394 * XmlDocument.cs, XmlNode.cs: Initial implementation of LoadXml
5395 courtesy of Kral Ferch <kral.ferch@hotmail.com>.
5397 2002-02-28 Jason Diamond <jason@injektilo.org>
5399 * XmlException.cs, XmlReader.cs, XmlTextReader.cs: Reformatted,
5400 added missing members and MonoTODO attributes.
5402 * XmlTextReader.cs: Throw XmlException instead of System.Exception.
5404 2002-02-27 Jason Diamond <jason@injektilo.org>
5406 * XmlElement.cs: Reformatted, added missing members and MonoTODO
5409 2002-02-26 Duncan Mak <duncan@ximian.com>
5411 * XmlCDataSection.cs: Initial implementation.
5413 * NameTable.cs: Fixed the whole thing. Wrote a NUnit test to test
5414 it out. This should (hopefully) be correct.
5416 2002-02-26 Jason Diamond <jason@injektilo.org>
5418 * XmlTextReader.cs: Apparently Microsoft's implementation treats
5419 namespace declarations as attributes so we do now, too.
5421 * XmlNamespaceManager.cs: HasNamespace fixed so that it only
5422 checks the current scope.
5424 2002-02-26 Duncan Mak <duncan@ximian.com>
5426 * XmlDocumentType.cs: Added a few hacks here and there to
5427 temporarily fix the "I broke the build issue".
5429 2002-02-25 Jason Diamond <jason@injektilo.org>
5431 * XmlDocument.cs, XmlElement.cs, XmlNode.xs, XmlNodeList.cs,
5432 XmlNodeListAsArrayList.cs: Multiple fixes necessary to get
5433 simple test to pass. The existing code is really shitty so I'll
5434 probably start writing tests and refactoring before much else
5437 2002-02-25 Duncan Mak <duncan@ximian.com>
5439 * NameTable.cs: Implemented.
5441 * XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.
5443 2002-02-24 Duncan Mak <duncan@ximian.com>
5445 * XmlNodeOrder.cs: Added to CVS.
5447 * XmlQualifiedName.cs: Fixed a warning from Equals ().
5449 * XmlTokenizedType.cs: Added to CVS.
5451 * XmlUrlResolver.cs: Added to CVS with one TODO task.
5453 2002-02-23 Duncan Mak <duncan@ximian.com>
5455 * XmlQualifiedName.cs: Fixed ToString () and added the operators
5458 2002-02-23 Jason Diamond <jason@injektilo.org>
5460 * XmlTextReader.cs: Added support for qualified attributes.
5462 2002-02-23 Jason Diamond <jason@injektilo.org>
5464 * XmlNamespaceManager.cs: Initial implementation.
5466 * XmlTextReader.cs: Added support for NamespaceURI property on
5469 2002-02-23 Nick Drochak <ndrochak@gol.com>
5471 * ChangeLog: Add the change log to this directory
5473 * XmlQualifiedName.cs: Fixed compile errors so it would build. Still has