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