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