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