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