New tests, updates
[mono.git] / mcs / class / System.Xml.Linq / System.Xml.Linq / ChangeLog
1 2009-05-07  Sebastien Pouliot  <sebastien@ximian.com>
2
3         * XElement.cs: Use XmlReaderSettings.DtdProcessing property instead
4         of ProhibitDtd for NET_2_1 code.
5
6 2009-05-07  Jb Evain  <jbevain@novell.com>
7
8         * XElement.cs (Load (XmlReader,LoadOptions)): prevent a NRE if
9         the provided XmlReader doesn't have existing settings.
10         Fixes #501589.
11
12 2009-04-03  Federico Di Gregorio <fog@initd.org>
13
14         * XNode.cs: fixed XDocumentType to keep the value of SYSTEMID
15         when parsing XML from file.
16
17 2009-03-02  Chris Toshok  <toshok@ximian.com>
18
19         * XNodeReader.cs: 2.1 has HasValue.
20
21 2009-02-23  Jb Evain  <jbevain@novell.com>
22
23         * XUtil.cs (ToString): properly stringify datetimes.
24
25 2009-01-22  Atsushi Enomoto  <atsushi@ximian.com>
26
27         * XElement.cs : oops, experimental code remained and caused test
28           failure.
29
30 2009-01-20  Atsushi Enomoto  <atsushi@ximian.com>
31
32         * XElement.cs : iterate all attributes and see if there is
33           applicable ns prefix for current element. Fixed bug #466423.
34
35 2009-01-20  Atsushi Enomoto  <atsushi@ximian.com>
36
37         * XDocument.cs : fix wrong indentation handling.
38
39 2008-11-19  Jb Evain  <jbevain@novell.com>
40
41         * XNodeReader: build on NET_2_1.
42
43 2008-10-14  Sebastien Pouliot  <sebastien@ximian.com>
44
45         * XContainer.cs (AddFirst): Avoid stackoverflow (infinite recursion).
46
47 2008-06-18  Nestor Salceda  <nestor.salceda@gmail.com>
48
49         * XUtil.cs: Support XText in Clone (). Fixes bug #401325.
50
51 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
52
53         * XUtil.cs : refactoring Clone(). Support XAttribute too.
54         * XNode.cs, XElement.cs, XContainer.cs : when adding a node that is
55           already attached to another node, create a clone of it and add it
56           to the tree instead of adding argument node. Fixed bug #392063.
57           in XElement .ctor(XElement), copy attributes too.
58
59 2008-05-18  Sebastien Pouliot  <sebastien@ximian.com>
60
61         * XName.cs: Use String.IsNullOrEmpty inside 2.0 code.
62         [Found using Gendarme]
63
64 2008-05-12  Atsushi Enomoto  <atsushi@ximian.com>
65
66         * XNode.cs, XElement.cs, XUtil.cs, XDocument.cs, XContainer.cs:
67           Add[Before|After]Self() now also checks argument node and joins
68           concatenating strings.
69
70 2008-05-12  Atsushi Enomoto  <atsushi@ximian.com>
71
72         * XNode.cs : fixed AddAfterSelf() to process order of inserted
73           collection correctly (it could have resulted in reverse order).
74
75 2008-05-12  Atsushi Enomoto  <atsushi@ximian.com>
76
77         * XContainer.cs, XElement.cs, XNode.cs, XUtil.cs :
78           made several refactoring on handling "content" items in couple of
79           Add*() methods. Attributes should be allowed in XElement.Add(),
80           while they should be rejected in XNode.Add*Self().
81           Similarly, Add() and SetValue() should reject any invalid content
82           items.
83           Add() should also append string content to the last node when the
84           last node is text.
85
86 2008-05-12  Atsushi Enomoto  <atsushi@ximian.com>
87
88         * XUtil.cs : added ExpandArray() and marked some members as wrong.
89         * XStreamingElement.cs : removed use of ToNodes().
90
91 2008-05-12  Atsushi Enomoto  <atsushi@ximian.com>
92
93         * XStreamingElement.cs : couple of fixes:
94           - object[] args are params.
95           - Fixed WriteContents(object[],XmlWriter) wrong iteration.
96           - do not write xmldecl when it does not exist (OmitXmlDeclaration).
97
98 2008-04-30  Atsushi Enomoto  <atsushi@ximian.com>
99
100         * XElement.cs, XNode.cs : XNode.ReadFrom() should not reuse
101           XElement.Load() which may create wrapper XmlReader.
102
103 2008-02-12  Atsushi Enomoto  <atsushi@ximian.com>
104
105         * XElement.cs : Value is rather a value in XPath semantics than
106           the textual xml representation. Fixed bug #360858.
107
108 2008-02-11  Atsushi Enomoto  <atsushi@ximian.com>
109
110         * XNodeDocumentOrderComparer.cs : ancestor/descendant comparison was
111           broken for some cases.
112         * Extensions.cs : implemented InDocumentOrder<T>().
113
114 2008-02-11  Atsushi Enomoto  <atsushi@ximian.com>
115
116         * XName.cs : implemented GetObjectData(). It is however incompatible
117           with .NET (yet?).
118         * XNodeNavigator.cs : SchemaInfo is null.
119
120 2008-02-11  Atsushi Enomoto  <atsushi@ximian.com>
121
122         * XStreamingElement.cs : it was almost already implemented.
123         * XElement.cs : finish .ctor(XStreamingElement).
124
125 2008-02-11  Atsushi Enomoto  <atsushi@ximian.com>
126
127         * XNode.cs, XElement.cs, XStreamingElement.cs, XContainer.cs,
128           XUtil.cs : one-object to one-XNode conversion is wrong. It could
129           be one-or-more nodes (i.e. when object is IEnumerable).
130
131 2008-02-11  Atsushi Enomoto  <atsushi@ximian.com>
132
133         * XNamespace.cs : make Get() and GetName() table-based.
134
135 2008-02-11  Atsushi Enomoto  <atsushi@ximian.com>
136
137         * XNodeNavigator.cs : MoveToId() is not supported in this class.
138         * XElement.cs : allow DTD by default.
139
140 2008-02-11  Atsushi Enomoto  <atsushi@ximian.com>
141
142         * XNode.cs XElement.cs XObject.cs XDocument.cs XContainer.cs :
143           support LoadOptions.SetLineInfo and LoadOptions.SetBaseUri.
144
145 2008-02-11  Atsushi Enomoto  <atsushi@ximian.com>
146
147         * XNodeNavigator.cs : oops, MoveToNext() always returned false.
148
149 2008-02-11  Miguel de Icaza  <miguel@novell.com>
150
151         * XAttribute.cs, XElement.cs: typecasting operators that take
152         values that can be null (nullable types and string) should not
153         throw an exception if the XAttribute is null, but return null instead.
154
155         * Added awesome test suite using awesome C-x ( C-x ) C-x e based
156         code generation.
157
158 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
159
160         * XElement.cs : .ctor(XName,object) was trying to set args as its
161           content, not as its own fields.
162         * XNodeWriter.cs : check null ns and replace it with "".
163           Now that IsEmpty is true, set IsEmpty as false explicitly
164           when WriteFullEndElement() is called.
165
166 2008-02-09  Miguel de Icaza  <miguel@novell.com>
167
168         * XNamespace.cs: implement.
169
170 2008-01-30  Atsushi Enomoto  <atsushi@ximian.com>
171
172         * XNodeReader.cs : when it is created from non-document XNode, do
173           not go beyond the source node. Fixed bug #356522 (the third case).
174
175 2008-01-29  Atsushi Enomoto  <atsushi@ximian.com>
176
177         * XNodeReader.cs : NodeType should return None at Initial state.
178           Fixed bug #356522.
179
180 2008-01-29  Atsushi Enomoto  <atsushi@ximian.com>
181
182         * XNodeReader.cs : when created from non-document node, the first
183           call to Read() should not move the node to its first child.
184
185 2008-01-29  Atsushi Enomoto  <atsushi@ximian.com>
186
187         * XNodeReader.cs : Probably fixed (reopened) bug #356522.
188           NamespaceURI for "xmlns" attribute was "", which should be
189           http://www.w3.org/2000/xmlns/ (in XAttribute its namespace is "").
190
191 2008-01-29  Atsushi Enomoto  <atsushi@ximian.com>
192
193         * XElement.cs, XNamespace.cs, XNodeNavigator.cs, XAttribute.cs,
194           XNodeReader.cs, XName.cs, XNodeWriter.cs :
195           XNamespace.Blank -> XNamespace.None (and .None is implemented.)
196
197 2008-01-28  Atsushi Enomoto  <atsushi@ximian.com>
198
199         * XNodeReader.cs : Fixed bug #356522. Attribute name retrieval was
200           wrong.
201
202 2008-01-26  Atsushi Enomoto  <atsushi@ximian.com>
203
204         * XNodeReader.cs : fixed GetAttribute() that wrongly resulted in
205           returning "" instead of null. Fixed bug #335975.
206
207 2007-11-27  Atsushi Enomoto  <atsushi@ximian.com>
208
209         * XStreamingElement.cs : implement some members.
210
211 2007-11-23  Marek Safar  <marek.safar@gmail.com>
212
213         * XElement.cs, XNamespace.cs, XStreamingElement.cs, XObject.cs,
214         XDocument.cs: API update.
215         
216         * XObjectChangeEventHandler.cs: Removed.
217
218 2007-10-26  Atsushi Enomoto  <atsushi@ximian.com>
219
220         * XNode.cs : use ConformanceLevel.Auto for ToString().
221           Fixed bug #336927.
222
223 2007-10-26  Atsushi Enomoto  <atsushi@ximian.com>
224
225         * XElement.cs, XAttribute.cs : implemented missing explicit operators.
226         * XNamespace.cs : Blank is not public anymore.
227
228 2007-08-26  Marek Safar  <marek.safar@gmail.com>
229
230         * XElement.cs : Implemented explicit operators.
231         
232 2007-05-08  Atsushi Enomoto  <atsushi@ximian.com>
233
234         * XNamespace.cs : added missing implicit operator.
235
236 2007-05-06  Atsushi Enomoto  <atsushi@ximian.com>
237
238         * XNodeNavigator.cs : implemented XPathNavigator (untested!)
239
240 2007-05-06  Atsushi Enomoto  <atsushi@ximian.com>
241
242         * XContainer.cs
243           XNodeWriter.cs : implemented CreateWriter().
244         * XElement.cs : when writing default xmlns attribute, namespace URI
245           should be w3c xmlns URI (unlike blank in XLinq's context).
246
247 2007-05-06  Atsushi Enomoto  <atsushi@ximian.com>
248
249         * XNode.cs
250           XNodeReader.cs : implemented XNode.CreateReader().
251         * XDeclaration.cs : removed extra code.
252         * XElement.cs : support explicit IsEmpty value (like XmlElement).
253         * XProcessingInstruction.cs : null check.
254
255 2007-05-06  Atsushi Enomoto  <atsushi@ximian.com>
256
257         * XElement.cs : implemented namespace retrieval, and
258           ReplaceAttributes().
259
260 2007-05-05  Atsushi Enomoto  <atsushi@ximian.com>
261
262         * XNodeDocumentOrderComparer.cs : implemented.
263         * XObject.cs : Owner is internally referenced now.
264
265 2007-05-05  Atsushi Enomoto  <atsushi@ximian.com>
266
267         * XNodeEqualityComparer.cs : implemented.
268
269 2007-05-05  Atsushi Enomoto  <atsushi@ximian.com>
270
271         * XNode.cs
272           XDocument.cs
273           XElement.cs
274           XContainer.cs
275           XUtil.cs : added members for schema support.
276           Shrink object array so that sequential strings are concatenated.
277
278 2007-05-04  Atsushi Enomoto  <atsushi@ximian.com>
279
280         * XNode.cs : Nodes() is safe for removal of current item.
281         * XElement.cs : Attributes() is safe for ditto. Removed unused code.
282         * XUtil.cs : ToString() handles any type of object.
283         * Extensions.cs : implemented everything but sorter.
284         * XAttribute.cs : SetValue() and ToString() are done.
285         * XNode.cs : set missing tree link info in AddBeforeSelf() and
286           AddAfterSelf(). ReplaceWith() are done.
287
288 2007-05-04  Atsushi Enomoto  <atsushi@ximian.com>
289
290         * XNode.cs
291           XElement.cs
292           XAttribute.cs
293           XObject.cs
294           XContainer.cs : Attribute support. Fixed Document property.
295
296 2007-05-03  Atsushi Enomoto  <atsushi@ximian.com>
297
298         * XNode.cs
299           XElement.cs
300           XDocument.cs
301           XContainer.cs : some basic tree implementation.
302           Removed list-based code. Fixed erroneous reader settings.
303         * XDeclaration.cs : removed extra space in ToString().
304         * XNamespace.cs : added operator overloads.
305         * XName.cs : implemented ToString().
306
307 2007-05-03  Atsushi Enomoto  <atsushi@ximian.com>
308
309         yuck, I was updating things based on March CTP, not Beta1 ...
310         * LoadOptions.cs
311           SaveOptions.cs
312           XStreamingElement.cs : new missing files.
313         * XNode.cs
314           XDeclaration.cs
315           XElement.cs
316           XObject.cs
317           XDocument.cs
318           XDocumentType.cs
319           XContainer.cs : thus, updated again.
320         * XName.cs
321           XNamespace.cs : updates, plus some implementation.
322
323 2007-05-02  Atsushi Enomoto  <atsushi@ximian.com>
324
325         * XText.cs
326           XNode.cs
327           XDeclaration.cs
328           XElement.cs
329           XObjectChangeEventArgs.cs
330           XNodeEqualityComparer.cs
331           XComment.cs
332           XObject.cs
333           XNodeDocumentOrderComparer.cs
334           XCData.cs
335           XObjectChange.cs
336           XObjectChangeEventHandler.cs
337           XDocument.cs
338           XProcessingInstruction.cs
339           XDocumentType.cs
340           XContainer.cs : new files (split from System.Xml.Linq.cs).
341         * System.Xml.XLinq.cs : removed old file.
342         * XAttribute.cs
343           Extensions.cs
344           XIterators.cs
345           XNamespace.cs : updated to Orcas beta1 API. The entire code just
346           does not work. The API updates are mostly for testing compilers.
347
348 2007-02-28  Atsushi Enomoto  <atsushi@ximian.com>
349
350         * XElementSequence.cs, Extensions.cs : renamed former to latter.
351
352 2007-02-28  Atsushi Enomoto  <atsushi@ximian.com>
353
354         * XElementSequence.cs, Makefile : build fix for recent gmcs updates,
355           and some more implementation.
356
357 2007-02-03  Atsushi Enomoto  <atsushi@ximian.com>
358
359         * System.Xml.XLinq.cs, XName.cs : a few updates from years ago.
360         * XNamespace.cs : new file. not correct at all for now.
361
362 2007-02-03  Atsushi Enomoto  <atsushi@ximian.com>
363
364         * XAttribute.cs, System.Xml.XLinq.cs, XIterators.cs, XUtil.cs,
365           XName.cs, XElementSequence.cs: namespaces have chanced as well.
366
367 2006-02-11  Atsushi Enomoto  <atsushi@ximian.com>
368
369         * XElementSequence.cs : implemented (not sure if it works).
370         * XName.cs : strict null comparison.
371         * XIterators.cs : (XFilterIterator) check attribute XName as well.
372         * System.Xml.XLinq.cs : solved FIXMEs.
373
374 2005-09-20  Atsushi Enomoto  <atsushi@ximian.com>
375
376         * XAttribute.cs, XIterators.cs, XName.cs, XElementSequence.cs,
377           System.Xml.XLinq.cs :
378           Minimum implementation to run ms XLinqIntro.
379