1 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlValidatingReader.cs : explicitly mark as MonoTODO for XDR (not
6 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
14 XmlUrlResolver.cs : removed reference to Mono.Xml.
15 Made Mono.Xml.* classes internal.
16 * XmlDocument.cs : output xml declaration for TextWriter output in Save()
17 * XmlElement.cs : Name character check should be done in .ctor().
18 * XmlNamespaceManager.cs : Removed dangerous internal .ctor()
20 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
22 * XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
23 node can be it as well) and added check for Attributes existence
24 in GetAttribute() and MoveTo*Attribute().
26 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
28 * XmlTextWriter.cs : comment not in the content state is indented.
29 This fixes bug #58247.
31 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
33 * XmlTextWriter.cs: In WriteStartAttribute, when the prefix is xmlns and
34 the name is empty, convert it to a xmlns attribute.
36 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
38 * XmlTextReader.cs : don't use NET_1_0.
40 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
42 * XmlComment.cs. XmlProcessingInstruction.cs : missing commits.
44 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
46 W3C DOM compliant read-only check support (buggy part in MS.NET).
53 XmlSignificantWhitespace.cs,
55 : CloneNode() - set read-only when copied node is read-only.
56 Check IsReadOnly on attempt to modify value.
58 XmlEntityReference.cs : Set descendant nodes read-only.
59 * XmlAttributeCollection.cs,
61 : Fixed incompatible exception type.
62 * XmlEntityReference.cs : CloneNode() should not pass an empty string
64 * XmlEntityReference.cs,
65 XmlProcessingInstruction.cs : Check XML name validity.
66 * XmlText.cs : CloneNode() does not have to check children.
68 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
70 * XmlDeclaration.cs : More strict check on InnerText and Value.
72 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
74 * DTDReader.cs, XmlConvert.cs, XmlDeclaration.cs, XmlImplementation.cs,
75 XmlNode.cs : Culture independency fix.
77 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
79 * XmlEntityReference.cs : Added XPathNodeType (just for workaround).
80 This should really fix bug #57248.
82 2004-04-20 Atsushi Enomoto <atsushi@ximian.com>
84 * XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
85 only an EntityReference (not navigatable) child. Bug #57248 fixed.
86 * XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
87 instead of WriteAttributes() only for MS.NET behavior compatibility.
88 This change makes SgmlReader usable (due to SgmlReader bug).
90 2004-04-10 Atsushi Enomoto <atsushi@ximian.com>
92 * XmlParserContext.cs : Fixed .ctor() not to reference null namespace
93 manager. This fixes bug #56770.
95 2004-04-06 Atsushi Enomoto <atsushi@ximian.com>
97 * DTDReader.cs : In ProcessDTDSubset(), 1)error message was
98 generated with incorrect stream character, 2)entity nest check
99 should not depend on line info which might not be supplied, 3)
100 empty PE should be skipped.
101 * XmlParserInput.cs : use index for StringBuilder instead of calling
102 Remove() many times. This highly optimizes DTD parser.
104 * XmlAttribute.cs : removed commented code.
105 * XmlEntity.cs : removed unused field.
107 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
109 * DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList
110 only when they are required.
112 XmlParserInput.cs : raw tag string now don't have to be kept, while
113 it cost so much. Removed unused code. 20% to 30% memory got saved.
114 * XmlNotation.cs : removed unused code.
115 * XmlTextReader.cs : Removed unused code. ReadString() now uses
116 XmlReader's internal method. Fixed BaseURI to be conformant with
117 W3C XML InfoSet and (subsequently) xml:base specification (i.e.
118 reflect xml:base attribute correctly).
120 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
122 * XmlAttribute.cs : get_Value should return all children's value.
123 * XmlCharacterData.cs : DOM's substring does not raise an error when
124 startIndex + count exceeds the length of Data.
125 * XmlNamedNodeMap.cs : SetNamedItem() returns the new child when it
126 does not replace another named item.
127 * XmlElement.cs : with related to the XmlNamedNodeMap change,
128 SetAttributeNode() is required to fix as to return null when it does
129 not replace existing attribute.
131 2004-03-31 Atsushi Enomoto <atsushi@ximian.com>
133 * XmlDocumentNavigator.cs : When this instance is created from xmlns
134 attributes, it should be Namespace node.
136 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
138 * XmlReader.cs : ReadInnerXml() should progress reader when it is on
139 an empty element. This fixes bug #56064.
141 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
143 * DTDReader.cs : In some places sequential parameter entity was
144 incorrectly skipped (and caused invalid result).
146 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
148 * XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
149 namespace nodes which has the same name as already-iterated nodes.
150 Also xmlns='' should not be selected, and once it appeared, default
151 namespace should not be selected anymore.
153 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
155 * XmlCharacterData.cs : ReplaceData() should reject negative integer
156 value for count argument.
157 * XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
158 On RemoveNamedItem(), default attribute value should be restored.
160 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
162 * XmlAttributeCollection.cs : Remove() should throw an exception when
163 target attribute is not included in the collection.
164 * XmlDocument.cs : ImportNode() should reject null node.
165 * XmlNode.cs : Fixed type of exception for invalid insertion.
166 It should throw an exception not only when the owner document of the
167 reference element is different but its parent element is different.
168 Some error message improvement.
170 2004-03-21 Atsushi Enomoto <atsushi@ximian.com>
172 * XmlReader.cs : ReadInnerXml() incorrectly tried to get output xml.
173 This fixes bug #55856.
175 2004-03-20 Atsushi Enomoto <atsushi@ximian.com>
177 * XmlTextWriter.cs : Fixed indentation on CDATA. This fixes bug #55828.
179 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
181 * XmlImplementation.cs : HasFeature() returns true when strVersion
184 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
186 * XmlWhitespace.cs : Fixed WriteTo(). Whitespace nodes should be
187 written regardless of document's PreserveWhitespace.
189 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
191 * XmlDocumentNavigator.cs : Value should return concatenated string for
192 sequential text nodes. Considered detached nodes, the result of
193 MoveToParent() should be checked.
195 2004-03-15 Atsushi Enomoto <atsushi@ximian.com>
197 * XmlReader.cs : ReadInnerXml()/ReadOuterXml() should not bork when
198 the reader is on EndElement. Patch by Jean-Marc Andre.
200 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
202 * XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
203 to return attribute node. It affects on IHasXmlNode.GetNode() and
204 SelectNodes()/SelectSingleNode().
206 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
208 * XmlImplementation.cs : fixity fix (I need NUnit runnable ;)
210 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
212 * XmlImplementation.cs : forgot to commit (renaming internal case)
214 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
216 * XmlDocument.cs : Implementation should not return null.
218 2004-02-25 Atsushi Enomoto <atsushi@ximian.com>
220 * XmlTextWriterOpenElement.cs : Reset() should reset _all_ fields.
221 This fixes indentation bug.
223 2004-02-19 Atsushi Enomoto <atsushi@ximian.com>
225 * XmlTextWriter.cs : Fixed bugzilla #54554 (incorrent end tag output).
227 2004-02-16 Atsushi Enomoto <atsushi@ximian.com>
232 DTDValidatingReader.cs : made classes internal.
233 * XmlDocument.cs : removed extra FIXMEs.
234 * XmlNamedNodeMap.cs,
237 Fixed incorrect method signature.
239 2004-02-13 Atsushi Enomoto <atsushi@ximian.com>
241 * DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs :
242 say goodbye to sys.collections.specialized.
243 (replaced the classes in that namespace with ArrayList or Hashtable)
245 2004-02-12 Atsushi Enomoto <atsushi@ximian.com>
247 * XmlReader.cs : For performance reason, XmlTextReader now uses
248 base ReadInnerXml() and don't store currentTag array unnecessarily.
250 - Fixed GetAttribute(int) that might cause index out of range.
251 - Now it consumes the text reader by reading blocks, as MS.NET does.
252 Modified GetRemainder(), PeekChar(), ReadChar() and so on.
253 - Now it doesn't create Value string for linked nodes, unless it
254 is actually required.
255 - some code refactory.
257 2004-02-11 Atsushi Enomoto <atsushi@ximian.com>
259 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs :
260 Reduced creation of openlElement. It also saves much memory.
262 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
264 * XmlNode.cs : ChildNodes should not create XmlNodeListChildren
265 every time. This fix heavily improved performance.
267 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
269 * XmlAttributeCollection.cs : set owner element as parent on removal
270 events (though they are not "parent" in infoset or dom context)
271 * XmlElement.cs : Don't remove attributes twice (raises extraneous
273 * XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
274 Added NET_2_0 members.
276 2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
278 * DTDObjectModel.cs : Limit external entity reference from DTD by 256.
279 foreach elimination. DTDParameterEntityDeclaration should set Root.
280 Compute attribute default value without raising an error.
281 (for non-error reporting reader)
282 * DTDReader.cs : Fixes for the above fixes. foreach elimination.
283 * DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
284 XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
285 XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
286 XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
287 XmlText.cs : foreach elimination.
288 * XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
289 foreach elimination. Removed unnecesary methods.
290 * XmlTextReader.cs : code format refactory. Optimized some methods.
291 foreach elimination. Replaced Stack with string array.
292 Replaced StringBuilder with char array. Removed unnecessary methods.
294 2004-02-06 Atsushi Enomoto <atsushi@ximian.com>
296 * DTDValidatingReader.cs : Fixed MoveToElement() that causes incorrect
298 * XmlAttribute.cs : Fixed .ctor(). Omit more namespace check when
299 checkNamespace = false.
300 * XmlNamedNodeMap.cs : Fixed SetNamedItem() to raise events.
301 * XmlAttributeCollection.cs : Reimplemented InsertAfter to use
302 InsertBefore() (similar to XmlNode).
303 * XmlDocument.cs : Added internal .ctor(). Reimplemented ReadNode()
304 as recursive, to make event order compatible.
305 * XmlDocumentType.cs : Use SetNamedItem() (to raise events).
306 * XmlElement.cs : Some refactory. Fixed SetAttributeNode() with
307 string name to block prefixed name.
308 * XmlEntity.cs : Don't raise events on setting contents.
309 * XmlNode.cs : Some refactory. Added raiseEvent argument to internal
311 * XmlEntityReference.cs : related fix for XmlNode change.
312 * XmlTextReader.cs : When the reader is on "attributes" of xmldecl or
313 doctype, Depth 1 lower than usual attribute. Split large function.
315 2004-02-05 Atsushi Enomoto <atsushi@ximian.com>
317 * XmlConvert.cs : ToSingle() and ToDouble() should be culture
318 independent. Patch by Rodolfo Campero.
320 2004-02-04 Atsushi Enomoto <atsushi@ximian.com>
322 * DTDObjectModel.cs : Never expand entity on ScanEntityValue().
323 * DTDValidatingReader.cs : XmlDeclaration node requires attributes
327 XmlDocumentFragment.cs,
333 Added namespace checking flag (required for such xml readers
334 that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
335 * XmlDocumentType.cs,
337 XmlEntityReference.cs : The children of Entity and EntityReference
338 became correct. They now holds parsed nodes, but it is only when
339 they are appended to the document.
340 * XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
341 boolean checkNodeType argument. This method also tries to create
342 Entity's and EntityReference's child nodes. Also added internal
343 RemoveChild() with boolean checkNodeType argument.
344 * XmlNodeReader.cs : Quick hack for ResolveEntity() that became
345 broken with these changes. use InnerXml as input to entityReader.
346 * XmlTextReader.cs : XmlDeclaration's value LocalName should be the
347 same as Name. The names of DTD's pseudo attributes should be empty.
348 Fixed DTD node's Depth (was regarded as attribute value's depth).
350 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
352 * XmlTextReader.cs, DTDReader.cs : fixity fix ;)
354 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
356 * ChangeLog : Fixed incorrect description that should be written for
357 DTDValidatingReader.cs but written for DTDReader.cs.
358 * DTDValidatingReader.cs : Fixes described in the last DTDReader fix.
361 XmlConstructs.cs : Made XmlChar and XmlConstructs equivalent and
362 replaced XmlChar with XmlConstruts, renaming "XmlChar" to
363 "XmlCharCompact" and "XmlConstructs" to "XmlChar".
364 (XmlChar will be used for compact framework.)
365 * DTDReader.cs, XmlParserInput.cs, XmlTextReader.cs :
366 XmlChar related changes. Support for surrogate pair.
367 It cannot use TextReader's peek anymore (for surrogate pair).
368 Character range check for PI value, attribute value, text
369 * XmlTextWriter.cs : Change openElements from Stack to ArrayList.
370 (It calls ToArray() every time.)
372 2004-02-03 Alon Gazit <along@mainsoft.com>
373 * XmlNamedNodeMap - now Item(int index) returns null for nodeList.Count
374 instead of throwing ArgumentOutOfRangeException.
376 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
378 * XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
379 predefined entity names.
380 * DTDObjectModel.cs : DTDxxxCollection now derives from
381 - DTDCollectionBase that derives from DictionaryBase.
382 - "Literal value" and "replacement text" are handled differently.
383 - Throw XmlException when external entity could not be resolved.
384 - Return ReplacementText for EntityValue.
386 - Support IXmlLineInfo.
387 - Fixed IGNORE section handling to be more strict.
388 - Compute replacement text on reading entity declarations.
389 - Don't expand char references before getting literal entity value.
390 - Check not allowed parameter entity inside internal subset.
391 * DTDValidatingReader.cs :
392 - Added ValidateWhitespaceNode() to check whitespace's Validity
393 Constraints on external elementdecl and standalone document.
394 - When invalid data against its datatype was found, don't throw
396 - Other code refactory.
398 - Check for invalid Text pattern "]]>" should not depend on line
399 info since it might not be supported.
400 - Check referenced character's validity (WFC).
402 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
404 * DTDReader.cs : Added Normalization. Parameter Entity declaration
405 should block invalid characters. (GEDecl should be fixed as well.)
406 * XmlConstruct.cs : Should allow surrogate chars.
407 * XmlNotation.cs : When prefix is empty (i.e. almost all cases)
408 Name should not add ':'. Patch by Boris Kirzner.
409 * XmlTextReader.cs : Modified private ReadCharacterReference() to
410 return the character (or -1 when should not return anything).
411 Now Text character reference are checked their character range.
412 Set DTDReader.Normalization as well as the reader itself.
414 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
416 * DTDReader.cs : Make sure that parameter entities are not allowed
417 inside internal subset unless it appears as a markupdecl.
418 * DTDValidatingReader.cs : ENTITY or ENTITIES type attributes must have
419 a value that indicates *unparsed* entity (i.e. NDATA required).
421 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
423 * XmlTextWriter.cs : quick performance fix.
424 Reduced memoty allocation (e.g. 12% when writing XMLSchema.xsd.)
426 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
428 * DTDObjectModel.cs :
429 - DTDNode's BaseURI should not always refer to that of DTD's.
430 - Use absolute URI's .ToString() instead of AbsolutePath.
431 * DTDReader.cs : Throw XmlException for illegal character references.
432 * DTDValidatingReader.cs :
433 - Share XmlResolver when the actual reader is XmlTextReader.
434 (MS's XmlValidatingReader and XmlTextReader do this.)
435 - Added its own EntityHandling property.
436 * XmlValidatingReader.cs : Share XmlResolver with XmlTextReader.
438 XmlTextReader.cs : Added new NET_2_0 members.
439 * XmlElement.cs : Removed extra lines (caused by XmlTextWriter bugs).
440 * XmlEntityReference.cs : Forgot to add, the real fix by Boris.
442 2004-01-23 Atsushi Enomoto <atsushi@ximian.com>
444 * XmlWriter.cs, XmlTextWriter.cs :
445 Several namespace related fixes.
446 - Current element's NamespaceURI should be immediately available
447 after the call of WriteStartElement() for LookupPrefix(), so
448 AddMissingElementXmlns() only affects on output. This is
449 now identified by shouldCheckElementXmlns field.
450 - Attribute's overraped xmlns should be ignored for LookupPrefix(),
451 Especially, when the owner element is written with the default
452 namespace. HOWEVER, the attribute should be *written*. This is
453 identified by shouldAddSavedNsToManager field.
454 - In AddMissingElementXmlns(), non-empty prefix namespace was not
455 checked user-written attributes.
456 - XmlWriter.WriteAttributeString() never supplies namespace URI for
457 xmlns attributes for other versions than NET_1_0. Instead, added
458 ns check logic in WriteStartAttribute() only with NET_1_0.
459 - WriteEndAttribute() should reject zero-length namespace for
460 non-default xmlns declarations.
461 - LookupPrefix() should reject argument null and empty.
463 (added 2004-01-24 : forgot to mention more)
464 - WriteAttributeString() w/o namespace should supply null, not ""
465 - Added .NET 1.2 members.
466 - Regard any name with "xml" prefix as in "namespace for XML".
468 2004-01-22 Atsushi Enomoto <atsushi@ximian.com>
470 * XmlElement.cs : Reverted previous fix since it broke monodoc web
473 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
475 * XmlNode.cs : When adding a node to child list, it should reject its
476 ancestors. Patch by Boris Kirzner.
477 * XmlNodeReader.cs : Related fix to the fix above. It should not move
478 to children of XmlEntityReference nodes.
479 * XmlTextWriter.cs : FixedWriteStartElement() not to write default
480 namespace when ns is null (while ns is "", it writes default ns).
481 * XmlElement.cs : Fixed WriteTo() to call WriteStartElement(localName)
482 when NamespaceURI is an empty string.
484 2004-01-14 Atsushi Enomoto <atsushi@ximian.com>
486 * XmlAttribute.cs : when set a value, it is no longer default
487 (even if the value is the same as default value).
488 * XmlAttributeCollection.cs : Remove() should recover default attribute
489 value to default, not specified value.
490 Patch by Boris Kirzner (modified a bit)
491 * XmlDocument.cs : Reference to undeclared entity is not allowed in
492 Load(), while allowed in ReadNode(). Added such distinguishing logic.
494 2004-01-13 Atsushi Enomoto <atsushi@ximian.com>
496 * XmlValidatingReader.cs : Throw exception only in case of errors.
497 Added NET_2_0 Evidences property.
499 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
501 * XmlElement.cs : Fixed .ctor(). Default attribute was not treated as
502 Specified = false. Patch by Boris Kirzner.
504 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
506 * XmlException.cs : Fixed incorrect .ctor signature.
507 * XmlParserInput.cs : Fixed in sync with the above fix.
509 2004-01-08 Atsushi Enomoto <atsushi@ximian.com>
511 * XmlAttribute.cs, XmlElement.cs :
512 Fixed incorrect protected .ctor modification.
514 2004-01-08 Nick Drochak <ndrochak@ieee.org>
516 * DTDValidatingReader.cs: Removed unused variable
518 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
520 * XmlNamespaceManager.cs : Implemented .NET 1.2 methods that take
521 atomizedNames argument.
522 * XmlTextReader.cs : Use new namespace manager methods.
523 Reduced NameTable.Add().
524 * DTDObjectModel.cs : fixed incorrectly commented-out line.
526 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
528 * XmlAttribute.cs, XmlDocument.cs, XmlElement.cs :
529 set_Prefix should atomize to name table.
530 Avoided extraneous atomization attempt a bit.
532 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
534 * DTDObjectModel.cs, DTDReader.cs, XmlSecureResolver.cs :
535 avoiding obvious exception.
536 * DTDReader.cs, XmlTextReader.cs : Some optimization.
537 Avoided extraneous PeekChar() and reduced name string creation.
539 2004-01-05 David Sheldon <dave-mono@earth.li>
541 * XmlTextReader.cs: Fixed constructors taking string url to not
542 loose the absolute part of the path.
544 2004-01-04 Atsushi Enomoto <atsushi@ximian.com>
546 * XmlDocument.cs : Fixed Load() to set XmlResolver correctly. Patch
548 Assure closing XmlTextReader which are internally used.
550 2004-01-03 Atsushi Enomoto <atsushi@ximian.com>
552 * XmlTextWriter.cs : trivial character-case fix
553 * XmlUrlResolver.cs : It downloads network stream content at
554 GetEntity() call. You can try like below:
555 for (int i=0;i<100;i++) u.GetEntity(url, null, typeof(Stream));
557 2003-12-23 Atsushi Enomoto <atsushi@ximian.com>
559 * XmlNamedNodeMap.cs : Fixed internal SetNamedItem(node, pos) to set
560 replacing node correctly. This fixes bug #52453.
562 2003-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
564 * XmlDocument.cs, XmlElement.cs, XmlNode.cs :
565 GetElementsByTagName() - Fixed bugzilla #52419, refactored,
566 and moved private implementation methods to XmlNode class.
568 2003-12-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
571 Element's namespace should be escaped as usual attribute.
573 2003-12-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
575 * XmlTextWriter.cs : Indentation between xmldecl and doctype.
576 * DTDValidatingReader.cs : AttList null reference fix.
578 2003-12-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
580 * DTDValidatingReader.cs : Validity check and entity expansion were
582 * DTDObjectModel.cs, DTDReader.cs, XmlInputStream.cs :
583 Going to remove XmlInputStream. XmlStreamReader might be replacable.
585 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
587 * XPathDocument2ChangedEventHandler.cs : fixed incorrect argument.
588 * Moved UpdateEventHandler.cs and XmlUpdateEventArgs.cs to sqlxml.
590 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
592 * XmlTextReader.cs : BaseURI was broken. This fixes bug #52098.
594 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
596 * XmlUrlResolver.cs : GetEntity() does not return direct network stream
597 that may hold up connection. Now it reads up all the content stream.
599 2003-12-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
601 * XmlAttributeCollection.cs,
602 XmlElement.cs : Fixed bug #51415.
603 When adding attribute to an element using Attributes, it failed.
605 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
607 * XmlDocument.cs : Fixed ReadNode() to call AppendChild() to document
608 after setting all attribute nodes. Modified ReadNode() to handle
609 Depth comparison and error handling (!= to <). It allows MS's
610 SgmlReader bug that returns incorrect Depth.
612 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
614 * XmlDocumentNavigator.cs : Fixed MoveToNextAttribute (and
615 MoveToNextNamespace) that might result in NullReferenceException.
616 patch by Sanjay Gupta. This fixed bug #51941 (and possibly #51415)
618 2003-12-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
620 * XmlUrlResolver.cs : Update with recent System.Uri change. This fixes
621 bugzilla #51808 (patch by Jeroen Zwartepoorte, a bit modified).
623 2003-12-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
625 * XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
626 * XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
627 This may fix bug #51415.
629 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
631 * XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".
633 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
635 * XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
636 shouldn't expect non-empty element content. This will fix bug #48287.
638 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
640 * XmlTextWriter.cs : When element's namespace should be overwritten by
641 one of its attribute, if exist as such. This fixes bug #51305.
643 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
645 * DTDValidatingReader.cs : Fixed ReadContent() which may result in
646 invalid additional Text node.
648 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
651 On WriteProcessingInstruction(), ArgumentException() is expected ;-)
653 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
656 WriteProcessingInstruction() should check name validity.
657 AddMissingElementXmlns() should allow namespace emission even if it
658 is identical to existing one.
660 2003-11-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
662 * XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.
664 2003-11-20 Eran Domb <erand@mainsoft.com>
666 * XmlTextWriter.cs (WriteStartAttribute) : Check if the ket already exists in the newAttributeNamespaces table
667 before trying to add it to the table.
669 2003-11-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
671 * DTDValidatingReader.cs : Replaced entity should not treat whitespaces
673 * XmlNode.cs : Removed extraneous MonoTODOs.
675 2003-11-17 Jackson Harper <jackson@ximian.com>
677 * XPathEditor.cs: .net 1.2 only
679 2003-11-17 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
681 * AsyncXmlTextWriter.cs, IXPathChangeNavigator.cs, IXPathEditor.cs,
682 IXPathNavigator.cs, IXmlDataEvidence.cs, IXmlNamespaceResolver.cs,
683 UpdateEventHandler.cs, XPathChangeNavigator.cs, XPathDocument2.cs,
684 XPathDocument2ChangedEventAction.cs,
685 XPathDocument2ChangedEventHandler.cs, XPathEditor.cs,
686 XPathNavigator2.cs, XmlChangeFilters.cs, XmlInfoItemType.cs,
687 XmlNamespaceScope.cs, XmlNodeChangeType.cs, XmlQualifiedNameTable,cs,
688 XmlQueryDialect.cs, XmlUpdateEventArgs.cs
689 : Added .NET 1.2 classes (for convenience of ObjectSpaces stubbing).
691 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
693 * XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
694 to skip XmlEntityReference.
695 * XmlTextWriter.cs : Fixed AddMissingElements() and
696 WriteStartAttribute() not to emit extraneous xmlns.
698 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
700 * XmlTextWriter.cs : Skip multiple xmlns when element and any of
701 attributes have the same xmlns values.
702 WriteEndElement() allows open attribute (calles WriteEndAttribute()).
703 Indentation should be inserted between ">" and "</xxx>" .
705 2003-11-02 Pedro MartÃnez Juliá <yoros@wanadoo.es>
707 * XmlConvert.cs: Only parse INF/-INF/NaN. Other Infinty or NAN
708 numbers are parsed with the respective ::Parse method.
710 2003-11-01 Pedro MartÃnez Juliá <yoros@wanadoo.es>
712 * XmlConvert.cs: Revert my last change. INF and -INF must be
713 processed here because Double::Parse and Single::Parse doesn't
714 understand anything of parsing [-]INF.
716 2003-11-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
718 * XmlDocument.cs : Save(Stream) should not close the stream.
720 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
722 * DTDReader.cs, DTDValidatingReader.cs, XmlInputStream.cs,
723 XmlTextReader.cs : More cleanup.
724 * XmlDocument.cs : Removed CheckName(). Code cleanup.
725 * XmlElement.cs : .ctor() now adds default attributes (if required).
726 * XmlAttribute.cs, XmlElement.cs, XmlEntity.cs, XmlEntityReference.cs,
727 XmlNotation.cs : Now uses OwnerDocument's NameTable.
729 2003-10-25 Pedro MartÃnez Juliá <yoros@wanadoo.es>
731 * XmlConvert.cs: Support for the sign in double and single. The
732 processing of the infinites and nan numbers are more complex than
733 comparing to "INF" so we must let Double::Parse and Single::Parse
736 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
738 * DTDValidatingReader.cs : Now it handles whitespace entity as
740 * XmlConvert.cs : As to NIST testcases, exponential support on single
741 and double floating point numbers.
742 * XmlValidatingReader.cs : If it IsDefault, then line number and line
745 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
750 XmlWriter.cs : Fixed incorrect access modifier.
751 * XmlTextWriter.cs : Imported state variable from XmlWriter.
752 * DTDValidatingReader.cs : Removed extraneous MonoTODO.
753 * XmlConvert.cs : Implemented ToTimeSpan().
754 Modified ToDateTime() to reuse the same array.
756 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
758 * XmlAttributeCollection.cs : Fixed synchronization stuff.
759 * XmlConvert.cs : Added two FromBinHexString() methods.
760 * XmlTextReader.cs : Modified to use one of the above method.
761 * XmlValidatingReader.cs : XsdValidatingReader.XmlResolver will be
762 disabled (in the next commit), so resolver won' be set to it.
763 Attempt to validate against XDR now throws NotSupportedException.
765 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
767 * XmlChar.cs : added WhitespaceChars, used in common.
772 XmlTextWriter.cs : String.Trim()
773 * XmlConvert.cs : shifted XmlConstructs to XmlChar.
774 * XmlTextReader.cs : Implemented Normalization.
776 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
778 * XmlNode.cs : GetPrefixOfNamespace() also contained a bug similar to
779 GetNamespaceOfPrefix() fixed at 2003-10-13.
780 * XmlTextReader.cs : ReadBase64() should keep incomplete base64 block
781 which remained by previous call of this method.
782 * XmlUrlResolver.cs : Added assertion for file Uri path's absoluteness.
783 * XmlValidatingReader.cs : Notice about intention of XDR won't be
784 supported (at least in Mono 1.0).
786 2003-10-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
788 * XmlDocument.cs : CloneNode() does not copy PreserveWhitespace.
789 * XmlWriter.cs : Calling WriteNode() with XmlReader whose state is
790 XmlDeclaration now calls WriteProcessingInstruction(). This fixes
791 testcase XmlWriterTests.WriteNodeFullDocument().
792 * XmlTextWriter.cs : Added LAMESPEC comments related to above.
794 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
796 * XmlDocument.cs : Fixed bugzilla #49607. Save() outputs XML
797 declaration even though there is no XmlDeclaration child.
798 * XmlTextReader.cs : Fixed Init() so that ResetState() should work.
800 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
802 * XmlTextWriter.cs : Implemented WriteSurrogateCharEntity().
803 Reverted my recent extraneous check in WriteStartAttribute().
805 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
807 * XmlNode.cs : GetNamespaceOfPrefix() should check Attributes existence.
808 And it should throw ArgumentNullException.
810 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
812 * XmlAttribute.cs : Fixed InnerText that did not removed its content
813 if there is two or more children.
814 * XmlNode.cs : XmlNode.cs : Fixed bugzilla #49580 (1)to return "",
815 (2)not to compare NodeType for detached nodes, (3)optimization to
816 compare element's prefix.
817 * XmlSecureResolver.cs : Removed extraneous members.
819 2003-10-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
821 * Added DTDReader.cs. It is almost importation of XmlTextReader.
822 * DTDObjectModel.cs :
823 - More .NET-ism. Properties took place of fields.
824 - Imported PE set from XmlTextReader. Added location info.
825 - Added DTDEntityBase common to PE and GE.
826 - More correct text declaration handling with new XmlTextReader.
827 * DTDValidatingReader.cs :
828 - Now uses entity resolving XmlTextReader to validate attributes
829 correctly. Implemented standalone
830 - Standalone and default related validity constraints check.
831 * XmlImplementation.cs: Implemented HasFeature().
832 * XmlNode.cs : Implemented Supports().
833 * XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
834 * XmlParserInput.cs : Removed extraneous members.
836 - All DTD related functionality now goes to DTDReader.cs
837 - It became old simple TextReader input style.
838 - Implemented GetRemainder().
839 - Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
840 additional new private method ReadUntilEndTag().
841 - Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
842 ReadXmlDeclaration() now became simple.
843 - More strict entity reference check at SetEntityReferenceProperty()
844 - Removed extraneous members.
845 * XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.
847 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
849 * XmlTextReader.cs: when we get an unexpected EOF in ReadContent, set
850 the state before throwing the exception if depth > 0.
852 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
854 * XmlAttribute.cs : Removed extraneous MonoTODO.
855 * XmlTextWriter.cs : Implemented WriteBinHex() and WriteChars().
856 WriteStartElement() and WriteStartAttribute() should ignore Prefix
857 if namespace uri is not specified.
859 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
861 * XmlDocumentFragment.cs,
863 XmlEntityReference.cs : Removed extraneous MonoTODO.
864 * XmlNode.cs : Implemented Normalize().
866 - AttributeCount and HasAttributes should return its owner element's
867 value, to be consistent with XmlTextReader.
868 - Fixed Depth to reflect correct attribute/attribute-value iteration.
869 - simplified ownerElement and HasValue.
870 - Prefix won't return null.
871 - MoveToElement() should also work against attribute value nodes.
872 * XmlTextReader.cs : MoveToElement() should return false if it is
873 positioned at element itself.
875 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
877 * XmlTextReader.cs : Improved SignificantWhitespace handling.
879 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
881 * XmlSecureResolver.cs : Implemented basic feature.
883 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
885 * XmlUrlResolver.cs : Should work with null type argument.
887 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
889 * XmlTextWriter.cs : An attribute can require a prefix for the default
890 namespace, so we need to store the prefix as well as the namespace.
892 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
894 * DTDValidatingReader.cs : Simplified to use
895 XmlSchemaUtil.GetParserContext().
896 * XmlValidatingReader.cs : ValidationType.Auto should always use
897 XsdValidatingReader because xsi:schemaLocation might be used.
899 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
901 * XmlTextReader.cs : Attribute value token properties were incorrectly
902 set by the linked node.
904 2003-09-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
906 * XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
907 considers such case that target node was not adapted to the document.
908 * XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
909 * XmlTextWriter.cs : use 'as' instead of 'try..catch'.
911 2003-09-25 Ben Maurer <bmaurer@users.sourceforge.net>
913 * XmlNode.cs (XPathNodeType): Give more useful debugging message.
914 * XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
917 2003-09-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
919 * XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
920 recovery was still not enough. Fixed GrowScopes() (incorrect index).
922 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
925 - Fix for bugzilla #48337 (containing Ben's advice on that).
926 - Added internal XmlTokenInfo classes. Nodes are now handled as token
927 objects (linked node, attributes and attribute values). Most of the
928 node state properties and iterating methods are changed to refer to
929 the token classes (except for value builder availability). Removed
930 fields which are never used. CompileDTDSubset() is changed in
931 reflection to nodeType field removal.
932 - Fixed Depth that should vary in moving between attributes and/or
933 reading attribute values.
934 - LineNumber and LinePosition now returns more correct location.
935 - Fixed Value that should still return true if its value is an empty
936 attribute value string.
937 - EntityValue is checked WFC constraints even thoug it is not used.
938 - All .ctor() now initializes ReadState as Initial.
939 - Read() should be available for attribute value constructor.
940 * XmlAttribute.cs : set_InnerXml() now calls reader's Read().
942 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
944 * XmlNamespaceManager.cs: PopScope() must retain those namespaces which
945 are added in the scope before PushScope() was called.
947 2003-09-20 Ben Maurer <bmaurer@users.sourceforge.net>
949 * XmlNamespaceManager.cs: Rewrote. Uses arrays, rather than linked
950 lists and removes uses of Hashtable. Results in huge speed gains.
952 2003-09-19 Ben Maurer <bmaurer@users.sourceforge.net>
954 * XmlConvert.cs: NaN.ToString () != INF.
956 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
958 * XmlTextWriter.cs: Attributes that have a namespace must be always
961 2003-09-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
963 * XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
965 * XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
966 Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
967 add Namespaces immediately, but adds at AddMissingElementXmlns so
968 that we don't have to have extra check than namespaceManager's
969 LookupPrefix(). 2) Removed writtenAttributes for performance reason
970 since it is no more required.
972 2003-09-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
974 * XmlDocument.cs : patch by Jonathan Hogg. Fixed CreateAttribute()
975 that handled xmlns attributes inproperly.
977 2003-09-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
979 * XmlNamespaceManager.cs : GetEnumerator() should return all of the
980 available pairs (of prefix and namespace).
981 * XmlQualifiedName.cs : Quick fix for NullReferenceException in case
982 of name (or ns) is null. (The description of the immediate previous
983 changes will be inserted below.)
984 * XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
985 * XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
986 will release resources it had allocated.
988 2003-09-01 Ben Maurer <bmaurer@users.sourceforge.net>
990 * XmlDocument.cs (Save): use the encoding of the document, if
993 2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
995 * XmlValidatingReader.cs : Implemented SchemaType. Added support for
996 ValidationType.Schema. Added support for XmlResolver. Fixed
997 ReadTypedValue() not to consume EndElement.
999 2003-08-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1001 * XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
1003 * XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
1004 Commented out Console.Error.WriteLine().
1005 * XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
1006 escape and unescape for relative URI string.
1008 2003-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
1010 * XmlParserContext.cs: Make each context inherit next.
1012 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
1014 * XmlChar.cs (IsWhitespace): Spare enumerator allocation.
1015 * XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
1016 fat, use low-fat loops instead. Even better, call the function
1017 inside XmlChar for code reuse.
1018 * HighWaterStack.cs (added): New class that acts like a Stack, but
1019 helps with memory allocation.
1020 * XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
1022 * XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
1023 use a variable that stores the position in the ArrayList.
1025 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
1027 * XmlTextWriter.cs: Begin diet. String.Format has too much
1028 saturated fat, lets replace with the fat-free .Write ()
1029 calls. Effects best seen when Paolo's StreamWriter patch is
1032 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1034 * XmlNodeReader.cs : Fixed ReadAttributeValue() that might result in
1035 vanishing current node.
1037 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1039 * DTDValidatingReader.cs : Added SchemaType.
1040 Read() Assures to return to element.
1041 * DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
1042 * XmlReader.cs : ReadString() should be virtual in NET_1_1.
1043 * XmlTextReader.cs : 1) Depth should consider Attribute and its values.
1044 Introduced insideAttribute field to support them.
1045 2) ReadAttributeValue() should consider empty string.
1046 * XmlValidatingReader.cs :
1047 Fixed several properties which premised as if it was already read.
1048 Encoding and Namespaces now throws NotSupportedException for other
1050 Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
1052 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1054 * XmlInputStream.cs : Reverted CanSeek as to return false anyway.
1056 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1058 * DTDObjectModel.cs : added XmlResolver related members. Added
1059 invalid entity recursion logic. Added encodingdecl check on textdecl.
1060 * DTDValidatingReader.cs : It now implements IHasXmlParserContext.
1061 * XmlChar.cs : IsPubidChar() should not allow TAB(	).
1062 * XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
1063 to receive DTDObjectModel to support other than XmlTextReader.
1064 2) Most of its public member is now based on DTDObjectModel.
1065 * XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
1066 2) ReadNode() now considers XmlParserContext's DTDObjectModel for
1067 other than XmlTextReader (such as XmlValidatingReader).
1068 * XmlNode.cs : code cleanup only.
1069 * XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
1070 * XmlTextReader.cs : 1) Illegal entity reference check logic was moved
1071 from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
1072 change on ReadEntityReference(). 3) ReadAttribute() now checks
1073 reference to external entity reference. 4) Added textdecl encoding
1074 check. 5) DTDObjectModel fields are now set correctly. 6) added
1075 PERef markup nest check. 7) If PEDecl was not found, it might be WFC
1076 violation, not only be VC violation. 8) ReadEntityDecl() now receives
1077 its declared entity itself, and this method checks IsInternalSubset.
1078 * XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
1079 2) ValidationType.None should be the same as Auto, not DTD (in the
1080 future it should keep xml schema's default values).
1082 Pending Stuff in XmlTextReader which breaks some NUnit tests;
1083 1) SetEntityReferenceProperies() has check for illegal references.
1084 2) ReadAttribute(bool) has similar check for illegal references.
1086 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1088 * DTDAutomata.cs : Fixed (modified or added) TryEndElement() of choice,
1089 sequence and oneOrMore. Fixed DTDChoiceAutomata.TryStartElement().
1091 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1093 * XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
1094 and supplied SkipWhitespace() as they needed. It broke monodoc.
1095 Fixed ReadEntityValueDecl() to get correct value.
1097 2003-08-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1099 * XmlInputStream.cs :
1100 Fixed Initialize() that might result in incorrect buffer.
1101 CanRead and Position should consider buffer (especially when the
1103 CanSeek should use stream's CanSeek.
1105 * XmlChar.cs : added GetPredefinedEntity().
1106 * DTDObjectModel.cs :
1107 - Modified ComputeDefaultValue() to use it.
1108 - Fixed NormalizedDefaultValue not to expect parsed value as string.
1109 - ResolveExternalEntity now detects invalid standalone specification.
1110 - DTDParameterEntityDeclaration.Value is now changed to property and
1111 keep its resolved value of literal value of external value using
1112 new Resolve (XmlResolver) method (called only by XmlTextReader).
1113 * DTDValidatingReader.cs :
1114 - It now handles entity-expanded Whitespace and SignificantWhitespace
1115 correctly. Does not raise unexpected text not allowed error.
1116 - Fixed MoveToAttribute()s to move internal reader correctly, and
1117 should be able to move in other cases than on element node.
1118 - On Read()ing document type and ResolveEntity(), it now sets
1119 XmlResolver on text reader.
1120 - On ID constraints check and type verification, it now uses
1121 normalized attribute or its tokenized value(s).
1122 - Fixed ValidateAttributes() to add default values when
1123 ValidationType is Auto.
1124 * XmlParserContext.cs : added internal Dtd setter.
1125 * XmlParserInput.cs :
1126 InsertParameterEntityBuffer() should add surrounding whitespaces.
1127 Removed unused code block.
1128 * XmlTextReader.cs :
1129 - Modified ReadReference(), ReadAttribute() and Dereference() to use
1130 XmlChar.GetPredefinedEntity().
1131 - When returning entity reference, it checks extity declaration
1132 existence in certain conditions.
1133 - ReadAttribute() now skips general entity replacement on reading
1135 - ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
1136 - ReadXmlDeclaration() holds isStandalone, which might be used in
1137 entity reference's well-formedness check.
1138 - internal 'DTD' now uses XmlParserContext.Dtd.
1139 - isInternalSubset was meaningless. Now uses input stack's Count.
1140 - Added some required SkipWhitespace().
1141 - Several parameter entity handling changes. Added GetPEValue(name).
1142 TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
1143 now uses its Resolve() when it was external PE. Now it uses value
1144 buffer instead of currentTag, to efficiently read (included) PE.
1145 CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
1146 ImportAsPERef() simply inserts the value to currentInput.
1147 ReadEntityDecl() also uses value buffer. Removed non-used methods.
1148 - Default attributes are now stored in normalized form.
1149 - Dereference() now considers non-expanding predefined entities.
1150 * XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
1151 is more correctly supported.
1153 * XmlAttributeCollection.cs :
1154 When removing default attribute, it immediately inserts the attribute.
1155 RemoveAll() should consider default (not-removable) attributes.
1157 Should have its default XmlResolver. Added Internal Resolver.
1158 Some Load() should use its XmlResolver.
1159 ImportNode() should copy its children in node level, not value level.
1160 It also have to consider not to copy default attribute on importing
1162 * XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
1164 XmlDocumentFragment.cs.
1165 XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
1166 * XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
1167 ResolveEntity() uses XmlResolver on entityReader.
1169 2003-08-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1171 * DTDObjectModel.cs :
1172 - Added validation error check (and AddError(), Errors).
1173 - Fixed ComputeDefaultValue() to handle various references correctly.
1174 - DTDEntityDeclaration.EntityValue became property, and added
1175 LiteralEntityValue. The new one holds resolved value.
1176 Added ResolveExternalEntity(). It now required root in .ctor().
1177 * DTDValidatingReader.cs :
1178 - Now it handles namespaced attributes (as input to xsd validator).
1179 - Added XmlResolver property as usual XmlReader.
1180 - Added currentEntityHandling field so that it can stand changing
1181 XmlValidatingReader's EntityHandling dynamically.
1182 - FilterNormalization() now requires name for getting datatypes and
1183 can stand for non-current attribute normalization.
1184 - Splitted ReadContent() from Read() that can be called recursively
1185 when expanding entities.
1186 - Now handles Entity not found error *after* resolution of entities,
1188 - Read()ing DTD checks its Errors and raises validation error events.
1189 In some situations, DTD parsing may detect VC error, not WFC error.
1190 It also strictly checks NData existence.
1191 - Handling of entity-resolved text is a bit changed and Read()ing
1192 element, endElement, cdata now changed to switch collecting text
1194 - content type ANY should allow texts.
1195 - Added enumerated attribute validity check.
1196 - Added Name/Names creation rule check for ID/IDREF/IDREFS.
1197 - Added entity existence check for ENTITY/ENTITIES attributes.
1198 - Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
1199 - Fixed to remove extraneous #REQUIRED check.
1200 - Contributing default attribute is now only applied to the case
1201 ValidationType is DTD or None.
1202 - ResolveEntity() now handles external entities.
1203 Added Mono.Xml.IXmlParserContext interface support.
1204 * XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
1205 * XmlTextReader.cs :
1206 - Fixed ReadAttributeValue() to reset returnEntityReference.
1207 - Added bool MaybeTextDecl only for ResolveEntity().
1208 - Fixed ReadWhitespace(). In fact its value is considered even if it
1209 is in the end of the XML.
1210 - Fixed ReadXmlDeclaration(). Now skips text declaration.
1211 - CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
1212 - ReadContentSpec() should set OrderType = OR for mixed model.
1213 Fixed to set content element name correctly.
1214 - ImportAsPERef() now skips Text declaration.
1215 - Type of enumerated default attributes shold be string.
1216 - Undeclared PE error is now handled as DTD's VC error, not
1217 XmlTextReader's WFC error.
1218 * XmlValidatingReader.cs : BaseURI should provide that of
1219 original XmlReader's when read was not started yet.
1220 Fixed XmlResolver to delegate to DTDValidatingReader.
1222 * XmlAttributeCollection.cs : Acquiring attList declaration is
1223 insufficient especially in case of lack of elementdecl.
1224 * XmlChar.cs : (Maybe this is compact than XmlConstructs.)
1225 added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
1226 IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
1228 * XmlInputStream.cs : Removed "version" declaration check. It should
1229 be done by XmlTextReader.
1231 * XmlNodeReader.cs : added internal GetInternalParserContext() and now
1232 it can be used in XmlValidatingReader.ResolveEntity().
1233 ResolveEntity() sets XmlTextReader.MaybeTextDecl.
1235 2003-08-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1237 * DTDValidatingReader.cs :
1238 Added full ExpandEntities support for text node and entity reference
1239 node (although require many usage tests). Almost all methods and
1240 properties now have currentTextValue != null check, that field means
1241 that there are cached (entity-resolved) text.
1242 Implemented default attribute aware XmlLang and XmlSpace.
1243 * XmlNodeReader.cs : ResolveEntity() should not require DTD.
1245 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1247 * DTDValidatingReader.cs,
1251 XmlValidatingReader.cs : fixed pragma USE_VERSION_1_0 to NET_1_0.
1253 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1255 * DTDObjectModel.cs : Added BaseURI (but not used yet).
1256 DTDAttListDeclaration.ctro() now requires root dtd object model.
1257 * DTDValidatingReader.cs : Read() now expands EntityReference if
1258 entity handling of validating reader is ExpandEntities.
1262 XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
1263 ReadOuterXml which are modified in MS.NET 1.1.
1264 * XmlConstructs.cs : added int version of IsValid, IsInvalid,
1265 IsContent, IsMarkup and IsNCNameStart.
1266 Fixed int version of IsXXX() to check array index range.
1267 Added IsValidName (string).
1268 * XmlTextReader.cs :
1269 - Read() handles document with non document element as an error.
1270 - ReadText() and ReadCharacterReference() checkes illegal characters.
1271 - ReadEntityReference() checks name validity.
1272 - ReadProcessingInstruction() rejects such name that starts with
1273 "xml" ignoring case, and checks attributes more strictly.
1274 - ReadDeclaration() rejects unrecognized kind of declaration.
1275 - In many places, added "required whitespace" check in DTD markup.
1276 - DTD content model now disallows mixing use of '|' and ','.
1278 2003-08-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1280 * XmlDocumentFragment.cs : I missed to add it in relation to the
1281 previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
1282 * XmlNodeReader.cs : removed some TODO attributes.
1283 * DTDValidatingReader.cs,
1284 XmlValidatingReader.cs : Implemented ResolveEntity().
1286 2003-07-31 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1288 * XmlParserContext.cs,
1290 XmlElement.cs : Added internal Dtd and new internal XmlParserContext
1291 .ctor() that takes DTDObjectModel. And then rewrote classes which
1292 uses DTD information. Changed DocTypeName, InternalSubset, PublicId
1293 and SystemId to use DTDObjectModel.
1294 * DTDObjectModel.cs :
1295 Added DTDObjectModel.InternalSubsetHasPEReference.
1296 Added DTDEntityDeclaration.IsInternalSubset.
1297 * XmlTextReader.cs :
1298 Added internal GetInternalParserContext (to build entity reader).
1299 Added private isIntSubset to check if the DTD subset is internal or
1300 external, which might affect well-formedness constraints.
1301 Changed GenerateDTDObjectModel to return the resulting DTD model.
1303 * XmlEntityReference.cs : implemented BaseURI.
1304 * XmlNodeReader.cs :
1305 - Implemented ResolveEntity() and CanResolveEntity(). In fact
1306 it leads too many changes on almost all methods and properties,
1307 since they now must be aware of entityReader.
1308 - fixed ownerElement that might be used to return from attribute
1309 value to the element through parent attribtues.
1310 - Now changed indexer to call GetAttribute() and moved actual logic
1311 to the matching GetAttribute() methods.
1313 2003-07-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1315 * XmlNode.cs : fixed internal ConstructNamespaceManager() for InnerXml
1316 not to create extraneous xmlns="".
1318 2003-07-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1320 * DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
1321 attribute declaration should be got independently of elementdecl.
1323 Added internal SetDefault() to mark as default.
1324 Removed InnerText implementation that is just the same as XmlNode.
1325 * XmlDocument.cs : id shouldn't be removed from table at 'trying' to
1326 get matching elements. ReadAttributeNode() now sets default mark.
1327 * XmlElement.cs : WriteTo() should ignore default attributes.
1328 * XmlTextWriter.cs : shuold allow valid name char such as digits.
1330 2003-07-27 Piers Haken <piersh@friskit.com>
1332 * XmlQualifiedName.cs : fields should never be null
1334 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1336 * XmlDocumentFragment.cs : added XPathNodeType indicating Root.
1338 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1340 * XmlDocument.cs (GetIdenticalAttribute): restored OwnerElement.IsRooted
1342 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1344 * XmlLinkedNode.cs : added internal IsRooted.
1346 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1348 * DTDValidatingReader.cs :
1349 - Added ID support in ValidateAttributes().
1350 - More refined ReadAttributeValue() support for non-expanding entity
1352 - It should handle LocalName, Name, Prefix, NamespaceURI and Value
1353 correctly when the reader is on each of the value nodes of an
1354 attribute. Now XmlDocument.ReadNode() should work well.
1356 - added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
1357 RemoveIdenticalAttribute()
1358 - Implemented GetElementById().
1359 * XmlAttributeCollection.cs :
1360 - added private ownerDocument property and replaced
1361 ownerElement.OwnerDocument with it.
1362 - Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
1363 It calls XmlDocument.{Add|Remove}IdenticalAttribute().
1364 - Added RemoveIdenticalAttribute() and it is used in Remove().
1365 (I also added AddIdenticalAttribute() but is not used.)
1367 2003-07-26 Duncan Mak <duncan@ximian.com>
1369 * XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
1370 for OwnerElement.IsRooted to fix the build..
1372 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1374 * XmlDocumentType.cs :
1375 modified private DTD to dtd and added internal DTD (the same thing).
1377 Fixed SetAttributeNode() to check if specified attribute is already
1378 set to the other element. In fact it is W3C DOM's specification but
1379 MS.NET 1.0 failed to catch it.
1380 * XmlTextReader.cs :
1381 ReadAttributeValue() should check if the value of the attribute is
1382 already read when the whole value is entity reference.
1383 Also, Name of text nodes should be "", not "#text"
1385 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1387 * XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
1388 with http://www.w3.org/XML/1998/namespace.
1389 * XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
1390 * XmlNode.cs : InnerText should handle CDATA and whitespaces.
1391 * XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
1392 * XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
1393 attributes (as MS.NET does). It isn't good way and I may change it.
1395 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1397 * DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
1398 DTDNotationDeclarationCollection and replaced Hashtables with them.
1399 Added NormalizedDefaultValue property for DTDAttributeDefinition.
1400 * DTDValidatingReader.cs :
1401 - It now reads attribute values into value collection.
1402 - Renamed consumedDefaultAttribute to consumedAttribute, and
1403 inContent to insideContent.
1404 - GetAttribute() should allow reader's other node state than element.
1405 - MoveToNextAttribute() should move when reader is placed other than
1406 the first attribute.
1407 - HandleError() now supports ValidationType.None (i.e. does nothing).
1408 - ValidateAttribute() now collects and resolves attribute value
1409 entity references. (On the other hand, it doesn't support
1410 EntityHandling.ExpandCharEntity.)
1411 - NodeType shouldn't return Attribute after ReadAttributeValue().
1412 Now only Text is supported, but must also support EntityReference.
1413 - Add FilterNormalization() and partially support Normalization.
1415 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1417 * XmlTextReader.cs :
1418 Read() now handles parser context stuff (BaseURI, XmlLang and
1419 XmlSpace) correctly for an empty element.
1420 Normalization property now doesn't throw an error. Will be used soon.
1421 * XmlValidatingReader.cs : added ValidationType.None support (wait for
1422 the next DTDValidatingReader update for "not firing event handler).
1423 * XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
1425 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1427 * DTDValidatingReader.cs :
1428 changed base class to XmlReader and implemented IXmlLineInfo members.
1429 changed .ctor() argument from event handler to validating reader.
1430 Removed some #if ... #else ... #endif blocks.
1431 Added validation event support for Read() using HandleError().
1432 * XmlValidatingReader.cs : added internal OnValidationEvent().
1433 * XmlDocument.cs : ReadNode() now checks reader's state more strictly.
1435 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1437 * XmlUrlResolver.cs : applied BenM's patch for file uri problem
1440 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1442 * DTDValidatingReader.cs :
1443 added DTDObjectModel support for non-XmlTextReader XmlReader
1444 e.g. XmlNodeReader (Read() method).
1446 added internal CreateDocumentType(XmlTextReader) and moved
1447 ReadDoctypeNode() to XmlDocumentType.ImportFromDTD().
1448 * XmlDocumentType.cs :
1449 added internal .ctor(XmlTextReader, document) and ImportFromDTD().
1450 * XmlTextReader.cs :
1451 Renamed useSbForVal (valueBuilderAvailable), valSb (valueBuilder)
1452 and currentSubset (DTD).
1453 Added GenerateDTDObjectModel() (for independent doctype parsing).
1455 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1458 .ctor() should reject xml- or xmlns-prefixed node.
1459 * XmlNamespaceManager.cs :
1460 added some xmlns validity check.
1462 optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
1463 avoiding XmlNamespaceManager creation.
1464 * XmlNodeReader.cs :
1465 doctype node should return PUBLIC and SYSTEM for its indexer,
1466 and Value should be internal subset,
1468 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1470 * DTDObjectModel.cs,
1471 DTDValidatingReader.cs : Completely rewrote attribute handling.
1473 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1476 XmlElement.cs : Fixed CloneNode() for bug #46129.
1477 * XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
1478 String.Format arguments, and basically XmlException.ctor(
1479 IXmlLineInfo, message) seems good idea to use.
1480 * XmlTextReader.cs :
1481 - Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
1482 required non-null context which don't have to exist.
1483 - Added state check. Introduced 'currentState' and 'maybeTextDecl'
1484 (for external entity) and removed hasEnteredDocument. Added
1485 state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
1486 ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
1487 - Replaced throw ReaderError() with throw new XmlException() and
1488 fixed that some error hadn't thrown, only created.
1489 - ResetState() should re-initialize existing private members other
1490 than some specified fields.
1491 - Private AddAttribute() should check if the same-named attribute
1493 * DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
1495 2003-07-09 Lluis Sanchez Gual <lluis@ximian.com>
1497 * XmlTextReader.cs : Implemented ResetState() method.
1499 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1501 * XmlElement.cs : IsEmpty has removed attributes since it incorrectly
1504 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1506 * XmlDocument.cs : Load(string filename) should close its stream.
1507 Small change for the latest DTDObjectModel change.
1508 * XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
1509 changed methods are only related to DTD stuff).
1510 Now uses XmlSchemaDatatype for attribute type definition.
1511 * XmlValidatingReader : initial (limited) support for DTD validation.
1512 It can handle only XmlTextReader.
1513 * DTDObjectModel.cs : changed radically for initial validation support.
1514 * added DTDAutomata.cs and DTDValidatingReader.cs.
1516 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1518 * XmlElement.cs : Removed extraneous xmlns output support (it should
1519 be done by XmlTextWriter).
1520 * XmlNode.cs : InsertBefore() now checks validity of the newChild (and
1521 most of the changes are in fact indentation changes).
1522 * XmlWriter.cs : WriteAttributes() now can write entity references.
1523 WriteNode() now writes xmldecl attributes correctly.
1524 Removed namespaceManager and xmlns check logic, since it should be
1525 done by individual XmlTextWriter.
1526 * XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
1527 written multiple xmlns declarations.
1528 Moved namespaceManager from abstract XmlWriter.
1529 Write{Start|End}Attribute() and WriteString() now checks xmlns
1530 attribute value. (MS.NET holds value only with this write method).
1532 2003-07-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1534 * XmlDocument.cs : removed xmlReader.Close() from Load(XmlReader).
1536 2003-06-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1538 * XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
1539 essentially changed most of the property handling (e.g. removed attribute
1540 enumerator and it now became really cloneable).
1541 * XmlNodeReader.cs : ReadInnerXml() changes its state as error
1542 when the method is called at Initial state.
1544 2003-06-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1546 * XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
1547 as non-empty, and XmlElement's IsEmpty is designed as such.
1548 Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
1550 * XmlNode.cs : Fixed XPathNodeType. It should throw an exception
1551 instead of returning undefined enum value.
1552 Modified some code comments.
1553 * XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
1554 when XmlReader's node is not at empty element or at EndElement.
1555 Fixed XmlDeclaration's standalone check.
1557 2003-06-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1559 * XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
1560 to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
1562 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1564 * XmlInputStream.cs : quick fix for public ctor() BaseURI bug.
1566 2003-06-20 Ben Maurer <bmaurer@users.sourceforge.net>
1568 * XmlTextReader.cs: Reduces memory allocation when the reader is
1569 not queried for some values.
1570 * NameTable.cs: Now uses a custom hashtable to implement. As a
1571 result, when Get (char[], int, int) is called, a string is only
1572 allocated if it is actually a new entry.
1573 (StrEqArray) Compares a string and a char[]
1574 (AddEntry) Adds a new entry to the hashtable
1575 (Entry) Represents a hashtable entry.
1577 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1579 * XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.
1581 2003-06-16 Ben Maurer <bmaurer@users.sourceforge.net>
1582 * XmlUrlResolver.cs: really fixed #44231
1584 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1586 * XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
1587 this method set current node null.
1588 * XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
1589 String.Empty instead of null (expected value).
1592 XmlInputStream.cs : fixed BaseURI problem (bug #44231).
1594 2003-06-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1596 * XmlNodeReader.cs : this [name] and this [name, ns] (and
1597 GetAttribute() methods in turn) returns null instead of String.Empty.
1598 * XmlTextWriter.cs : WriteStartAttribute() should try to use specified
1599 prefix before auto-generating prefixes.
1600 Implemented WriteBase64().
1602 2003-06-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1604 * XmlNodeReader.cs : LookupNamespace () has refered invalid current
1605 node for attributes. Modified to use private "document" property.
1607 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
1609 * XmlTextWriter.cs: when adding an attribute with a namespace, a prefix must be automaticaly
1610 generated, and a namespace declaration must be added.
1611 * XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
1613 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
1615 * XmlAttribute.cs: Accept a null prefix or namespaceURI.
1617 2003-06-10 Duncan Mak <duncan@ximian.com>
1619 * XmlDocumentNavigator.cs (GetNode): Make it implement
1622 2003-06-05 Lluis Sanchez Gual <lluis@ideary.com>
1624 * XmlTextWriter.cs : Fixed bug. After calling for example WriteStartElement ("pref","ln","ns");
1625 a call to LookupPrefix ("pref") when still writting attributes should
1626 return "ns", and it didn't.
1628 2003-06-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1630 * XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
1631 * XmlConvert.cs : fixed VerifyNCName() to check correctly.
1633 2003-06-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1635 * XmlDocumentNavigator.cs : Compute document node one time.
1636 MoveToFirstChild() should move to PIs and comments.
1638 2003-05-30 Miguel de Icaza <miguel@ximian.com>
1640 * XmlReader.cs (ReadStartElement): Improve error message.
1642 2003-05-28 Lluis Sanchez Gual <lluis@ideary.com>
1644 * XmlTextReader.cs : MoveToAttribute methods must set the enumerator to the right
1645 position, since MoveToNextAttribute may be called after it.
1646 SetProperties(): attributes do not "inherit" the namespace.
1647 * XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
1649 2003-05-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1651 * NameTable.cs : Add() sets the given name string interned.
1652 * XmlParserContext.cs : added internal PushScope() and PopScope() to
1653 hold stacks of xml:base, xml:lang and xml:space.
1654 * XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
1655 property for stacked attributes). Renamed Initialize() to Initialize-
1656 Context(). Modified to use XmlParserContext.PushScope()/PopScope().
1658 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
1660 * XmlReader.cs: Little fix to WriteAttributeString()
1662 2003-05-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1664 * XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
1665 XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
1666 XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
1667 XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
1668 Reverted the recent accessibility mistake (5/16).
1669 * XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic
1670 from XmlNode to XmlDocument.
1672 2003-05-18 Lluis Sanchez Gual <lluis@ideary.com>
1674 * XmlQualifiedName.cs : Fixed bug in equality operator.
1676 2003-05-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1678 * XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
1679 any open attributes or elements. WriteWhitespace() checks state and
1680 closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
1681 when it is called inside attribute value.
1682 * XmlException.cs : added .NET 1.1 .ctor.
1683 * added XmlSecureResolver.cs (only stubbing).
1684 * XmlAttribute.cs : set_InnerXml() should remove children.
1687 XmlDocumentFragment.cs,
1688 XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
1689 * XmlNode.cs : RemoveAll() should also remove all attributes.
1690 * XmlTextRader.cs : .ctor() for attribute value reader should add
1691 quotations at initialization, since it requires quote chars.
1692 * XmlWriter.cs : WriteAttributeString() more correct xmlns check.
1694 2003-05-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1696 * changed XPathNodeType modifier to internal *protected* override.
1697 * XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
1698 * XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
1699 * XmlAttributeCollection.cs : removed some incorrect TODO attributes.
1700 * XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
1701 when the argument is "xmlns".
1702 * XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
1703 * XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
1704 * XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
1705 * XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
1706 not to set error state for non-started XmlNodeReader.
1707 * XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
1708 BaseURI support. Fixed Initialize() to handle Attribute correctly.
1709 SetProperty for attribute auto-completes xmlns NSURI.
1710 Attribute and whitespace handling became more correct.
1711 Don't parse external DTD if XmlResolver is null.
1712 * XmlTextWriter.cs : implemented WriteEntityRef().
1713 WriteStartAttribute() checks if ns does not equal to that of xmlns.
1714 * XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
1716 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1718 * XmlConvert.cs : IsInvalid() Now uses XmlConstructs.IsName(Start).
1719 EncodeName() now correctly encodes invalid names.
1720 Result string of ToString(DateTime) contains "fffffff".
1722 2003-04-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1724 * XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
1725 * XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
1727 Fixed this[] to work correctly against XmlDeclarations.
1728 Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
1729 (which may prevent validations etc.)
1732 XmlTextReader.cs : Fixed ReadString() to be compliant with each
1734 * XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
1736 2003-04-27 Pedro MartÃnez Juliá <yoros@wanadoo.es>
1738 * XmlNode.cs: ensure to get a valid Uri in BaseUri when loading the
1739 source document from a file.
1741 2003-04-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1743 * XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
1744 content EntityReference correctly.
1745 * XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
1746 HasAttributes, indexers, MoveTo*Attribute() and Read() ).
1747 Modified Skip() to call Read () explicitly.
1748 * XmlTextReader.cs :
1749 Fixed ReadInnerXml() which ignored EndElement token in certain cases.
1750 Implemented MoveToAttribute (local, ns), and modified GetAttribute()
1751 in relation to this change.
1752 Attributes for XmlDeclaration are now correctly set.
1753 * XmlTextWriter.cs : WriteRaw() is now different from WriteString().
1754 Simplified WriteAttributes() for XmlDeclaration.
1756 2003-04-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1758 * XmlTextReader.cs : fixed ReadInnerXml(). it was inconsistent with
1761 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1763 * XmlDocument.cs : fixed Load() to set baseURI correctly.
1764 * XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
1765 * XmlTextReader.cs :
1766 fixed Depth. When it's on StartElement, Depth was already incremented.
1767 fixed private SaveProperty(), which moved away its saved properties
1768 when MoveToElement was called repeatedly.
1769 * XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
1771 WriteAttributes() refactory (for XMLDecl).
1772 WriteNode() don't Read() when the reader is Initial state, let other
1773 invokation to Read(). In case of Element, it should write entire
1774 element. In case of Attribute, it shouldn't Read().
1775 WriteStartDocument() should omit standalone decl. when there is no
1778 2003-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1780 * XmlReader.cs: reverted last patch. It breaks System.Configuration
1781 because 1. it considers XmlDeclaration as content and 2. always
1782 returns XmlNodeType.None.
1785 2003-04-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1787 * Added missing ChangeLog of 4/4/2003.
1788 * XmlTextWriter.cs : patch by Erik. fixed WriteQualifiedName.
1789 (write prefix instead of ns.)
1790 * XmlInputStream.cs : file access mode fix (FileAccess.Read was missing)
1791 * XmlTextReader.cs : modified to call Read() instead of ReadContent().
1792 (It may be required for decorated reader such as XmlValidatingReader.)
1793 Changed Read() error message for mismatch end tag.
1794 * XmlDocument.cs : (ReadNode) friendly message for mismatch EndElement.
1795 * XmlReader.cs : Corrected misinterpreted MoveToContent() method.
1797 2003-04-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1799 * XmlDocument.cs : Load() now closes the given XmlReader.
1800 Don't allow creation of XmlTextReader for Doctype. (workaround.)
1801 * XmlInputStream.cs : It now closes its internal stream explicitly.
1802 * XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
1803 * XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
1804 * XmlParserInput.cs : added Close() method.
1805 * XmlReader.cs : MoveToContent() should (1) not Read in case of empty
1806 element, and (2) MoveToElement() in case of attribute.
1807 * XmlTextReader.cs : Close() now actually closes source TextReaders.
1809 2003-03-26 Duncan Mak <duncan@ximian.com>
1811 * XmlTextWriter.cs (Write): A patch from Atsushi to fix
1812 prematurely ending the write, or something like that. It was
1813 causing us to chop off the end of the document when we're trying
1814 to generate XML Schemas.
1816 2003-03-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1818 * XmlTextReader.cs : implemented ReadString().
1819 fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
1820 null reference exception when context is null.
1821 * XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
1822 fixed Read() - when positioned at EndElement, it didn't progress.
1823 fixed HasAttribute - it didn't return false in all cases.
1824 fixed Name and LocalName - only limited type of nodes return names.
1825 fixed AttributeCount - in some cases it threw null ref exception.
1827 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1829 * XmlTextWriter.cs : WriteStartDocument doesn't set hasRoot=true, then
1830 WriteEndDocument without root element now raises an error correctly.
1831 * XmlDocumentNavigator.cs : (MoveToFirstChild) fixed bugzilla #36672.
1832 implemented BaseURI, NameTable, XmlLang, GetAttributes, GetNamespace,
1835 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1837 * XmlElement.cs : RemoveAttribute now don't throws when specified
1838 attribute does not exist.
1840 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1842 * XmlNode.cs : add descriptions for some node type error.
1844 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1846 * XmlNodeArrayList.cs, XmlNodeListChildren.cs : bugzilla #39920 fix.
1848 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1850 * XmlDeclaration.cs : quick fix, not to use regex for set_Value.
1852 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1854 * XmlTextReader.cs : Fixed wrong notationdecl SYSTEM id read.
1855 * XmlInputStream.cs : Should allow versionless input stream entity.
1857 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1859 * added XmlParserInput.cs for multi xml document sources.
1860 * added DTDObjectModel.cs (maybe temporary).
1861 * XmlTextReader.cs :
1862 + fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
1863 + Some members such as LineNumber, ReadChar now uses XmlParserInput.
1864 + added support for Namespaces (namespace-ignorant parse available).
1865 + added support for XmlResolver.
1866 + replace SetReaderContext()/SetReaderFragment() with Initialize().
1867 + use NameTable in CreateNameString.
1868 + fixed ReadCData(). Now reads "]]]>" correctly.
1869 + support for DTD parse.
1870 + Read() now throws an error when it reached EOF while Depth > 0.
1872 XmlDocumentFragment.cs,
1873 XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
1874 * XmlDocument.cs : ReadNode() now reads DocumentType.
1875 * XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
1877 XmlNotation.cs : added override LastLinkedChild (for doctype node).
1878 * XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
1879 * XmlElement.cs : bugfix for node removal of set_InnerXml.
1880 * XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
1881 (to append child XmlEntity into XmlDocumentType correctly.)
1882 * XmlInputStream.cs : fixed to access file with FileAccess.Read.
1884 2003-03-15 Duncan Mak <duncan@ximian.com>
1886 * XmlElement.cs (Name): Only append prefix + ':' when prefix is
1887 neither String.Empty nor null. Thanks to Simon Guindon for
1888 reporting the bug and Jackson for fixing this bug with me.
1890 2003-03-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1892 * XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
1893 * XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
1894 fixed ReadNode(), it should call reader.Read() only on Initial state.
1895 * XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
1896 and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
1897 System.Net.WebClient directly.
1898 * XmlParserContext.cs : baseURI never be null.
1899 * XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
1900 * XmlUrlResolver.cs : namespace change for XmlInputStream.
1902 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
1904 * XmlTextReader.cs: When throwing a ReaderException, show what
1905 character was the culprit
1907 2003-03-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1909 * XmlDocumentFragment.cs, XmlElement.cs :
1910 modified InnerXml (fragment type from Element to DocumentFragment).
1912 * XmlElement.cs : fixed WriteTo() ns check.
1913 * XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
1914 * XmlNode.cs : fixed ConstructNamespaceManager().
1916 * XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
1917 IsPubid with an int arg.
1918 * XmlReader.cs : changed to use XmlChar.cs (its role is as same as
1920 * XmlTextReader.cs :
1921 improved error messages with line info.
1922 / checking matching start and end tags.
1923 / prevents the apperance of multiple root elements. (patch by Erik)
1924 fixed and refactored ReadInnerXml() and ReadOuterXml()
1925 changed to use XmlChar.cs.
1927 * XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
1928 (It will help c14n implementation.)
1929 / blocks multiple attribute output with element node.
1931 2003-02-28 Alan Tam <Tam@SiuLung.com>
1933 * XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
1934 methods to make them compatible with the XML Schema Spec from W3C
1935 ToString(TimeSpan) is still outstanding
1937 2003-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1940 (Load (string)): hack to workaround some issues with Uri.Parse. Once
1941 Parse is fixed, remove the hack.
1943 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1945 * XmlQualifiedName.cs : fixed GetHashCode() to avoid null reference
1946 * XmlTextReader.cs : fixed ReadAttributeValue() to handle
1947 entity reference, and some refactory.
1949 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1951 * XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.
1953 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1955 * XmlInputStream.cs : added (also contains internal XmlStreamReader).
1956 * XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
1957 and can read non-UTF-8 stream.
1958 * XmlTextReader.cs : related to above stream fix.
1959 * XmlUrlResolver.cs : implemented GetEntity ().
1961 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1963 * XmlTextWriter.cs: implemented WriteRaw (char[], int, int).
1965 2003-02-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1967 * XmlTextReader.cs : implemented QuoteChar.
1969 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1971 * XmlNode.cs : implemented ReplaceChild.
1972 removed DocElem checking at InsertBefore.
1973 * XmlNodeReader.cs : fixed ReadString and Read for correct node info.
1974 * XmlText.cs : implemented CloneNode and SplitText.
1976 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1978 * XmlCharacterData.cs: added XPathNodeType property.
1980 2003-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1982 * XmlTextWriter.cs: throw an exception if WriteEndDocument is
1983 called without a prior call to WriteStartDocument.
1985 2003-01-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1987 * XmlNodeReader.cs : several fix to get more compatible with MS.NET.
1989 2003-01-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1991 * XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
1992 null when no matching uri.
1993 * XmlElement.cs : removed unnecessary xmlns output.
1994 * XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
1995 * XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
1996 along with the change above, and moved timing of 'xmlns' output
1997 to CloseStartElement.
1998 * XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
2000 2003-01-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2002 * XmlWriter.cs: modified WriteStartElement (see test for detail).
2005 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
2007 * XmlDocument.cs: Added CheckName () method to check names validity.
2009 2003-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2012 (ReadOuterXml): use Depth property which return elementDepth, not depth.
2014 2003-01-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2016 * XmlElement.cs : (by ville) XmlElement.set_InnerText event bugfix.
2017 * XmlTextReader.cs : some fix for ReadOuterXml().
2019 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2021 * XmlTextReader.cs : bugfix for attributes related to creation of
2022 XmlAttribute *node*.
2024 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2026 * XmlTextReader.cs : bugfix for attribute values which have entity
2029 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
2031 * XmlDocument.cs: XmlTextWriter.Formatting == Indented when
2032 calling Save () -methods.
2034 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2036 * XmlNodeReader.cs : primitive reading implementation.
2038 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2040 * XmlElement.cs : quick fix for the incomplete patch of #35308 below.
2042 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2044 * XmlDocument.cs : removed inconsistent line-feed output.
2045 * XmlElement.cs, XmlTextWriter.cs :
2046 fixed for bugzilla 35308 (default ns output)
2047 * XmlWhitespace.cs : limited output only when preserving whitespace.
2049 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2051 * XmlAttribute.cs, XmlDocument.cs, XmlTextReader.cs:
2052 Implemented XmlTextReader.ReadAttributeValue().
2053 Added internal ReadAttributeNodeValue().
2054 Fixed XmlAttribute.InnerXml to use these methods.
2056 * XmlDocument.cs, XmlDocumentFragment.cs, XmlElement.cs, XmlNode.cs:
2057 Implemented XmlDocument.ReadNode() and removed ConstructDOM().
2058 Other changes are replacing them.
2060 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2062 * XmlDocument.cs: patch by Ville (fixed default PreserveWhitespace)
2064 2002-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2066 * XmlElement.cs, XmlTextWriter.cs, XmlWriter.cs:
2067 patch by JD Conley <jconley@winfessor.com>.
2068 (Fix for xmlns attribute output.)
2070 2002-12-05 Ville Palo <vi64p@koti.soon.fi>
2072 * XmlQualifiedName.cs: Little fix to ToString () -method
2074 2002-12-04 Tim Haynes <thaynes@openlinksw.com>
2076 * class/System.XML/System.Xml/XmlElement.cs: Made more refined
2077 checks on attributeNode to fix 32262.
2079 2002-12-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2081 * XmlDocument.cs (CreateNavigator(XmlNode)) : reverted
2082 * XmlTextWriter.cs (WriteStartElementInternal):
2083 fixed when default namespace was specified, all descendants
2084 fail to omit the default namespace declarations.
2087 XmlNode.cs (internal XmlLang/XmlSpace) : implemented(defined)
2089 XmlDocumentFragment.cs,
2090 XmlElement.cs (set_InnerXml): now uses XmlLang/XmlSpace
2091 * XmlElement.cs (set_IsEmpty) : implemented
2092 (WriteTo) : removed my improper indenting (Writer already done)
2093 * XmlNode.cs (BaseURI) : fixed if ParentNode is null, NullPointerEx
2094 (ConstructDOM) : implemented when xmlReader isn't XmlTextReader
2095 ...and renamed XmlDocument.ConventionalParser to ReusableReader ;-)
2097 2002-12-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2099 * XmlNode.cs (RemoveChild):
2100 bugfixed when XmlNode is Document OwnerDocument is null
2101 * XmlDeclaration.cs (Value):
2102 bugfixed regular expression pattern.
2103 * XmlDocument.cs (CreateNavigator): bugfixed access modifier.
2105 2002-11-24 Duncan Mak <duncan@ximian.com>
2107 * XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
2108 Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
2109 first patch to Mono! ;-)
2111 2002-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2114 (AppendChild): readded refChild != null condition before throwing
2115 "cannot insert this node in this position" exception. There's probably
2116 a better solution. Fixes #34191.
2117 (RemoveAll): changed following Atsushi instructions.
2120 2002-11-13 Duncan Mak <duncan@ximian.com>
2122 * XmlElement.cs (IsEmpty): A temporary check-in to keep gtk-sharp
2125 2002-11-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2127 * XmlDocument.cs : unified all constructors, added ConventionalParser,
2128 implemented CloneNode() and CreateEntityReference(),
2129 * XmlEntityReference.cs : set_Value, WriteContentTo, WriteTo
2130 set BaseURI to MonoTODO
2131 * XmlNode.cs : implemented PrependChild, modified ConstructDOM,
2132 bugfix InsertAfter (incorrect prepending) and InsertBefore
2133 (more than one DocumentElements hadn't caused errors)
2134 * XmlTextReader.cs : unified all constructors,
2135 added internal SetReaderContext(), SetReaderFragment()
2136 bugfix (syntax check of PUBLIC / getting internal subset)
2138 2002-11-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2140 XmlAttribute.cs : set_InnerText, set_InnerXml, some check for set_Prefix
2141 XmlAttributeCollection.cs : (indexer) this[localName, namespaceURI]
2142 XmlCharacterData.cs : exchanged Data and Value
2143 (for processing events and inheritance)
2144 XmlDocumentFragment.cs : set_InnerXml
2145 XmlSignificantWhitespace.cs : set_Value
2146 XmlTextReader.cs : ReadAttributeValue
2148 2002-11-04 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
2150 XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement'
2152 2002-11-03 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
2154 * XmlAttributeCollection.cs : checks owner element.
2155 implemented CopyTo, InsertAfter, InsertBefore, Prepend,
2156 Remove, RemoveAt, SetNamedItem.
2157 removed some logics that sets 'Parent' (that should be null)
2158 * XmlDocument.cs : set_InnerXml, [PreserveWhitespace(incomplete)]
2159 * XmlDocumentFragment.cs : get_InnerXml, WriteContentTo, WriteTo
2160 * XmlElement.cs : implemented WriteTo, set_InnerText.
2161 Fixed WriteTo() to add xmlns:* attributes when
2162 writer.LookupPrefix() returned mismatching.
2163 * XmlNamedNodeMap.cs : compare not only name but localname and nsuri.
2164 Removing different prefixes for the same uri now runs correct.
2165 added SetNamedItem(XmlNode node, int position_to_insert).
2166 * XmlNode.cs : ConstructDOM (logically) creates XmlEntityReference,
2167 XmlWhitespace, and XmlSignificantWhitespace
2169 2002-10-31 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
2171 * XmlDocument.cs : implemented CreateDocumentFragment()
2172 * XmlElement.cs, XmlLinkedNode.cs :
2173 moved LastLinkedChild from XmlElement to XmlLinkedNode.
2174 * XmlEntityReference.cs : must throw NotImplementedException.
2176 + implemented InsertBefore() and then implemented InsertAfter()
2177 and modified AppendChild() to call it.
2178 + added logic to check ReadOnly, parent document equivalence,
2179 and inserting any 'content' before/after DocumentElement.
2180 + implemented Clone() [it is equals to CloneNode() by MS doc.]
2181 + added logic in RemoveChild() to check parent of oldChild.
2182 + fixed ConstructNamespaceManager() to internal only.
2184 2002-10-29 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
2186 * XmlAttribute.cs : add internal 'IsDefault' property
2187 (equals to !Specified)
2188 * XmlImplementation.cs : added 'internalNameTable' property.
2190 + now allows "" for 'standalone' in CreateXmlDeclaration.
2191 + implemented 'Implementation' property and constructor with it.
2192 + added logic for appending name table (but still no use)
2193 + implemented property 'DocumentType'
2194 (but without internalSubset parsing. wait for next update.)
2196 + modified AppendChild() and RemoveChild() to support fragment.
2197 + modified AppendChild() to remove newChild from its parent
2198 when newChild is already in the other place.
2199 + modified RemoveChild() to set parentNode null.
2200 + modified ConstructDOM() to create DocumentType,
2201 and fixed access modifier ('internal protected' to 'internal')
2202 * XmlLinkedNode.cs : fixed 'NextSibling' to return null
2203 when its parent is null.
2204 * XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
2205 property to enable AppendChild() for this class.
2206 * XmlTextReader.cs : appended private publicId and systemId fields.
2208 2002-10-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2210 * XmlTextReader.cs: make it work when the underlying Stream is not
2213 2002-10-26 Piers Haken <piersh@friskit.com>
2215 * XmlNode.cs: add virtual property XPathNodeType
2220 * XmlProcessingInstruction.cs:
2221 * XmlSignificantWhitespace.cs:
2223 * XmlWhitespace.cs: implement XPathNodeType property
2224 * XmlDocumentNavigator.cs: use XPathNodeType property instead of switch
2226 2002-10-26 Piers Haken <piersh@friskit.com>
2228 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
2230 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2232 * XmlTextReader.cs: don't increment depth for entity references.
2234 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
2236 * - Fixed the duplication of xmlns:xx = yy when serializing the
2237 XML for serialization
2239 Fixed the unnecessary parsing/serializing when adding assemblies
2242 Avoided setting the XmlNode.InnerXml property
2243 (as it's not implemented)
2245 Fixed the usage/implementation of
2246 XmlElement.GetElementsByTagName()
2248 2002-10-21 Duncan Mak <duncan@ximian.com>
2253 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
2254 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
2256 2002-10-18 Duncan Mak <duncan@ximian.com>
2258 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
2259 <ginga@kit.hi-ho.ne.jp>.
2261 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
2263 * XmlDocument.cs (ImportNode): Implemented
2265 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2267 * XmlDocument.cs: one more Load method implemented.
2268 * XmlTextReader.cs: Depth now works.
2270 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2272 * XmlConvert.cs: IsInvalid is now internal.
2273 * XmlNamespaceManager.cs: implemented RemoveNamespace
2274 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
2275 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
2277 2002-09-19 Matt Hunter <mahunter@tconl.com>
2279 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
2280 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
2282 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2284 * XmlConvert.cs: finished implementation.
2285 * XmlTextReader.cs: fixed #30239.
2286 * XmlTextWriter.cs: fixed #30240.
2288 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2290 * XmlTextReader.cs: line and position begin with 1.
2292 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2294 * XmlException.cs: added a new internal constructor for IXmlLineInfo
2295 and output line and position info in Message.
2297 * XmlReader.cs: implemented missing bits.
2299 2002-09-12 Piers Haken <piersh@friksit.com>
2301 * XmlDocumentNavigator.cs: implement MoveToId()
2303 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2305 * XmlTextWriter.cs: fixed bug #29886.
2307 2002-08-26 Ravi Pratap <ravi@ximian.com>
2310 * XmlAttribute.cs (InnerText): Implement getting this property.
2312 * XmlNode.cs (InnerText): Ensure that we append only values of
2315 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2317 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
2318 that allowed compiling this.
2319 [ FIXME: filed bug #29435. mcs should have failed on this ]
2321 2002-08-25 Tim Coleman <tim@timcoleman.com>
2323 Change CreateNavigator to not be virtual.
2325 Add set_Prefix and InnerText accessors.
2326 * XmlEntityReference.cs:
2327 Add set_Value accessor.
2329 Make objects which should be private private.
2331 Remove WriteStartElementInternal abstract definition.
2332 * XmlValidatingReader.cs:
2335 2002-08-22 Jason Diamond <jason@injektilo.org>
2337 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
2338 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
2340 2002-08-22 Jason Diamond <jason@injektilo.org>
2342 * XmlElement.cs: Correction to previous GetElementsByTagName patch
2343 courtesy of Matt Hunter <xrkune@tconl.com>.
2345 2002-08-22 Jason Diamond <jason@injektilo.org>
2347 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
2348 qualified GetElementsByTagName courtesy of Matt Hunter
2351 2002-08-19 Jason Diamond <jason@injektilo.org>
2353 * XmlDocument.cs, XmlElement.cs: Added implementation of
2354 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
2356 2002-08-16 Jason Diamond <jason@injektilo.org>
2358 * XmlElement.cs: Fixed writing out qualified elements courtesy of
2359 Marcus Bürgel <marcus.buergel@gmx.de>.
2361 2002-08-13 Tim Coleman <tim@timcoleman.com>
2363 Partial implementation of WriteQualifiedName ().
2365 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
2366 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
2367 InsertData(), and ReplaceData(). These methods fire the
2368 NodeChanging and NodeChanged events.
2370 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
2372 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
2373 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
2375 2002-08-03 Tim Coleman <tim@timcoleman.com>
2376 * XmlNamespaceManager.cs:
2377 .Net allows the empty namespace to be redefined
2378 at a later point, but the current implementation
2379 did not. This fixes a hashtable conflict.
2381 2002-07-26 Tim Coleman <tim@timcoleman.com>
2383 When given a textwriter, check to see if it has a
2384 null encoding. This was being done for other inputs
2387 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
2389 * XmlTextReader.cs: rough line/column support.
2391 2002-07-23 Duncan Mak <duncan@ximian.com>
2393 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
2394 (string, string []) is particularly strange.
2396 * XmlException.cs: Remember to call the base serialization
2399 * XmlNodeReader.cs: Keep a new variable to store the Depth.
2401 2002-07-14 Jason Diamond <jason@injektilo.org>
2403 * XmlAttribute.cs: Removed ownerElement field since we can reuse
2406 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
2407 if the current node is an attribute.
2409 * XmlElement.cs: SetAttributeNode now sets the new attribute's
2412 2002-07-12 Jason Diamond <jason@injektilo.org>
2414 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
2415 creating an element, use String.Empty instead.
2417 2002-07-12 Piers Haken <piersh@friksit.com>
2419 * XmlAttributeCollection.cs: implement some ItemOf indexers
2420 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
2421 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
2423 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
2426 2002-10-26 Piers Haken <piersh@friskit.com>
2428 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
2430 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2432 * XmlTextReader.cs: don't increment depth for entity references.
2434 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
2436 * - Fixed the duplication of xmlns:xx = yy when serializing the
2437 XML for serialization
2439 Fixed the unnecessary parsing/serializing when adding assemblies
2442 Avoided setting the XmlNode.InnerXml property
2443 (as it's not implemented)
2445 Fixed the usage/implementation of
2446 XmlElement.GetElementsByTagName()
2448 2002-10-21 Duncan Mak <duncan@ximian.com>
2453 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
2454 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
2456 2002-10-18 Duncan Mak <duncan@ximian.com>
2458 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
2459 <ginga@kit.hi-ho.ne.jp>.
2461 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
2463 * XmlDocument.cs (ImportNode): Implemented
2465 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2467 * XmlDocument.cs: one more Load method implemented.
2468 * XmlTextReader.cs: Depth now works.
2470 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2472 * XmlConvert.cs: IsInvalid is now internal.
2473 * XmlNamespaceManager.cs: implemented RemoveNamespace
2474 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
2475 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
2477 2002-09-19 Matt Hunter <mahunter@tconl.com>
2479 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
2480 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
2482 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2484 * XmlConvert.cs: finished implementation.
2485 * XmlTextReader.cs: fixed #30239.
2486 * XmlTextWriter.cs: fixed #30240.
2488 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2490 * XmlTextReader.cs: line and position begin with 1.
2492 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2494 * XmlException.cs: added a new internal constructor for IXmlLineInfo
2495 and output line and position info in Message.
2497 * XmlReader.cs: implemented missing bits.
2499 2002-09-12 Piers Haken <piersh@friksit.com>
2501 * XmlDocumentNavigator.cs: implement MoveToId()
2503 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2505 * XmlTextWriter.cs: fixed bug #29886.
2507 2002-08-26 Ravi Pratap <ravi@ximian.com>
2510 * XmlAttribute.cs (InnerText): Implement getting this property.
2512 * XmlNode.cs (InnerText): Ensure that we append only values of
2515 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2517 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
2518 that allowed compiling this.
2519 [ FIXME: filed bug #29435. mcs should have failed on this ]
2521 2002-08-25 Tim Coleman <tim@timcoleman.com>
2523 Change CreateNavigator to not be virtual.
2525 Add set_Prefix and InnerText accessors.
2526 * XmlEntityReference.cs:
2527 Add set_Value accessor.
2529 Make objects which should be private private.
2531 Remove WriteStartElementInternal abstract definition.
2532 * XmlValidatingReader.cs:
2535 2002-08-22 Jason Diamond <jason@injektilo.org>
2537 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
2538 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
2540 2002-08-22 Jason Diamond <jason@injektilo.org>
2542 * XmlElement.cs: Correction to previous GetElementsByTagName patch
2543 courtesy of Matt Hunter <xrkune@tconl.com>.
2545 2002-08-22 Jason Diamond <jason@injektilo.org>
2547 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
2548 qualified GetElementsByTagName courtesy of Matt Hunter
2551 2002-08-19 Jason Diamond <jason@injektilo.org>
2553 * XmlDocument.cs, XmlElement.cs: Added implementation of
2554 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
2556 2002-08-16 Jason Diamond <jason@injektilo.org>
2558 * XmlElement.cs: Fixed writing out qualified elements courtesy of
2559 Marcus Bürgel <marcus.buergel@gmx.de>.
2561 2002-08-13 Tim Coleman <tim@timcoleman.com>
2563 Partial implementation of WriteQualifiedName ().
2565 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
2566 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
2567 InsertData(), and ReplaceData(). These methods fire the
2568 NodeChanging and NodeChanged events.
2570 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
2572 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
2573 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
2575 2002-08-03 Tim Coleman <tim@timcoleman.com>
2576 * XmlNamespaceManager.cs:
2577 .Net allows the empty namespace to be redefined
2578 at a later point, but the current implementation
2579 did not. This fixes a hashtable conflict.
2581 2002-07-26 Tim Coleman <tim@timcoleman.com>
2583 When given a textwriter, check to see if it has a
2584 null encoding. This was being done for other inputs
2587 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
2589 * XmlTextReader.cs: rough line/column support.
2591 2002-07-23 Duncan Mak <duncan@ximian.com>
2593 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
2594 (string, string []) is particularly strange.
2596 * XmlException.cs: Remember to call the base serialization
2599 * XmlNodeReader.cs: Keep a new variable to store the Depth.
2601 2002-07-14 Jason Diamond <jason@injektilo.org>
2603 * XmlAttribute.cs: Removed ownerElement field since we can reuse
2606 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
2607 if the current node is an attribute.
2609 * XmlElement.cs: SetAttributeNode now sets the new attribute's
2612 2002-07-12 Jason Diamond <jason@injektilo.org>
2614 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
2615 creating an element, use String.Empty instead.
2617 2002-07-12 Piers Haken <piersh@friksit.com>
2619 * XmlAttributeCollection.cs: implement some ItemOf indexers
2620 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
2621 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
2623 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
2625 * XmlTextWriter: Fixed Indentation. IndentationOverridden should
2626 not be set when inside a attribute.
2628 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
2630 * XmlTextWriter: In WriteStartElement, if namespace is null and
2631 prefix is null|empty do not write out xmlns=""
2633 * XmlWriter: WriteStartElement calls the virtual method with null
2634 argument instead of empty string.
2636 2002-07-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2638 * XmlTextReader.cs: implemented .ctor (Stream).
2640 2002-06-26 Duncan Mak <duncan@ximian.com>
2642 * XmlNodeReader.cs: Implementation of most of the properties, and
2643 some of the related methods.
2645 2002-06-23 Piers Haken <piersh@friskit.com>
2647 * XmlDocumentNavigator.cs: implement Clone()
2648 * XmlElement.cs: remove bogus unimplemented override of InnerText
2649 * XmlNode.cs: implment SelectNodes/SelectSingleNode
2650 * XmlNodeArrayList.cs: new support class for SelectNodes
2652 2002-06-21 Ajay kumar Dwivedi <adwiv@yahoo.com>
2654 * XmlQualifiedName: Name and Namespaces are never null. If null is passed
2655 to the constructor, set them to empty strings.
2656 Fixed the Operators.
2658 2002-06-18 Ajay kumar Dwivedi <adwiv@yahoo.com>
2660 * XmlTextReader.cs: HasLineInfo returns false instead of throwing an
2663 2002-06-14 Duncan Mak <duncan@ximian.com>
2665 * XmlConvert.cs: Added CLSCompliant attributes to methods.
2667 2002-06-12 Duncan Mak <duncan@ximian.com>
2669 * XmlCharacterData.cs (Value): Throw an ArgumentException in the
2670 set block if the node is read-only.
2672 2002-06-10 Ajay kumar Dwivedi <adwiv@yahoo.com>
2673 * XmlConstruct.cs : New Internal class with Helper methods for
2674 Checking XmlConstructs
2675 * XmlConvert.cs: Implemented most of the methods
2677 2002-06-08 Duncan Mak <duncan@ximian.com>
2679 * XmlDocument.cs (Load):
2680 Added bits to Load (string) for BaseURI support.
2682 * XmlAttribute.cs (BaseURI):
2683 * XmlDocument.cs (BaseURI):
2684 * XmlEntity.cs (BaseURI): Implemented.
2686 2002-05-27 Jason Diamond <jason@injektilo.org>
2688 * XmlDocumentNavigator.cs: Added file to directory.
2690 * XmlNode.cs (CreateNavigator): Implemented.
2691 (InnerText): Implemented.
2693 * XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
2695 (Load(XmlReader)): Allow for namespace qualified attributes.
2697 * XmlElement.cs: Implemented GetAttribute(string, string) and both
2698 GetAttributeNode overloads.
2699 (SetAttributeNode(XmlAttribute)): Implemented.
2701 * XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
2702 and RemoveNamedItem(string, string).
2704 * XmlLinkedNode.cs (PreviousSibling): Implemented.
2706 * XmlTextReader.cs: Added code to maintain the order of attributes as
2707 they're parsed. XML doesn't require this but Microsoft's parser does it and
2708 matching them makes testing easier so now we have it, too.
2710 2002-05-26 Miguel de Icaza <miguel@ximian.com>
2712 * XmlDocument.cs: Implement the Save methods.
2714 2002-05-08 Mike Kestner <mkestner@speakeasy.net>
2716 * XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
2718 2002-04-28 Duncan Mak <duncan@ximian.com>
2720 * XmlSignificantWhitespace.cs (Value):
2721 * XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
2722 block. Added new private method, IsValidWhitespaceChar, for
2725 2002-04-16 Duncan Mak <duncan@ximian.com>
2727 * XmlParserContext.cs (NameTable): Fixed a typo in the set block.
2729 2002-04-12 Duncan Mak <duncan@ximian.com>
2731 * XmlAttribute.cs (Prefix): Added preliminary code for set block,
2732 added comment on work that needs to be done here. A new MonoTODO item.
2734 * XmlDocument.cs (ctor): Corrected constructor signature, changed
2735 parameter from 'NameTable' to 'XmlNameTable'.
2737 * XmlDocumentFragment.cs (InnerXml): Added missing set block.
2739 * XmlCaseOrder.cs: Moved to System.Xml.XPath.
2741 2002-04-10 Duncan Mak <duncan@ximian.com>
2743 * XmlNodeReader.cs: Initial stubs for the class.
2745 2002-04-08 Kral Ferch <kral_ferch@hotmail.com>
2747 * XmlAttributes.cs: InnerXml getter, WriteContentTo, and WriteTo
2750 * XmlDeclaration.cs: WriteTo implementation.
2752 * XmlDocument.cs: InnerXml getter implementation.
2754 * XmlElement.cs: InnerXml getter implementation.
2756 * XmlNode.cs: Removed MonoTODO attrib on OuterXml.
2758 * XmlSignificantWhitespace.cs: WriteTo implementation.
2760 * XmlText.cs: WriteContentTo and WriteTo implementation.
2762 * XmlTextWriter.cs: WriteRaw implementation.
2764 * XmlWhitespace.cs: WriteContentTo and WriteTo implementations.
2766 2002-04-05 Kral Ferch <kral_ferch@hotmail.com>
2768 * XmlAttributes.cs: Added reminder MonoTODO to set NamespaceURI
2769 if prefix in constructor is one of the default ones.
2771 * XmlCharacterData.cs: Returns String.Empty for Value and Data
2772 even when constructed with null.
2774 * XmlDeclaration.cs: Value doesn't put encoding or standalone
2775 in if they are empty.
2777 * XmlDocument.cs: Implemented CreateNode methods and this caused
2778 the changes in the other files in this checkin.
2780 * XmlProcessingInstruction.cs: Returns String.Empty for Value and Data
2781 even when constructed with null.
2783 * XmlWhitespace.cs: Changed Value 'get' to return Data.
2785 2002-04-01 Kral Ferch <kral_ferch@hotmail.com>
2787 * XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
2789 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
2791 * XmlTextWriter.cs: Impls for LookupPrefix, WriteBase64,
2792 and WriteCharEntity.
2794 * XmlWrite.cs: Fixed bug where attribute namespace decl
2795 was pushing a scope onto the namespace manager when it shouldn't
2798 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
2800 * XmlTextWriter.cs: Some tweaks for WriteAttibuteString
2801 in different states (no open start element, in WriteState.Content mode).
2803 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
2805 * XmlTextWriter.cs: XmlLang and XmlSpace properties
2806 and WriteWhitespace.
2808 * XmlTextWriterOpenElement.cs: scope support for XmlLang
2811 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
2813 * XmlTextWriter.cs: Working on Attribute methods.
2815 * XmlWriter.cs: Working on Attribute methods.
2817 2002-03-28 Duncan Mak <duncan@ximian.com>
2819 * XmlDocument.cs (CreateWhitespace):
2820 (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
2823 * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
2825 2002-03-26 Duncan Mak <duncan@ximian.com>
2827 * XmlDocument.cs (CreateDocumentType): Implemented.
2829 * XmlNode.cs (Value): Implemented.
2831 * XmlProcessingInstruction.cs (InnerText): Implemented. It works just
2832 like XmlCharacterData.
2834 * XmlDeclaration.cs (CloneNode):
2835 * XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
2838 * XmlCharacterData.cs (InnerText): Implemented. Funny that the
2839 docs say it is the "The concatenated values of the node and all
2840 the children of the node.". I wrote some test programs and
2841 couldn't get any of the derived nodes to AppendChild. For now,
2842 InnerText == Data == Value.
2843 (Substring): Fixed typo.
2845 * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
2847 * XmlImplementation.cs (CreateDocument): Implemented.
2849 2002-03-25 Duncan Mak <duncan@ximian.com>
2851 * XmlDeclaration.cs: Rewrote the class, fixed formatting, added
2852 missing properties (InnerText, Value).
2854 * XmlDocument.cs (CreateXmlDeclaration): Implemented.
2856 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
2858 * XmlTextWriter.cs: Impls for BaseStream and
2859 Namespaces and WriteState.
2861 * XmlWriter.cs: WriteState and WriteStartElementInternal.
2863 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
2865 * XmlNodeListChildren.cs: made class internal
2866 instead of public. Shouldn't be visible outside
2869 * XmlTextWriter.cs: Implementations for Formatting,
2870 IndentChar, Indenting, QuoteChar, WriteStartDocument(standalone).
2871 Suppresses encoding on xml declaration if null stream passed in.
2872 Formats output including suppressing indentation for elements in
2875 * XmlTextWriterOpenElement.cs: Initial checkin.
2876 XmlTextWriter uses stack of these objects to track
2879 2002-03-22 Mike Kestner <mkestner@speakeasy.net>
2881 * XmlElement.cs: impl HasAttribute(string name).
2883 2002-03-22 Duncan Mak <duncan@ximian.com>
2885 * XmlElement.cs: Reformatted.
2886 (CloneNode) Corrected.
2888 * XmlDocument.cs (CreateWhitespace):
2889 (CreateSignificantWhitespace): Implemented.
2891 * XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
2892 true, because Attributes have ChildNodes.
2894 2002-03-21 Kral Ferch <kral_ferch@hotmail.com>
2896 * XmlTextWriter.cs: WriteStartDocument tracks state, writes out
2897 xml declaration along with encoding. WriteEndElement throws
2898 exception if no WriteStartElement exists.
2900 2002-03-20 Duncan Mak <duncan@ximian.com>
2902 * XmlEntityReference.cs (CloneNode): Implemented.
2904 * XmlException.cs (Message): Implemented. We need to cache the
2905 message string because SystemException doesn't expose 'message'
2908 * XmlText.cs (Value): Added in the missing Value property.
2910 2002-03-20 Duncan Mak <duncan@ximian.com>
2912 * XmlAttribute.cs (CloneNode): Implemented.
2914 * XmlDocumentFragment.cs (CloneNode): Implemented.
2916 * XmlElement.cs (CloneNode): Implemented.
2918 2002-03-19 Duncan Mak <duncan@ximian.com>
2920 * XmlNotation.cs: Added to CVS.
2922 * XmlAttribute.cs (CloneNode): First crack at the CloneNode method.
2924 * XmlCDataSection.cs (CloneNode): Implemented.
2926 * XmlDocumentFragment.cs: Reformatted and added the missing properties
2927 (InnerXml, OwnerDocument, ParentNode).
2928 (CloneNode): Implemented.
2930 * XmlSignificantWhitespace.cs (CloneNode): Implemented.
2931 (Value) Implemented the 'get' property.
2933 * XmlWhitespace.cs (Module): implemented.
2935 2002-03-19 Jason Diamond <jason@injektilo.org>
2937 * XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
2940 2002-03-18 Jason Diamond <jason@injektilo.org>
2942 * XmlTextReader.cs: Don't restore properties after reading last
2943 attribute on an element.
2945 * XmlDocument.cs: Move back to element after reading attributes
2946 so that IsEmptyElement test succeeds.
2948 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
2950 * XmlNamespaceManager.cs: Implemented LookupPrefix.
2952 * XmlTextWriter.cs: Implemented namespace and prefix support.
2954 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
2956 * XmlTextReader.cs: Restores properties after
2957 reading last attribute on an element.
2959 * XmlNode.cs: AppendChild sets the parent
2962 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
2964 * XmlCDataSection.cs: Formatting, Implementation for WriteTo.
2966 * XmlComment.cs: Implementations for WriteTo and WriteContentTo.
2968 * XmlElement.cs: Fixed bug in WriteTo.
2970 * XmlProcessingInstruction.cs: Formatting.
2972 * XmlTextWriter.cs: Implementations for Close, WriteCData, WriteComment,
2973 fixes for WriteEndElement, WriteProcessingInstruction.
2975 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
2977 * XmlDocument.cs: Implementations for WriteTo() and WriteContentTo(),
2978 had Load() add PIs to the document, moved onXXX methods to alphabetical
2981 * XmlElement.cs: Implementations for WriteTo() and WriteContentTo().
2983 * XmlNode.cs: Implementations for InnerXml Get and OuterXml.
2985 * XmlProcessingInstruction.cs: Implementations for WriteTo() and
2988 * XmlTextWriter.cs: Implementations for WriteEndElement,
2989 WriteProcessingInstruction, WriteStartElement, and WriteString.
2991 * XmlWriter.cs: Implemented WriteStartElement() methods.
2993 2002-03-15 Duncan Mak <duncan@ximian.com>
2995 * XmlEntity.cs: Added to CVS. Need to implement BaseURI and
2996 InnerText once I know what they do.
2998 * XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
2999 that we can properly chain constructors.
3000 (CloneNode): implemented.
3001 (WriteContentTo): Removed MonoTODO attribute as this method has no
3002 effect in this class.
3004 * XmlProcessingInstruction.cs (Value): Added the missing Set
3006 (InnerText): Added in, but not implemented.
3008 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
3010 * XmlTextWriter.cs: implemented constructors and
3011 WriteCData and WriteComment.
3013 2002-03-14 Duncan Mak <duncan@ximian.com>
3015 * XmlDocument.cs: Moved the NodeChanged EventHandler to its own
3016 file, and updated the callbacks to reflect the change.
3017 (XmlDocument): Added the NameTable constructor.
3018 (NameTable): Also the NameTable property.
3020 * XmlNodeChangedEventHandler.cs: Added, replacing the version that
3021 was in XmlDocument.cs. It has two arguments now (object,
3022 EventArgs) , instead of one (object).
3024 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
3026 * XmlWriter.cs: Formatting.
3028 * XmlTextWriter.cs: Initial checkin.
3030 2002-03-14 Duncan Mak <duncan@ximian.com>
3032 * Validation.cs: Removed, replaced by ValidationType.cs.
3034 * ValidationType.cs: Added.
3036 2002-03-13 Duncan Mak <duncan@ximian.com>
3038 * XmlException.cs: Made it [Serializable], implemented good ol'
3039 GetObjectData, and the serialization constructor.
3041 * XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
3042 (SetNamedItem): Reverted (added back in) the patch with the
3043 ReadOnly checks. "Don't doubt yourself, my son... you were right!"
3045 * XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
3046 (GetNamedItem (string, string)): implemented.
3047 (RemoveNamedItem): implemented.
3048 (SetNamedItem): implemented.
3050 2002-03-12 Kral Ferch <kral_ferch@hotmail.com>
3052 * XmlAttribute.cs: Moved a method from amongst properties down to
3053 it's alphabetical position in the methods section.
3055 * XmlNode.cs: Passes in 'this' to XmlNodeList constructor instead of
3056 last linked child. Set XmlNode base class to return false for IsReadOnly().
3057 Implemented GetEnumerator() and RemoveChild().
3059 * XmlNodeListChildren.cs: Now stores the parent instead of the last child.
3060 This is to support the behavior that the Enumerator doesn't become invalid
3061 when changes to the children occur. Flushed out rest of implementation for
3062 MoveNext, Current, and Reset.
3064 2002-03-12 Duncan Mak <duncan@ximian.com>
3066 * XmlCharacterData.cs: Reformatted the properties for better readability.
3068 * XmlLinkedNode.cs: Removed the awful boxy comments.
3070 * XmlNamedNodeMap.cs (Count):
3071 (Item): Implemented. Tests will be coming.
3073 * XmlEntityReference.cs:
3074 * XmlSignificantWhitespace.cs: Implemented these classes except for
3075 the Clone, WriteContentTo and WriteTo methods. Will have to
3076 investigate into these later.
3078 2002-03-11 Duncan Mak <duncan@ximian.com>
3080 * IHasXmlNode.cs: Added to CVS.
3082 2002-03-08 Jason Diamond <jason@injektilo.org>
3084 * XmlParserContext.cs: Added missing constructors and missing Encoding
3087 * XmlTextReader.cs: Start using the XmlParserContext class.
3089 2002-03-08 Jason Diamond <jason@injektilo.org>
3091 * XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
3093 2002-03-08 Mike Kestner <mkestner@speakeasy.net>
3095 * XmlNode.cs (Item): Implemented both indexers.
3097 2002-03-08 Jason Diamond <jason@injektilo.org>
3099 * DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
3100 XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
3102 2002-03-08 Jason Diamond <jason@injektilo.org>
3104 * XmlAttribute.cs: Attribute nodes are supposed to store their values
3105 as child nodes so updated to reflect that.
3107 * XmlDocument.cs, XmlElement.cs, XmlNode.cs: Moved code that was
3108 duplicated in XmlDocument and XmlElement into XmlNode so that it
3109 wouldn't have to be duplicated in XmlAttribute, too.
3111 2002-03-08 Kral Ferch <kral_ferch@hotmail.com>
3113 * XmlNodeList.cs, XmlDocument.cs, XmlLinkedNode.cs,
3114 XmlNode.cs: Formatting.
3116 * XmlNodeListChildren.cs: Implementation of XmlNodeList
3117 for XmlNode.ChildNodes property.
3119 * XmlNodeListAsArrayList.cs: Removed file. Using different
3120 data structure (circular list) in XmlNode so this file
3123 * XmlDocument.cs, XmlElement.cs: New ChildNodes tests found
3124 bug in setter property of LastLinkedChild so fixed it.
3126 2002-03-06 Jason Diamond <jason@injektilo.org>
3128 * XmlInputSource.cs, XmlNames_1_0.cs, XmlParse.cs: Removed files.
3129 We already have a parser in XmlTextReader.
3131 * XmlException.cs: Removed constructor accepting XmlInputSource.
3133 2002-03-06 Kral Ferch <kral_ferch@hotmail.com>
3135 * XmlNode.cs: Rewrote this class from scratch with
3136 MonoToDo attribs and NotImplementedExceptions. Now defines an
3137 internal LastLinkedNode property to aid the new implementation.
3138 XmlNodes only have ref to owner doc and parent nodes now.
3140 * XmlLinkedNode.cs: Added NextLinkedSibling internal property
3141 and ref to next sibling to support walking our circular child
3144 * XmlDocument.cs: Added ref to last child node and overrides
3145 XmlNode's internal LastLinkedChild property to support walking
3146 our circular child node list.
3148 2002-03-02 Kral Ferch <kral_ferch@hotmail.com>
3150 * XmlProcessingInstructions.cs: Class was empty. Implemented
3151 constructor, properties, and CloneNode() method. Put in
3152 MonoToDo attrib for remaining methods.
3154 * XmlComment.cs: Reformatted and put in MonoToDo attribs.
3155 Got rid of helper methods and fields since they were no
3158 * XmlLinkedNode.cs: Reformatted and put in MonoToDo attribs.
3160 * XmlDocument.cs: Added code to Load(XmlReader) to create XmlComment,
3161 XmlCDataSection, and XmlProcessingInstruction nodes. Implemented
3162 Createxxx() methods for those three node types.
3164 2002-03-02 Jason Diamond <jason@injektilo.org>
3166 * XmlDocument.cs: Implemented the remaining CreateElement and
3167 CreateAttribute methods.
3169 * XmlAttribute.cs: Re-implemented.
3171 * XmlElement.cs: Set owner element on attributes. Reformatted.
3173 2002-03-02 Jason Diamond <jason@injektilo.org>
3175 * XmlTextReader.cs: Implemented MoveToNextAttribute().
3177 * XmlDocument.cs: Reformatted. Adding missing methods and MonoTODO
3178 attributes. Create attribute nodes while loading. Implemented
3179 Load(string) and CreateTextNode().
3181 * XmlCharacterData.cs, XmlText.cs: Re-implemented.
3183 * XmlCDataSection.cs, XmlComment.cs: Call correct constructor in
3186 * XmlNamedNodeMap.cs, XmlAttributeCollection.cs: Stubbed out.
3188 2002-03-02 Mike Kestner <mkestner@speakeasy.net>
3190 * XmlAttribute.cs : Using fix.
3191 * XmlDocument.cs (CreateAttribute(String)): Implement.
3193 2002-03-02 Jason Diamond <jason@injektilo.org>
3195 * XmlNamespaceManager.cs: Atomize prefixes and namespaces strings in
3198 2002-02-28 Jason Diamond <jason@injektilo.org>
3200 * XmlDocument.cs, XmlNode.cs: Initial implementation of LoadXml
3201 courtesy of Kral Ferch <kral.ferch@hotmail.com>.
3203 2002-02-28 Jason Diamond <jason@injektilo.org>
3205 * XmlException.cs, XmlReader.cs, XmlTextReader.cs: Reformatted,
3206 added missing members and MonoTODO attributes.
3208 * XmlTextReader.cs: Throw XmlException instead of System.Exception.
3210 2002-02-27 Jason Diamond <jason@injektilo.org>
3212 * XmlElement.cs: Reformatted, added missing members and MonoTODO
3215 2002-02-26 Duncan Mak <duncan@ximian.com>
3217 * XmlCDataSection.cs: Initial implementation.
3219 * NameTable.cs: Fixed the whole thing. Wrote a NUnit test to test
3220 it out. This should (hopefully) be correct.
3222 2002-02-26 Jason Diamond <jason@injektilo.org>
3224 * XmlTextReader.cs: Apparently Microsoft's implementation treats
3225 namespace declarations as attributes so we do now, too.
3227 * XmlNamespaceManager.cs: HasNamespace fixed so that it only
3228 checks the current scope.
3230 2002-02-26 Duncan Mak <duncan@ximian.com>
3232 * XmlDocumentType.cs: Added a few hacks here and there to
3233 temporarily fix the "I broke the build issue".
3235 2002-02-25 Jason Diamond <jason@injektilo.org>
3237 * XmlDocument.cs, XmlElement.cs, XmlNode.xs, XmlNodeList.cs,
3238 XmlNodeListAsArrayList.cs: Multiple fixes necessary to get
3239 simple test to pass. The existing code is really shitty so I'll
3240 probably start writing tests and refactoring before much else
3243 2002-02-25 Duncan Mak <duncan@ximian.com>
3245 * NameTable.cs: Implemented.
3247 * XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.
3249 2002-02-24 Duncan Mak <duncan@ximian.com>
3251 * XmlNodeOrder.cs: Added to CVS.
3253 * XmlQualifiedName.cs: Fixed a warning from Equals ().
3255 * XmlTokenizedType.cs: Added to CVS.
3257 * XmlUrlResolver.cs: Added to CVS with one TODO task.
3259 2002-02-23 Duncan Mak <duncan@ximian.com>
3261 * XmlQualifiedName.cs: Fixed ToString () and added the operators
3264 2002-02-23 Jason Diamond <jason@injektilo.org>
3266 * XmlTextReader.cs: Added support for qualified attributes.
3268 2002-02-23 Jason Diamond <jason@injektilo.org>
3270 * XmlNamespaceManager.cs: Initial implementation.
3272 * XmlTextReader.cs: Added support for NamespaceURI property on
3275 2002-02-23 Nick Drochak <ndrochak@gol.com>
3277 * ChangeLog: Add the change log to this directory
3279 * XmlQualifiedName.cs: Fixed compile errors so it would build. Still has