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