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