a4ee7803fa92b783216a1d4f0f7d528a3bbda6e8
[mono.git] / mcs / class / System.XML / System.Xml / ChangeLog
1 2002-05-08  Mike Kestner  <mkestner@speakeasy.net>
2
3         * XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
4
5 2002-04-28  Duncan Mak  <duncan@ximian.com>
6
7         * XmlSignificantWhitespace.cs (Value):
8         * XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
9         block. Added new private method, IsValidWhitespaceChar, for
10         checking.
11
12 2002-04-16  Duncan Mak  <duncan@ximian.com>
13
14         * XmlParserContext.cs (NameTable): Fixed a typo in the set block.
15
16 2002-04-12  Duncan Mak  <duncan@ximian.com>
17
18         * XmlAttribute.cs (Prefix): Added preliminary code for set block,
19         added comment on work that needs to be done here. A new MonoTODO item. 
20
21         * XmlDocument.cs (ctor): Corrected constructor signature, changed
22         parameter from 'NameTable' to 'XmlNameTable'.
23
24         * XmlDocumentFragment.cs (InnerXml): Added missing set block.
25
26         * XmlCaseOrder.cs: Moved to System.Xml.XPath.
27
28 2002-04-10  Duncan Mak  <duncan@ximian.com>
29
30         * XmlNodeReader.cs: Initial stubs for the class.
31
32 2002-04-08  Kral Ferch  <kral_ferch@hotmail.com>
33
34         * XmlAttributes.cs: InnerXml getter, WriteContentTo, and WriteTo
35         implementations.
36         
37         * XmlDeclaration.cs: WriteTo implementation.
38         
39         * XmlDocument.cs: InnerXml getter implementation.
40         
41         * XmlElement.cs: InnerXml getter implementation.
42
43         * XmlNode.cs: Removed MonoTODO attrib on OuterXml.
44         
45         * XmlSignificantWhitespace.cs: WriteTo implementation.
46         
47         * XmlText.cs: WriteContentTo and WriteTo implementation.
48         
49         * XmlTextWriter.cs: WriteRaw implementation.
50         
51         * XmlWhitespace.cs: WriteContentTo and WriteTo implementations.
52
53 2002-04-05  Kral Ferch  <kral_ferch@hotmail.com>
54
55         * XmlAttributes.cs: Added reminder MonoTODO to set NamespaceURI
56         if prefix in constructor is one of the default ones.
57         
58         * XmlCharacterData.cs: Returns String.Empty for Value and Data
59         even when constructed with null.
60         
61         * XmlDeclaration.cs: Value doesn't put encoding or standalone
62         in if they are empty.
63         
64         * XmlDocument.cs: Implemented CreateNode methods and this caused
65         the changes in the other files in this checkin.
66         
67         * XmlProcessingInstruction.cs: Returns String.Empty for Value and Data
68         even when constructed with null.
69         
70         * XmlWhitespace.cs: Changed Value 'get' to return Data.
71
72 2002-04-01  Kral Ferch  <kral_ferch@hotmail.com>
73
74         * XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
75         
76 2002-03-31  Kral Ferch  <kral_ferch@hotmail.com>
77
78         * XmlTextWriter.cs: Impls for LookupPrefix, WriteBase64,
79         and WriteCharEntity.
80         
81         * XmlWrite.cs:  Fixed bug where attribute namespace decl
82         was pushing a scope onto the namespace manager when it shouldn't
83         have been.
84         
85 2002-03-31  Kral Ferch  <kral_ferch@hotmail.com>
86
87         * XmlTextWriter.cs: Some tweaks for WriteAttibuteString
88         in different states (no open start element, in WriteState.Content mode).
89         
90 2002-03-29  Kral Ferch  <kral_ferch@hotmail.com>
91
92         * XmlTextWriter.cs: XmlLang and XmlSpace properties
93         and WriteWhitespace.
94         
95         * XmlTextWriterOpenElement.cs: scope support for XmlLang
96         and XmlSpace.
97
98 2002-03-29  Kral Ferch  <kral_ferch@hotmail.com>
99
100         * XmlTextWriter.cs: Working on Attribute methods.
101         
102         * XmlWriter.cs: Working on Attribute methods.
103
104 2002-03-28  Duncan Mak  <duncan@ximian.com>
105
106         * XmlDocument.cs (CreateWhitespace):
107         (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
108         method.
109
110         * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
111
112 2002-03-26  Duncan Mak  <duncan@ximian.com>
113
114         * XmlDocument.cs (CreateDocumentType): Implemented.
115
116         * XmlNode.cs (Value): Implemented.
117
118         * XmlProcessingInstruction.cs (InnerText): Implemented. It works just
119         like XmlCharacterData.
120
121         * XmlDeclaration.cs (CloneNode): 
122         * XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
123         arguments.
124
125         * XmlCharacterData.cs (InnerText): Implemented. Funny that the
126         docs say it is the "The concatenated values of the node and all
127         the children of the node.". I wrote some test programs and
128         couldn't get any of the derived nodes to AppendChild. For now,
129         InnerText == Data == Value.
130         (Substring): Fixed typo.
131
132         * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
133
134         * XmlImplementation.cs (CreateDocument): Implemented.
135
136 2002-03-25  Duncan Mak  <duncan@ximian.com>
137
138         * XmlDeclaration.cs: Rewrote the class, fixed formatting, added
139         missing properties (InnerText, Value).
140         
141         * XmlDocument.cs (CreateXmlDeclaration): Implemented.
142
143 2002-03-23  Kral Ferch <kral_ferch@hotmail.com>
144
145         * XmlTextWriter.cs: Impls for BaseStream and
146         Namespaces and WriteState.
147         
148         * XmlWriter.cs: WriteState and WriteStartElementInternal.
149
150 2002-03-23  Kral Ferch <kral_ferch@hotmail.com>
151
152         * XmlNodeListChildren.cs: made class internal
153         instead of public.  Shouldn't be visible outside
154         of System.Xml.
155         
156         * XmlTextWriter.cs: Implementations for Formatting,
157         IndentChar, Indenting, QuoteChar, WriteStartDocument(standalone).
158         Suppresses encoding on xml declaration if null stream passed in.
159         Formats output including suppressing indentation for elements in
160         mixed content mode.
161         
162         * XmlTextWriterOpenElement.cs: Initial checkin.
163         XmlTextWriter uses stack of these objects to track
164         state.
165         
166 2002-03-22  Mike Kestner  <mkestner@speakeasy.net>
167
168         * XmlElement.cs: impl HasAttribute(string name).
169
170 2002-03-22  Duncan Mak  <duncan@ximian.com>
171
172         * XmlElement.cs: Reformatted.
173         (CloneNode) Corrected.
174
175         * XmlDocument.cs (CreateWhitespace):
176         (CreateSignificantWhitespace): Implemented.
177
178         * XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
179         true, because Attributes have ChildNodes.
180
181 2002-03-21  Kral Ferch <kral_ferch@hotmail.com>
182
183         * XmlTextWriter.cs: WriteStartDocument tracks state, writes out
184         xml declaration along with encoding.  WriteEndElement throws
185         exception if no WriteStartElement exists.
186
187 2002-03-20  Duncan Mak  <duncan@ximian.com>
188
189         * XmlEntityReference.cs (CloneNode): Implemented.
190
191         * XmlException.cs (Message): Implemented. We need to cache the
192         message string because SystemException doesn't expose 'message'
193         from Exception.
194
195         * XmlText.cs (Value): Added in the missing Value property.
196
197 2002-03-20  Duncan Mak  <duncan@ximian.com>     
198
199         * XmlAttribute.cs (CloneNode): Implemented.
200
201         * XmlDocumentFragment.cs (CloneNode): Implemented.
202
203         * XmlElement.cs (CloneNode): Implemented.
204
205 2002-03-19  Duncan Mak  <duncan@ximian.com>
206
207         * XmlNotation.cs: Added to CVS.
208
209         * XmlAttribute.cs (CloneNode): First crack at the CloneNode method.
210
211         * XmlCDataSection.cs (CloneNode): Implemented.
212
213         * XmlDocumentFragment.cs: Reformatted and added the missing properties
214         (InnerXml, OwnerDocument, ParentNode).
215         (CloneNode): Implemented.
216
217         * XmlSignificantWhitespace.cs (CloneNode): Implemented.
218         (Value) Implemented the 'get' property.
219
220         * XmlWhitespace.cs (Module): implemented.
221
222 2002-03-19  Jason Diamond <jason@injektilo.org>
223
224         * XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
225         in the prefix.
226
227 2002-03-18  Jason Diamond <jason@injektilo.org>
228
229         * XmlTextReader.cs: Don't restore properties after reading last
230         attribute on an element.
231
232         * XmlDocument.cs: Move back to element after reading attributes
233         so that IsEmptyElement test succeeds.
234
235 2002-03-18  Kral Ferch <kral_ferch@hotmail.com>
236
237         * XmlNamespaceManager.cs: Implemented LookupPrefix.
238         
239         * XmlTextWriter.cs: Implemented namespace and prefix support.
240
241 2002-03-18  Kral Ferch <kral_ferch@hotmail.com>
242
243         * XmlTextReader.cs: Restores properties after
244         reading last attribute on an element.
245         
246         * XmlNode.cs: AppendChild sets the parent
247         on the child.
248
249 2002-03-17  Kral Ferch  <kral_ferch@hotmail.com>
250
251         * XmlCDataSection.cs: Formatting, Implementation for WriteTo.
252
253         * XmlComment.cs: Implementations for WriteTo and WriteContentTo.
254         
255         * XmlElement.cs: Fixed bug in WriteTo.
256         
257         * XmlProcessingInstruction.cs: Formatting.
258         
259         * XmlTextWriter.cs: Implementations for Close, WriteCData, WriteComment,
260         fixes for WriteEndElement, WriteProcessingInstruction.
261
262 2002-03-17  Kral Ferch  <kral_ferch@hotmail.com>
263
264         * XmlDocument.cs: Implementations for WriteTo() and WriteContentTo(),
265         had Load() add PIs to the document, moved onXXX methods to alphabetical
266         order in the file.
267         
268         * XmlElement.cs: Implementations for WriteTo() and WriteContentTo().
269         
270         * XmlNode.cs: Implementations for InnerXml Get and OuterXml.
271         
272         * XmlProcessingInstruction.cs: Implementations for WriteTo() and
273         WriteContentTo().
274         
275         * XmlTextWriter.cs: Implementations for WriteEndElement,
276         WriteProcessingInstruction, WriteStartElement, and WriteString.
277         
278         * XmlWriter.cs: Implemented WriteStartElement() methods.
279
280 2002-03-15  Duncan Mak  <duncan@ximian.com>
281
282         * XmlEntity.cs: Added to CVS. Need to implement BaseURI and
283         InnerText once I know what they do.
284
285         * XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
286         that we can properly chain constructors.
287         (CloneNode): implemented.
288         (WriteContentTo): Removed MonoTODO attribute as this method has no
289         effect in this class.
290
291         * XmlProcessingInstruction.cs (Value): Added the missing Set
292         block.
293         (InnerText): Added in, but not implemented.
294
295 2002-03-14  Kral Ferch  <kral_ferch@hotmail.com>
296
297         * XmlTextWriter.cs: implemented constructors and 
298         WriteCData and WriteComment.
299
300 2002-03-14  Duncan Mak  <duncan@ximian.com>
301
302         * XmlDocument.cs: Moved the NodeChanged EventHandler to its own
303         file, and updated the callbacks to reflect the change.
304         (XmlDocument): Added the NameTable constructor.
305         (NameTable): Also the NameTable property.
306
307         * XmlNodeChangedEventHandler.cs: Added, replacing the version that
308         was in XmlDocument.cs. It has two arguments now (object,
309         EventArgs) , instead of one (object).
310
311 2002-03-14  Kral Ferch  <kral_ferch@hotmail.com>
312
313         * XmlWriter.cs: Formatting.
314         
315         * XmlTextWriter.cs: Initial checkin.
316         
317 2002-03-14  Duncan Mak  <duncan@ximian.com>
318
319         * Validation.cs: Removed, replaced by ValidationType.cs.
320
321         * ValidationType.cs: Added.
322
323 2002-03-13  Duncan Mak  <duncan@ximian.com>
324
325         * XmlException.cs: Made it [Serializable], implemented good ol'
326         GetObjectData, and the serialization constructor.
327
328         * XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
329         (SetNamedItem): Reverted (added back in) the patch with the
330         ReadOnly checks. "Don't doubt yourself, my son... you were right!"
331
332         * XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
333         (GetNamedItem (string, string)): implemented.
334         (RemoveNamedItem): implemented.
335         (SetNamedItem): implemented.
336
337 2002-03-12  Kral Ferch  <kral_ferch@hotmail.com>
338
339         * XmlAttribute.cs: Moved a method from amongst properties down to
340         it's alphabetical position in the methods section.
341         
342         * XmlNode.cs: Passes in 'this' to XmlNodeList constructor instead of
343         last linked child.  Set XmlNode base class to return false for IsReadOnly().
344         Implemented GetEnumerator() and RemoveChild().
345         
346         * XmlNodeListChildren.cs: Now stores the parent instead of the last child.
347         This is to support the behavior that the Enumerator doesn't become invalid
348         when changes to the children occur.  Flushed out rest of implementation for
349         MoveNext, Current, and Reset.
350
351 2002-03-12  Duncan Mak  <duncan@ximian.com>
352
353         * XmlCharacterData.cs: Reformatted the properties for better readability.
354
355         * XmlLinkedNode.cs: Removed the awful boxy comments.
356
357         * XmlNamedNodeMap.cs (Count):
358         (Item): Implemented. Tests will be coming.
359
360         * XmlEntityReference.cs: 
361         * XmlSignificantWhitespace.cs: Implemented these classes except for
362         the Clone, WriteContentTo and WriteTo methods. Will have to
363         investigate into these later.
364
365 2002-03-11  Duncan Mak  <duncan@ximian.com>
366
367         * IHasXmlNode.cs: Added to CVS.
368
369 2002-03-08  Jason Diamond <jason@injektilo.org>
370
371         * XmlParserContext.cs: Added missing constructors and missing Encoding 
372         property.
373
374         * XmlTextReader.cs: Start using the XmlParserContext class.
375
376 2002-03-08  Jason Diamond <jason@injektilo.org>
377
378         * XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
379
380 2002-03-08  Mike Kestner  <mkestner@speakeasy.net>
381
382         * XmlNode.cs (Item): Implemented both indexers.
383
384 2002-03-08  Jason Diamond  <jason@injektilo.org>
385
386         * DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
387         XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
388
389 2002-03-08  Jason Diamond  <jason@injektilo.org>
390
391         * XmlAttribute.cs: Attribute nodes are supposed to store their values
392         as child nodes so updated to reflect that.
393
394         * XmlDocument.cs, XmlElement.cs, XmlNode.cs: Moved code that was
395         duplicated in XmlDocument and XmlElement into XmlNode so that it
396         wouldn't have to be duplicated in XmlAttribute, too.
397
398 2002-03-08  Kral Ferch <kral_ferch@hotmail.com>
399
400         * XmlNodeList.cs, XmlDocument.cs, XmlLinkedNode.cs,
401         XmlNode.cs: Formatting.
402         
403         * XmlNodeListChildren.cs: Implementation of XmlNodeList
404         for XmlNode.ChildNodes property.
405         
406         * XmlNodeListAsArrayList.cs: Removed file.  Using different
407         data structure (circular list) in XmlNode so this file
408         is no longer valid.
409         
410         * XmlDocument.cs, XmlElement.cs: New ChildNodes tests found
411         bug in setter property of LastLinkedChild so fixed it.
412         
413 2002-03-06  Jason Diamond  <jason@injektilo.org>
414
415         * XmlInputSource.cs, XmlNames_1_0.cs, XmlParse.cs: Removed files.
416         We already have a parser in XmlTextReader.
417
418         * XmlException.cs: Removed constructor accepting XmlInputSource.
419
420 2002-03-06  Kral Ferch <kral_ferch@hotmail.com>
421
422         * XmlNode.cs: Rewrote this class from scratch with
423         MonoToDo attribs and NotImplementedExceptions.  Now defines an
424         internal LastLinkedNode property to aid the new implementation.
425         XmlNodes only have ref to owner doc and parent nodes now.
426         
427         * XmlLinkedNode.cs: Added NextLinkedSibling internal property
428         and ref to next sibling to support walking our circular child
429         node list.
430         
431         * XmlDocument.cs: Added ref to last child node and overrides
432         XmlNode's internal LastLinkedChild property to support walking
433         our circular child node list.
434         
435 2002-03-02  Kral Ferch <kral_ferch@hotmail.com>
436
437         * XmlProcessingInstructions.cs: Class was empty.  Implemented
438         constructor, properties, and CloneNode() method.  Put in
439         MonoToDo attrib for remaining methods.
440
441         * XmlComment.cs: Reformatted and put in MonoToDo attribs.
442         Got rid of helper methods and fields since they were no
443         longer needed.
444
445         * XmlLinkedNode.cs: Reformatted and put in MonoToDo attribs.
446
447         * XmlDocument.cs: Added code to Load(XmlReader) to create XmlComment,
448         XmlCDataSection, and XmlProcessingInstruction nodes. Implemented
449         Createxxx() methods for those three node types.
450
451 2002-03-02  Jason Diamond <jason@injektilo.org>
452
453         * XmlDocument.cs: Implemented the remaining CreateElement and
454         CreateAttribute methods.
455
456         * XmlAttribute.cs: Re-implemented.
457
458         * XmlElement.cs: Set owner element on attributes. Reformatted.
459
460 2002-03-02  Jason Diamond <jason@injektilo.org>
461
462         * XmlTextReader.cs: Implemented MoveToNextAttribute().
463
464         * XmlDocument.cs: Reformatted. Adding missing methods and MonoTODO
465         attributes. Create attribute nodes while loading. Implemented
466         Load(string) and CreateTextNode().
467
468         * XmlCharacterData.cs, XmlText.cs: Re-implemented.
469
470         * XmlCDataSection.cs, XmlComment.cs: Call correct constructor in 
471         XmlCharacterData.
472
473         * XmlNamedNodeMap.cs, XmlAttributeCollection.cs: Stubbed out.
474
475 2002-03-02  Mike Kestner <mkestner@speakeasy.net>
476
477         * XmlAttribute.cs : Using fix.
478         * XmlDocument.cs (CreateAttribute(String)): Implement.
479
480 2002-03-02  Jason Diamond <jason@injektilo.org>
481
482         * XmlNamespaceManager.cs: Atomize prefixes and namespaces strings in 
483         the name table.
484
485 2002-02-28  Jason Diamond <jason@injektilo.org>
486
487         * XmlDocument.cs, XmlNode.cs: Initial implementation of LoadXml 
488         courtesy of Kral Ferch <kral.ferch@hotmail.com>.
489
490 2002-02-28  Jason Diamond <jason@injektilo.org>
491
492         * XmlException.cs, XmlReader.cs, XmlTextReader.cs: Reformatted, 
493         added missing members and MonoTODO attributes.
494         
495         * XmlTextReader.cs: Throw XmlException instead of System.Exception.
496
497 2002-02-27  Jason Diamond <jason@injektilo.org>
498
499         * XmlElement.cs: Reformatted, added missing members and MonoTODO 
500         attributes.
501
502 2002-02-26  Duncan Mak  <duncan@ximian.com>
503
504         * XmlCDataSection.cs: Initial implementation.
505
506         * NameTable.cs: Fixed the whole thing. Wrote a NUnit test to test
507         it out. This should (hopefully) be correct.
508
509 2002-02-26  Jason Diamond <jason@injektilo.org>
510
511         * XmlTextReader.cs: Apparently Microsoft's implementation treats
512         namespace declarations as attributes so we do now, too.
513
514         * XmlNamespaceManager.cs: HasNamespace fixed so that it only
515         checks the current scope.
516
517 2002-02-26  Duncan Mak  <duncan@ximian.com>
518
519         * XmlDocumentType.cs: Added a few hacks here and there to
520         temporarily fix the "I broke the build issue".
521
522 2002-02-25  Jason Diamond <jason@injektilo.org>
523
524         * XmlDocument.cs, XmlElement.cs, XmlNode.xs, XmlNodeList.cs,
525         XmlNodeListAsArrayList.cs: Multiple fixes necessary to get
526         simple test to pass. The existing code is really shitty so I'll
527         probably start writing tests and refactoring before much else 
528         can get done.
529
530 2002-02-25  Duncan Mak  <duncan@ximian.com>
531
532         * NameTable.cs: Implemented.
533
534         * XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.
535
536 2002-02-24  Duncan Mak  <duncan@ximian.com>
537         
538         * XmlNodeOrder.cs: Added to CVS.
539
540         * XmlQualifiedName.cs: Fixed a warning from Equals ().
541
542         * XmlTokenizedType.cs: Added to CVS.
543
544         * XmlUrlResolver.cs: Added to CVS with one TODO task.
545
546 2002-02-23  Duncan Mak  <duncan@ximian.com>
547
548         * XmlQualifiedName.cs: Fixed ToString () and added the operators
549         (== and !=).
550
551 2002-02-23  Jason Diamond <jason@injektilo.org>
552
553         * XmlTextReader.cs: Added support for qualified attributes.
554
555 2002-02-23  Jason Diamond <jason@injektilo.org>
556
557         * XmlNamespaceManager.cs: Initial implementation.
558         
559         * XmlTextReader.cs: Added support for NamespaceURI property on
560         elements.
561
562 2002-02-23  Nick Drochak <ndrochak@gol.com>
563
564         * ChangeLog: Add the change log to this directory
565
566         * XmlQualifiedName.cs: Fixed compile errors so it would build. Still has
567         MonoTODO's
568