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