1 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
3 * XmlReader.cs : (ReadToFollowing) check LocalName, not Name.
6 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
8 * DTDRreader.cs : read up all DTD stream so that we don't have to
9 see bugs like #469317 many times.
11 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
13 * XmlReaderBinarySupport.cs : ReadContentsAsBase64() could skip
14 EndElement at the next XmlReader.Read(). Fixed bug #480066.
16 2009-03-16 Atsushi Enomoto <atsushi@ximian.com>
18 * XmlTextWriter2.cs : only bogus v1 XmlTextWriter ignores null
19 namespace for conflict check. Fixed bug #479725.
21 2009-03-13 Atsushi Enomoto <atsushi@ximian.com>
23 * XmlConvert.cs : added ToUri() (extraneous in 2.0; used only from
24 2.1 S.X.Serialization.dll in MS SDK).
26 2009-03-02 Chris Toshok <toshok@ximian.com>
28 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
29 EntityResolvingXmlReader.cs: 2.1 has HasValue.
32 2009-02-27 Atsushi Enomoto <atsushi@ximian.com>
34 * XmlReader.cs : do not try to read at non-readable state in
37 2009-02-23 Alan McGovern <amcgovern@novell.com>
39 * XmlTextReader.cs: Under the SL2 profile, the default resolver
42 2009-02-23 Atsushi Enomoto <atsushi@ximian.com>
44 * XmlReader.cs : ReadContentAsXxx() should not advance XmlReader
45 when it is on attribute *value* text.
47 2009-02-10 Atsushi Enomoto <atsushi@ximian.com>
49 * XmlTextWriter2.cs : similar fix in WriteStartElement() to
50 previous change. Fixed bug #474091.
52 2009-02-09 Atsushi Enomoto <atsushi@ximian.com>
54 * XmlElementTest.cs: SetAttribute(name,value) should identify value
55 change for existing node, from new node insertion.
58 2009-02-06 Atsushi Enomoto <atsushi@ximian.com>
60 * XmlTextWriter2.cs : in WriteStartAttribute(), fill namespace in
61 case it is null and the prefix has matching ns. Fixed bug #472634.
63 2009-01-30 Atsushi Enomoto <atsushi@ximian.com>
65 * DTDValidatingReader2.cs, EntityResolvingXmlReader.cs : simplify
66 parsercontext provision.
67 * XmlValidatingReader.cs : expand parser context provision to
68 non-dtdvalidating readers.
70 2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
72 * XmlXapResolver.cs : fix assembly qualified names,
73 and give detailed errors.
74 * XmlResolver.cs : in 2.1 do not resolve relative Uri
77 2009-01-22 Atsushi Enomoto <atsushi@ximian.com>
79 * XmlXapResolver.cs : new in 2.1.
80 * XmlReaderSettings.cs : use above.
82 2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
84 * XmlDocumentNavigator.cs : in some corner cases an attribute
85 may have null OwnerElement. Fixed bug #458245.
87 2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
89 * XmlReaderBinarySupport.cs : do not hang in the middle of reading
90 byte chunk at some node types. Fixed bug #464229.
92 2009-01-14 Sebastien Pouliot <sebastien@ximian.com>
94 * NamespaceHandling.cs: New. Enum for Silverlight 2. Microsoft's
95 System.Xml.Linq.dll (often bundled in XAP files) needs it (or we
96 throw a TypeLoadException).
97 * XmlWriterSettings.cs: Add SL2 specific NamespaceHandling property
99 2009-01-08 Atsushi Enomoto <atsushi@ximian.com>
101 * XmlReader.cs : ReadContentAsString() does not reject non-elements.
102 ReadElementContentAsString() rejects non-content nodes.
104 2008-12-19 Atsushi Enomoto <atsushi@ximian.com>
106 * XmlNamespaceManager.cs : namespace lookup failed for non-atomic
107 string in 1.1 profile. Fixed 1.0 part of #379139.
109 2008-12-18 Atsushi Enomoto <atsushi@ximian.com>
111 * DTDValidatingReader.cs : remove unused file.
113 2008-11-04 Atsushi Enomoto <atsushi@ximian.com>
115 * XmlTextReader.cs : simply call ClearValueBuffer() on each Read().
117 2008-10-02 Atsushi Enomoto <atsushi@ximian.com>
119 * XmlDocumentNavigator.cs : added some overriden methods (to be
122 2008-09-24 Atsushi Enomoto <atsushi@ximian.com>
124 * XmlDocument.cs : it returns non-null Schemas by default (and
125 returns non-empty set after being set null).
127 2008-09-17 Atsushi Enomoto <atsushi@ximian.com>
129 * XmlReader.cs : detailed error location in ReadSubtree().
131 2008-09-17 Atsushi Enomoto <atsushi@ximian.com>
133 * XmlReader.cs : ReadSubtree() is valid only on an element.
135 2008-09-10 Atsushi Enomoto <atsushi@ximian.com>
137 * XmlDocument.cs, XmlDocumentNavigator.cs :
138 reduce navigator fields.
140 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
142 * EnityResolvingXmlReader.cs:
145 * XmlTextReader2.cs: re-enable ResolveEntity for 2.1
147 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
149 * XmlReaderSettings.cs: adding DtdProcessing and
150 MaxCharactersFromEntities properties for 2.1
152 2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
154 * DtdProcessing: adding this enum on the 2.1 build
156 2008-08-05 Jb Evain <jbevain@novell.com>
158 * XmlConvert.cs (ToChar): add a specific SL2 version.
160 2008-07-28 Atsushi Enomoto <atsushi@ximian.com>
162 * XmlNamespaceManager.cs : check null arg.
163 * XmlTextReader.cs : fixed bug #412657; now we populate nametable
164 and namespace manager in case they are null in parser context, and
165 use them instead of the members in the parser context.
167 2008-06-11 Atsushi Enomoto <atsushi@ximian.com>
169 * XmlConvert.cs : fixed bug #397934. Utc mode accepts more formats.
171 2008-06-11 Atsushi Enomoto <atsushi@ximian.com>
173 * XmlConvert.cs : no need for TARGET_JVM.
175 2008-06-09 Atsushi Enomoto <atsushi@ximian.com>
177 * XmlTextReader.cs : when Normalized is true, '<' after \r which
178 comes after text node was incorrectly consumed as a text content.
181 2008-06-05 Atsushi Enomoto <atsushi@ximian.com>
183 * XmlConvert.cs : now we can use roundtrip format for float/double.
186 2008-06-04 Atsushi Enomoto <atsushi@ximian.com>
188 * XmlTextReader2.cs : added FIXME comment which won't fix, that
189 I have noticed during fixing bug #378239.
191 2008-05-22 Atsushi Enomoto <atsushi@ximian.com>
193 * XmlReader.cs : some Create() overloads with baseUri argument did
194 not set baseUri correctly. Fixed bug #392385.
196 2008-05-07 Atsushi Enomoto <atsushi@ximian.com>
198 * XmlReader.cs : force CloseInput to every XmlReader that is created
199 from url (I mean, every internal XmlReader instance).
201 2008-04-17 Atsushi Enomoto <atsushi@ximian.com>
203 * XmlAttributeCollection.cs : check attribute identity only if the
204 source node is in the document tree. Fixed bug #380720.
206 2008-02-19 Atsushi Enomoto <atsushi@ximian.com>
208 * XmlParserContext.cs : .net does not populate XmlNamespaceManager
210 * XmlDocument.cs : so, always create one here.
212 2008-01-25 Atsushi Enomoto <atsushi@ximian.com>
214 * XmlReader.cs : MoveToNextSibling() should check EOF (as Skip() does
215 not). Fixed bug #347768.
217 2008-01-15 Atsushi Enomoto <atsushi@ximian.com>
219 * XmlParserContext.cs : do not pass invalid URI to XmlTextReader#ctor
220 even as a dummy. Fixed bug #353654.
222 2007-12-17 Atsushi Enomoto <atsushi@ximian.com>
224 * XmlConvert.cs : added NET_3_5 members.
226 2007-12-06 Atsushi Enomoto <atsushi@ximian.com>
228 * XmlUrlResolver.cs : in net_2_0, use Uri.IsAbsoluteUri to filter
231 2007-11-09 Atsushi Enomoto <atsushi@ximian.com>
233 * XmlConvert.cs : ToDateTime(XmlDateTimeSerializationMode) should
234 allow more strings than existing one. Fixed bug #339004.
236 2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
238 * XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
239 not Parse(). Use 'K' for roundtrip format.
241 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
243 * XmlTextWriter2.cs : making <del>silly</del>funky MS compatibility
244 change in WriteStartAttribute() to call WriteEndAttribute() if an
247 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
249 * XmlTextWriter2.cs : I could make previous change only in 2.0 mode.
251 2007-10-10 Atsushi Enomoto <atsushi@ximian.com>
253 * XmlTextWriter2.cs : When it is at Error state, do not try to close
254 attributes and elements at Close(). They will result in further
255 error and rather hide the actual issue when disposed.
257 2007-09-28 Atsushi Enomoto <atsushi@ximian.com>
259 * XmlWriter.cs : it is now documented that WriteNode(XPathNavigator)
260 ignores attributes and namespace decls, so do that.
261 * XQueryConvert.cs : removed extra stuff that are not in use.
263 2007-09-27 Atsushi Enomoto <atsushi@ximian.com>
265 * XmlWriter.cs : implemented WriteValue(object) based on
266 MSDN "Writing Typed Data" with some fix.
267 http://msdn2.microsoft.com/en-us/library/bft97s8e(VS.80).aspx
268 * XmlTextWriter.cs : state check is extraneous. It caused unexpected
269 rejection of empty namespace URI.
271 2007-08-13 Atsushi Enomoto <atsushi@ximian.com>
273 * XmlTextWriter2.cs : fix extraneous indentation which is put after
276 2007-08-09 Jb Evain <jbevain@novell.com>
278 * XmlTextReader.cs: Avoid using 2.0 only feature in 2.1.
280 2007-08-09 Jb Evain <jbevain@novell.com>
282 * XmlConvert.cs: use 2.1 available overloads of Parse.
284 2007-08-09 Jb Evain <jbevain@novell.com>
286 * XmlInputStream.cs: there's no ASCII encoding in 2.1.
288 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
290 * XmlReader.cs XmlNodeReader2.cs XmlTextReader.cs XmlTextReader2.cs
291 XmlNodeReaderImpl.cs EntityResolvingXmlReader.cs :
292 The previous attempt was wrong. Those internal-virtualized ones
293 could be used in System.Xml.Core classes and outside the assembly
294 any derived XmlReaders would have thrown throw Exception.
295 Now I marked them as nonexistent-in-2.1 or privatized.
296 * XmlWriter.cs : actually only this class is affected (if there
297 were DOM or XSD they would have been affected as well).
299 2007-08-09 Atsushi Enomoto <atsushi@ximian.com>
301 * XmlReader.cs : HasValue, ReadAttributeValue() and ResolveEntity()
302 do not exist in 2.1 profile. Hiding abstract stuff seems to cause
303 some issues at run time, so they are ifdef-ed out from 2.1.
304 * XmlNodeReader2.cs DTDValidatingReader2.cs XmlTextReader.cs
305 XmlTextReader2.cs XmlNodeReaderImpl.cs DTDValidatingReader.cs
306 EntityResolvingXmlReader.cs : hence the change above.
308 2007-08-04 Jb Evain <jbevain@novell.com>
310 * XmlUrlResolver.cs: remove code duplication in 2.1.
312 2007-08-04 Jb Evain <jbevain@novell.com>
314 * XmlTextReader.cs, XmlConvert.cs, XmlReaderBinarySupport.cs:
315 Use the available constructor for the 2.1 profile.
317 2007-08-03 Atsushi Enomoto <atsushi@ximian.com>
319 * DTDObjectModel.cs : in 2.0 and especially 2.1 profiles, use
320 our own DictionaryBase-like generic type. It is to reduce
321 dependency on DictionaryBase which does not exist in 2.1 mscorlib.
322 (included in 2.0 as well so that we do not skip NUnit tests so far)
324 2007-08-03 Atsushi Enomoto <atsushi@ximian.com>
326 * XmlResolver.cs, XmlUrlResolver.cs, XmlSecureResolver.cs :
327 remove ICredential in NET_2_1 (they have to be explicitly removed
328 outside tuner work as ICredentials does not exist in 2.1 profile).
329 We cannot use WebRequest in 2.1 as well, so remove dependency on
330 it in GetEntity() (and added MonoTODO for non-file URLs).
332 2007-07-12 Atsushi Enomoto <atsushi@ximian.com>
334 * XmlWriter.cs : in WriteNode(XPathNavigator,bool), default namespace
335 is broken. Fixed bug #82051.
337 2007-07-11 Atsushi Enomoto <atsushi@ximian.com>
339 * XmlReader.cs : looks like I introduced extra Settings check at
340 r69383. Fixed bug #82062.
342 2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
344 * DTDValidatingReader2.cs :
345 we can remove NET_2_1 from this unused code in SL.
347 2007-07-04 Atsushi Enomoto <atsushi@ximian.com>
349 * DTDAutomata.cs DTDObjectModel.cs DTDReader.cs
350 DTDValidatingReader2.cs XmlException.cs XmlReader.cs
351 XmlReaderSettings.cs XmlWriter.cs :
352 Make System.Xml.Core.dll build easier, using NET_2_1.
354 DTD support is simply cut at this stage (as it largely depends on
355 sys.xml.schema stuff).
357 2007-06-30 Gert Driesen <drieseng@users.sourceforge.net>
359 * XmlTextReader.cs: Expose ProhibitDtd on 1.0 profile too.
361 2007-06-13 Atsushi Enomoto <atsushi@ximian.com>
363 * XmlNode.cs : InnerText is settable on XmlDocumentFragment (silly,
364 but since XmlDocumentFragment does not override this property
365 it must be handled here).
367 2007-06-11 Atsushi Enomoto <atsushi@ximian.com>
369 * XmlTextReader.cs : ReadStartElement() has bogus error message.
371 2007-05-31 Atsushi Enomoto <atsushi@ximian.com>
373 * XmlTextWriter2.cs :
374 NewLineOnAttributes indentation fix, for bug #81770.
376 2007-05-25 Atsushi Enomoto <atsushi@ximian.com>
378 * XQueryConvert.cs : removed unused methods. They will prevent
379 System.Xml.Core.dll implementation.
381 2007-05-15 Konstantin Triger <kostat@mainsoft.com>
383 * XmlWriter.cs, XmlTextWriter2.cs: ensure the file
384 is closed in XmlWriter.Create(filename).
386 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
388 * XmlConvert.cs : MinValue and MaxValue, same for ToDateTime().
390 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
392 * XmlConvert.cs : MinValue and MaxValue are unchanged by the
393 serialization mode (unlike DateTime.ToString()).
395 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
397 * XmlConvert.cs : in 2.0, use F instead of f in dateTime formatting.
399 2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
401 * XmlReader.cs : fixed wrong depth comparison in ReadToNextSibling().
402 Fixed bug #81451, by Eric Mercier.
404 2007-04-03 Atsushi Enomoto <atsushi@ximian.com>
406 * XmlTextReader.cs : character ']' inside DTD comment caused parser
407 error. Fixed bug #81294.
409 2007-03-05 Atsushi Enomoto <atsushi@ximian.com>
411 * XmlReader.cs : when Create() returns customized XmlTextReader, set
412 EntityHandling.ExpandEntities. Fixed bug #81000.
414 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
416 * XmlTextReader.cs, XmlTextReader2.cs : Reset() should work now.
419 2007-02-20 Atsushi Enomoto <atsushi@ximian.com>
421 * DTDValidatingReader2.cs, XmlTextReader.cs, XmlNodeReaderImpl.cs:
422 Read() silently returns false when it is closed. Fixed bug #80848.
424 2007-02-07 Atsushi Enomoto <atsushi@ximian.com>
426 * XmlReader.cs : ReadElementContentAsString() and all relevant methods
427 didn't consume empty element correctly.
429 2006-12-20 Atsushi Enomoto <atsushi@ximian.com>
431 * XmlNode.cs : (InsertBefore) when newChild == refChild, do nothing
432 except for node type check. Fixed bug #80331.
434 2006-12-19 Atsushi Enomoto <atsushi@ximian.com>
436 * XmlTextReader.cs : Fixed ReadChars() to consume child elements,
437 including such cases that it breaks tags in the middle of multiple
438 ReadChars() calls. Fixed bug #80308.
440 2006-12-19 Atsushi Enomoto <atsushi@ximian.com>
442 * XmlTextReader.cs : ReadChars() does not have to store characters,
443 so avoid extra storing. Patch by Csaba Halasz, fixed bug #80306.
445 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
447 * XmlNode.cs : InnerText was returning comment text when there was
448 only a Comment node. Fixed bug #80233.
450 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
452 * XmlReader.cs : Create() with string url was not returning validating
455 2006-12-12 Atsushi Enomoto <atsushi@ximian.com>
457 * DTDValidatingReader2.cs : when an attribute declaration is missing
458 in the corresponding attlist declaration, it caused NRE.
461 2006-12-11 Atsushi Enomoto <atsushi@ximian.com>
463 * XmlDocument.cs : call overriden CreateAttribute() when loading from
466 2006-12-05 Atsushi Enomoto <atsushi@ximian.com>
468 * XmlReader.cs : new 2.0 MoveToAttribute(int) failed to move to the
469 final attribute in an element.
471 2006-12-05 Atsushi Enomoto <atsushi@ximian.com>
473 * XmlNode.cs : GetPrefixOfNamespace() was not correctly searching
474 ancestors' namespaces.
476 2006-11-20 Atsushi Enomoto <atsushi@ximian.com>
478 * XmlTextWriter2.cs : fixed some relationship between
479 ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
480 See new tests more details.
481 * XmlWriter.cs : it could reuse XmlTextWriter.ctor(TextWriter,
482 XmlWriterSettings). It also resulted in dropping several internal
483 members in XmlTextWriter.
485 2006-11-14 Atsushi Enomoto <atsushi@ximian.com>
487 * XmlReaderSettings.cs : in copy constructor, copy (dispatch)
488 validation event as well. Add OnValidationError() to be invoked
489 by other internal stuff to raise the validation event.
491 2006-11-13 Michael Meeks <michael.meeks@novell.com>
493 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs:
494 pass the XmlResolver through to the GetStream impl.
496 2006-10-30 Atsushi Enomoto <atsushi@ximian.com>
498 * XmlTextReader2.cs : if DTD does not exist, do not try to resolve
499 entity from null DTD (caused NRE). Fixed bug #79620.
501 2006-10-27 Atsushi Enomoto <atsushi@ximian.com>
503 * DTDReader.cs : some parameter entity expansions were not done.
506 2006-09-27 Atsushi Enomoto <atsushi@ximian.com>
508 * XmlTextWriter2.cs : null arg check.
510 2006-09-26 Atsushi Enomoto <atsushi@ximian.com>
512 * XmlDeclaration.cs :
513 Removed bogus return statement in Value. Fixed bug #79496.
515 2006-09-21 Atsushi Enomoto <atsushi@ximian.com>
517 * XmlNameEntryCache.cs : It should expand temporary buffer even at
518 initial state. Fixed bug #79468.
520 2006-09-19 Atsushi Enomoto <atsushi@ximian.com>
522 * XmlElement.cs : for non-atomized names, alter null prefix with "".
525 2006-09-04 Atsushi Enomoto <atsushi@ximian.com>
527 * XmlReader.cs : ReadContentAsString() and its family should allow
528 attribute node. Fixed bug #79268.
530 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
532 * XmlTextWriter2.cs : expect atomized names only when it is
533 appropriate. Fixed bug #79047.
535 2006-08-26 Atsushi Enomoto <atsushi@ximian.com>
537 * XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
538 so that it could fill default and fixed attributes. This ends up
539 to fix bug #79163 (it fills fixed "xmlns" attribute and thus
540 the node's namespace URI becomes that of glade-2.0).
542 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
544 * XmlEntity.cs, XmlEntityReference.cs, XmlNode.cs :
545 create entity content only when its children is being accessed.
546 It results differently when there is no actual reference in the
547 document - an invalid entity value (when it is used to create
548 child nodes) is ignored unless a code tries to access the Value
549 of an XmlEntity. Fixed bug #79091
550 * DTDReader.cs : the fix above uncovered another bug (ibm66n03.xml).
551 Check illegal reference name in literal entity value.
553 2006-08-17 Atsushi Enomoto <atsushi@ximian.com>
555 * XmlTextReader.cs, XmlTextReader2.cs, DTDReader.cs :
556 (ResolveExternalEntityReplacementText) need to skip text
557 declaration in external entities. To make it possible internalize
558 SkipTextDeclaration() in XmlTextReader(2). Fixed bug #79090.
560 2006-08-16 Atsushi Enomoto <atsushi@ximian.com>
562 * XmlTextReader2.cs : Check recursive entity reference.
563 Fixed bug #79085. It makes W3C standalone tests on NET_2_0 working.
565 2006-08-14 Atsushi Enomoto <atsushi@ximian.com>
567 * XmlTextReader.cs : When a whitespace node comes after a text
568 declaration in XML external entity (i.e. .ctor() with
569 XmlNodeType.Element), it contained extra value character ('<').
571 2006-08-10 Atsushi Enomoto <atsushi@ximian.com>
573 * XmlTextWriter2.cs : more indentation fixes. Now I believe it is
574 almost MS compat, but it won't help poor Mike.
576 2006-08-07 Atsushi Enomoto <atsushi@ximian.com>
578 * XmlTextWriter2.cs : WriteBinHex() is allowed at Attribute state.
581 2006-07-28 Atsushi Enomoto <atsushi@ximian.com>
583 * XmlTextWriter2.cs : fixed some indentation bugs: comments and PIs
584 should not cause indentation override like text, cdata and
586 Fixed some error messages on node kind.
587 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs : removed old code.
588 (I don't want to remove old great code but it confused mike today.)
590 2006-07-26 Atsushi Enomoto <atsushi@ximian.com>
593 For DTD validator, call to SetSchemas() makes no sense.
594 * XmlValidatingReader.cs : now it internally holds old
595 XmlSchemaCollection instead of new XmlSchemaSet, to make
596 XmlSchemaSet.SchemaCollection unneccessary.
597 Removed SetSchemas() since it is now extraneous because of the
598 XmlReaderChange above.
600 2006-07-25 Atsushi Enomoto <atsushi@ximian.com>
602 * XmlConvert.cs : TimeSpan conversion for TimeSpan.MinValue was
605 2006-07-19 Atsushi Enomoto <atsushi@ximian.com>
607 * XmlReader.cs : In Create(), support validation flags for DTD.
608 * DTDValidatingReader2.cs : when NET_2_0 and ProcessIdentityConstraints
609 is false, skip ID validation.
611 2006-06-26 Atsushi Enomoto <atsushi@ximian.com>
613 * XmlReader.cs : when Create() received string url, it should set
614 XmlTextReader2.CloseInput always true. Fixed bug #78706.
616 2006-06-08 Atsushi Enomoto <atsushi@ximian.com>
618 * XmlTextWriter2.cs : if an attribute being written has the same
619 non-empty namespace URI as current default namespace, its prefix
620 should be written. Fixed bug #78598.
622 2006-05-09 Atsushi Enomoto <atsushi@ximian.com>
624 * XmlAttribute.cs : (WriteTo) when the namespace URI is empty,
625 always use empty string for prefix.
627 2006-04-27 Geoff Norton <gnorton@customerdna.com>
629 * XmlDocument.cs: Move back to the element after
630 reading an attribute. This mimics Microsofts behaviour.
632 2006-04-21 Atsushi Enomoto <atsushi@ximian.com>
634 * XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
635 rejected after writing some content. I totally disagree on that
636 it should be allowed, but here is the fix.
638 2006-04-14 Atsushi Enomoto <atsushi@ximian.com>
640 * XmlReader.cs : ReadElementContentAsObject() incorrectly rejected
641 the argument type System.Object.
643 2006-04-10 Atsushi Enomoto <atsushi@ximian.com>
645 * XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
646 and root nodes instead of dispatching to ReadSubtree().
648 2006-04-06 Atsushi Enomoto <atsushi@ximian.com>
650 * XmlReader.cs : ReadElementContentAsXXX() did not consume empty
653 2006-04-05 Atsushi Enomoto <atsushi@ximian.com>
655 * XmlWriter.cs : Create(StringBuilder,XmlWriterSettings) was missing
656 settings argument to pass another .ctor().
657 * XmlWriterSettings.cs : set_NewLineChars() should reject null.
659 2006-04-03 Boris Kirzner <borisk@mainsoft.com>
660 * XmlException.cs: fix .net soap serialization compatibility.
662 2006-03-28 Atsushi Enomoto <atsushi@ximian.com>
664 * XmlNameEntry.cs XmlNameEntryCache.cs :
665 Added atomization support for prefixed names.
666 Inspired by Joshua Tauberer's patch.
667 * XmlElement.cs XmlAttribute.cs : use above.
669 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
671 * XmlReader.cs : in XmlReader.Create() ValidationType Auto and XDR
672 are simply ignored (it was found on running NvdlValidatingReader
675 2006-03-23 Atsushi Enomoto <atsushi@ximian.com>
677 * DTDValidatingReader.cs : avoid NullReferenceException. Input
678 XmlReader might not be IHasXmlParserContext.
680 2006-03-08 Atsushi Enomoto <atsushi@ximian.com>
682 * XmlReader.cs: ReadContentAsXXX() just stops at start element,
683 without rejecting it as an error.
684 ReadElementContentAsXXX() rejects child element nodes.
686 2006-02-28 Atsushi Enomoto <atsushi@ximian.com>
688 * XmlElement.cs : (WriteTo) use IsEmpty to determine which to use:
689 WriteEndElement() and WriteFullEndElement(). Fixed sys.security
692 2006-02-24 Atsushi Enomoto <atsushi@ximian.com>
694 * XmlTextWriter2.cs :
695 WriteRaw() has stupid second arg. Fixed bug #77623.
696 WriteString() should raise an error when it is called immediately
697 after WriteStartDocument().
699 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
701 * XmlTextWriter2.cs : WriteChars() should allow Attribute state.
703 2006-02-22 Atsushi Enomoto <atsushi@ximian.com>
705 * XmlChar.cs : (IndexOfInvalidChar) fixed surrogate pairs handling.
706 They were always regarded as invalid.
707 * XmlTextWriter2.cs : seems like MS XmlTextWriter outputs invalid
708 characters as character references. It totally does not make sense
709 but corcompare depended on that behavior.
711 This "compatibility" fix causes 10% or more performance loss!!!
713 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
715 * XmlTextWriter2.cs : (WriteStartAtribute) more == removal.
716 * XmlNode.cs : (get_InnerText) reduce extra StringBuilder creation.
718 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
720 * XmlTextWriter2.cs : (WriteStartAttribute) reduced string == string.
722 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
724 * XmlDocument.cs : (ReadNodeCore) not public.
726 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
728 * XmlTextWriter2.cs : (CloseStartElement)
729 Avoid ArrayList.Clear() and culture-sensitive Contains().
731 2006-02-21 Atsushi Enomoto <atsushi@ximian.com>
733 * XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
734 which discards "overriden" namespaces.
735 * XmlTextWriter2.cs : fresh implementation.
736 - The source structure is simplified and cleaner.
737 - When outputting escaped string, output directly to TextWriter.
738 - roughly 20% performance improvement.
740 (Also fixed previous perf. evaluation excess in ChangeLog.)
742 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
744 * XmlElement.cs : (WriteTo) make use of HasAttributes. Remove extra
745 check. 5% speed improvement.
747 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
749 * DTDValidatingReader2.cs : added Source XmlReader property for
750 XsdValidatingReader use (see XsdValidatingReader change as well).
752 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
754 * EntityResolvingXmlReader.cs, XmlNodeReader2.cs, XmlTextReader2.cs :
755 in get_NodeType() entity reader existence check is faster.
756 * DTDValidatingReader2.cs : IsDefault could be avoided.
758 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
760 * XmlNodeReaderImpl.cs : optimized Depth.
762 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
764 * XmlValidatingReader.cs : reducing layered ReadState invocation
765 results in 10% speed up.
767 2006-02-20 Atsushi Enomoto <atsushi@ximian.com>
769 * XmlNodeReaderImpl.cs : Reimplemented Read(). Points are:
770 - reduced call to NextSibling which is very unlikely to be inlined
771 - reorganized conditioning to avoid extra check
772 - added description on each returning branch.
773 - And then, removed unused code.
774 It is 1.5x faster than before.
776 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
778 * XmlElement.cs : NextSibling could be effectively computed using
779 LastLinkedChild, beyond previous XmlLinkedNode optimization.
781 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
783 * XmlLinkedNode.cs : In NextSibling, use LastChild directly.
784 It improves NextSibling performance in bulky document.
786 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
788 * XmlNodeReaderImpl.cs : do not compute ownerLinkedNode, just store
789 it in Read(). Simply use state field in EOF. They result in 20%
790 perf. boost. Expanding EOF also improved performance by 2-3%
791 (mono --optimize=inline might work in the later stage).
793 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
795 * DTDValidatingReader2.cs : more refactoring. Split ReadContent()
796 into some methods. Reduced some extra MoveToElement().
798 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
800 * DTDValidatingReader2.cs : more refactoring. Removed and simplified
801 some error check. String += would be enough for entity-reference-
802 mixed attributes which rarely happen, so simplify the code.
803 Added comments on how the fields are used.
805 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
807 * DTDValidatingReader2.cs : attribute node simplification. It now
808 stores attribute node slots, including default attributes for
811 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
813 * DTDValidatingReader2.cs, EntityResolvingXmlReader.cs :
814 new files for refactoring DTD validating reader. As the first stage,
815 it splits entity handling process from DTD validation step.
817 (DTDValidatingReader.cs will be removed at some stage).
819 2006-02-17 Atsushi Enomoto <atsushi@ximian.com>
821 * DTDObjectModel.cs : entity resolution method will be used in
822 the next DTD validating reader in 1.x.
824 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
826 * IHasXmlChildNode.cs :
827 New internal interface to hold LastLinkedChild.
828 * XmlNodeListChildren.cs XmlEntity.cs XmlElement.cs XmlAttribute.cs
829 XmlLinkedNode.cs XmlEntityReference.cs XmlNode.cs
830 XmlDocumentFragment.cs XmlDocument.cs : use it. It minimizes memory
831 consumption in XmlText, XmlWhitespace, XmlComment etc.
833 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
835 * XmlChar.cs : added IndexOfNonWhitespace() and IndexOfInvalid() (not
837 * NewLineHandling.cs : prepared to be used internally in 1.x.
839 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
841 * XmlDocument.cs XmlTextReader.cs : in ReadNode(), we can avoid
842 extraneous whitespace node creation for XmlTextReader by setting
843 WhitespaceHandling.Significant when PreserveWhitespace is false.
845 2006-02-16 Atsushi Enomoto <atsushi@ximian.com>
847 * XmlTextReader.cs : atomize whitespace values. It effectively saves
848 memory consumption when an input XML is indented.
850 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
852 * XmlTextReader.cs : When "Significant" is assigned to
853 WhitespaceHandling, it should ignore non-significant whitespaces.
855 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
857 * XmlWriter.cs : (WriteElementString and WriteAttributeString)
858 Skip empty string output.
860 2006-02-14 Atsushi Enomoto <atsushi@ximian.com>
862 * XmlTextWriter.cs : WriteRaw("") is not simply ignored but process
863 state check and closes open tag.
865 2006-02-11 Atsushi Enomoto <atsushi@ximian.com>
868 Avoid extra AppendValueChar() in ReadWhitespace().
870 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
872 * XmlTextReader.cs : ReadTextReader() is now assured to have current
873 node content, except for Text, CDATA and Comment. ReadName() does
874 not use nameBuffer and reuse peekChars.
876 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
878 * XmlTextReader.cs : eliminated currentTagBuffer. XmlDeclaration is
879 now once read as PI and then re-parsed from Value. DTD internal
880 subset is now parsed as usual "value".
882 2006-02-06 Atsushi Enomoto <atsushi@ximian.com>
884 * XmlTextReader.cs : Expect() could be written inline and it could
885 provide better information. ReadEndTag() could use Expect() instead
888 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
890 * XmlTextReader.cs : on ReadEndTag() we can avoid NameTable.Add().
891 Store name, local name and prefix in the stack instead of just name
892 and reuse them for EndElement.
894 2006-02-04 Atsushi Enomoto <atsushi@ximian.com>
896 * XmlDocumentNavigator.cs : make use of HasAttributes (avoid possible
897 XmlAttributeCollection creation).
899 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
901 * XmlTextReader.cs : no need to call Clear() for each attribute value.
903 2006-02-03 Atsushi Enomoto <atsushi@ximian.com>
905 * XmlDocument.cs : reverted most of the previous changes. It somehow
906 broke System.Data tests.
908 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
910 * XmlDocument.cs, XmlAttribute.cs, XmlElement.cs : Avoid unnecessary
911 name checks in CreateElement() and CreateAttribute().
912 get_DocumentType() could be stopped when the iterated child node
913 is the document element.
914 * XmlNode.cs : removed commented lines.
915 * XmlNameEntry.cs : hash code for a name entry is mostly identical by
916 its local name, so avoid extraneous GetHashCode() especially on
919 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
921 * XmlReader.cs : ReadOuterXml() returns meaingful value only for
922 element and attribute. ReadInnerXml() does not have to create
923 XmlTextWriter for empty elements.
925 2006-01-30 Atsushi Enomoto <atsushi@ximian.com>
927 * XmlNodeReader2.cs XmlException.cs XmlReader.cs XmlTextReader.cs
928 XmlWriter.cs XmlTextWriter.cs XmlValidatingReader.cs
929 XmlNodeReaderImpl.cs DTDValidatingReader.cs XmlSecureResolver.cs:
930 cleaning up obsolete NET_1_0 code.
932 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
934 * XmlTextWriter.cs : avoid case-insensitive String.Compare().
935 Use array for openElements rather than ArrayList.
937 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
939 * XmlElement.cs, XmlAttribute.cs :
940 Avoid ChildNodes.Count and use FirstChild/NextSibling.
942 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
944 * XmlNode.cs, XmlIteratorNodeList.cs :
945 Now we can enable XmlIteratorNodeList again (mcs, incorrectly
946 removing nodes in the node list, was fixed).
948 2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
950 * XmlDocument.cs : in ReadNode() to consume element node, switched
951 to MoveToAttribute(int) since MoveToNextAttribute() was somehow
952 not working fine. It is needed to avoid Sys.Data test breakage
953 and anything else should be fixed indeed.
955 Fri Jan 27 20:39:48 CET 2006 Paolo Molaro <lupus@ximian.com>
957 * XmlTextReader.cs, XmlChar.cs: more tweaks and speedups.
959 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
961 * XmlTextReader.cs : optimization patch by Paolo.
962 Fast path optimization in PeekChar().
963 Avoid double-evaluation of PeekChar() and ReadChar() by new
966 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
968 * XmlNode.cs : disabled XmlIteratorNodeList optimization. It caused
969 some kind of regression under mcs/tests/xml-025.cs.
971 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
973 * XmlAttributeCollection.cs :
974 Replaced all Nodes.Count with Count (it could avoid extraneous
975 ArrayList creation in XmlNamedNodeMap). ID attribute adjustment
976 was extraneously done against all attribute nodes and thus there
977 was a plenty of call to Value.
978 * XmlNamedNodeMap.cs : added comment on SetNamedItem() W3C spec
981 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
987 Added internal AppendChild() override that omites node type
988 checking, and used it in many places.
990 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
992 * XmlDocument.cs : optimized ReadAttributeNode() to not call
993 MoveToAttribute() unneccesarily (call it only when ReadNode() is
994 called on an attribute node).
996 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
999 in get_InnerText(), avoid extraneous StringBuilder creation.
1001 2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
1003 * XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
1004 It does not iterate all nodes in advance.
1005 * XmlNode.cs : use XmlIteratorNodeList in SelectNodes().
1007 2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
1009 * XmlWriter.cs : Dispose() is protected.
1011 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
1013 * XmlNamedNodeMap.cs : lazily create internal ArrayList. Thanks to
1014 Joshua Tauberer for the hint.
1016 2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
1018 * XmlConvert.cs : ToString(TimeSpan) should return valid duration
1019 for TimeSpan.Zero, rather than "P". Fixed bug #77350
1021 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
1023 * XmlNameEntryCache.cs XmlNameEntry.cs :
1024 Made name entry fields as not read-only. Added Update() to reset
1025 members. Its semantics of Equals() is changed.
1026 Now entry cache is based on Hashtable rather than ArrayList.
1027 It saves heavy iteration in ArrayList.
1029 2006-01-24 Atsushi Enomoto <atsushi@ximian.com>
1031 * XmlNameEntryCache.cs XmlNameEntry.cs XmlDocument.cs :
1032 Add Hash field to find name entry quickly.
1033 In XmlNameEntryCache make use of name table (it is totally
1034 unused there though).
1036 2006-01-16 Atsushi Enomoto <atsushi@ximian.com>
1038 * XmlConvert.cs : handle Ticks. Fixed bug #77252.
1040 2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
1042 * XmlTextWriter.cs : Fixed bug #77082.
1043 When the state was Start, after WriteProcessingInstruction() and
1044 WriteWhitespace() change it to Prolog.
1045 After WriteDocType() set state to WriteState.Element.
1047 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
1049 * XmlTextWriter.cs : Do not local duplicate of automatically-created
1050 prefixes (i.e. check local autocreated prefixes other than
1051 namespaces from ancestors). Fixed bug #77086 and #77087.
1053 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
1055 * XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
1056 ArgumentException in WriteNmTokenInternal().
1058 2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
1060 * XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
1061 such invalid "xml" prefix which is being mapped to different
1062 namespace URI than the predefined one.
1063 Removed comment that does not make sense.
1064 * XmlNamespaceManager.cs : IsValidDeclaration() could be private.
1065 Added some comments.
1067 2006-01-11 Atsushi Enomoto <atsushi@ximian.com>
1069 * DTDObjectModel.cs : dtd2xsd fix; set use="optional" when an
1070 attribute is #IMPLIED.
1072 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
1074 * XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
1075 ReadSubtree() for non-element content since they are not allowed
1076 in ReadSubtree() (but allowed here).
1078 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
1080 * XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
1081 nodes as target string nodes as well as other text nodes.
1083 2006-01-06 Atsushi Enomoto <atsushi@ximian.com>
1085 * XmlValidatingReader.cs : ReadTypedValue() was not working with
1086 non-XmlSchemaDatatype types.
1088 2006-01-05 Gert Driesen <drieseng@users.sourceforge.net>
1090 * XmlTextWriter.cs: Modified WriteWhitespace to throw ArgumentException
1091 if value is null or zero-length string. Modified WriteNmToken to throw
1092 ArgumentException if name is null or zero-length string. Cosmetic
1093 change to WriteStringInternal.
1094 * XmlElement.cs: In 2.0 profile, do not throw ArgumentNullException
1095 if new value for Prefix is null.
1097 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
1099 * XmlTextWriter.cs : when namespaceURI is String.Empty, Prefix
1100 should be just ignored (it is likely to happen that DOM nodes
1101 with empty namespace URI are specified non-empty prefix by
1102 users, which had better be just ignored). Fixed bug #77095.
1104 2005-12-26 Atsushi Enomoto <atsushi@ximian.com>
1106 * XmlElement.cs : patch for Prefix property by Vorobiev Maksim.
1107 - null should cause ArgumentNullException.
1108 - "" should not raise an error.
1109 - throws ArgumentException when it is readonly.
1111 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
1113 * XmlTextWriter.cs : When xml:space or xml:lang attribute was
1114 directly written without an element, it caused ArgumentOutOfRange.
1117 2005-12-23 Atsushi Enomoto <atsushi@ximian.com>
1119 * XmlTextWriter.cs : (WriteStartAttribute) set prefix as "xmlns" when
1120 namespaceURI is that of xmlns attributes. Fixed bug #77083.
1122 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
1124 * DTDObjectModel.cs : (CreateXsdParticle) element particle was
1125 missing occurence indicators.
1127 2005-12-15 Atsushi Enomoto <atsushi@ximian.com>
1129 * DTDObjectModel.cs : some fixes on GetXmlSchema()
1130 - make generated schema cleaner.
1131 - enumeration was missing for attribute type.
1132 * XmlTextReader.cs, XmlTextReader2.cs : added tiny notes for dtd2xsd.
1134 2005-12-15 Konstantin Triger <kostat@mainsoft.com>
1136 * XmlTextWriter.cs: allow null string in WriteCData.
1138 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1140 * XmlNode.cs : (GetNamespaceOfPrefix) return const xml/xmlns URIs
1143 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1145 * XmlDocumentNavigator.cs : added UnderlyingObject as to behave as
1148 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1150 * XmlNode.cs : under 2.0 xml/xmlns are treated as special cases in
1151 GetNamespaceOfPrefix()/GetPrefixOfNamespace() (but it still does not
1152 implement IXmlNamespaceResolver, bummer).
1154 2005-12-14 Atsushi Enomoto <atsushi@ximian.com>
1156 * XmlDocument.cs : changed some exception types.
1157 * XmlDocumentNavigator.cs : added 2.0 SchemaInfo.
1159 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
1161 * XmlTextReader.cs : 1.x build fix.
1163 2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
1165 * XmlTextReader.cs : when XmlReader.Create() creates this instance,
1166 don't expect strict text declaration. Check SkipTextDeclaration()
1169 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
1171 * XmlReader.cs : fixed several misconception in MoveToNextSibling().
1172 It should check its ReadState to avoid infinite loop.
1174 2005-12-12 Atsushi Enomoto <atsushi@ximian.com>
1176 * XmlException.cs : added another .ctor() overload that takes both
1177 IXmlLineInfo and innerException.
1178 * XmlQualifiedName.cs : added Parse() overload that takes XmlReader
1179 (since XmlReader is not IXmlNamespaceResolver anymore).
1180 * XmlReader.cs : made several fixes on 2.0 ReadContentAs(),
1181 ReadElementContentAs() and all of its variants.
1183 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
1185 * XmlInputStream.cs :
1186 Added Encoding property on NonBlockingStreamReader
1187 * XmlTextReader.cs :
1188 set Encoding property when it proceeds to xml declaration.
1190 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
1192 * XmlReader.cs : ReadToDescendant() should work when its ReadState is
1195 2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
1197 * XmlChar.cs : removed incorrect comment.
1198 * XmlReader.cs : Create() clones XmlReaderSettings (if supplied).
1199 For wrapped XmlReader, check ConformanceLevel to be consistent.
1200 * XmlTextReader.cs, XmlTextReader2.cs : added get_Conformance for
1201 internal use. Removed unused fields.
1202 * XmlInputStream.cs : updated NonBlockingStreamReader to the latest
1203 StreamReader (it is almost a copy).
1205 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1207 * XmlTextReader.cs : avoid Char.IsSurrogate() and do it inside
1208 PeekChar(), which improves notable performance.
1210 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1212 * XmlReaderSettings.cs : Schemas will be created only when it is
1215 2005-12-08 Andrew Skiba <andrews@mainsoft.com>
1217 * IXmlNamespaceResolver.cs: delete TARGET_JVM,
1218 no need to mangle the name
1220 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1222 * Driver.cs, Profiler.cs, XmlQualifiedNameTable.cs :
1225 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1227 * XmlReaderSettings.cs : thanks to idiotic MS design,
1228 AllowXmlAttributes is turned on by default.
1230 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1232 * XmlReaderSettings.cs :
1233 set_Schemas() is fixed in 2.0 RTM (it just works).
1234 * XmlResolver.cs : throw ArgumentNullException instead of
1235 ArgumentException when both base and relative urls are null.
1237 2005-12-08 Atsushi Enomoto <atsushi@ximian.com>
1239 * XmlReaderSettings.cs : ProhibitDtd is set as default.
1240 * XmlWriterSettings.cs : no set_OutputMethod.
1242 2005-11-30 Konstantin Triger <kostat@mainsoft.com>
1244 * IXmlNamespaceResolver.cs: TARGET_JVM namespace change.
1246 2005-11-17 Vladimir Krasnov <vladimirk@mainsoft.com>
1248 * XmlInputStream.cs: fixed Initialize method to be able
1249 to read unicode file without BOM. TARGET_JVM only.
1251 2005-11-14 Atsushi Enomoto <atsushi@ximian.com>
1253 * XmlNodeReader.cs : removed historical one.
1255 2005-11-10 Atsushi Enomoto <atsushi@ximian.com>
1257 * XmlReader.cs, XmlNode.cs :
1258 [DebuggerDisplay] are not worthy of existing.
1260 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1262 * XmlTokenizedType.cs, XmlNodeOrder.cs : so those enums happen to
1263 have [Serializable] in .NET 1.x, and removed in 2.0 (enums are
1264 anyways serializable, so those attributes do not make sense).
1266 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1268 * XmlValidatingReader.cs : added CanReadBinaryContent.
1269 * XmlTextReader.cs, XmlTextReader2.cs : GetNamespacesInScope() are
1270 now both public and private (i.e. hush IsVirtual).
1271 * XmlWriterSettings.cs, XmlWriter.cs, XmlTextWriter.cs :
1272 NormalizeNewLines vanished.
1274 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1276 * XmlReader.cs : MoveToAttribute(int) is virtual in NET_2_0.
1278 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1280 * XmlConvert.cs : implemented VerifyTOKEN().
1282 2005-11-09 Atsushi Enomoto <atsushi@ximian.com>
1284 * XmlConvert.cs : VerifyNCName() and VerifyName() throws
1285 ArgumentNullException for "".
1287 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1289 * XmlReader.cs : dependent XmlSchemaValidationFlags fix.
1290 Added ReadElementContentAsObject() and ReadContentAsObject().
1291 * XmlReader.cs, XmlTextReader.cs :
1292 LookupNamespace(string,bool) is now private.
1293 * XmlReader.cs, XmlNode,cs :
1296 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1298 * XmlElement.cs, XmlCDataSection.cs, XmlText.cs, XmlWhitespace.cs,
1299 XmlSignificantWhitespace.cs : added ParentNode overrides (actually
1300 they don't make sense since it just calls base.)
1301 * XmlNode.cs, XmlDocument.cs : changed .NET 2.0 CreateNavigator() impl
1302 to match signature and skip OwnerDocument check in XmlNode (since
1303 it is overriden). Maybe MS does not have ownerDocument as a field and
1304 costs too much on OwnerDocument property.
1305 Added missing bits in XmlDocument.
1307 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1309 * XmlAttribute.cs : added new overrides in 2.0 RTM (this scarcely
1310 makes sense without real optimization though).
1311 * XmlDocument.cs, XmlElement.cs, XmlNode.cs : avoid ChildNodes and
1312 save extra XmlNodeList creation cost.
1314 2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
1316 * XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
1317 * XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
1318 ReadTypedValue() is removed.
1319 * XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
1320 * XmlWriter.cs : Settings is virtual.
1322 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1324 * XmlDocumentNavigator.cs : now MoveToFirst() invokes internal
1327 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1329 * XmlTextWriter.cs : oops, so WriteState.Error is NET_2_0 only.
1331 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1333 * XmlTextWriter.cs : (Error state check) actually I need to set Error.
1335 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1337 * XmlTextWriter.cs : throw InvalidOperationException if any of
1338 WriteBlah() methods were invoked at error state.
1340 2005-10-23 Atsushi Enomoto <atsushi@ximian.com>
1342 * XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
1343 default namespace was returning "" instead of null. It didn't check
1344 empty namespace URI for non-empty prefixes.
1346 2005-10-07 Joshua Tauberer <tauberer@for.net>
1348 * XmlTextReader.cs: SkipTextDeclaration would not accept processing
1349 instructions that began with the string 'xml', e.g. rejecting
1352 2005-10-08 Gert Driesen <drieseng@users.sourceforge.net>
1354 * XmlAttribute.cs: InnerText and InnerXml do not override getters in
1355 NET_2_0. Removed extra CLSCompliant attribute on SchemaInfo.
1356 * XmlReaderSettings.cs: Marked sealed.
1358 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
1360 * XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
1361 digits for "second" were not exactly 3. Fixed bug #76328.
1363 2005-10-04 Atsushi Enomoto <atsushi@ximian.com>
1365 * XmlReader.cs : Name is virtual in NET_2_0.
1367 2005-10-03 Atsushi Enomoto <atsushi@ximian.com>
1369 * XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
1370 added supprot for NormalizeNewLines.
1371 NewLineOnAttributes is considered only when Indent is true.
1373 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
1375 * XmlAttribute.cs, XmlDocument.cs : check id table updates when
1376 XmlAttribute.set_Value() was invoked. Fixed bug #76311.
1378 2005-10-01 Atsushi Enomoto <atsushi@ximian.com>
1380 * XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs :
1381 XmlReader.Create() with string url argument are not working because
1382 of incorrect choice of the .ctor().
1384 2005-09-28 Atsushi Enomoto <atsushi@ximian.com>
1386 * XmlNodeReaderImpl.cs : when the source node was not a document and
1387 it is an empty element, Read() was incorrectly moving to the parent
1388 of the source node. Patch by Csaba Halasz. Fixed bug #76260.
1390 2005-09-27 Atsushi Enomoto <atsushi@ximian.com>
1392 * XmlTextReader.cs : surrogate computation is incorrect. Fixed bug
1393 #76247. Patch by Brion Vibber.
1395 2005-09-26 Atsushi Enomoto <atsushi@ximian.com>
1397 * DTDValidatingReader.cs : Namespace manager was not handled correctly.
1398 Now it does the same as XmlTextReader does. Fixed bug #76234.
1400 2005-09-26 Gert Driesen <drieseng@users.sourceforge.net>
1402 * XmlNodeChangedEventArgs.cs: Only make ctor publicly available
1403 in NET_2_0. Fixed API compatiblity with .NET 1.1.
1404 * XmlOutputMethod.cs: Fixed values of enum fields to match MS.NET.
1405 Only available in .NET 2.0.
1407 2005-09-25 Atsushi Enomoto <atsushi@ximian.com>
1409 * XmlReader.cs, XmlReaderSettings.cs, XmlDocument.cs:
1410 XmlSchemaValidationFlags updates.
1412 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1414 * XmlWriterSettings.cs : true NET_2_0 updates.
1416 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1418 * XmlOutputMethod.cs : new file.
1419 * XmlWriter.cs, XmlValidatingReader.cs, XmlReaderSettings.cs,
1420 XmlUrlResolver.cs, XmlWriterSettings.cs :
1421 more NET_2_0 updates.
1423 2005-09-21 Atsushi Enomoto <atsushi@ximian.com>
1425 * XmlNodeReader2.cs, XmlReader.cs,
1426 XmlTextReader.cs, XmlTextReader2.cs,
1427 XmlNodeChangedEventArgs.cs, XmlElement.cs,
1428 XmlNode.cs, XmlDocument.cs :
1429 updated NET_2_0 API.
1431 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
1433 * XmlTextReader.cs : when there is a heading half of surrogate at the
1434 end of read buffer, it didn't treat it as a surrogate.
1437 2005-09-14 Atsushi Enomoto <atsushi@ximian.com>
1439 * XmlTextWriter.cs : for surrogate pair, output character reference
1440 as a single character instead of two reference pairs. Fixed bug #76095.
1441 Patch by Brion Vibber.
1443 2005-08-31 Sebastien Pouliot <sebastien@ximian.com>
1445 * XmlDocument.cs: Added an InheritanceDemand for Unrestricted on
1446 CreateDocumentType and ReadNode methods.
1447 * XmlException.cs: Added a Demand for SerializationFormatter on
1448 GetObjectData method.
1449 * XmlResolver.cs: Added an InheritanceDemand for Unrestricted on
1451 * XmlSecureResolver.cs: Fixed exception when creating evidences with
1452 an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy
1453 and PermitOnly if the security manager is enabled.
1454 * XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
1456 * XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on
1458 * XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted
1461 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1463 * DTDReader.cs : no need to skip text declaration for such entity
1464 declaration that has literal entity. It should not expand entities
1465 inside ResolveExternalEntityReplacementText().
1466 Finally fixed bug #51495.
1468 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1470 * XmlTextReader.cs, XmlTextReader2.cs : added internal .ctor() to
1471 receive both TextReader, XmlNodeType and BaseURI for entity
1472 resolution (though it would be removed later).
1473 * XmlParserInput.cs : Now to handle nested PE insertion and correct
1474 BaseURI, it internally holds a stack of "input source".
1475 * DTDObjectModel.cs,
1477 Required fixes for XmlParserInput.
1478 Handle BaseURI as expected. Added ActualUri for resolved actual
1479 source URI (to resolve nested entities). Pass ActualUri to internal
1480 XmlTextReader.ctor() in ResolveExternalEntityReplacementText()
1481 (well, yes I remember, it is problematic.)
1483 Incorrect Base URI handling bug (part of #51495) is fixed.
1485 2005-08-16 Atsushi Enomoto <atsushi@ximian.com>
1487 * DTDReader.cs, XmlParserInput.cs :
1488 let's fix #51495. First of all, refactoring.
1490 2005-08-04 Atsushi Enomoto <atsushi@ximian.com>
1492 * XmlAttribute.cs : When there was only one child in attribute
1493 and it was an entity reference, set_Value() tried to set text value
1496 2005-08-03 Gert Driesen <drieseng@users.sourceforge.net>
1498 * XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
1499 * XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to
1500 RoundtripKind to match .NET 2.0 Beta 2.
1501 * XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
1502 in .NET 2.0 Beta 2, and is explicit interface implementation.
1503 * XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
1505 * XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
1507 * XmlValidatingReader.cs: GetNamespacesInScope returns generic
1508 IDictionary in .NET 2.0 Beta 2.
1509 * IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic
1510 IDictionary in .NET 2.0 Beta 2.
1511 * XmlNamespaceManager.cs: GetNamespacesInScope returns generic
1512 IDictionary in .NET 2.0 Beta 2.
1513 * XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic
1514 IDictionary in .NET 2.0 Beta 2.
1515 * DTDValidatingReader.cs: GetNamespacesInScope returns generic
1516 IDictionary in .NET 2.0 Beta 2.
1518 2005-07-14 Atsushi Enomoto <atsushi@ximian.com>
1520 * XmlTextWriter.cs : In WriteQualifiedName(), when there is open
1521 attribute, it calls LookupPrefix() and then if namespace was empty,
1522 it resulted in an exception. Fixed bug #75546.
1524 2005-06-29 Atsushi Enomoto <atsushi@ximian.com>
1526 * XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
1527 to ISO 8601 and XSD datatypes 3.2.6.1).
1529 2005-06-27 Andrew Skiba <andrews@mainsoft.com>
1531 * DTDReader.cs : don't validate entity values, when the entry is
1532 redefined so it will be never used. Fixes valid-sa-086 test from W3C
1535 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1537 * XmlQueryDialect.cs : removed.
1539 2005-06-27 Atsushi Enomoto <atsushi@ximian.com>
1541 * XmlWriter.cs : added Create(XmlWriter).
1542 * XmlValidatingReader.cs : added Read*AsBase64/BinHex().
1543 * XmlReaderSettings.cs : added obsolete annoyances to hush corcompare.
1545 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1547 * XmlTextReader.cs : use StringBuilder.ToString(int,int) when it does
1548 not have a large chunk of data, following Ben's idea.
1550 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1552 * XmlTextReader.cs : use StringBuilder to store character values; that
1553 saves 40% memory for large chunk of xml. Patch by Gonzalo.
1555 2005-06-22 Andrew Skiba <andrews@mainsoft.com>
1557 * XmlNode.cs : cosmetic fix - remove unnecessary argument from
1558 AppendChildValues function.
1560 2005-06-22 Atsushi Enomoto <atsushi@ximian.com>
1562 * XmlTextReader.cs : normalization is not required to check character
1563 validity everywhere except for character reference.
1565 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1567 * DTDValidatingReader.cs : removed some extra IsDefault check (with
1568 the latse code default attributes are stored in hashtables anyways.)
1569 Fixup attribute namespaces _after_ xmlns attributse are filled.
1570 The latest change is not good that namespaceURI of a local attribute
1571 was incorrectly globally looked up (it should be always "").
1573 2005-06-17 Atsushi Enomoto <atsushi@ximian.com>
1575 * XmlValidatingReader.cs : LookupNamespace() was trying to access to
1576 null reference to validatingReader.
1577 * DTDValidatingReader.cs : Fixed default xmlns* attribute handling.
1578 It used to be valid only at the declaring element.
1580 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1582 * DTDValidatingReader.cs : further text node fixes.
1583 - Cut out validation code from Text node case.
1584 - Now it does not use error-prone case transition but uses
1585 DocumentFragment 'vacant room' and fixed incorrect transition from
1587 - CDATA should be validated the same as Text is.
1589 2005-06-14 Atsushi Enomoto <atsushi@ximian.com>
1591 * DTDValidatingReader.cs : whitespace nodes were incorrectly rejected
1592 inside non-mixed content model.
1594 2005-06-09 Andrew Skiba <andrews@mainsoft.com>
1596 * XmlConvert.cs : add TARGET_JVM for roundtrip bug
1598 2005-06-06 Atsushi Enomoto <atsushi@ximian.com>
1600 * XmlEntityReference.cs, XmlNode.cs : protected api fix.
1602 2005-06-02 Atsushi Enomoto <atsushi@ximian.com>
1604 * XmlEntityReference.cs, XmlNode.cs : For entity references, BaseURI
1605 resolution should be different from that of parent since they might
1606 differ. Patch by Andrew Skiba.
1608 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1611 make sure to close parser input before parser stack pop.
1612 * DTDValidatingReader.cs : ditto.
1613 * DTDObjectModel.cs : Fixed another incorrect null BaseURI check.
1615 2005-05-31 Atsushi Enomoto <atsushi@ximian.com>
1617 * DTDValidatingReader.cs : Last BaseURI exposed this hidden bug via
1620 2005-05-30 Atsushi Enomoto <atsushi@ximian.com>
1622 * DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
1623 BaseURI which results in incorrect URI resolution.
1625 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1627 * DTDObjectModel.cs : For simple type restriction creation it failed
1628 when there is no enumerations (largely failed).
1630 2005-05-21 Atsushi Enomoto <atsushi@ximian.com>
1632 * XmlImplementation.cs : added new NET_2_0 ctor.
1633 Let's check corcompare:-/
1635 2005-05-11 Atsushi Enomoto <atsushi@ximian.com>
1637 * DTDValidatingReader.cs : namespace storing was stupid.
1639 2005-05-10 Atsushi Enomoto <atsushi@ximian.com>
1641 * DTDValidatingReader.cs : since namespace declarations might be
1642 resolved differently due to entity handling, it holds its own set
1643 of declared namespaces. NamespaceURI and LookupNamespace() use it.
1645 2005-05-09 Atsushi Enomoto <atsushi@ximian.com>
1647 * XmlReader.cs : added ReadElementContentAsLong().
1648 * XmlWriter.cs : removed some obsolete WriteValue() overloads.
1650 IXmlNamespaceResolver.cs : removed deprecated 2.0 bits.
1651 * XQueryConvert.cs : obsolete (yeah, now XQuery should be hidden).
1653 2005-05-06 Atsushi Enomoto <atsushi@ximian.com>
1655 * XmlInputStream.cs : Now XmlStreamReader uses non-blocking TextReader
1656 that is mostly copied from StreamReader. It should fix bug #74161.
1658 2005-05-05 Atsushi Enomoto <atsushi@ximian.com>
1660 * XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
1661 XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
1662 DTDValidatingReader.cs : Removed most of "atomizedName" related
1663 stuff that are obsoleted in 2.0 beta2.
1664 * XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.
1666 2005-05-04 Andrew Skiba <andrews@mainsoft.com>
1668 * IXmlNamespaceResolver.cs : mangle the interface method names when
1669 compiling for TARGET_JVM
1671 2005-03-30 Atsushi Enomoto <atsushi@ximian.com>
1673 * XmlUrlResolver.cs : just return connected Stream instead of fully
1674 downloaded memory cache. Fix by Konstantin Triger.
1676 2005-03-24 Atsushi Enomoto <atsushi@ximian.com>
1678 * XmlWriter.cs : WriteQualifiedName() should check namespace validity
1679 (whether it is in scope or not).
1680 * XmlTextWriter.cs : When WriteQualifiedName() is invoked inside
1681 attribute and no matching namespace declaration, create prefix
1682 on demand. Code reused from WriteStartAttribute().
1684 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1686 * XmlValidatingReader.cs : create schema set on demand.
1688 2005-03-22 Atsushi Enomoto <atsushi@ximian.com>
1690 * XmlParserInput.cs,
1693 DTDValidatingReader.cs : removed/commented out those warned code.
1695 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1697 * XmlDocumentNavigator.cs : overriden IsDescendant (default
1698 implementation extraneously clones).
1700 2005-03-15 Atsushi Enomoto <atsushi@ximian.com>
1702 * DTDValidatingReader.cs : When expanding entities and there is a
1703 sequence of text nodes, its value was not returned.
1704 * XmlTextReader.cs : better invalid char error report for EOF.
1706 2005-03-09 Andrew Skiba <andrews@mainsoft.com>
1708 * XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
1709 surrogate calculations. This fixes bug 73513.
1711 2005-03-09 Atsushi Enomoto <atsushi@ximian.com>
1713 * XmlParserInput.cs : silly mixed line endings :(
1715 2005-03-08 Atsushi Enomoto <atsushi@ximian.com>
1717 * XmlTextWriter.cs : namespace declaration check for those which starts
1718 with 'x' 'm' 'l' should not be done here (it might be 'declared'
1720 * XmlNamespaceManager.cs : error message for "'xml' prefix for
1721 different namespace" is incorrect.
1723 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1725 * XmlDocument.cs : ugh, so I introduced extraneous reader.Read() in
1726 ReadNode() for EntityReference and it resulted in unexpected skip.
1727 * DTDValidatingReader.cs : On EndEntity, LocalName and Name should
1728 return the name of entity. Removed unused entityReaderNameStack.
1730 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1732 * DTDValidatingReader.cs : reverted one change in r40985. Entity stack
1733 is nothing to do with ReadAttributeValue().
1735 2005-03-07 Atsushi Enomoto <atsushi@ximian.com>
1737 * DTDValidatingReader.cs : When there was actual attribute in source
1738 XmlReader, MoveToAttribute(i) did not move source reader as expected.
1740 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1742 * XmlDocument.cs : In ReadNode(), on EntityReference node, when
1743 XmlReader can resolve entity, it expands entity and apppend
1744 children into the entity reference. Patch by Konstantin Triger.
1746 2005-03-03 Atsushi Enomoto <atsushi@ximian.com>
1748 * XmlTextWriter.cs : For duplicating namespace mapping, it should
1749 create another prefix without throwing an exception.
1751 2005-03-02 Atsushi Enomoto <atsushi@ximian.com>
1753 * XmlTextWriter.cs : LookupPrefix() should not return those prefix
1754 that is overriden by another xmlns declaration.
1756 2005-02-26 Atsushi Enomoto <atsushi@ximian.com>
1758 * XmlEntity.cs : it was not returning SYSTEM ID when there is no
1760 * XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
1761 get_NodeType() resulted in loop.
1763 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1765 * XmlComment.cs, XmlNode.cs, XmlText.cs, XmlProcessingInstruction.cs,
1766 XmlEntityReference.cs, XmlSignificantWhitespace.cs, XmlAttribute.cs,
1767 XmlElement.cs, XmlEntity.cs, XmlCDataSection.cs :
1768 For those nodes that are created by Clone(), IsReadOnly is false.
1769 Patch by Konstantin Triger.
1771 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1773 * XmlDocumentNavigator.cs : iteratedNames array could be fixed and
1774 performance got improved. Patch by Konstantin Triger.
1776 2005-02-25 Atsushi Enomoto <atsushi@ximian.com>
1778 * XmlAttribute.cs : MS does not reject non-NCName prefix. Patch by
1781 2005-02-24 Atsushi Enomoto <atsushi@ximian.com>
1783 * XmlTextWriter.cs : WriteString() should be valid when
1784 WriteStartDocument() was not called.
1786 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1788 * XmlNamespaceManager.cs : IsValidDeclaration was giving useless error
1791 2005-02-23 Atsushi Enomoto <atsushi@ximian.com>
1793 * XmlDocumentNavigator.cs : it should virtually expand EntityReference,
1794 so refactored to handle both entity references and top level children.
1796 2005-02-22 Atsushi Enomoto <atsushi@ximian.com>
1798 * XmlTextReader.cs : XmlParserContext was not properly popped on
1799 the expected timing and thus had lost BaseURI, XmlSpace and XmlLang.
1800 * XmlInputStream.cs : XmlTextReader does not allow invalid utf-8
1803 2005-02-21 Atsushi Enomoto <atsushi@ximian.com>
1805 * DTDValidatingReader.cs : It should not skip whitespace and
1806 significant whitespace nodes unless it is expanding entities.
1807 * XmlDocumentNavigator.cs : Fixed NodeType that was returning
1808 incorrect type when there is a sequence of text/cdata/space nodes.
1810 2005-02-18 Atsushi Enomoto <atsushi@ximian.com>
1812 * XmlNamespaceManager.cs : Prefix "xml" is bound to the fixed
1813 namespace "http://www.w3.org/XML/1998/namespace", but it is not
1814 vice versa (i.e. we can use other prefixes for this namespace URI).
1816 2005-02-17 Atsushi Enomoto <atsushi@ximian.com>
1818 * XmlNode.cs : It does not have to iterate children to find argument
1819 node. Fixed exception type to ArgumentException. Patch by Andrew
1822 2005-02-16 Atsushi Enomoto <atsushi@ximian.com>
1824 * XmlAttribute.cs : just use InnerText for Value. Patch by Andrew
1826 * XmlConvert.cs : Handle null and empty strings for EncodeName(),
1827 EncodeLocalName() and EncodeNmToken(). Patch by Andrew Skiba.
1828 * NameTable.cs : usually tail of namespaces are rather different than
1829 head of them. Patch by Andrew Skiba.
1830 * XmlUrlResolver.cs : missing %20 handling. Patch by Andrew Skiba.
1832 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
1834 * XmlAttribute.cs : For default attributes, WriteTo() writes nothing
1836 * DTDValidatingReader.cs : reduced indentation using Linus trick
1837 (it was too deep in nest).
1839 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
1841 * DTDValidatingReader.cs : Namespaces and prefixes are not properly
1842 handled (it incorrectly assumed DTD definitions and thus always
1843 assumed empty namespace/prefixes).
1845 2005-02-14 Atsushi Enomoto <atsushi@ximian.com>
1847 * DTDValidatingReader.cs : element name stack might be empty when the
1848 input XmlReader contains fragments. Patch by Andrew Skiba.
1850 2005-01-25 Martin Baulig <martin@ximian.com>
1852 * XmlNode.cs (XmlNode.SchemaInfo): Mark this as not CLS-compliant
1855 * XmlReaderSettings.cs (XmlReaderSettings.XmlResolver): Mark this
1856 as not CLS-compliant to avoid a CS3025.
1858 2005-01-18 Atsushi Enomoto <atsushi@ximian.com>
1862 XmlAttributeCollection.cs :
1863 Now reuse parentNode field for XmlAttribute.OwnerElement and
1864 reduce class allocation size.
1866 New class that represents a name triplet.
1867 XmlNameEntryCache.cs :
1868 New type to cache name entries.
1871 Replace name strings with name entry and save class allocation size.
1873 Add name entry cache field to document and reuse name entries that
1874 are already allocated.
1876 2005-01-17 Atsushi Enomoto <atsushi@ximian.com>
1878 * XmlNode.cs, XmlAttribute.cs : reverted the previous patch. It broke
1879 several nunit tests.
1881 2005-01-15 Ben Maurer <bmaurer@ximian.com>
1883 * XmlNode.cs (InnerText, AppendChildValues): Don't allocate a
1884 string in the case where nothing needs to be appended.
1886 * XmlAttribute.cs (BuildChildValue): Start out the string with
1887 `null' not `String.Empty'. String.Concat (null, blah) == blah,
1888 pointerwise. ie, there is no allocation. This makes it so that
1889 getting the value of an attribute is faster for the fast case.
1891 2005-01-13 Atsushi Enomoto <atsushi@ximian.com>
1893 * XmlResolver.cs : throw ArgumentException in ResolveUri().
1895 2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
1897 * XmlTextWriter.cs : WriteComment() was outputting extraneous EOL.
1899 2004-12-26 Atsushi Enomoto <atsushi@ximian.com>
1901 * XmlReader.cs : ReadElementContentAsBinHex() was calling ..AsBase64().
1902 * XmlValidatingReader.cs : In set_EntityHandling(), set that property
1903 of DTDValidatingReader.
1904 * XmlNodeReader2.cs,
1905 XmlNodeReaderImpl.cs : added simplified implementation that splits
1906 entity handling and anything else.
1907 * XQueryConvert.cs : implemented ShouldCheckValueFacets().
1908 Use Convert class instead of simple casts (check range).
1909 * XmlReaderSettings.cs : added SetSchemas() for XPathNavigator.
1911 2004-12-22 Atsushi Enomoto <atsushi@ximian.com>
1913 * XmlParserContext.cs : all the string properties must not be set as
1914 null. Thanks to Joshua.
1917 DTDReader.cs : XmlResolver.ResolveUri() may return null.
1919 2004-12-17 Atsushi Enomoto <atsushi@ximian.com>
1921 * XmlReaderBinarySupport.cs : added support class for base64/binhex
1922 reading that mostly automates those reader support.
1923 * XmlReader.cs : added CanReadBinaryContent, CanReadValueChunk,
1924 ReadContentAsBase64(), ReadElementContentAsBase64(),
1925 ReadContentAsBinHex(), ReadElementContentAsBinHex() and
1927 * XmlTextReader.cs : Now ReadBase64() and ReadBinHex() implementations
1928 are moved to XmlReaderBinarySupport. Added CanReadBinaryContent and
1929 CanReadValueChunk overrides. Call Binary.Reset() to enable them.
1930 * XmlTextReader2.cs : added CanReadBinaryContent, CanReadValueChunk.
1931 Added ReadContentAsBase64(), ReadElementContentAsBase64(),
1932 ReadContentAsBinHex(), ReadElementContentAsBinHex() (just because
1933 they are overriden in MS.NET).
1934 * XmlNodeReader.cs : added CanReadBinaryContent and CanReadValueChunk.
1935 Call Binary.Reset() to enable them.
1937 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
1940 Added DateTime related methods with serialization mode.
1942 2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
1944 * XmlReader.cs : added MoveToFollowing().
1947 XmlAttribute.cs : added SchemaInfo support.
1948 * XmlDocument.cs : added Schemas and Validate().
1949 ReadNode() now copies xmlReader's SchemaInfo.
1950 * XmlNodeReader.cs : ditto (just reflects node's SchemaInfo).
1952 2004-12-15 Atsushi Enomoto <atsushi@ximian.com>
1955 Create() should assure NameTable!=null on creating XmlTextReader.
1956 Now use XmlSchemaValidatingReader for all xsd validation.
1957 * XmlTextReader2.cs :
1958 Don't use input reader's Settings. It is null.
1959 * XmlReaderSettings.cs : added XmlResolver.
1961 2004-12-14 Atsushi Enomoto <atsushi@ximian.com>
1963 * XmlReaderSettings.cs : XsdValidate and DtdValidate are now
1965 * XmlReader.cs : In Create(), use XmlSchemaValidatingReader for xsd
1968 2004-12-12 Zoltan Varga <vargaz@freemail.hu>
1970 * XmlTextReader.cs: Work around a compiler bug in csc 2.0 beta 1.
1972 2004-12-09 Atsushi Enomoto <atsushi@ximian.com>
1974 * DTDObjectModel.cs : implemented lightweight XmlSchema generator.
1976 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
1978 * XmlValidatingReader.cs : making smarter relationship between
1979 XsdValidatingReader.
1981 2004-12-08 Atsushi Enomoto <atsushi@ximian.com>
1983 * XmlException.cs : added SecurityPermissionAttributes.
1984 * XmlReaderSettings.cs,
1985 XmlReader.cs : added ValidationFlags and removed obsolete ones.
1987 2004-12-06 Atsushi Enomoto <atsushi@ximian.com>
1989 * XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
1990 ns is null, and don't lookup prefix for empty namespace.
1992 2004-12-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1994 * XmlTextReader.cs: don't use \0 as buffer terminator.
1995 * XmlInputStream.cs: s/Array.Copy/Buffer.BlockCopy/.
1997 2004-11-30 Atsushi Enomoto <atsushi@ximian.com>
1999 * DTDReader.cs : Consideration on parameter entity was missing for
2000 attribute default value. Fixed bug #70008.
2002 2004-11-26 Atsushi Enomoto <atsushi@ximian.com>
2004 * XmlReader.cs : not fixage, just explicitly formatted code a bit.
2007 XmlAttributeCollection.cs,
2014 XmlDocument.cs : warning removal.
2016 2004-11-25 Atsushi Enomoto <atsushi@ximian.com>
2018 * XmlQualifiedNameTable.cs : oops, it was not implemented.
2020 2004-11-24 Atsushi Enomoto <atsushi@ximian.com>
2022 * XmlQualifiedName.cs : in 2.0 it is [Serializable].
2023 * XmlTextReader.cs : removed unused local variable.
2024 * XmlTextWriter.cs : Improved some exception messages.
2025 moved some private fields into #if NET_2_0.
2026 * XmlValidatingReader.cs : rename specifiedResolver to
2027 resolverSpecified and use it in internal get_Resolver().
2028 Added [Obsolete] for ReadTypedValue() whose base is obsoleted.
2030 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
2032 * XmlTextReader.cs : Now attribute normalization is handled on Read(),
2033 not on get_Value. This caused a problem when we use
2034 XmlValidatingReader that value is not always normalized expectedly.
2036 2004-11-22 Atsushi Enomoto <atsushi@ximian.com>
2038 * XmlReader.cs : removed old ReadValueAsXXX() and added new
2039 ReadContentAsXXX() and ReadElementContentAsXXX().
2040 * XmlTextReader.cs : removed old ReadValueAsXXX() (no overrides now).
2041 * XmlTextWriter.cs : added indentation on Comment nodes.
2042 * XmlDateTimeSerializationMode.cs : updated.
2043 * XmlResolver.cs : added 2.0 NameTable field.
2044 * ValidationType.cs : added ObsoleteAttributes on some members.
2046 2004-11-18 Atsushi Enomoto <atsushi@ximian.com>
2048 * XmlParserContext.cs : the fix was not checked in :(
2050 2004-11-17 Atsushi Enomoto <atsushi@ximian.com>
2052 * XQueryConvert.cs : moved from System.Xml.Query.
2054 2004-11-14 Atsushi Enomoto <atsushi@ximian.com>
2056 * XmlWriter.cs : after WriteAttributes(), argument XmlReader must
2057 move to element. This fixes bug #69350.
2059 2004-11-10 Atsushi Enomoto <atsushi@ximian.com>
2061 * XmlParserContext.cs : PushScope() was accessing list out of range.
2063 2004-11-09 Atsushi Enomoto <atsushi@ximian.com>
2065 * DTDValidatingReader.cs, XmlTextReader.cs :
2066 needed more changes wrt XmlException.
2068 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
2070 * DTDObjectModel.cs,
2076 Added support for 2.0 XmlException.SourceUri property. Improved
2077 exception handling to contain BaseURI everywhere in the parser.
2079 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
2081 * XmlTextReader2.cs : added. It is used to serve public API, plus
2082 entity handling support.
2084 * DTDObjectModel.cs,
2085 DTDValidatingReader.cs,
2087 XmlParserContext.cs,
2089 Implemented XmlTextReader.EntityHandling and ResolveEntity(). To
2090 implement them, XmlTextReader in 2.0 itself is in XmlTextReader2.cs
2091 and XmlTextReader.cs contains Mono.Xml2.XmlTextReader which is the
2092 same as 1.x XmlTextReader. XmlTextReader2 switches entity reader and
2093 source reader, and never handles tokenization.
2094 The reason for "Mono.Xml2" is to avoid large changes in constructor.f
2096 2004-11-08 Atsushi Enomoto <atsushi@ximian.com>
2098 * XmlAttribute.cs, XmlElement.cs : get_Name should consider name table.
2099 * XmlDocument.cs : use NameTable in Load() and LoadXml().
2100 * XmlReader.cs : In Create(), use NameTable in XmlReaderSettings.
2102 2004-11-05 Atsushi Enomoto <atsushi@ximian.com>
2104 * XmlDocumentNavigator.cs : create rarely-used ArrayList later. This
2105 significantly improves XmlDocument-based XPath performance.
2107 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
2109 * XmlTextReader.cs : Manually expanded some of AppendValueChar() and
2110 XmlChar.IsWhitespace() which are on critical points on performance
2111 (marked as FIXME, but it depends on JIT).
2113 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
2115 * XmlTextReader.cs : Search xml:* attributes more efficiently.
2117 2004-11-04 Atsushi Enomoto <atsushi@ximian.com>
2119 * XmlTextReader.cs : Reduced NameTable.Add() for prefixed names. First,
2120 ReadName() now returns atomized LocalName and Prefix. Second, to
2121 avoid extraneous split, SetProperties() now takes prefix and
2122 localName that might be given from ReadName(). Third, removed
2123 FillNames(). This optimizes "namespace-aware and prefixed document"
2124 parsing 10-20% faster.
2126 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2128 * XmlTextReader.cs :
2129 With related to AddNamespace(), there was extra string.StartsWith()
2130 calls. Now AttributeTokenInfo.FillNames() is splitted into
2131 FillPrefixAndXmlns() and FillNamespace(), and AddNamespace() is done
2132 at FillPrefixAndXmlns().
2134 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2136 * XmlTextReader.cs :
2137 Reduces LookupNamespace() call in FillNames(). This improves 6-7%
2138 speedup in some scenario.
2139 Code refactory; Removed unused code. AddAttribute() is used only for
2140 DTD, so renamed to AddDtdAttribute(). For PUBLIC and SYSTEM ids,
2141 FillNames() is not required. Two SetProperties() are ambiguous, so
2142 renamed one (that takes TokenInfo) as SetTokenProperties().
2144 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2146 * XmlParserContext.cs : rewrote; especially to avoid XmlSpace boxing.
2148 2004-11-03 Atsushi Enomoto <atsushi@ximian.com>
2150 * XmlTextReader.cs : LookupNamespace() don't have to be called in
2151 ReadStartTag() to check prefix, since NamespaceURI is filled in
2152 FillNames(). 10% performance up by avoiding this extra check.
2154 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2156 * XmlValidatingReader.cs : fixed incorrect recursion between
2157 indexer and GetAttribute().
2159 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2161 * DTDReader.cs, DTDValidatingReader.cs, XmlTextReader.cs :
2162 When XmlTextReader is created with NodeType Element or Attribute,
2163 skip possible text declaration (that might be used for resolving
2164 entities) that specifies text encoding. With this fix, bug #61274
2165 must be regarded as fixed.
2167 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2169 * XmlNodeReader.cs : Reimplemented ResolveEntity(). It does not use
2170 XmlTextReader trick anymore. XmlNodeReader itself is used instead.
2172 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2174 * XmlNodeReader.cs : for NET_1_0 ReadInnerXml(), just use
2175 XmlReader.ReadInnerXmlInternal(). It should work fine.
2176 Ditto for ReadOuterXml().
2178 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2180 * XmlNodeReader.cs : removed unused/unreachable code. Simplify
2183 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2185 * XmlDocument.cs, XmlNodeReader.cs, XmlTextReader.cs,
2186 XmlValidatingReader.cs : Those readers could just implement internal
2187 interface IHasXmlParserContext.
2188 * XmlTextReader.cs, XmlValidatingReader.cs : this[] disappeared in 2.0.
2189 (XmlReader has them as virtual.)
2190 * XmlReader.cs : ReadAsObject() disappeared.
2191 * XmlWriter.cs : WriteFromObject() disappeared.
2193 2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
2195 * XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
2196 * XmlNode.cs : dustclean.
2198 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2200 * XmlDocument.cs : use XPathEditableDocument again.
2201 * XmlNode.cs : To be compatible with XPathEditableDocument, it should
2202 not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.
2204 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2206 * XmlChar.cs, XmlConstructs.cs :
2207 Switched again, for reducing per-process memory consumption.
2208 * XmlInputStream.cs :
2209 Just 64 bytes of buffer would be enough, for example like
2210 <?xml version="1.0" encoding="iso-8859-15" standalone="yes" ?>
2212 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2214 * IXmlDataEvidence.cs : disappeared.
2215 * XmlConvertDateTimeSerializationMode.cs : incorrect filename. removed.
2216 * XmlDateTimeSerializationMode.cs : added
2217 * NewLineHandling.cs : added
2218 * IXmlNamespaceResolver.cs, XmlNamespaceManager.cs :
2219 now 'atomizedNames' is obsolete.
2220 * XmlReaderSettings.cs, XmlWriterSettings.cs :
2221 Should not be sealed. Should not be ICloneable.
2223 2004-10-28 Atsushi Enomoto <atsushi@ximian.com>
2225 * XmlDocument.cs : XPathEditableDocument looks broken. Just reverted
2226 to fix 2.0 corcompare.
2228 2004-10-26 Atsushi Enomoto <atsushi@ximian.com>
2230 * XmlTextReader.cs : Don't create attribute Value string on Read()
2231 (i.e. create string when get_Value() is invoked.) This optimizes
2232 some kind of XmlTextReader usage significantly such as Skip().
2234 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
2236 * XmlConvertDateTimeSerializationMode.cs : added.
2237 * XmlConvertDateTimeOption.cs : removed.
2239 2004-10-22 Atsushi Enomoto <atsushi@ximian.com>
2242 For net_2_0, CreateNavigator() returns editable XPathNavigator.
2243 * XmlReader.cs, XmlTextReader.cs, XmlValidatingReader.cs :
2244 They do not implement IXmlDataEvidence anymore.
2246 2004-10-18 Atsushi Enomoto <atsushi@ximian.com>
2248 * XmlTextReader.cs :
2249 Fixed CheckCharacters setter that always set false.
2250 CheckCharacters check is also required for ReadText(). This fixes
2253 2004-10-15 Atsushi Enomoto <atsushi@ximian.com>
2255 * XmlTextReader.cs : Inside DTD, '<' character inside XML comment
2256 is regatded as invalid. This fixes bug #68410. (Error message was
2259 2004-10-14 Atsushi Enomoto <atsushi@ximian.com>
2261 * XmlWriter.cs : CreateTextWriter() is private.
2263 2004-10-09 Atsushi Enomoto <atsushi@ximian.com>
2265 * XmlNodeReader.cs : LookupPrefix() was only after 2.0.
2267 2004-10-08 Atsushi Enomoto <atsushi@ximian.com>
2269 * XmlNamespaceManager.cs : GetNamespacesInScope() caused
2270 IndexOutOfRangeException (miscounted indexes).
2272 2004-10-04 Atsushi Enomoto <atsushi@ximian.com>
2274 * XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
2275 For attribute nodes, it should not use WriteSubtree() which does not
2276 support attribute nodes.
2278 2004-09-20 Gert Driesen <drieseng@users.sourceforge.net>
2280 * XmlValidatingReader.cs: Added deprecation message.
2282 2004-09-14 Atsushi Enomoto <atsushi@ximian.com>
2284 * XmlTextWriter.cs : Close() should not Flush() when the output is
2285 already closed. bug #65918 is fixed.
2287 2004-09-12 Atsushi Enomoto <atsushi@ximian.com>
2289 * XmlTextWriter.cs : CloseOutput must be true by default.
2291 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2293 * XmlWriter.cs, XmlTextWriter.cs, XmlWriterSettings.cs :
2294 Implemented CheckCharacters and CloseOutput support.
2296 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2298 * XmlReader.cs : evidence is always provided.
2299 * XmlWriter.cs, XmlTextWriter.cs :
2300 added support for ConformanceLevel and OmitXmlDeclaration.
2302 2004-09-08 Atsushi Enomoto <atsushi@ximian.com>
2304 * XmlTextReader.cs : Console.WriteLine() injected :(
2305 * XmlTextWriter.cs : It it partly supports XmlWriterSettings.
2306 * XmlWriter.cs : implemented Create().
2307 * XmlWriterSettings.cs : removed EncodeXmlBinary (deprecated).
2309 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2311 * XmlFactory.cs : removed (obsolete).
2313 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2315 * XmlNamespaceManager.cs : GetNamespacesInScope() ignored default
2316 namespace when scope is .ExcludeXml or .All.
2317 * XmlReader.cs : Implemented ValueType, SchemaInfo, ReadAsObject().
2318 Fixed ReadTypedValue() to call ReadValueAs().
2320 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2322 * XmlNamespaceManager.cs : Fixed GetNamespacesInScope() that returned
2323 inconsistent namespace pairs.
2325 2004-09-07 Atsushi Enomoto <atsushi@ximian.com>
2327 * XmlReader.cs, XmlTextReader.cs :
2328 Added NET_2_0 CheckCharacters support.
2330 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
2332 * XmlNode.cs : GetEnumerator() does not have to create ChildNodes
2333 every time. Removed unused StringBuilder field.
2335 2004-09-06 Atsushi Enomoto <atsushi@ximian.com>
2337 * XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
2338 to read more (and might result in an error).
2340 2004-09-03 Atsushi Enomoto <atsushi@ximian.com>
2342 * XmlTextReader.cs : When Normalization is true, CRLF and CR should
2343 be converted to single LF. This should fix part of bug #62076.
2345 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
2347 * XmlWriter.cs : implemented WriteValue(object) for known types.
2349 2004-08-30 Atsushi Enomoto <atsushi@ximian.com>
2351 * XmlElement.cs : XmlAttributeCollection doesn't have to be created
2352 every time until the actual use. This sometimes optimizes
2353 attribute-less XML performance siginificantly.
2355 2004-08-27 Atsushi Enomoto <atsushi@ximian.com>
2357 * XmlAttribute.cs : some property getters threw NullReferenceException
2358 when the attribute is not added to an element.
2359 * XmlNode.cs : When a node is not appended to another node, BaseURI
2360 is empty. Bug #64120 is fixed.
2362 2004-08-26 Atsushi Enomoto <atsushi@ximian.com>
2364 * XmlTextWriter.cs : In CheckState(), don't create indentation string
2365 at every time. WriteIndent() now handles the indentation without
2368 2004-08-23 Atsushi Enomoto <atsushi@ximian.com>
2370 * XmlReader.cs, XmlTextReader.cs, XmlWriter.cs :
2371 eliminate MS.Internal.Xml.* classes.
2373 2004-08-21 Atsushi Enomoto <atsushi@ximian.com>
2375 * XmlElement.cs : set_InnerText was removing children incompletely.
2376 This fixes bug #63574.
2378 2004-08-20 Atsushi Enomoto <atsushi@ximian.com>
2380 * XmlTextReader.cs : Fixed EOF not to return true when it is just
2381 closed. Element and EndElement location is now adjusted to be the
2382 same as MS.NET does. This fixes bug #63505 and #63507.
2383 ResetState() now throws InvalidOperationException() as MS.NET does.
2385 * WriteState.cs : added missing 2_0 enumeration.
2386 * XmlReader.cs : ReadTypedValue() is virtual.
2387 * XmlValidatingReader.cs : ReadTypedValue() is override under 2_0.
2389 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
2391 * XmlValidatingReader.cs : Replaced XmlSchemaCollection with
2392 XmlSchemaSet. Added Settings property override
2394 2004-08-10 Atsushi Enomoto <atsushi@ximian.com>
2396 * DTDReader.cs : Replacing XmlSchemaDatatype .FromName(string) with
2397 .FromName(string, string) [going to remove former one; it is not
2398 good to support xdt:blah datatypes].
2400 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2402 * DTDValidatingReader.cs,
2403 XmlValidatingReader.cs : implemented IXmlNamespaceResolver.
2404 * XmlNamespaceManager.cs,
2405 XmlNodeReader.cs : implemented GetNamespacesInScope().
2407 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2409 * XmlCharacterData.cs,
2411 XmlNodeChangedEventArgs.cs :
2412 Implemented XmlNodeChangedEventArgs.OldValue and .NewValue.
2414 2004-08-03 Atsushi Enomoto <atsushi@ximian.com>
2416 * XmlWriter.cs : implemented settings-less Create().
2417 * XmlWriterSettings.cs : added some comments.
2419 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
2421 * XmlWriter.cs : implemented WriteNode(XPathNavigator, bool)
2422 incompletely, using XPathNavigator.ReadSubtree().
2424 2004-07-29 Atsushi Enomoto <atsushi@ximian.com>
2426 * XmlReader.cs : Implemented new 2.0 virtual members that used to be
2427 abstract in 1.x. Implemented ReadSubtree().
2429 2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
2431 * XmlTextReader.cs: Stop parsing when a null character is found.
2433 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2435 * XmlReader.cs : Implemented missing MoveToNextSibling() and
2437 * XmlTextReader.cs : Added missing ReadValueAs() override (hmm...
2438 are they really worth overriding?)
2440 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2442 * XmlWriter.cs : Added new WriteStartAttribute(string).
2444 2004-07-28 Atsushi Enomoto <atsushi@ximian.com>
2446 * XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
2447 * XmlQualifiedName.cs : Added internal static Parse().
2448 * XmlReader.cs : use XmlQualifiedName.Parse().
2449 * XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
2450 * XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
2451 Implemented 2.0 virtual methods that used to be abstract in 1.x.
2453 2004-07-26 Atsushi Enomoto <atsushi@ximian.com>
2455 * XmlReader.cs : Implemented ReadValueAsXxx() except for
2457 * XmlTextReader.cs : implemented them as well, just invoking
2458 base.ReadValueAsXxx ().
2459 * XmlWriter.cs : implemented some WriteValue() methods.
2461 2004-07-21 Atsushi Enomoto <atsushi@ximian.com>
2463 * XmlConvert.cs : added internal ToBinHexString() (BTW according to
2464 MSDN documentation it should be public).
2465 * XmlReader.cs : fixed one incorrect Create() overload. Added
2466 LookupNamespace (string, bool) (public for 2.0, internal for 1.x).
2467 * XmlTextReader.cs : Mostly implemented IXmlNamespaceResolver
2468 interface. Fixed HasLineInfo() access modifier on 2.0.
2469 * XmlNodeReader.cs : Mostly implemented IXmlNamespaceResolver
2470 interface. Wrote common namespace node lookup method and rewrote
2471 existing LookupNamespace().
2472 * XmlValidatingReader.cs : Fixed 2.0 IXmlLineInfo members' signatures.
2474 2004-07-20 Atsushi Enomoto <atsushi@ximian.com>
2476 * XmlNode.cs : When the argument node being inserted is the existing
2477 document element, it should not result in an error (since it should
2478 be first removed from document, thus no error should happen).
2480 2004-07-16 Atsushi Enomoto <atsushi@ximian.com>
2482 * XmlTextReader.cs : Fixed several problems on ReadBase64();
2483 Whitespaces should be ignored, and '=' was not skipped correctly.
2484 It caused "unexpected end of document" error at immediate close tag.
2486 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
2488 * Added MonoFIXAttribute.cs
2490 2004-07-13 Atsushi Enomoto <atsushi@ximian.com>
2492 * XmlWriter.cs : Added Create() stubs.
2493 * XmlWriterSettings.cs : Added missing property setters.
2494 * XmlValidatingReader.cs : added internal schemas setter.
2495 * XmlTextReader.cs : added internal XmlReaderSettings property setter.
2496 * XmlReader.cs : Halfly implemented Create().
2497 * DTDValidatingReader.cs : author information was missing.
2499 2004-07-11 Atsushi Enomoto <atsushi@ximian.com>
2501 * XmlConvertDateTimeOption.cs : it is NET_2_0.
2502 * IXmlNamespaceResolver.cs,
2503 XmlNamespaceScope.cs : Compile it in .net 1.1 (as internal).
2504 * XmlNamespaceManager.cs : Implement IXmlNamespaceResolver.
2506 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2508 * XmlConvertDateTimeOption.cs : Forgot to change the content...
2510 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2512 * ConformanceLevel.cs : Fixed integer value.
2513 * Added XmlConvertDateTimeOption.cs.
2514 * Removed XmlItemView.cs and XmlItemViewCollection.cs.
2516 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2518 * IXmlNamespaceResolver.cs :
2519 Fixed return value of GetNamespacesInScope().
2520 * IXmlDataEvidence.cs,
2523 XmlValidatingReader.cs : fixed Evidence (it is not array anymore).
2525 Implemented virtual indexers, QuoteChar, and Dispose() (2.0 stuff).
2527 In net_2_0, indexers vanished from XmlNodeReader.
2528 In net_2_0, overriden QuoteChar vanished.
2529 * XmlReaderSettings.cs : set_NameTable is missing.
2530 * XmlTextReader.cs : Implemented ProhibitDtd.
2532 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
2534 * XmlAttributeCollection.cs : In .net 2.0, it became sealed class.
2535 * IXmlDataEvidence.cs : not "Evidences" but "Evidence".
2536 * XmlInputStream.cs : new csc rejected implicit int->char cast.
2537 * XmlNamespaceManager.cs : In net_2_0, LookupNamespace(string) and
2538 LookupPrefix(string) does not require argument string as atomized.
2539 Added HasNamespace (string, bool).
2540 * XmlReader.cs : Added Settings and SchemaInfo properties.
2541 * XmlReaderSettings.cs : Added NameTable. Throw XmlException when
2542 attempt to set Schemas.
2543 * XmlTextReader.cs : Fixed "Evidences" to "Evidence". new csc rejected
2544 implicit int->char cast.
2545 * XmlValidatingReader.cs : Fixed "Evidences" to "Evidence".
2547 2004-06-27 Atsushi Enomoto <atsushi@ximian.com>
2550 Close XmlReader only when it is created. This fixes bug #60809.
2552 2004-06-18 Atsushi Enomoto <atsushi@ximian.com>
2554 * DTDObjectModel.cs, DTDReader.cs, XmlConvert.cs, XmlDocument.cs,
2555 XmlException.cs, XmlParserInput.cs, XmlTextReader.cs,
2556 XmlTextWriter.cs : Globalization.
2557 * XmlNode.cs : Fixed error message that confused node type.
2559 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2561 * XmlDocumentNavigator.cs : MoveToNext() should skip concatenating
2562 text/cdata/whitespace nodes.
2564 2004-06-14 Atsushi Enomoto <atsushi@ximian.com>
2566 * XmlInputStream.cs : Fixed encoding detection detected in xslt
2567 standalone tests. Removed extraneous code.
2569 2004-06-13 Atsushi Enomoto <atsushi@ximian.com>
2571 * XmlTextReader.cs : Character range check is always done. It is only
2572 character references for which check is not done when Normalization
2574 A bit more kind error message for multiple document element error.
2575 * XmlTextWriter.cs : Check if character is valid and entitize when
2578 2004-06-09 Atsushi Enomoto <atsushi@ximian.com>
2580 * XmlNamespaceManager.cs : The error message was improper.
2583 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2585 * XmlInputStream.cs: Initialize reads a larger buffer now when trying
2586 to guess the encoding.
2588 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2590 * NameTable.cs : Fixed incorrect hash computation. Thanks to Ben.
2591 * XmlTextWriter.cs : Fixed remaining LookupNamespace() atom problem
2592 shown in xslt standalone tests.
2594 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2596 * XmlTextWriter.cs : Improved indenting. For children of a mixed
2597 content element, it won't be indented.
2599 2004-06-06 Atsushi Enomoto <atsushi@ximian.com>
2601 * DTDObjectModel.cs,
2602 XmlDocument.cs : Close stream always.
2603 * XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
2604 * XmlTextReader.cs : Namespace check was not done. Some tests depends
2605 on this failure and to be fixed.
2607 2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
2609 * XmlNamespaceManagre.cs : Fixed LookupNamespace() and LookupPrefix().
2610 They require that names are *already* atomized.
2612 XmlTextWriter.cs : use safe overload of LookupXXX().
2614 2004-05-30 Atsushi Enomoto <atsushi@ximian.com>
2616 * XmlTextReader.cs : Fixed version mismatch; ProhibitDtd should be
2619 2004-05-29 Gert Driesen (drieseng@users.sourceforge.net)
2621 * XmlTextReader.cs: Added ProhibitDtd property for NET 1.1 to match
2622 public API in MS.NET 1.1
2624 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2626 * XmlDocument.cs : Save() should indent only when PreserveWhitespace
2627 is false. Fixed bug #59155.
2628 Modified comment lines a bit.
2630 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2632 * XmlTextWriter.cs : WriteRaw() looks to proceed WriteState to Prolog
2633 (if it is Start). Fixed bug #59154.
2635 2004-05-27 Atsushi Enomoto <atsushi@ximian.com>
2637 * XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
2638 and don't bork against <foo></foo>. Also mofidied this method to skip
2639 <foo/>. Fixed bug #59142.
2640 Modified some comments on the code (FIXME->LAMESPEC et al).
2642 2004-05-24 Atsushi Enomoto <atsushi@ximian.com>
2644 * DTDReader.cs : When sequential PE references exist, the reader only
2645 expands the first one and in some cases the parser complaints the
2646 content (such like expecting name character but found '%').
2647 This fixes bug #58818.
2649 2004-05-23 Atsushi Enomoto <atsushi@ximian.com>
2651 * XmlNode.cs : RemoveChild() should check null argument.
2652 Normalize() was broken in some cases.
2654 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2656 * ConformanceLevel.cs : added.
2658 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2660 * XmlNodeChangedEventArgs.cs : the last patch looks true
2661 ONLY AFTER .NET 2.0.
2663 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2665 * XmlReaderSettings.cs, XmlWriterSettings.cs : NET_2_0 were missed.
2667 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2671 XmlItemViewCollection.cs,
2672 XmlReaderSettings.cs,
2673 XmlWriterSettings.cs : added new .NET 2.0 classes.
2675 * AsyncXmlTextWriter.cs,
2676 IXPathChangeNavigator.cs,
2679 XmlChangeFilters.cs,
2681 XmlNodeChangeType.cs,
2682 XPathChangeNavigator.cs,
2684 XPathDocument2ChangedEventAction.cs,
2685 XPathDocument2ChangedEventHandler.cs,
2687 XPathNavigator2.cs : removed. (They are only in .NET 1.2)
2689 * XmlWriter.cs : added new NET_2_0 WriteElementString().
2691 2004-05-22 Atsushi Enomoto <atsushi@ximian.com>
2693 * XmlNodeChangedEventArgs.cs : not properly inherited from EventArgs.
2695 2004-05-17 Atsushi Enomoto <atsushi@ximian.com>
2697 * XmlConvert.cs : Fixed ToString(TimeSpan) that didn't handle Hour
2698 correctly. This fixes bug #57786.
2700 2004-05-13 Atsushi Enomoto <atsushi@ximian.com>
2702 * XmlValidatingReader.cs : explicitly mark as MonoTODO for XDR (not
2705 2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
2707 * DTDObjectModel.cs,
2713 XmlUrlResolver.cs : removed reference to Mono.Xml.
2714 Made Mono.Xml.* classes internal.
2715 * XmlDocument.cs : output xml declaration for TextWriter output in Save()
2716 * XmlElement.cs : Name character check should be done in .ctor().
2717 * XmlNamespaceManager.cs : Removed dangerous internal .ctor()
2719 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2721 * XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
2722 node can be it as well) and added check for Attributes existence
2723 in GetAttribute() and MoveTo*Attribute().
2725 2004-05-10 Atsushi Enomoto <atsushi@ximian.com>
2727 * XmlTextWriter.cs : comment not in the content state is indented.
2728 This fixes bug #58247.
2730 2004-05-07 Lluis Sanchez Gual <lluis@ximian.com>
2732 * XmlTextWriter.cs: In WriteStartAttribute, when the prefix is xmlns and
2733 the name is empty, convert it to a xmlns attribute.
2735 2004-04-27 Atsushi Enomoto <atsushi@ximian.com>
2737 * XmlTextReader.cs : don't use NET_1_0.
2739 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2741 * XmlComment.cs. XmlProcessingInstruction.cs : missing commits.
2743 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2745 W3C DOM compliant read-only check support (buggy part in MS.NET).
2748 XmlCharacterData.cs,
2752 XmlSignificantWhitespace.cs,
2754 : CloneNode() - set read-only when copied node is read-only.
2755 Check IsReadOnly on attempt to modify value.
2757 XmlEntityReference.cs : Set descendant nodes read-only.
2758 * XmlAttributeCollection.cs,
2760 : Fixed incompatible exception type.
2761 * XmlEntityReference.cs : CloneNode() should not pass an empty string
2763 * XmlEntityReference.cs,
2764 XmlProcessingInstruction.cs : Check XML name validity.
2765 * XmlText.cs : CloneNode() does not have to check children.
2767 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2769 * XmlDeclaration.cs : More strict check on InnerText and Value.
2771 2004-04-24 Atsushi Enomoto <atsushi@ximian.com>
2773 * DTDReader.cs, XmlConvert.cs, XmlDeclaration.cs, XmlImplementation.cs,
2774 XmlNode.cs : Culture independency fix.
2776 2004-04-22 Atsushi Enomoto <atsushi@ximian.com>
2778 * XmlEntityReference.cs : Added XPathNodeType (just for workaround).
2779 This should really fix bug #57248.
2781 2004-04-20 Atsushi Enomoto <atsushi@ximian.com>
2783 * XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
2784 only an EntityReference (not navigatable) child. Bug #57248 fixed.
2785 * XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
2786 instead of WriteAttributes() only for MS.NET behavior compatibility.
2787 This change makes SgmlReader usable (due to SgmlReader bug).
2789 2004-04-10 Atsushi Enomoto <atsushi@ximian.com>
2791 * XmlParserContext.cs : Fixed .ctor() not to reference null namespace
2792 manager. This fixes bug #56770.
2794 2004-04-06 Atsushi Enomoto <atsushi@ximian.com>
2796 * DTDReader.cs : In ProcessDTDSubset(), 1)error message was
2797 generated with incorrect stream character, 2)entity nest check
2798 should not depend on line info which might not be supplied, 3)
2799 empty PE should be skipped.
2800 * XmlParserInput.cs : use index for StringBuilder instead of calling
2801 Remove() many times. This highly optimizes DTD parser.
2803 * XmlAttribute.cs : removed commented code.
2804 * XmlEntity.cs : removed unused field.
2806 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2808 * DTDObjectModel.cs : (DTDAttributeDefinition) create ArrayList
2809 only when they are required.
2811 XmlParserInput.cs : raw tag string now don't have to be kept, while
2812 it cost so much. Removed unused code. 20% to 30% memory got saved.
2813 * XmlNotation.cs : removed unused code.
2814 * XmlTextReader.cs : Removed unused code. ReadString() now uses
2815 XmlReader's internal method. Fixed BaseURI to be conformant with
2816 W3C XML InfoSet and (subsequently) xml:base specification (i.e.
2817 reflect xml:base attribute correctly).
2819 2004-04-05 Atsushi Enomoto <atsushi@ximian.com>
2821 * XmlAttribute.cs : get_Value should return all children's value.
2822 * XmlCharacterData.cs : DOM's substring does not raise an error when
2823 startIndex + count exceeds the length of Data.
2824 * XmlNamedNodeMap.cs : SetNamedItem() returns the new child when it
2825 does not replace another named item.
2826 * XmlElement.cs : with related to the XmlNamedNodeMap change,
2827 SetAttributeNode() is required to fix as to return null when it does
2828 not replace existing attribute.
2830 2004-03-31 Atsushi Enomoto <atsushi@ximian.com>
2832 * XmlDocumentNavigator.cs : When this instance is created from xmlns
2833 attributes, it should be Namespace node.
2835 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
2837 * XmlReader.cs : ReadInnerXml() should progress reader when it is on
2838 an empty element. This fixes bug #56064.
2840 2004-03-27 Atsushi Enomoto <atsushi@ximian.com>
2842 * DTDReader.cs : In some places sequential parameter entity was
2843 incorrectly skipped (and caused invalid result).
2845 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2847 * XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
2848 namespace nodes which has the same name as already-iterated nodes.
2849 Also xmlns='' should not be selected, and once it appeared, default
2850 namespace should not be selected anymore.
2852 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2854 * XmlCharacterData.cs : ReplaceData() should reject negative integer
2855 value for count argument.
2856 * XmlAttribute.cs, XmlAttributeCollection.cs, XmlNamedNodeMap.cs :
2857 On RemoveNamedItem(), default attribute value should be restored.
2859 2004-03-24 Atsushi Enomoto <atsushi@ximian.com>
2861 * XmlAttributeCollection.cs : Remove() should throw an exception when
2862 target attribute is not included in the collection.
2863 * XmlDocument.cs : ImportNode() should reject null node.
2864 * XmlNode.cs : Fixed type of exception for invalid insertion.
2865 It should throw an exception not only when the owner document of the
2866 reference element is different but its parent element is different.
2867 Some error message improvement.
2869 2004-03-21 Atsushi Enomoto <atsushi@ximian.com>
2871 * XmlReader.cs : ReadInnerXml() incorrectly tried to get output xml.
2872 This fixes bug #55856.
2874 2004-03-20 Atsushi Enomoto <atsushi@ximian.com>
2876 * XmlTextWriter.cs : Fixed indentation on CDATA. This fixes bug #55828.
2878 2004-03-19 Atsushi Enomoto <atsushi@ximian.com>
2880 * XmlImplementation.cs : HasFeature() returns true when strVersion
2883 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
2885 * XmlWhitespace.cs : Fixed WriteTo(). Whitespace nodes should be
2886 written regardless of document's PreserveWhitespace.
2888 2004-03-16 Atsushi Enomoto <atsushi@ximian.com>
2890 * XmlDocumentNavigator.cs : Value should return concatenated string for
2891 sequential text nodes. Considered detached nodes, the result of
2892 MoveToParent() should be checked.
2894 2004-03-15 Atsushi Enomoto <atsushi@ximian.com>
2896 * XmlReader.cs : ReadInnerXml()/ReadOuterXml() should not bork when
2897 the reader is on EndElement. Patch by Jean-Marc Andre.
2899 2004-03-14 Atsushi Enomoto <atsushi@ximian.com>
2901 * XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
2902 to return attribute node. It affects on IHasXmlNode.GetNode() and
2903 SelectNodes()/SelectSingleNode().
2905 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2907 * XmlImplementation.cs : fixity fix (I need NUnit runnable ;)
2909 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2911 * XmlImplementation.cs : forgot to commit (renaming internal case)
2913 2004-03-04 Atsushi Enomoto <atsushi@ximian.com>
2915 * XmlDocument.cs : Implementation should not return null.
2917 2004-02-25 Atsushi Enomoto <atsushi@ximian.com>
2919 * XmlTextWriterOpenElement.cs : Reset() should reset _all_ fields.
2920 This fixes indentation bug.
2922 2004-02-19 Atsushi Enomoto <atsushi@ximian.com>
2924 * XmlTextWriter.cs : Fixed bugzilla #54554 (incorrent end tag output).
2926 2004-02-16 Atsushi Enomoto <atsushi@ximian.com>
2931 DTDValidatingReader.cs : made classes internal.
2932 * XmlDocument.cs : removed extra FIXMEs.
2933 * XmlNamedNodeMap.cs,
2936 Fixed incorrect method signature.
2938 2004-02-13 Atsushi Enomoto <atsushi@ximian.com>
2940 * DTDObjectModel.cs, DTDReader.cs, DTDValidatingReader.cs :
2941 say goodbye to sys.collections.specialized.
2942 (replaced the classes in that namespace with ArrayList or Hashtable)
2944 2004-02-12 Atsushi Enomoto <atsushi@ximian.com>
2946 * XmlReader.cs : For performance reason, XmlTextReader now uses
2947 base ReadInnerXml() and don't store currentTag array unnecessarily.
2948 * XmlTextReader.cs :
2949 - Fixed GetAttribute(int) that might cause index out of range.
2950 - Now it consumes the text reader by reading blocks, as MS.NET does.
2951 Modified GetRemainder(), PeekChar(), ReadChar() and so on.
2952 - Now it doesn't create Value string for linked nodes, unless it
2953 is actually required.
2954 - some code refactory.
2956 2004-02-11 Atsushi Enomoto <atsushi@ximian.com>
2958 * XmlTextWriter.cs, XmlTextWriterOpenElement.cs :
2959 Reduced creation of openlElement. It also saves much memory.
2961 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
2963 * XmlNode.cs : ChildNodes should not create XmlNodeListChildren
2964 every time. This fix heavily improved performance.
2966 2004-02-10 Atsushi Enomoto <atsushi@ximian.com>
2968 * XmlAttributeCollection.cs : set owner element as parent on removal
2969 events (though they are not "parent" in infoset or dom context)
2970 * XmlElement.cs : Don't remove attributes twice (raises extraneous
2972 * XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
2973 Added NET_2_0 members.
2975 2004-02-08 Atsushi Enomoto <atsushi@ximian.com>
2977 * DTDObjectModel.cs : Limit external entity reference from DTD by 256.
2978 foreach elimination. DTDParameterEntityDeclaration should set Root.
2979 Compute attribute default value without raising an error.
2980 (for non-error reporting reader)
2981 * DTDReader.cs : Fixes for the above fixes. foreach elimination.
2982 * DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
2983 XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
2984 XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
2985 XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
2986 XmlText.cs : foreach elimination.
2987 * XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
2988 foreach elimination. Removed unnecesary methods.
2989 * XmlTextReader.cs : code format refactory. Optimized some methods.
2990 foreach elimination. Replaced Stack with string array.
2991 Replaced StringBuilder with char array. Removed unnecessary methods.
2993 2004-02-06 Atsushi Enomoto <atsushi@ximian.com>
2995 * DTDValidatingReader.cs : Fixed MoveToElement() that causes incorrect
2996 IsDefault and Depth.
2997 * XmlAttribute.cs : Fixed .ctor(). Omit more namespace check when
2998 checkNamespace = false.
2999 * XmlNamedNodeMap.cs : Fixed SetNamedItem() to raise events.
3000 * XmlAttributeCollection.cs : Reimplemented InsertAfter to use
3001 InsertBefore() (similar to XmlNode).
3002 * XmlDocument.cs : Added internal .ctor(). Reimplemented ReadNode()
3003 as recursive, to make event order compatible.
3004 * XmlDocumentType.cs : Use SetNamedItem() (to raise events).
3005 * XmlElement.cs : Some refactory. Fixed SetAttributeNode() with
3006 string name to block prefixed name.
3007 * XmlEntity.cs : Don't raise events on setting contents.
3008 * XmlNode.cs : Some refactory. Added raiseEvent argument to internal
3010 * XmlEntityReference.cs : related fix for XmlNode change.
3011 * XmlTextReader.cs : When the reader is on "attributes" of xmldecl or
3012 doctype, Depth 1 lower than usual attribute. Split large function.
3014 2004-02-05 Atsushi Enomoto <atsushi@ximian.com>
3016 * XmlConvert.cs : ToSingle() and ToDouble() should be culture
3017 independent. Patch by Rodolfo Campero.
3019 2004-02-04 Atsushi Enomoto <atsushi@ximian.com>
3021 * DTDObjectModel.cs : Never expand entity on ScanEntityValue().
3022 * DTDValidatingReader.cs : XmlDeclaration node requires attributes
3026 XmlDocumentFragment.cs,
3032 Added namespace checking flag (required for such xml readers
3033 that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
3034 * XmlDocumentType.cs,
3036 XmlEntityReference.cs : The children of Entity and EntityReference
3037 became correct. They now holds parsed nodes, but it is only when
3038 they are appended to the document.
3039 * XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
3040 boolean checkNodeType argument. This method also tries to create
3041 Entity's and EntityReference's child nodes. Also added internal
3042 RemoveChild() with boolean checkNodeType argument.
3043 * XmlNodeReader.cs : Quick hack for ResolveEntity() that became
3044 broken with these changes. use InnerXml as input to entityReader.
3045 * XmlTextReader.cs : XmlDeclaration's value LocalName should be the
3046 same as Name. The names of DTD's pseudo attributes should be empty.
3047 Fixed DTD node's Depth (was regarded as attribute value's depth).
3049 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
3051 * XmlTextReader.cs, DTDReader.cs : fixity fix ;)
3053 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
3055 * ChangeLog : Fixed incorrect description that should be written for
3056 DTDValidatingReader.cs but written for DTDReader.cs.
3057 * DTDValidatingReader.cs : Fixes described in the last DTDReader fix.
3060 XmlConstructs.cs : Made XmlChar and XmlConstructs equivalent and
3061 replaced XmlChar with XmlConstruts, renaming "XmlChar" to
3062 "XmlCharCompact" and "XmlConstructs" to "XmlChar".
3063 (XmlChar will be used for compact framework.)
3064 * DTDReader.cs, XmlParserInput.cs, XmlTextReader.cs :
3065 XmlChar related changes. Support for surrogate pair.
3066 It cannot use TextReader's peek anymore (for surrogate pair).
3067 Character range check for PI value, attribute value, text
3068 * XmlTextWriter.cs : Change openElements from Stack to ArrayList.
3069 (It calls ToArray() every time.)
3071 2004-02-03 Alon Gazit <along@mainsoft.com>
3072 * XmlNamedNodeMap - now Item(int index) returns null for nodeList.Count
3073 instead of throwing ArgumentOutOfRangeException.
3075 2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
3077 * XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
3078 predefined entity names.
3079 * DTDObjectModel.cs : DTDxxxCollection now derives from
3080 - DTDCollectionBase that derives from DictionaryBase.
3081 - "Literal value" and "replacement text" are handled differently.
3082 - Throw XmlException when external entity could not be resolved.
3083 - Return ReplacementText for EntityValue.
3085 - Support IXmlLineInfo.
3086 - Fixed IGNORE section handling to be more strict.
3087 - Compute replacement text on reading entity declarations.
3088 - Don't expand char references before getting literal entity value.
3089 - Check not allowed parameter entity inside internal subset.
3090 * DTDValidatingReader.cs :
3091 - Added ValidateWhitespaceNode() to check whitespace's Validity
3092 Constraints on external elementdecl and standalone document.
3093 - When invalid data against its datatype was found, don't throw
3095 - Other code refactory.
3096 * XmlTextReader.cs :
3097 - Check for invalid Text pattern "]]>" should not depend on line
3098 info since it might not be supported.
3099 - Check referenced character's validity (WFC).
3101 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
3103 * DTDReader.cs : Added Normalization. Parameter Entity declaration
3104 should block invalid characters. (GEDecl should be fixed as well.)
3105 * XmlConstruct.cs : Should allow surrogate chars.
3106 * XmlNotation.cs : When prefix is empty (i.e. almost all cases)
3107 Name should not add ':'. Patch by Boris Kirzner.
3108 * XmlTextReader.cs : Modified private ReadCharacterReference() to
3109 return the character (or -1 when should not return anything).
3110 Now Text character reference are checked their character range.
3111 Set DTDReader.Normalization as well as the reader itself.
3113 2004-01-28 Atsushi Enomoto <atsushi@ximian.com>
3115 * DTDReader.cs : Make sure that parameter entities are not allowed
3116 inside internal subset unless it appears as a markupdecl.
3117 * DTDValidatingReader.cs : ENTITY or ENTITIES type attributes must have
3118 a value that indicates *unparsed* entity (i.e. NDATA required).
3120 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
3122 * XmlTextWriter.cs : quick performance fix.
3123 Reduced memoty allocation (e.g. 12% when writing XMLSchema.xsd.)
3125 2004-01-26 Atsushi Enomoto <atsushi@ximian.com>
3127 * DTDObjectModel.cs :
3128 - DTDNode's BaseURI should not always refer to that of DTD's.
3129 - Use absolute URI's .ToString() instead of AbsolutePath.
3130 * DTDReader.cs : Throw XmlException for illegal character references.
3131 * DTDValidatingReader.cs :
3132 - Share XmlResolver when the actual reader is XmlTextReader.
3133 (MS's XmlValidatingReader and XmlTextReader do this.)
3134 - Added its own EntityHandling property.
3135 * XmlValidatingReader.cs : Share XmlResolver with XmlTextReader.
3137 XmlTextReader.cs : Added new NET_2_0 members.
3138 * XmlElement.cs : Removed extra lines (caused by XmlTextWriter bugs).
3139 * XmlEntityReference.cs : Forgot to add, the real fix by Boris.
3141 2004-01-23 Atsushi Enomoto <atsushi@ximian.com>
3143 * XmlWriter.cs, XmlTextWriter.cs :
3144 Several namespace related fixes.
3145 - Current element's NamespaceURI should be immediately available
3146 after the call of WriteStartElement() for LookupPrefix(), so
3147 AddMissingElementXmlns() only affects on output. This is
3148 now identified by shouldCheckElementXmlns field.
3149 - Attribute's overraped xmlns should be ignored for LookupPrefix(),
3150 Especially, when the owner element is written with the default
3151 namespace. HOWEVER, the attribute should be *written*. This is
3152 identified by shouldAddSavedNsToManager field.
3153 - In AddMissingElementXmlns(), non-empty prefix namespace was not
3154 checked user-written attributes.
3155 - XmlWriter.WriteAttributeString() never supplies namespace URI for
3156 xmlns attributes for other versions than NET_1_0. Instead, added
3157 ns check logic in WriteStartAttribute() only with NET_1_0.
3158 - WriteEndAttribute() should reject zero-length namespace for
3159 non-default xmlns declarations.
3160 - LookupPrefix() should reject argument null and empty.
3162 (added 2004-01-24 : forgot to mention more)
3163 - WriteAttributeString() w/o namespace should supply null, not ""
3164 - Added .NET 1.2 members.
3165 - Regard any name with "xml" prefix as in "namespace for XML".
3167 2004-01-22 Atsushi Enomoto <atsushi@ximian.com>
3169 * XmlElement.cs : Reverted previous fix since it broke monodoc web
3172 2004-01-20 Atsushi Enomoto <atsushi@ximian.com>
3174 * XmlNode.cs : When adding a node to child list, it should reject its
3175 ancestors. Patch by Boris Kirzner.
3176 * XmlNodeReader.cs : Related fix to the fix above. It should not move
3177 to children of XmlEntityReference nodes.
3178 * XmlTextWriter.cs : FixedWriteStartElement() not to write default
3179 namespace when ns is null (while ns is "", it writes default ns).
3180 * XmlElement.cs : Fixed WriteTo() to call WriteStartElement(localName)
3181 when NamespaceURI is an empty string.
3183 2004-01-14 Atsushi Enomoto <atsushi@ximian.com>
3185 * XmlAttribute.cs : when set a value, it is no longer default
3186 (even if the value is the same as default value).
3187 * XmlAttributeCollection.cs : Remove() should recover default attribute
3188 value to default, not specified value.
3189 Patch by Boris Kirzner (modified a bit)
3190 * XmlDocument.cs : Reference to undeclared entity is not allowed in
3191 Load(), while allowed in ReadNode(). Added such distinguishing logic.
3193 2004-01-13 Atsushi Enomoto <atsushi@ximian.com>
3195 * XmlValidatingReader.cs : Throw exception only in case of errors.
3196 Added NET_2_0 Evidences property.
3198 2004-01-12 Atsushi Enomoto <atsushi@ximian.com>
3200 * XmlElement.cs : Fixed .ctor(). Default attribute was not treated as
3201 Specified = false. Patch by Boris Kirzner.
3203 2004-01-11 Atsushi Enomoto <atsushi@ximian.com>
3205 * XmlException.cs : Fixed incorrect .ctor signature.
3206 * XmlParserInput.cs : Fixed in sync with the above fix.
3208 2004-01-08 Atsushi Enomoto <atsushi@ximian.com>
3210 * XmlAttribute.cs, XmlElement.cs :
3211 Fixed incorrect protected .ctor modification.
3213 2004-01-08 Nick Drochak <ndrochak@ieee.org>
3215 * DTDValidatingReader.cs: Removed unused variable
3217 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
3219 * XmlNamespaceManager.cs : Implemented .NET 1.2 methods that take
3220 atomizedNames argument.
3221 * XmlTextReader.cs : Use new namespace manager methods.
3222 Reduced NameTable.Add().
3223 * DTDObjectModel.cs : fixed incorrectly commented-out line.
3225 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
3227 * XmlAttribute.cs, XmlDocument.cs, XmlElement.cs :
3228 set_Prefix should atomize to name table.
3229 Avoided extraneous atomization attempt a bit.
3231 2004-01-07 Atsushi Enomoto <atsushi@ximian.com>
3233 * DTDObjectModel.cs, DTDReader.cs, XmlSecureResolver.cs :
3234 avoiding obvious exception.
3235 * DTDReader.cs, XmlTextReader.cs : Some optimization.
3236 Avoided extraneous PeekChar() and reduced name string creation.
3238 2004-01-05 David Sheldon <dave-mono@earth.li>
3240 * XmlTextReader.cs: Fixed constructors taking string url to not
3241 loose the absolute part of the path.
3243 2004-01-04 Atsushi Enomoto <atsushi@ximian.com>
3245 * XmlDocument.cs : Fixed Load() to set XmlResolver correctly. Patch
3246 by Benjamin Jemlich.
3247 Assure closing XmlTextReader which are internally used.
3249 2004-01-03 Atsushi Enomoto <atsushi@ximian.com>
3251 * XmlTextWriter.cs : trivial character-case fix
3252 * XmlUrlResolver.cs : It downloads network stream content at
3253 GetEntity() call. You can try like below:
3254 for (int i=0;i<100;i++) u.GetEntity(url, null, typeof(Stream));
3256 2003-12-23 Atsushi Enomoto <atsushi@ximian.com>
3258 * XmlNamedNodeMap.cs : Fixed internal SetNamedItem(node, pos) to set
3259 replacing node correctly. This fixes bug #52453.
3261 2003-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3263 * XmlDocument.cs, XmlElement.cs, XmlNode.cs :
3264 GetElementsByTagName() - Fixed bugzilla #52419, refactored,
3265 and moved private implementation methods to XmlNode class.
3267 2003-12-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3269 * XmlTextWriter.cs :
3270 Element's namespace should be escaped as usual attribute.
3272 2003-12-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3274 * XmlTextWriter.cs : Indentation between xmldecl and doctype.
3275 * DTDValidatingReader.cs : AttList null reference fix.
3277 2003-12-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3279 * DTDValidatingReader.cs : Validity check and entity expansion were
3281 * DTDObjectModel.cs, DTDReader.cs, XmlInputStream.cs :
3282 Going to remove XmlInputStream. XmlStreamReader might be replacable.
3284 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3286 * XPathDocument2ChangedEventHandler.cs : fixed incorrect argument.
3287 * Moved UpdateEventHandler.cs and XmlUpdateEventArgs.cs to sqlxml.
3289 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3291 * XmlTextReader.cs : BaseURI was broken. This fixes bug #52098.
3293 2003-12-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3295 * XmlUrlResolver.cs : GetEntity() does not return direct network stream
3296 that may hold up connection. Now it reads up all the content stream.
3298 2003-12-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3300 * XmlAttributeCollection.cs,
3301 XmlElement.cs : Fixed bug #51415.
3302 When adding attribute to an element using Attributes, it failed.
3304 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3306 * XmlDocument.cs : Fixed ReadNode() to call AppendChild() to document
3307 after setting all attribute nodes. Modified ReadNode() to handle
3308 Depth comparison and error handling (!= to <). It allows MS's
3309 SgmlReader bug that returns incorrect Depth.
3311 2003-12-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3313 * XmlDocumentNavigator.cs : Fixed MoveToNextAttribute (and
3314 MoveToNextNamespace) that might result in NullReferenceException.
3315 patch by Sanjay Gupta. This fixed bug #51941 (and possibly #51415)
3317 2003-12-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3319 * XmlUrlResolver.cs : Update with recent System.Uri change. This fixes
3320 bugzilla #51808 (patch by Jeroen Zwartepoorte, a bit modified).
3322 2003-12-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3324 * XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
3325 * XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
3326 This may fix bug #51415.
3328 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3330 * XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".
3332 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3334 * XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
3335 shouldn't expect non-empty element content. This will fix bug #48287.
3337 2003-11-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3339 * XmlTextWriter.cs : When element's namespace should be overwritten by
3340 one of its attribute, if exist as such. This fixes bug #51305.
3342 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3344 * DTDValidatingReader.cs : Fixed ReadContent() which may result in
3345 invalid additional Text node.
3347 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3349 * XmlTextWriter.cs :
3350 On WriteProcessingInstruction(), ArgumentException() is expected ;-)
3352 2003-11-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3354 * XmlTextWriter.cs :
3355 WriteProcessingInstruction() should check name validity.
3356 AddMissingElementXmlns() should allow namespace emission even if it
3357 is identical to existing one.
3359 2003-11-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3361 * XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.
3363 2003-11-20 Eran Domb <erand@mainsoft.com>
3365 * XmlTextWriter.cs (WriteStartAttribute) : Check if the ket already exists in the newAttributeNamespaces table
3366 before trying to add it to the table.
3368 2003-11-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3370 * DTDValidatingReader.cs : Replaced entity should not treat whitespaces
3372 * XmlNode.cs : Removed extraneous MonoTODOs.
3374 2003-11-17 Jackson Harper <jackson@ximian.com>
3376 * XPathEditor.cs: .net 1.2 only
3378 2003-11-17 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3380 * AsyncXmlTextWriter.cs, IXPathChangeNavigator.cs, IXPathEditor.cs,
3381 IXPathNavigator.cs, IXmlDataEvidence.cs, IXmlNamespaceResolver.cs,
3382 UpdateEventHandler.cs, XPathChangeNavigator.cs, XPathDocument2.cs,
3383 XPathDocument2ChangedEventAction.cs,
3384 XPathDocument2ChangedEventHandler.cs, XPathEditor.cs,
3385 XPathNavigator2.cs, XmlChangeFilters.cs, XmlInfoItemType.cs,
3386 XmlNamespaceScope.cs, XmlNodeChangeType.cs, XmlQualifiedNameTable,cs,
3387 XmlQueryDialect.cs, XmlUpdateEventArgs.cs
3388 : Added .NET 1.2 classes (for convenience of ObjectSpaces stubbing).
3390 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3392 * XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
3393 to skip XmlEntityReference.
3394 * XmlTextWriter.cs : Fixed AddMissingElements() and
3395 WriteStartAttribute() not to emit extraneous xmlns.
3397 2003-11-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3399 * XmlTextWriter.cs : Skip multiple xmlns when element and any of
3400 attributes have the same xmlns values.
3401 WriteEndElement() allows open attribute (calles WriteEndAttribute()).
3402 Indentation should be inserted between ">" and "</xxx>" .
3404 2003-11-02 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3406 * XmlConvert.cs: Only parse INF/-INF/NaN. Other Infinty or NAN
3407 numbers are parsed with the respective ::Parse method.
3409 2003-11-01 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3411 * XmlConvert.cs: Revert my last change. INF and -INF must be
3412 processed here because Double::Parse and Single::Parse doesn't
3413 understand anything of parsing [-]INF.
3415 2003-11-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3417 * XmlDocument.cs : Save(Stream) should not close the stream.
3419 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3421 * DTDReader.cs, DTDValidatingReader.cs, XmlInputStream.cs,
3422 XmlTextReader.cs : More cleanup.
3423 * XmlDocument.cs : Removed CheckName(). Code cleanup.
3424 * XmlElement.cs : .ctor() now adds default attributes (if required).
3425 * XmlAttribute.cs, XmlElement.cs, XmlEntity.cs, XmlEntityReference.cs,
3426 XmlNotation.cs : Now uses OwnerDocument's NameTable.
3428 2003-10-25 Pedro MartÃnez Juliá <yoros@wanadoo.es>
3430 * XmlConvert.cs: Support for the sign in double and single. The
3431 processing of the infinites and nan numbers are more complex than
3432 comparing to "INF" so we must let Double::Parse and Single::Parse
3435 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3437 * DTDValidatingReader.cs : Now it handles whitespace entity as
3439 * XmlConvert.cs : As to NIST testcases, exponential support on single
3440 and double floating point numbers.
3441 * XmlValidatingReader.cs : If it IsDefault, then line number and line
3444 2003-10-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3449 XmlWriter.cs : Fixed incorrect access modifier.
3450 * XmlTextWriter.cs : Imported state variable from XmlWriter.
3451 * DTDValidatingReader.cs : Removed extraneous MonoTODO.
3452 * XmlConvert.cs : Implemented ToTimeSpan().
3453 Modified ToDateTime() to reuse the same array.
3455 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3457 * XmlAttributeCollection.cs : Fixed synchronization stuff.
3458 * XmlConvert.cs : Added two FromBinHexString() methods.
3459 * XmlTextReader.cs : Modified to use one of the above method.
3460 * XmlValidatingReader.cs : XsdValidatingReader.XmlResolver will be
3461 disabled (in the next commit), so resolver won' be set to it.
3462 Attempt to validate against XDR now throws NotSupportedException.
3464 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3466 * XmlChar.cs : added WhitespaceChars, used in common.
3471 XmlTextWriter.cs : String.Trim()
3472 * XmlConvert.cs : shifted XmlConstructs to XmlChar.
3473 * XmlTextReader.cs : Implemented Normalization.
3475 2003-10-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3477 * XmlNode.cs : GetPrefixOfNamespace() also contained a bug similar to
3478 GetNamespaceOfPrefix() fixed at 2003-10-13.
3479 * XmlTextReader.cs : ReadBase64() should keep incomplete base64 block
3480 which remained by previous call of this method.
3481 * XmlUrlResolver.cs : Added assertion for file Uri path's absoluteness.
3482 * XmlValidatingReader.cs : Notice about intention of XDR won't be
3483 supported (at least in Mono 1.0).
3485 2003-10-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3487 * XmlDocument.cs : CloneNode() does not copy PreserveWhitespace.
3488 * XmlWriter.cs : Calling WriteNode() with XmlReader whose state is
3489 XmlDeclaration now calls WriteProcessingInstruction(). This fixes
3490 testcase XmlWriterTests.WriteNodeFullDocument().
3491 * XmlTextWriter.cs : Added LAMESPEC comments related to above.
3493 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3495 * XmlDocument.cs : Fixed bugzilla #49607. Save() outputs XML
3496 declaration even though there is no XmlDeclaration child.
3497 * XmlTextReader.cs : Fixed Init() so that ResetState() should work.
3499 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3501 * XmlTextWriter.cs : Implemented WriteSurrogateCharEntity().
3502 Reverted my recent extraneous check in WriteStartAttribute().
3504 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3506 * XmlNode.cs : GetNamespaceOfPrefix() should check Attributes existence.
3507 And it should throw ArgumentNullException.
3509 2003-10-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3511 * XmlAttribute.cs : Fixed InnerText that did not removed its content
3512 if there is two or more children.
3513 * XmlNode.cs : XmlNode.cs : Fixed bugzilla #49580 (1)to return "",
3514 (2)not to compare NodeType for detached nodes, (3)optimization to
3515 compare element's prefix.
3516 * XmlSecureResolver.cs : Removed extraneous members.
3518 2003-10-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3520 * Added DTDReader.cs. It is almost importation of XmlTextReader.
3521 * DTDObjectModel.cs :
3522 - More .NET-ism. Properties took place of fields.
3523 - Imported PE set from XmlTextReader. Added location info.
3524 - Added DTDEntityBase common to PE and GE.
3525 - More correct text declaration handling with new XmlTextReader.
3526 * DTDValidatingReader.cs :
3527 - Now uses entity resolving XmlTextReader to validate attributes
3528 correctly. Implemented standalone
3529 - Standalone and default related validity constraints check.
3530 * XmlImplementation.cs: Implemented HasFeature().
3531 * XmlNode.cs : Implemented Supports().
3532 * XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
3533 * XmlParserInput.cs : Removed extraneous members.
3534 * XmlTextReader.cs :
3535 - All DTD related functionality now goes to DTDReader.cs
3536 - It became old simple TextReader input style.
3537 - Implemented GetRemainder().
3538 - Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
3539 additional new private method ReadUntilEndTag().
3540 - Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
3541 ReadXmlDeclaration() now became simple.
3542 - More strict entity reference check at SetEntityReferenceProperty()
3543 - Removed extraneous members.
3544 * XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.
3546 2003-10-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3548 * XmlTextReader.cs: when we get an unexpected EOF in ReadContent, set
3549 the state before throwing the exception if depth > 0.
3551 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3553 * XmlAttribute.cs : Removed extraneous MonoTODO.
3554 * XmlTextWriter.cs : Implemented WriteBinHex() and WriteChars().
3555 WriteStartElement() and WriteStartAttribute() should ignore Prefix
3556 if namespace uri is not specified.
3558 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3560 * XmlDocumentFragment.cs,
3562 XmlEntityReference.cs : Removed extraneous MonoTODO.
3563 * XmlNode.cs : Implemented Normalize().
3564 * XmlNodeReader.cs :
3565 - AttributeCount and HasAttributes should return its owner element's
3566 value, to be consistent with XmlTextReader.
3567 - Fixed Depth to reflect correct attribute/attribute-value iteration.
3568 - simplified ownerElement and HasValue.
3569 - Prefix won't return null.
3570 - MoveToElement() should also work against attribute value nodes.
3571 * XmlTextReader.cs : MoveToElement() should return false if it is
3572 positioned at element itself.
3574 2003-10-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3576 * XmlTextReader.cs : Improved SignificantWhitespace handling.
3578 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3580 * XmlSecureResolver.cs : Implemented basic feature.
3582 2003-10-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3584 * XmlUrlResolver.cs : Should work with null type argument.
3586 2003-10-01 Lluis Sanchez Gual <lluis@ximian.com>
3588 * XmlTextWriter.cs : An attribute can require a prefix for the default
3589 namespace, so we need to store the prefix as well as the namespace.
3591 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3593 * DTDValidatingReader.cs : Simplified to use
3594 XmlSchemaUtil.GetParserContext().
3595 * XmlValidatingReader.cs : ValidationType.Auto should always use
3596 XsdValidatingReader because xsi:schemaLocation might be used.
3598 2003-09-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3600 * XmlTextReader.cs : Attribute value token properties were incorrectly
3601 set by the linked node.
3603 2003-09-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3605 * XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
3606 considers such case that target node was not adapted to the document.
3607 * XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
3608 * XmlTextWriter.cs : use 'as' instead of 'try..catch'.
3610 2003-09-25 Ben Maurer <bmaurer@users.sourceforge.net>
3612 * XmlNode.cs (XPathNodeType): Give more useful debugging message.
3613 * XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
3616 2003-09-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3618 * XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
3619 recovery was still not enough. Fixed GrowScopes() (incorrect index).
3621 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3623 * XmlTextReader.cs :
3624 - Fix for bugzilla #48337 (containing Ben's advice on that).
3625 - Added internal XmlTokenInfo classes. Nodes are now handled as token
3626 objects (linked node, attributes and attribute values). Most of the
3627 node state properties and iterating methods are changed to refer to
3628 the token classes (except for value builder availability). Removed
3629 fields which are never used. CompileDTDSubset() is changed in
3630 reflection to nodeType field removal.
3631 - Fixed Depth that should vary in moving between attributes and/or
3632 reading attribute values.
3633 - LineNumber and LinePosition now returns more correct location.
3634 - Fixed Value that should still return true if its value is an empty
3635 attribute value string.
3636 - EntityValue is checked WFC constraints even thoug it is not used.
3637 - All .ctor() now initializes ReadState as Initial.
3638 - Read() should be available for attribute value constructor.
3639 * XmlAttribute.cs : set_InnerXml() now calls reader's Read().
3641 2003-09-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3643 * XmlNamespaceManager.cs: PopScope() must retain those namespaces which
3644 are added in the scope before PushScope() was called.
3646 2003-09-20 Ben Maurer <bmaurer@users.sourceforge.net>
3648 * XmlNamespaceManager.cs: Rewrote. Uses arrays, rather than linked
3649 lists and removes uses of Hashtable. Results in huge speed gains.
3651 2003-09-19 Ben Maurer <bmaurer@users.sourceforge.net>
3653 * XmlConvert.cs: NaN.ToString () != INF.
3655 2003-09-14 Lluis Sanchez Gual <lluis@ximian.com>
3657 * XmlTextWriter.cs: Attributes that have a namespace must be always
3660 2003-09-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3662 * XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
3664 * XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
3665 Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
3666 add Namespaces immediately, but adds at AddMissingElementXmlns so
3667 that we don't have to have extra check than namespaceManager's
3668 LookupPrefix(). 2) Removed writtenAttributes for performance reason
3669 since it is no more required.
3671 2003-09-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3673 * XmlDocument.cs : patch by Jonathan Hogg. Fixed CreateAttribute()
3674 that handled xmlns attributes inproperly.
3676 2003-09-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3678 * XmlNamespaceManager.cs : GetEnumerator() should return all of the
3679 available pairs (of prefix and namespace).
3680 * XmlQualifiedName.cs : Quick fix for NullReferenceException in case
3681 of name (or ns) is null. (The description of the immediate previous
3682 changes will be inserted below.)
3683 * XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
3684 * XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
3685 will release resources it had allocated.
3687 2003-09-01 Ben Maurer <bmaurer@users.sourceforge.net>
3689 * XmlDocument.cs (Save): use the encoding of the document, if
3692 2003-08-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3694 * XmlValidatingReader.cs : Implemented SchemaType. Added support for
3695 ValidationType.Schema. Added support for XmlResolver. Fixed
3696 ReadTypedValue() not to consume EndElement.
3698 2003-08-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3700 * XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
3702 * XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
3703 Commented out Console.Error.WriteLine().
3704 * XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
3705 escape and unescape for relative URI string.
3707 2003-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
3709 * XmlParserContext.cs: Make each context inherit next.
3711 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3713 * XmlChar.cs (IsWhitespace): Spare enumerator allocation.
3714 * XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
3715 fat, use low-fat loops instead. Even better, call the function
3716 inside XmlChar for code reuse.
3717 * HighWaterStack.cs (added): New class that acts like a Stack, but
3718 helps with memory allocation.
3719 * XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
3721 * XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
3722 use a variable that stores the position in the ArrayList.
3724 2003-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
3726 * XmlTextWriter.cs: Begin diet. String.Format has too much
3727 saturated fat, lets replace with the fat-free .Write ()
3728 calls. Effects best seen when Paolo's StreamWriter patch is
3731 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3733 * XmlNodeReader.cs : Fixed ReadAttributeValue() that might result in
3734 vanishing current node.
3736 2003-08-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3738 * DTDValidatingReader.cs : Added SchemaType.
3739 Read() Assures to return to element.
3740 * DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
3741 * XmlReader.cs : ReadString() should be virtual in NET_1_1.
3742 * XmlTextReader.cs : 1) Depth should consider Attribute and its values.
3743 Introduced insideAttribute field to support them.
3744 2) ReadAttributeValue() should consider empty string.
3745 * XmlValidatingReader.cs :
3746 Fixed several properties which premised as if it was already read.
3747 Encoding and Namespaces now throws NotSupportedException for other
3749 Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
3751 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3753 * XmlInputStream.cs : Reverted CanSeek as to return false anyway.
3755 2003-08-10 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3757 * DTDObjectModel.cs : added XmlResolver related members. Added
3758 invalid entity recursion logic. Added encodingdecl check on textdecl.
3759 * DTDValidatingReader.cs : It now implements IHasXmlParserContext.
3760 * XmlChar.cs : IsPubidChar() should not allow TAB(	).
3761 * XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
3762 to receive DTDObjectModel to support other than XmlTextReader.
3763 2) Most of its public member is now based on DTDObjectModel.
3764 * XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
3765 2) ReadNode() now considers XmlParserContext's DTDObjectModel for
3766 other than XmlTextReader (such as XmlValidatingReader).
3767 * XmlNode.cs : code cleanup only.
3768 * XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
3769 * XmlTextReader.cs : 1) Illegal entity reference check logic was moved
3770 from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
3771 change on ReadEntityReference(). 3) ReadAttribute() now checks
3772 reference to external entity reference. 4) Added textdecl encoding
3773 check. 5) DTDObjectModel fields are now set correctly. 6) added
3774 PERef markup nest check. 7) If PEDecl was not found, it might be WFC
3775 violation, not only be VC violation. 8) ReadEntityDecl() now receives
3776 its declared entity itself, and this method checks IsInternalSubset.
3777 * XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
3778 2) ValidationType.None should be the same as Auto, not DTD (in the
3779 future it should keep xml schema's default values).
3781 Pending Stuff in XmlTextReader which breaks some NUnit tests;
3782 1) SetEntityReferenceProperies() has check for illegal references.
3783 2) ReadAttribute(bool) has similar check for illegal references.
3785 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3787 * DTDAutomata.cs : Fixed (modified or added) TryEndElement() of choice,
3788 sequence and oneOrMore. Fixed DTDChoiceAutomata.TryStartElement().
3790 2003-08-09 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3792 * XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
3793 and supplied SkipWhitespace() as they needed. It broke monodoc.
3794 Fixed ReadEntityValueDecl() to get correct value.
3796 2003-08-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3798 * XmlInputStream.cs :
3799 Fixed Initialize() that might result in incorrect buffer.
3800 CanRead and Position should consider buffer (especially when the
3802 CanSeek should use stream's CanSeek.
3804 * XmlChar.cs : added GetPredefinedEntity().
3805 * DTDObjectModel.cs :
3806 - Modified ComputeDefaultValue() to use it.
3807 - Fixed NormalizedDefaultValue not to expect parsed value as string.
3808 - ResolveExternalEntity now detects invalid standalone specification.
3809 - DTDParameterEntityDeclaration.Value is now changed to property and
3810 keep its resolved value of literal value of external value using
3811 new Resolve (XmlResolver) method (called only by XmlTextReader).
3812 * DTDValidatingReader.cs :
3813 - It now handles entity-expanded Whitespace and SignificantWhitespace
3814 correctly. Does not raise unexpected text not allowed error.
3815 - Fixed MoveToAttribute()s to move internal reader correctly, and
3816 should be able to move in other cases than on element node.
3817 - On Read()ing document type and ResolveEntity(), it now sets
3818 XmlResolver on text reader.
3819 - On ID constraints check and type verification, it now uses
3820 normalized attribute or its tokenized value(s).
3821 - Fixed ValidateAttributes() to add default values when
3822 ValidationType is Auto.
3823 * XmlParserContext.cs : added internal Dtd setter.
3824 * XmlParserInput.cs :
3825 InsertParameterEntityBuffer() should add surrounding whitespaces.
3826 Removed unused code block.
3827 * XmlTextReader.cs :
3828 - Modified ReadReference(), ReadAttribute() and Dereference() to use
3829 XmlChar.GetPredefinedEntity().
3830 - When returning entity reference, it checks extity declaration
3831 existence in certain conditions.
3832 - ReadAttribute() now skips general entity replacement on reading
3834 - ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
3835 - ReadXmlDeclaration() holds isStandalone, which might be used in
3836 entity reference's well-formedness check.
3837 - internal 'DTD' now uses XmlParserContext.Dtd.
3838 - isInternalSubset was meaningless. Now uses input stack's Count.
3839 - Added some required SkipWhitespace().
3840 - Several parameter entity handling changes. Added GetPEValue(name).
3841 TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
3842 now uses its Resolve() when it was external PE. Now it uses value
3843 buffer instead of currentTag, to efficiently read (included) PE.
3844 CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
3845 ImportAsPERef() simply inserts the value to currentInput.
3846 ReadEntityDecl() also uses value buffer. Removed non-used methods.
3847 - Default attributes are now stored in normalized form.
3848 - Dereference() now considers non-expanding predefined entities.
3849 * XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
3850 is more correctly supported.
3852 * XmlAttributeCollection.cs :
3853 When removing default attribute, it immediately inserts the attribute.
3854 RemoveAll() should consider default (not-removable) attributes.
3856 Should have its default XmlResolver. Added Internal Resolver.
3857 Some Load() should use its XmlResolver.
3858 ImportNode() should copy its children in node level, not value level.
3859 It also have to consider not to copy default attribute on importing
3861 * XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
3863 XmlDocumentFragment.cs.
3864 XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
3865 * XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
3866 ResolveEntity() uses XmlResolver on entityReader.
3868 2003-08-07 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3870 * DTDObjectModel.cs :
3871 - Added validation error check (and AddError(), Errors).
3872 - Fixed ComputeDefaultValue() to handle various references correctly.
3873 - DTDEntityDeclaration.EntityValue became property, and added
3874 LiteralEntityValue. The new one holds resolved value.
3875 Added ResolveExternalEntity(). It now required root in .ctor().
3876 * DTDValidatingReader.cs :
3877 - Now it handles namespaced attributes (as input to xsd validator).
3878 - Added XmlResolver property as usual XmlReader.
3879 - Added currentEntityHandling field so that it can stand changing
3880 XmlValidatingReader's EntityHandling dynamically.
3881 - FilterNormalization() now requires name for getting datatypes and
3882 can stand for non-current attribute normalization.
3883 - Splitted ReadContent() from Read() that can be called recursively
3884 when expanding entities.
3885 - Now handles Entity not found error *after* resolution of entities,
3887 - Read()ing DTD checks its Errors and raises validation error events.
3888 In some situations, DTD parsing may detect VC error, not WFC error.
3889 It also strictly checks NData existence.
3890 - Handling of entity-resolved text is a bit changed and Read()ing
3891 element, endElement, cdata now changed to switch collecting text
3893 - content type ANY should allow texts.
3894 - Added enumerated attribute validity check.
3895 - Added Name/Names creation rule check for ID/IDREF/IDREFS.
3896 - Added entity existence check for ENTITY/ENTITIES attributes.
3897 - Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
3898 - Fixed to remove extraneous #REQUIRED check.
3899 - Contributing default attribute is now only applied to the case
3900 ValidationType is DTD or None.
3901 - ResolveEntity() now handles external entities.
3902 Added Mono.Xml.IXmlParserContext interface support.
3903 * XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
3904 * XmlTextReader.cs :
3905 - Fixed ReadAttributeValue() to reset returnEntityReference.
3906 - Added bool MaybeTextDecl only for ResolveEntity().
3907 - Fixed ReadWhitespace(). In fact its value is considered even if it
3908 is in the end of the XML.
3909 - Fixed ReadXmlDeclaration(). Now skips text declaration.
3910 - CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
3911 - ReadContentSpec() should set OrderType = OR for mixed model.
3912 Fixed to set content element name correctly.
3913 - ImportAsPERef() now skips Text declaration.
3914 - Type of enumerated default attributes shold be string.
3915 - Undeclared PE error is now handled as DTD's VC error, not
3916 XmlTextReader's WFC error.
3917 * XmlValidatingReader.cs : BaseURI should provide that of
3918 original XmlReader's when read was not started yet.
3919 Fixed XmlResolver to delegate to DTDValidatingReader.
3921 * XmlAttributeCollection.cs : Acquiring attList declaration is
3922 insufficient especially in case of lack of elementdecl.
3923 * XmlChar.cs : (Maybe this is compact than XmlConstructs.)
3924 added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
3925 IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
3927 * XmlInputStream.cs : Removed "version" declaration check. It should
3928 be done by XmlTextReader.
3930 * XmlNodeReader.cs : added internal GetInternalParserContext() and now
3931 it can be used in XmlValidatingReader.ResolveEntity().
3932 ResolveEntity() sets XmlTextReader.MaybeTextDecl.
3934 2003-08-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3936 * DTDValidatingReader.cs :
3937 Added full ExpandEntities support for text node and entity reference
3938 node (although require many usage tests). Almost all methods and
3939 properties now have currentTextValue != null check, that field means
3940 that there are cached (entity-resolved) text.
3941 Implemented default attribute aware XmlLang and XmlSpace.
3942 * XmlNodeReader.cs : ResolveEntity() should not require DTD.
3944 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3946 * DTDValidatingReader.cs,
3950 XmlValidatingReader.cs : fixed pragma USE_VERSION_1_0 to NET_1_0.
3952 2003-08-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3954 * DTDObjectModel.cs : Added BaseURI (but not used yet).
3955 DTDAttListDeclaration.ctro() now requires root dtd object model.
3956 * DTDValidatingReader.cs : Read() now expands EntityReference if
3957 entity handling of validating reader is ExpandEntities.
3961 XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
3962 ReadOuterXml which are modified in MS.NET 1.1.
3963 * XmlConstructs.cs : added int version of IsValid, IsInvalid,
3964 IsContent, IsMarkup and IsNCNameStart.
3965 Fixed int version of IsXXX() to check array index range.
3966 Added IsValidName (string).
3967 * XmlTextReader.cs :
3968 - Read() handles document with non document element as an error.
3969 - ReadText() and ReadCharacterReference() checkes illegal characters.
3970 - ReadEntityReference() checks name validity.
3971 - ReadProcessingInstruction() rejects such name that starts with
3972 "xml" ignoring case, and checks attributes more strictly.
3973 - ReadDeclaration() rejects unrecognized kind of declaration.
3974 - In many places, added "required whitespace" check in DTD markup.
3975 - DTD content model now disallows mixing use of '|' and ','.
3977 2003-08-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3979 * XmlDocumentFragment.cs : I missed to add it in relation to the
3980 previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
3981 * XmlNodeReader.cs : removed some TODO attributes.
3982 * DTDValidatingReader.cs,
3983 XmlValidatingReader.cs : Implemented ResolveEntity().
3985 2003-07-31 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3987 * XmlParserContext.cs,
3989 XmlElement.cs : Added internal Dtd and new internal XmlParserContext
3990 .ctor() that takes DTDObjectModel. And then rewrote classes which
3991 uses DTD information. Changed DocTypeName, InternalSubset, PublicId
3992 and SystemId to use DTDObjectModel.
3993 * DTDObjectModel.cs :
3994 Added DTDObjectModel.InternalSubsetHasPEReference.
3995 Added DTDEntityDeclaration.IsInternalSubset.
3996 * XmlTextReader.cs :
3997 Added internal GetInternalParserContext (to build entity reader).
3998 Added private isIntSubset to check if the DTD subset is internal or
3999 external, which might affect well-formedness constraints.
4000 Changed GenerateDTDObjectModel to return the resulting DTD model.
4002 * XmlEntityReference.cs : implemented BaseURI.
4003 * XmlNodeReader.cs :
4004 - Implemented ResolveEntity() and CanResolveEntity(). In fact
4005 it leads too many changes on almost all methods and properties,
4006 since they now must be aware of entityReader.
4007 - fixed ownerElement that might be used to return from attribute
4008 value to the element through parent attribtues.
4009 - Now changed indexer to call GetAttribute() and moved actual logic
4010 to the matching GetAttribute() methods.
4012 2003-07-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4014 * XmlNode.cs : fixed internal ConstructNamespaceManager() for InnerXml
4015 not to create extraneous xmlns="".
4017 2003-07-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4019 * DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
4020 attribute declaration should be got independently of elementdecl.
4022 Added internal SetDefault() to mark as default.
4023 Removed InnerText implementation that is just the same as XmlNode.
4024 * XmlDocument.cs : id shouldn't be removed from table at 'trying' to
4025 get matching elements. ReadAttributeNode() now sets default mark.
4026 * XmlElement.cs : WriteTo() should ignore default attributes.
4027 * XmlTextWriter.cs : shuold allow valid name char such as digits.
4029 2003-07-27 Piers Haken <piersh@friskit.com>
4031 * XmlQualifiedName.cs : fields should never be null
4033 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4035 * XmlDocumentFragment.cs : added XPathNodeType indicating Root.
4037 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4039 * XmlDocument.cs (GetIdenticalAttribute): restored OwnerElement.IsRooted
4041 2003-07-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4043 * XmlLinkedNode.cs : added internal IsRooted.
4045 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4047 * DTDValidatingReader.cs :
4048 - Added ID support in ValidateAttributes().
4049 - More refined ReadAttributeValue() support for non-expanding entity
4051 - It should handle LocalName, Name, Prefix, NamespaceURI and Value
4052 correctly when the reader is on each of the value nodes of an
4053 attribute. Now XmlDocument.ReadNode() should work well.
4055 - added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
4056 RemoveIdenticalAttribute()
4057 - Implemented GetElementById().
4058 * XmlAttributeCollection.cs :
4059 - added private ownerDocument property and replaced
4060 ownerElement.OwnerDocument with it.
4061 - Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
4062 It calls XmlDocument.{Add|Remove}IdenticalAttribute().
4063 - Added RemoveIdenticalAttribute() and it is used in Remove().
4064 (I also added AddIdenticalAttribute() but is not used.)
4066 2003-07-26 Duncan Mak <duncan@ximian.com>
4068 * XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
4069 for OwnerElement.IsRooted to fix the build..
4071 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4073 * XmlDocumentType.cs :
4074 modified private DTD to dtd and added internal DTD (the same thing).
4076 Fixed SetAttributeNode() to check if specified attribute is already
4077 set to the other element. In fact it is W3C DOM's specification but
4078 MS.NET 1.0 failed to catch it.
4079 * XmlTextReader.cs :
4080 ReadAttributeValue() should check if the value of the attribute is
4081 already read when the whole value is entity reference.
4082 Also, Name of text nodes should be "", not "#text"
4084 2003-07-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4086 * XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
4087 with http://www.w3.org/XML/1998/namespace.
4088 * XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
4089 * XmlNode.cs : InnerText should handle CDATA and whitespaces.
4090 * XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
4091 * XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
4092 attributes (as MS.NET does). It isn't good way and I may change it.
4094 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4096 * DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
4097 DTDNotationDeclarationCollection and replaced Hashtables with them.
4098 Added NormalizedDefaultValue property for DTDAttributeDefinition.
4099 * DTDValidatingReader.cs :
4100 - It now reads attribute values into value collection.
4101 - Renamed consumedDefaultAttribute to consumedAttribute, and
4102 inContent to insideContent.
4103 - GetAttribute() should allow reader's other node state than element.
4104 - MoveToNextAttribute() should move when reader is placed other than
4105 the first attribute.
4106 - HandleError() now supports ValidationType.None (i.e. does nothing).
4107 - ValidateAttribute() now collects and resolves attribute value
4108 entity references. (On the other hand, it doesn't support
4109 EntityHandling.ExpandCharEntity.)
4110 - NodeType shouldn't return Attribute after ReadAttributeValue().
4111 Now only Text is supported, but must also support EntityReference.
4112 - Add FilterNormalization() and partially support Normalization.
4114 2003-07-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4116 * XmlTextReader.cs :
4117 Read() now handles parser context stuff (BaseURI, XmlLang and
4118 XmlSpace) correctly for an empty element.
4119 Normalization property now doesn't throw an error. Will be used soon.
4120 * XmlValidatingReader.cs : added ValidationType.None support (wait for
4121 the next DTDValidatingReader update for "not firing event handler).
4122 * XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
4124 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4126 * DTDValidatingReader.cs :
4127 changed base class to XmlReader and implemented IXmlLineInfo members.
4128 changed .ctor() argument from event handler to validating reader.
4129 Removed some #if ... #else ... #endif blocks.
4130 Added validation event support for Read() using HandleError().
4131 * XmlValidatingReader.cs : added internal OnValidationEvent().
4132 * XmlDocument.cs : ReadNode() now checks reader's state more strictly.
4134 2003-07-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4136 * XmlUrlResolver.cs : applied BenM's patch for file uri problem
4139 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4141 * DTDValidatingReader.cs :
4142 added DTDObjectModel support for non-XmlTextReader XmlReader
4143 e.g. XmlNodeReader (Read() method).
4145 added internal CreateDocumentType(XmlTextReader) and moved
4146 ReadDoctypeNode() to XmlDocumentType.ImportFromDTD().
4147 * XmlDocumentType.cs :
4148 added internal .ctor(XmlTextReader, document) and ImportFromDTD().
4149 * XmlTextReader.cs :
4150 Renamed useSbForVal (valueBuilderAvailable), valSb (valueBuilder)
4151 and currentSubset (DTD).
4152 Added GenerateDTDObjectModel() (for independent doctype parsing).
4154 2003-07-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4157 .ctor() should reject xml- or xmlns-prefixed node.
4158 * XmlNamespaceManager.cs :
4159 added some xmlns validity check.
4161 optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
4162 avoiding XmlNamespaceManager creation.
4163 * XmlNodeReader.cs :
4164 doctype node should return PUBLIC and SYSTEM for its indexer,
4165 and Value should be internal subset,
4167 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4169 * DTDObjectModel.cs,
4170 DTDValidatingReader.cs : Completely rewrote attribute handling.
4172 2003-07-12 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4175 XmlElement.cs : Fixed CloneNode() for bug #46129.
4176 * XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
4177 String.Format arguments, and basically XmlException.ctor(
4178 IXmlLineInfo, message) seems good idea to use.
4179 * XmlTextReader.cs :
4180 - Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
4181 required non-null context which don't have to exist.
4182 - Added state check. Introduced 'currentState' and 'maybeTextDecl'
4183 (for external entity) and removed hasEnteredDocument. Added
4184 state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
4185 ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
4186 - Replaced throw ReaderError() with throw new XmlException() and
4187 fixed that some error hadn't thrown, only created.
4188 - ResetState() should re-initialize existing private members other
4189 than some specified fields.
4190 - Private AddAttribute() should check if the same-named attribute
4192 * DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
4194 2003-07-09 Lluis Sanchez Gual <lluis@ximian.com>
4196 * XmlTextReader.cs : Implemented ResetState() method.
4198 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4200 * XmlElement.cs : IsEmpty has removed attributes since it incorrectly
4203 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4205 * XmlDocument.cs : Load(string filename) should close its stream.
4206 Small change for the latest DTDObjectModel change.
4207 * XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
4208 changed methods are only related to DTD stuff).
4209 Now uses XmlSchemaDatatype for attribute type definition.
4210 * XmlValidatingReader : initial (limited) support for DTD validation.
4211 It can handle only XmlTextReader.
4212 * DTDObjectModel.cs : changed radically for initial validation support.
4213 * added DTDAutomata.cs and DTDValidatingReader.cs.
4215 2003-07-06 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4217 * XmlElement.cs : Removed extraneous xmlns output support (it should
4218 be done by XmlTextWriter).
4219 * XmlNode.cs : InsertBefore() now checks validity of the newChild (and
4220 most of the changes are in fact indentation changes).
4221 * XmlWriter.cs : WriteAttributes() now can write entity references.
4222 WriteNode() now writes xmldecl attributes correctly.
4223 Removed namespaceManager and xmlns check logic, since it should be
4224 done by individual XmlTextWriter.
4225 * XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
4226 written multiple xmlns declarations.
4227 Moved namespaceManager from abstract XmlWriter.
4228 Write{Start|End}Attribute() and WriteString() now checks xmlns
4229 attribute value. (MS.NET holds value only with this write method).
4231 2003-07-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4233 * XmlDocument.cs : removed xmlReader.Close() from Load(XmlReader).
4235 2003-06-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4237 * XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
4238 essentially changed most of the property handling (e.g. removed attribute
4239 enumerator and it now became really cloneable).
4240 * XmlNodeReader.cs : ReadInnerXml() changes its state as error
4241 when the method is called at Initial state.
4243 2003-06-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4245 * XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
4246 as non-empty, and XmlElement's IsEmpty is designed as such.
4247 Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
4249 * XmlNode.cs : Fixed XPathNodeType. It should throw an exception
4250 instead of returning undefined enum value.
4251 Modified some code comments.
4252 * XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
4253 when XmlReader's node is not at empty element or at EndElement.
4254 Fixed XmlDeclaration's standalone check.
4256 2003-06-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4258 * XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
4259 to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
4261 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4263 * XmlInputStream.cs : quick fix for public ctor() BaseURI bug.
4265 2003-06-20 Ben Maurer <bmaurer@users.sourceforge.net>
4267 * XmlTextReader.cs: Reduces memory allocation when the reader is
4268 not queried for some values.
4269 * NameTable.cs: Now uses a custom hashtable to implement. As a
4270 result, when Get (char[], int, int) is called, a string is only
4271 allocated if it is actually a new entry.
4272 (StrEqArray) Compares a string and a char[]
4273 (AddEntry) Adds a new entry to the hashtable
4274 (Entry) Represents a hashtable entry.
4276 2003-06-20 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4278 * XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.
4280 2003-06-16 Ben Maurer <bmaurer@users.sourceforge.net>
4281 * XmlUrlResolver.cs: really fixed #44231
4283 2003-06-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4285 * XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
4286 this method set current node null.
4287 * XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
4288 String.Empty instead of null (expected value).
4291 XmlInputStream.cs : fixed BaseURI problem (bug #44231).
4293 2003-06-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4295 * XmlNodeReader.cs : this [name] and this [name, ns] (and
4296 GetAttribute() methods in turn) returns null instead of String.Empty.
4297 * XmlTextWriter.cs : WriteStartAttribute() should try to use specified
4298 prefix before auto-generating prefixes.
4299 Implemented WriteBase64().
4301 2003-06-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4303 * XmlNodeReader.cs : LookupNamespace () has refered invalid current
4304 node for attributes. Modified to use private "document" property.
4306 2003-06-10 Lluis Sanchez Gual <lluis@ximian.com>
4308 * XmlTextWriter.cs: when adding an attribute with a namespace, a prefix must be automaticaly
4309 generated, and a namespace declaration must be added.
4310 * XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
4312 2003-06-10 Zoltan Varga <vargaz@freemail.hu>
4314 * XmlAttribute.cs: Accept a null prefix or namespaceURI.
4316 2003-06-10 Duncan Mak <duncan@ximian.com>
4318 * XmlDocumentNavigator.cs (GetNode): Make it implement
4321 2003-06-05 Lluis Sanchez Gual <lluis@ideary.com>
4323 * XmlTextWriter.cs : Fixed bug. After calling for example WriteStartElement ("pref","ln","ns");
4324 a call to LookupPrefix ("pref") when still writting attributes should
4325 return "ns", and it didn't.
4327 2003-06-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4329 * XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
4330 * XmlConvert.cs : fixed VerifyNCName() to check correctly.
4332 2003-06-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4334 * XmlDocumentNavigator.cs : Compute document node one time.
4335 MoveToFirstChild() should move to PIs and comments.
4337 2003-05-30 Miguel de Icaza <miguel@ximian.com>
4339 * XmlReader.cs (ReadStartElement): Improve error message.
4341 2003-05-28 Lluis Sanchez Gual <lluis@ideary.com>
4343 * XmlTextReader.cs : MoveToAttribute methods must set the enumerator to the right
4344 position, since MoveToNextAttribute may be called after it.
4345 SetProperties(): attributes do not "inherit" the namespace.
4346 * XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
4348 2003-05-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4350 * NameTable.cs : Add() sets the given name string interned.
4351 * XmlParserContext.cs : added internal PushScope() and PopScope() to
4352 hold stacks of xml:base, xml:lang and xml:space.
4353 * XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
4354 property for stacked attributes). Renamed Initialize() to Initialize-
4355 Context(). Modified to use XmlParserContext.PushScope()/PopScope().
4357 2003-05-26 Lluis Sanchez Gual <lluis@ximian.com>
4359 * XmlReader.cs: Little fix to WriteAttributeString()
4361 2003-05-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4363 * XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
4364 XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
4365 XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
4366 XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
4367 Reverted the recent accessibility mistake (5/16).
4368 * XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic
4369 from XmlNode to XmlDocument.
4371 2003-05-18 Lluis Sanchez Gual <lluis@ideary.com>
4373 * XmlQualifiedName.cs : Fixed bug in equality operator.
4375 2003-05-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4377 * XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
4378 any open attributes or elements. WriteWhitespace() checks state and
4379 closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
4380 when it is called inside attribute value.
4381 * XmlException.cs : added .NET 1.1 .ctor.
4382 * added XmlSecureResolver.cs (only stubbing).
4383 * XmlAttribute.cs : set_InnerXml() should remove children.
4386 XmlDocumentFragment.cs,
4387 XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
4388 * XmlNode.cs : RemoveAll() should also remove all attributes.
4389 * XmlTextRader.cs : .ctor() for attribute value reader should add
4390 quotations at initialization, since it requires quote chars.
4391 * XmlWriter.cs : WriteAttributeString() more correct xmlns check.
4393 2003-05-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4395 * changed XPathNodeType modifier to internal *protected* override.
4396 * XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
4397 * XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
4398 * XmlAttributeCollection.cs : removed some incorrect TODO attributes.
4399 * XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
4400 when the argument is "xmlns".
4401 * XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
4402 * XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
4403 * XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
4404 * XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
4405 not to set error state for non-started XmlNodeReader.
4406 * XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
4407 BaseURI support. Fixed Initialize() to handle Attribute correctly.
4408 SetProperty for attribute auto-completes xmlns NSURI.
4409 Attribute and whitespace handling became more correct.
4410 Don't parse external DTD if XmlResolver is null.
4411 * XmlTextWriter.cs : implemented WriteEntityRef().
4412 WriteStartAttribute() checks if ns does not equal to that of xmlns.
4413 * XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
4415 2003-05-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4417 * XmlConvert.cs : IsInvalid() Now uses XmlConstructs.IsName(Start).
4418 EncodeName() now correctly encodes invalid names.
4419 Result string of ToString(DateTime) contains "fffffff".
4421 2003-04-29 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4423 * XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
4424 * XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
4426 Fixed this[] to work correctly against XmlDeclarations.
4427 Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
4428 (which may prevent validations etc.)
4431 XmlTextReader.cs : Fixed ReadString() to be compliant with each
4433 * XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
4435 2003-04-27 Pedro MartÃnez Juliá <yoros@wanadoo.es>
4437 * XmlNode.cs: ensure to get a valid Uri in BaseUri when loading the
4438 source document from a file.
4440 2003-04-27 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4442 * XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
4443 content EntityReference correctly.
4444 * XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
4445 HasAttributes, indexers, MoveTo*Attribute() and Read() ).
4446 Modified Skip() to call Read () explicitly.
4447 * XmlTextReader.cs :
4448 Fixed ReadInnerXml() which ignored EndElement token in certain cases.
4449 Implemented MoveToAttribute (local, ns), and modified GetAttribute()
4450 in relation to this change.
4451 Attributes for XmlDeclaration are now correctly set.
4452 * XmlTextWriter.cs : WriteRaw() is now different from WriteString().
4453 Simplified WriteAttributes() for XmlDeclaration.
4455 2003-04-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4457 * XmlTextReader.cs : fixed ReadInnerXml(). it was inconsistent with
4460 2003-04-25 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4462 * XmlDocument.cs : fixed Load() to set baseURI correctly.
4463 * XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
4464 * XmlTextReader.cs :
4465 fixed Depth. When it's on StartElement, Depth was already incremented.
4466 fixed private SaveProperty(), which moved away its saved properties
4467 when MoveToElement was called repeatedly.
4468 * XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
4470 WriteAttributes() refactory (for XMLDecl).
4471 WriteNode() don't Read() when the reader is Initial state, let other
4472 invokation to Read(). In case of Element, it should write entire
4473 element. In case of Attribute, it shouldn't Read().
4474 WriteStartDocument() should omit standalone decl. when there is no
4477 2003-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4479 * XmlReader.cs: reverted last patch. It breaks System.Configuration
4480 because 1. it considers XmlDeclaration as content and 2. always
4481 returns XmlNodeType.None.
4484 2003-04-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4486 * Added missing ChangeLog of 4/4/2003.
4487 * XmlTextWriter.cs : patch by Erik. fixed WriteQualifiedName.
4488 (write prefix instead of ns.)
4489 * XmlInputStream.cs : file access mode fix (FileAccess.Read was missing)
4490 * XmlTextReader.cs : modified to call Read() instead of ReadContent().
4491 (It may be required for decorated reader such as XmlValidatingReader.)
4492 Changed Read() error message for mismatch end tag.
4493 * XmlDocument.cs : (ReadNode) friendly message for mismatch EndElement.
4494 * XmlReader.cs : Corrected misinterpreted MoveToContent() method.
4496 2003-04-04 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4498 * XmlDocument.cs : Load() now closes the given XmlReader.
4499 Don't allow creation of XmlTextReader for Doctype. (workaround.)
4500 * XmlInputStream.cs : It now closes its internal stream explicitly.
4501 * XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
4502 * XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
4503 * XmlParserInput.cs : added Close() method.
4504 * XmlReader.cs : MoveToContent() should (1) not Read in case of empty
4505 element, and (2) MoveToElement() in case of attribute.
4506 * XmlTextReader.cs : Close() now actually closes source TextReaders.
4508 2003-03-26 Duncan Mak <duncan@ximian.com>
4510 * XmlTextWriter.cs (Write): A patch from Atsushi to fix
4511 prematurely ending the write, or something like that. It was
4512 causing us to chop off the end of the document when we're trying
4513 to generate XML Schemas.
4515 2003-03-23 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4517 * XmlTextReader.cs : implemented ReadString().
4518 fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
4519 null reference exception when context is null.
4520 * XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
4521 fixed Read() - when positioned at EndElement, it didn't progress.
4522 fixed HasAttribute - it didn't return false in all cases.
4523 fixed Name and LocalName - only limited type of nodes return names.
4524 fixed AttributeCount - in some cases it threw null ref exception.
4526 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4528 * XmlTextWriter.cs : WriteStartDocument doesn't set hasRoot=true, then
4529 WriteEndDocument without root element now raises an error correctly.
4530 * XmlDocumentNavigator.cs : (MoveToFirstChild) fixed bugzilla #36672.
4531 implemented BaseURI, NameTable, XmlLang, GetAttributes, GetNamespace,
4534 2003-03-22 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4536 * XmlElement.cs : RemoveAttribute now don't throws when specified
4537 attribute does not exist.
4539 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4541 * XmlNode.cs : add descriptions for some node type error.
4543 2003-03-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4545 * XmlNodeArrayList.cs, XmlNodeListChildren.cs : bugzilla #39920 fix.
4547 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4549 * XmlDeclaration.cs : quick fix, not to use regex for set_Value.
4551 2003-03-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4553 * XmlTextReader.cs : Fixed wrong notationdecl SYSTEM id read.
4554 * XmlInputStream.cs : Should allow versionless input stream entity.
4556 2003-03-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4558 * added XmlParserInput.cs for multi xml document sources.
4559 * added DTDObjectModel.cs (maybe temporary).
4560 * XmlTextReader.cs :
4561 + fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
4562 + Some members such as LineNumber, ReadChar now uses XmlParserInput.
4563 + added support for Namespaces (namespace-ignorant parse available).
4564 + added support for XmlResolver.
4565 + replace SetReaderContext()/SetReaderFragment() with Initialize().
4566 + use NameTable in CreateNameString.
4567 + fixed ReadCData(). Now reads "]]]>" correctly.
4568 + support for DTD parse.
4569 + Read() now throws an error when it reached EOF while Depth > 0.
4571 XmlDocumentFragment.cs,
4572 XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
4573 * XmlDocument.cs : ReadNode() now reads DocumentType.
4574 * XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
4576 XmlNotation.cs : added override LastLinkedChild (for doctype node).
4577 * XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
4578 * XmlElement.cs : bugfix for node removal of set_InnerXml.
4579 * XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
4580 (to append child XmlEntity into XmlDocumentType correctly.)
4581 * XmlInputStream.cs : fixed to access file with FileAccess.Read.
4583 2003-03-15 Duncan Mak <duncan@ximian.com>
4585 * XmlElement.cs (Name): Only append prefix + ':' when prefix is
4586 neither String.Empty nor null. Thanks to Simon Guindon for
4587 reporting the bug and Jackson for fixing this bug with me.
4589 2003-03-15 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4591 * XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
4592 * XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
4593 fixed ReadNode(), it should call reader.Read() only on Initial state.
4594 * XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
4595 and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
4596 System.Net.WebClient directly.
4597 * XmlParserContext.cs : baseURI never be null.
4598 * XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
4599 * XmlUrlResolver.cs : namespace change for XmlInputStream.
4601 2003-03-12 Elan Feingold <efeingold@mn.rr.com>
4603 * XmlTextReader.cs: When throwing a ReaderException, show what
4604 character was the culprit
4606 2003-03-05 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4608 * XmlDocumentFragment.cs, XmlElement.cs :
4609 modified InnerXml (fragment type from Element to DocumentFragment).
4611 * XmlElement.cs : fixed WriteTo() ns check.
4612 * XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
4613 * XmlNode.cs : fixed ConstructNamespaceManager().
4615 * XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
4616 IsPubid with an int arg.
4617 * XmlReader.cs : changed to use XmlChar.cs (its role is as same as
4619 * XmlTextReader.cs :
4620 improved error messages with line info.
4621 / checking matching start and end tags.
4622 / prevents the apperance of multiple root elements. (patch by Erik)
4623 fixed and refactored ReadInnerXml() and ReadOuterXml()
4624 changed to use XmlChar.cs.
4626 * XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
4627 (It will help c14n implementation.)
4628 / blocks multiple attribute output with element node.
4630 2003-02-28 Alan Tam <Tam@SiuLung.com>
4632 * XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
4633 methods to make them compatible with the XML Schema Spec from W3C
4634 ToString(TimeSpan) is still outstanding
4636 2003-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4639 (Load (string)): hack to workaround some issues with Uri.Parse. Once
4640 Parse is fixed, remove the hack.
4642 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4644 * XmlQualifiedName.cs : fixed GetHashCode() to avoid null reference
4645 * XmlTextReader.cs : fixed ReadAttributeValue() to handle
4646 entity reference, and some refactory.
4648 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4650 * XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.
4652 2003-02-16 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4654 * XmlInputStream.cs : added (also contains internal XmlStreamReader).
4655 * XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
4656 and can read non-UTF-8 stream.
4657 * XmlTextReader.cs : related to above stream fix.
4658 * XmlUrlResolver.cs : implemented GetEntity ().
4660 2003-02-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4662 * XmlTextWriter.cs: implemented WriteRaw (char[], int, int).
4664 2003-02-02 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4666 * XmlTextReader.cs : implemented QuoteChar.
4668 2003-01-26 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4670 * XmlNode.cs : implemented ReplaceChild.
4671 removed DocElem checking at InsertBefore.
4672 * XmlNodeReader.cs : fixed ReadString and Read for correct node info.
4673 * XmlText.cs : implemented CloneNode and SplitText.
4675 2003-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4677 * XmlCharacterData.cs: added XPathNodeType property.
4679 2003-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4681 * XmlTextWriter.cs: throw an exception if WriteEndDocument is
4682 called without a prior call to WriteStartDocument.
4684 2003-01-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4686 * XmlNodeReader.cs : several fix to get more compatible with MS.NET.
4688 2003-01-19 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4690 * XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
4691 null when no matching uri.
4692 * XmlElement.cs : removed unnecessary xmlns output.
4693 * XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
4694 * XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
4695 along with the change above, and moved timing of 'xmlns' output
4696 to CloseStartElement.
4697 * XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
4699 2003-01-18 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4701 * XmlWriter.cs: modified WriteStartElement (see test for detail).
4704 2003-01-13 Ville Palo <vi64pa@koti.soon.fi>
4706 * XmlDocument.cs: Added CheckName () method to check names validity.
4708 2003-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4711 (ReadOuterXml): use Depth property which return elementDepth, not depth.
4713 2003-01-11 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4715 * XmlElement.cs : (by ville) XmlElement.set_InnerText event bugfix.
4716 * XmlTextReader.cs : some fix for ReadOuterXml().
4718 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4720 * XmlTextReader.cs : bugfix for attributes related to creation of
4721 XmlAttribute *node*.
4723 2003-01-08 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4725 * XmlTextReader.cs : bugfix for attribute values which have entity
4728 2002-12-28 Ville Palo <vi64pa@koti.soon.fi>
4730 * XmlDocument.cs: XmlTextWriter.Formatting == Indented when
4731 calling Save () -methods.
4733 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4735 * XmlNodeReader.cs : primitive reading implementation.
4737 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4739 * XmlElement.cs : quick fix for the incomplete patch of #35308 below.
4741 2002-12-28 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4743 * XmlDocument.cs : removed inconsistent line-feed output.
4744 * XmlElement.cs, XmlTextWriter.cs :
4745 fixed for bugzilla 35308 (default ns output)
4746 * XmlWhitespace.cs : limited output only when preserving whitespace.
4748 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4750 * XmlAttribute.cs, XmlDocument.cs, XmlTextReader.cs:
4751 Implemented XmlTextReader.ReadAttributeValue().
4752 Added internal ReadAttributeNodeValue().
4753 Fixed XmlAttribute.InnerXml to use these methods.
4755 * XmlDocument.cs, XmlDocumentFragment.cs, XmlElement.cs, XmlNode.cs:
4756 Implemented XmlDocument.ReadNode() and removed ConstructDOM().
4757 Other changes are replacing them.
4759 2002-12-24 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4761 * XmlDocument.cs: patch by Ville (fixed default PreserveWhitespace)
4763 2002-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4765 * XmlElement.cs, XmlTextWriter.cs, XmlWriter.cs:
4766 patch by JD Conley <jconley@winfessor.com>.
4767 (Fix for xmlns attribute output.)
4769 2002-12-05 Ville Palo <vi64p@koti.soon.fi>
4771 * XmlQualifiedName.cs: Little fix to ToString () -method
4773 2002-12-04 Tim Haynes <thaynes@openlinksw.com>
4775 * class/System.XML/System.Xml/XmlElement.cs: Made more refined
4776 checks on attributeNode to fix 32262.
4778 2002-12-03 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4780 * XmlDocument.cs (CreateNavigator(XmlNode)) : reverted
4781 * XmlTextWriter.cs (WriteStartElementInternal):
4782 fixed when default namespace was specified, all descendants
4783 fail to omit the default namespace declarations.
4786 XmlNode.cs (internal XmlLang/XmlSpace) : implemented(defined)
4788 XmlDocumentFragment.cs,
4789 XmlElement.cs (set_InnerXml): now uses XmlLang/XmlSpace
4790 * XmlElement.cs (set_IsEmpty) : implemented
4791 (WriteTo) : removed my improper indenting (Writer already done)
4792 * XmlNode.cs (BaseURI) : fixed if ParentNode is null, NullPointerEx
4793 (ConstructDOM) : implemented when xmlReader isn't XmlTextReader
4794 ...and renamed XmlDocument.ConventionalParser to ReusableReader ;-)
4796 2002-12-01 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4798 * XmlNode.cs (RemoveChild):
4799 bugfixed when XmlNode is Document OwnerDocument is null
4800 * XmlDeclaration.cs (Value):
4801 bugfixed regular expression pattern.
4802 * XmlDocument.cs (CreateNavigator): bugfixed access modifier.
4804 2002-11-24 Duncan Mak <duncan@ximian.com>
4806 * XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
4807 Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
4808 first patch to Mono! ;-)
4810 2002-11-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4813 (AppendChild): readded refChild != null condition before throwing
4814 "cannot insert this node in this position" exception. There's probably
4815 a better solution. Fixes #34191.
4816 (RemoveAll): changed following Atsushi instructions.
4819 2002-11-13 Duncan Mak <duncan@ximian.com>
4821 * XmlElement.cs (IsEmpty): A temporary check-in to keep gtk-sharp
4824 2002-11-14 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4826 * XmlDocument.cs : unified all constructors, added ConventionalParser,
4827 implemented CloneNode() and CreateEntityReference(),
4828 * XmlEntityReference.cs : set_Value, WriteContentTo, WriteTo
4829 set BaseURI to MonoTODO
4830 * XmlNode.cs : implemented PrependChild, modified ConstructDOM,
4831 bugfix InsertAfter (incorrect prepending) and InsertBefore
4832 (more than one DocumentElements hadn't caused errors)
4833 * XmlTextReader.cs : unified all constructors,
4834 added internal SetReaderContext(), SetReaderFragment()
4835 bugfix (syntax check of PUBLIC / getting internal subset)
4837 2002-11-13 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
4839 XmlAttribute.cs : set_InnerText, set_InnerXml, some check for set_Prefix
4840 XmlAttributeCollection.cs : (indexer) this[localName, namespaceURI]
4841 XmlCharacterData.cs : exchanged Data and Value
4842 (for processing events and inheritance)
4843 XmlDocumentFragment.cs : set_InnerXml
4844 XmlSignificantWhitespace.cs : set_Value
4845 XmlTextReader.cs : ReadAttributeValue
4847 2002-11-04 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4849 XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement'
4851 2002-11-03 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4853 * XmlAttributeCollection.cs : checks owner element.
4854 implemented CopyTo, InsertAfter, InsertBefore, Prepend,
4855 Remove, RemoveAt, SetNamedItem.
4856 removed some logics that sets 'Parent' (that should be null)
4857 * XmlDocument.cs : set_InnerXml, [PreserveWhitespace(incomplete)]
4858 * XmlDocumentFragment.cs : get_InnerXml, WriteContentTo, WriteTo
4859 * XmlElement.cs : implemented WriteTo, set_InnerText.
4860 Fixed WriteTo() to add xmlns:* attributes when
4861 writer.LookupPrefix() returned mismatching.
4862 * XmlNamedNodeMap.cs : compare not only name but localname and nsuri.
4863 Removing different prefixes for the same uri now runs correct.
4864 added SetNamedItem(XmlNode node, int position_to_insert).
4865 * XmlNode.cs : ConstructDOM (logically) creates XmlEntityReference,
4866 XmlWhitespace, and XmlSignificantWhitespace
4868 2002-10-31 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4870 * XmlDocument.cs : implemented CreateDocumentFragment()
4871 * XmlElement.cs, XmlLinkedNode.cs :
4872 moved LastLinkedChild from XmlElement to XmlLinkedNode.
4873 * XmlEntityReference.cs : must throw NotImplementedException.
4875 + implemented InsertBefore() and then implemented InsertAfter()
4876 and modified AppendChild() to call it.
4877 + added logic to check ReadOnly, parent document equivalence,
4878 and inserting any 'content' before/after DocumentElement.
4879 + implemented Clone() [it is equals to CloneNode() by MS doc.]
4880 + added logic in RemoveChild() to check parent of oldChild.
4881 + fixed ConstructNamespaceManager() to internal only.
4883 2002-10-29 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp>
4885 * XmlAttribute.cs : add internal 'IsDefault' property
4886 (equals to !Specified)
4887 * XmlImplementation.cs : added 'internalNameTable' property.
4889 + now allows "" for 'standalone' in CreateXmlDeclaration.
4890 + implemented 'Implementation' property and constructor with it.
4891 + added logic for appending name table (but still no use)
4892 + implemented property 'DocumentType'
4893 (but without internalSubset parsing. wait for next update.)
4895 + modified AppendChild() and RemoveChild() to support fragment.
4896 + modified AppendChild() to remove newChild from its parent
4897 when newChild is already in the other place.
4898 + modified RemoveChild() to set parentNode null.
4899 + modified ConstructDOM() to create DocumentType,
4900 and fixed access modifier ('internal protected' to 'internal')
4901 * XmlLinkedNode.cs : fixed 'NextSibling' to return null
4902 when its parent is null.
4903 * XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
4904 property to enable AppendChild() for this class.
4905 * XmlTextReader.cs : appended private publicId and systemId fields.
4907 2002-10-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4909 * XmlTextReader.cs: make it work when the underlying Stream is not
4912 2002-10-26 Piers Haken <piersh@friskit.com>
4914 * XmlNode.cs: add virtual property XPathNodeType
4919 * XmlProcessingInstruction.cs:
4920 * XmlSignificantWhitespace.cs:
4922 * XmlWhitespace.cs: implement XPathNodeType property
4923 * XmlDocumentNavigator.cs: use XPathNodeType property instead of switch
4925 2002-10-26 Piers Haken <piersh@friskit.com>
4927 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
4929 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4931 * XmlTextReader.cs: don't increment depth for entity references.
4933 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
4935 * - Fixed the duplication of xmlns:xx = yy when serializing the
4936 XML for serialization
4938 Fixed the unnecessary parsing/serializing when adding assemblies
4941 Avoided setting the XmlNode.InnerXml property
4942 (as it's not implemented)
4944 Fixed the usage/implementation of
4945 XmlElement.GetElementsByTagName()
4947 2002-10-21 Duncan Mak <duncan@ximian.com>
4952 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
4953 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
4955 2002-10-18 Duncan Mak <duncan@ximian.com>
4957 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
4958 <ginga@kit.hi-ho.ne.jp>.
4960 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
4962 * XmlDocument.cs (ImportNode): Implemented
4964 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4966 * XmlDocument.cs: one more Load method implemented.
4967 * XmlTextReader.cs: Depth now works.
4969 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4971 * XmlConvert.cs: IsInvalid is now internal.
4972 * XmlNamespaceManager.cs: implemented RemoveNamespace
4973 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
4974 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
4976 2002-09-19 Matt Hunter <mahunter@tconl.com>
4978 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
4979 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
4981 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4983 * XmlConvert.cs: finished implementation.
4984 * XmlTextReader.cs: fixed #30239.
4985 * XmlTextWriter.cs: fixed #30240.
4987 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4989 * XmlTextReader.cs: line and position begin with 1.
4991 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4993 * XmlException.cs: added a new internal constructor for IXmlLineInfo
4994 and output line and position info in Message.
4996 * XmlReader.cs: implemented missing bits.
4998 2002-09-12 Piers Haken <piersh@friksit.com>
5000 * XmlDocumentNavigator.cs: implement MoveToId()
5002 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5004 * XmlTextWriter.cs: fixed bug #29886.
5006 2002-08-26 Ravi Pratap <ravi@ximian.com>
5009 * XmlAttribute.cs (InnerText): Implement getting this property.
5011 * XmlNode.cs (InnerText): Ensure that we append only values of
5014 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5016 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
5017 that allowed compiling this.
5018 [ FIXME: filed bug #29435. mcs should have failed on this ]
5020 2002-08-25 Tim Coleman <tim@timcoleman.com>
5022 Change CreateNavigator to not be virtual.
5024 Add set_Prefix and InnerText accessors.
5025 * XmlEntityReference.cs:
5026 Add set_Value accessor.
5028 Make objects which should be private private.
5030 Remove WriteStartElementInternal abstract definition.
5031 * XmlValidatingReader.cs:
5034 2002-08-22 Jason Diamond <jason@injektilo.org>
5036 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
5037 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
5039 2002-08-22 Jason Diamond <jason@injektilo.org>
5041 * XmlElement.cs: Correction to previous GetElementsByTagName patch
5042 courtesy of Matt Hunter <xrkune@tconl.com>.
5044 2002-08-22 Jason Diamond <jason@injektilo.org>
5046 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
5047 qualified GetElementsByTagName courtesy of Matt Hunter
5050 2002-08-19 Jason Diamond <jason@injektilo.org>
5052 * XmlDocument.cs, XmlElement.cs: Added implementation of
5053 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
5055 2002-08-16 Jason Diamond <jason@injektilo.org>
5057 * XmlElement.cs: Fixed writing out qualified elements courtesy of
5058 Marcus Bürgel <marcus.buergel@gmx.de>.
5060 2002-08-13 Tim Coleman <tim@timcoleman.com>
5062 Partial implementation of WriteQualifiedName ().
5064 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
5065 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
5066 InsertData(), and ReplaceData(). These methods fire the
5067 NodeChanging and NodeChanged events.
5069 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
5071 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
5072 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
5074 2002-08-03 Tim Coleman <tim@timcoleman.com>
5075 * XmlNamespaceManager.cs:
5076 .Net allows the empty namespace to be redefined
5077 at a later point, but the current implementation
5078 did not. This fixes a hashtable conflict.
5080 2002-07-26 Tim Coleman <tim@timcoleman.com>
5082 When given a textwriter, check to see if it has a
5083 null encoding. This was being done for other inputs
5086 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
5088 * XmlTextReader.cs: rough line/column support.
5090 2002-07-23 Duncan Mak <duncan@ximian.com>
5092 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
5093 (string, string []) is particularly strange.
5095 * XmlException.cs: Remember to call the base serialization
5098 * XmlNodeReader.cs: Keep a new variable to store the Depth.
5100 2002-07-14 Jason Diamond <jason@injektilo.org>
5102 * XmlAttribute.cs: Removed ownerElement field since we can reuse
5105 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
5106 if the current node is an attribute.
5108 * XmlElement.cs: SetAttributeNode now sets the new attribute's
5111 2002-07-12 Jason Diamond <jason@injektilo.org>
5113 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
5114 creating an element, use String.Empty instead.
5116 2002-07-12 Piers Haken <piersh@friksit.com>
5118 * XmlAttributeCollection.cs: implement some ItemOf indexers
5119 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
5120 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
5122 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
5125 2002-10-26 Piers Haken <piersh@friskit.com>
5127 * XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
5129 2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5131 * XmlTextReader.cs: don't increment depth for entity references.
5133 2002-10-22 Tim Haynes <thaynes@openlinksw.com>
5135 * - Fixed the duplication of xmlns:xx = yy when serializing the
5136 XML for serialization
5138 Fixed the unnecessary parsing/serializing when adding assemblies
5141 Avoided setting the XmlNode.InnerXml property
5142 (as it's not implemented)
5144 Fixed the usage/implementation of
5145 XmlElement.GetElementsByTagName()
5147 2002-10-21 Duncan Mak <duncan@ximian.com>
5152 * XmlTextReader.cs: Implementation for XmlNode.InnerXml from
5153 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>.
5155 2002-10-18 Duncan Mak <duncan@ximian.com>
5157 * XmlDocument.cs: Applied a patch by Atsushi Enomoto
5158 <ginga@kit.hi-ho.ne.jp>.
5160 2002-10-12 A.Enomoto <ginga@kit.hi-ho.ne.jp>
5162 * XmlDocument.cs (ImportNode): Implemented
5164 2002-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5166 * XmlDocument.cs: one more Load method implemented.
5167 * XmlTextReader.cs: Depth now works.
5169 2002-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5171 * XmlConvert.cs: IsInvalid is now internal.
5172 * XmlNamespaceManager.cs: implemented RemoveNamespace
5173 * XmlTextReader.cs: return BaseURI and Encoding from the parser.
5174 * XmlTextWriter.cs: implemented WriteName and WriteNmToken.
5176 2002-09-19 Matt Hunter <mahunter@tconl.com>
5178 * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
5179 * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
5181 2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5183 * XmlConvert.cs: finished implementation.
5184 * XmlTextReader.cs: fixed #30239.
5185 * XmlTextWriter.cs: fixed #30240.
5187 2002-09-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5189 * XmlTextReader.cs: line and position begin with 1.
5191 2002-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5193 * XmlException.cs: added a new internal constructor for IXmlLineInfo
5194 and output line and position info in Message.
5196 * XmlReader.cs: implemented missing bits.
5198 2002-09-12 Piers Haken <piersh@friksit.com>
5200 * XmlDocumentNavigator.cs: implement MoveToId()
5202 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5204 * XmlTextWriter.cs: fixed bug #29886.
5206 2002-08-26 Ravi Pratap <ravi@ximian.com>
5209 * XmlAttribute.cs (InnerText): Implement getting this property.
5211 * XmlNode.cs (InnerText): Ensure that we append only values of
5214 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5216 * XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
5217 that allowed compiling this.
5218 [ FIXME: filed bug #29435. mcs should have failed on this ]
5220 2002-08-25 Tim Coleman <tim@timcoleman.com>
5222 Change CreateNavigator to not be virtual.
5224 Add set_Prefix and InnerText accessors.
5225 * XmlEntityReference.cs:
5226 Add set_Value accessor.
5228 Make objects which should be private private.
5230 Remove WriteStartElementInternal abstract definition.
5231 * XmlValidatingReader.cs:
5234 2002-08-22 Jason Diamond <jason@injektilo.org>
5236 * XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
5237 and RemoveAllAttributes courtesy of Matt Hunter <xrkune@tconl.com>.
5239 2002-08-22 Jason Diamond <jason@injektilo.org>
5241 * XmlElement.cs: Correction to previous GetElementsByTagName patch
5242 courtesy of Matt Hunter <xrkune@tconl.com>.
5244 2002-08-22 Jason Diamond <jason@injektilo.org>
5246 * XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
5247 qualified GetElementsByTagName courtesy of Matt Hunter
5250 2002-08-19 Jason Diamond <jason@injektilo.org>
5252 * XmlDocument.cs, XmlElement.cs: Added implementation of
5253 GetElementsByTagName courtesy of Matt Hunter <xrkune@tconl.com>.
5255 2002-08-16 Jason Diamond <jason@injektilo.org>
5257 * XmlElement.cs: Fixed writing out qualified elements courtesy of
5258 Marcus Bürgel <marcus.buergel@gmx.de>.
5260 2002-08-13 Tim Coleman <tim@timcoleman.com>
5262 Partial implementation of WriteQualifiedName ().
5264 2002-08-07 Kral Ferch <kral_ferch@hotmail.com>
5265 * XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
5266 InsertData(), and ReplaceData(). These methods fire the
5267 NodeChanging and NodeChanged events.
5269 * XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
5271 * XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
5272 RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
5274 2002-08-03 Tim Coleman <tim@timcoleman.com>
5275 * XmlNamespaceManager.cs:
5276 .Net allows the empty namespace to be redefined
5277 at a later point, but the current implementation
5278 did not. This fixes a hashtable conflict.
5280 2002-07-26 Tim Coleman <tim@timcoleman.com>
5282 When given a textwriter, check to see if it has a
5283 null encoding. This was being done for other inputs
5286 Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <lupus@ximian.com>
5288 * XmlTextReader.cs: rough line/column support.
5290 2002-07-23 Duncan Mak <duncan@ximian.com>
5292 * XmlConvert.cs: Implement the ToDateTime method. ToDateTime
5293 (string, string []) is particularly strange.
5295 * XmlException.cs: Remember to call the base serialization
5298 * XmlNodeReader.cs: Keep a new variable to store the Depth.
5300 2002-07-14 Jason Diamond <jason@injektilo.org>
5302 * XmlAttribute.cs: Removed ownerElement field since we can reuse
5305 * XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
5306 if the current node is an attribute.
5308 * XmlElement.cs: SetAttributeNode now sets the new attribute's
5311 2002-07-12 Jason Diamond <jason@injektilo.org>
5313 * XmlDocument.cs: If null was passed in for prefix or namespaceURI when
5314 creating an element, use String.Empty instead.
5316 2002-07-12 Piers Haken <piersh@friksit.com>
5318 * XmlAttributeCollection.cs: implement some ItemOf indexers
5319 * XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
5320 * XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
5322 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
5324 * XmlTextWriter: Fixed Indentation. IndentationOverridden should
5325 not be set when inside a attribute.
5327 2002-07-06 Ajay kumar Dwivedi <adwiv@yahoo.com>
5329 * XmlTextWriter: In WriteStartElement, if namespace is null and
5330 prefix is null|empty do not write out xmlns=""
5332 * XmlWriter: WriteStartElement calls the virtual method with null
5333 argument instead of empty string.
5335 2002-07-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5337 * XmlTextReader.cs: implemented .ctor (Stream).
5339 2002-06-26 Duncan Mak <duncan@ximian.com>
5341 * XmlNodeReader.cs: Implementation of most of the properties, and
5342 some of the related methods.
5344 2002-06-23 Piers Haken <piersh@friskit.com>
5346 * XmlDocumentNavigator.cs: implement Clone()
5347 * XmlElement.cs: remove bogus unimplemented override of InnerText
5348 * XmlNode.cs: implment SelectNodes/SelectSingleNode
5349 * XmlNodeArrayList.cs: new support class for SelectNodes
5351 2002-06-21 Ajay kumar Dwivedi <adwiv@yahoo.com>
5353 * XmlQualifiedName: Name and Namespaces are never null. If null is passed
5354 to the constructor, set them to empty strings.
5355 Fixed the Operators.
5357 2002-06-18 Ajay kumar Dwivedi <adwiv@yahoo.com>
5359 * XmlTextReader.cs: HasLineInfo returns false instead of throwing an
5362 2002-06-14 Duncan Mak <duncan@ximian.com>
5364 * XmlConvert.cs: Added CLSCompliant attributes to methods.
5366 2002-06-12 Duncan Mak <duncan@ximian.com>
5368 * XmlCharacterData.cs (Value): Throw an ArgumentException in the
5369 set block if the node is read-only.
5371 2002-06-10 Ajay kumar Dwivedi <adwiv@yahoo.com>
5372 * XmlConstruct.cs : New Internal class with Helper methods for
5373 Checking XmlConstructs
5374 * XmlConvert.cs: Implemented most of the methods
5376 2002-06-08 Duncan Mak <duncan@ximian.com>
5378 * XmlDocument.cs (Load):
5379 Added bits to Load (string) for BaseURI support.
5381 * XmlAttribute.cs (BaseURI):
5382 * XmlDocument.cs (BaseURI):
5383 * XmlEntity.cs (BaseURI): Implemented.
5385 2002-05-27 Jason Diamond <jason@injektilo.org>
5387 * XmlDocumentNavigator.cs: Added file to directory.
5389 * XmlNode.cs (CreateNavigator): Implemented.
5390 (InnerText): Implemented.
5392 * XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
5394 (Load(XmlReader)): Allow for namespace qualified attributes.
5396 * XmlElement.cs: Implemented GetAttribute(string, string) and both
5397 GetAttributeNode overloads.
5398 (SetAttributeNode(XmlAttribute)): Implemented.
5400 * XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
5401 and RemoveNamedItem(string, string).
5403 * XmlLinkedNode.cs (PreviousSibling): Implemented.
5405 * XmlTextReader.cs: Added code to maintain the order of attributes as
5406 they're parsed. XML doesn't require this but Microsoft's parser does it and
5407 matching them makes testing easier so now we have it, too.
5409 2002-05-26 Miguel de Icaza <miguel@ximian.com>
5411 * XmlDocument.cs: Implement the Save methods.
5413 2002-05-08 Mike Kestner <mkestner@speakeasy.net>
5415 * XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
5417 2002-04-28 Duncan Mak <duncan@ximian.com>
5419 * XmlSignificantWhitespace.cs (Value):
5420 * XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
5421 block. Added new private method, IsValidWhitespaceChar, for
5424 2002-04-16 Duncan Mak <duncan@ximian.com>
5426 * XmlParserContext.cs (NameTable): Fixed a typo in the set block.
5428 2002-04-12 Duncan Mak <duncan@ximian.com>
5430 * XmlAttribute.cs (Prefix): Added preliminary code for set block,
5431 added comment on work that needs to be done here. A new MonoTODO item.
5433 * XmlDocument.cs (ctor): Corrected constructor signature, changed
5434 parameter from 'NameTable' to 'XmlNameTable'.
5436 * XmlDocumentFragment.cs (InnerXml): Added missing set block.
5438 * XmlCaseOrder.cs: Moved to System.Xml.XPath.
5440 2002-04-10 Duncan Mak <duncan@ximian.com>
5442 * XmlNodeReader.cs: Initial stubs for the class.
5444 2002-04-08 Kral Ferch <kral_ferch@hotmail.com>
5446 * XmlAttributes.cs: InnerXml getter, WriteContentTo, and WriteTo
5449 * XmlDeclaration.cs: WriteTo implementation.
5451 * XmlDocument.cs: InnerXml getter implementation.
5453 * XmlElement.cs: InnerXml getter implementation.
5455 * XmlNode.cs: Removed MonoTODO attrib on OuterXml.
5457 * XmlSignificantWhitespace.cs: WriteTo implementation.
5459 * XmlText.cs: WriteContentTo and WriteTo implementation.
5461 * XmlTextWriter.cs: WriteRaw implementation.
5463 * XmlWhitespace.cs: WriteContentTo and WriteTo implementations.
5465 2002-04-05 Kral Ferch <kral_ferch@hotmail.com>
5467 * XmlAttributes.cs: Added reminder MonoTODO to set NamespaceURI
5468 if prefix in constructor is one of the default ones.
5470 * XmlCharacterData.cs: Returns String.Empty for Value and Data
5471 even when constructed with null.
5473 * XmlDeclaration.cs: Value doesn't put encoding or standalone
5474 in if they are empty.
5476 * XmlDocument.cs: Implemented CreateNode methods and this caused
5477 the changes in the other files in this checkin.
5479 * XmlProcessingInstruction.cs: Returns String.Empty for Value and Data
5480 even when constructed with null.
5482 * XmlWhitespace.cs: Changed Value 'get' to return Data.
5484 2002-04-01 Kral Ferch <kral_ferch@hotmail.com>
5486 * XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
5488 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
5490 * XmlTextWriter.cs: Impls for LookupPrefix, WriteBase64,
5491 and WriteCharEntity.
5493 * XmlWrite.cs: Fixed bug where attribute namespace decl
5494 was pushing a scope onto the namespace manager when it shouldn't
5497 2002-03-31 Kral Ferch <kral_ferch@hotmail.com>
5499 * XmlTextWriter.cs: Some tweaks for WriteAttibuteString
5500 in different states (no open start element, in WriteState.Content mode).
5502 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
5504 * XmlTextWriter.cs: XmlLang and XmlSpace properties
5505 and WriteWhitespace.
5507 * XmlTextWriterOpenElement.cs: scope support for XmlLang
5510 2002-03-29 Kral Ferch <kral_ferch@hotmail.com>
5512 * XmlTextWriter.cs: Working on Attribute methods.
5514 * XmlWriter.cs: Working on Attribute methods.
5516 2002-03-28 Duncan Mak <duncan@ximian.com>
5518 * XmlDocument.cs (CreateWhitespace):
5519 (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
5522 * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
5524 2002-03-26 Duncan Mak <duncan@ximian.com>
5526 * XmlDocument.cs (CreateDocumentType): Implemented.
5528 * XmlNode.cs (Value): Implemented.
5530 * XmlProcessingInstruction.cs (InnerText): Implemented. It works just
5531 like XmlCharacterData.
5533 * XmlDeclaration.cs (CloneNode):
5534 * XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
5537 * XmlCharacterData.cs (InnerText): Implemented. Funny that the
5538 docs say it is the "The concatenated values of the node and all
5539 the children of the node.". I wrote some test programs and
5540 couldn't get any of the derived nodes to AppendChild. For now,
5541 InnerText == Data == Value.
5542 (Substring): Fixed typo.
5544 * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
5546 * XmlImplementation.cs (CreateDocument): Implemented.
5548 2002-03-25 Duncan Mak <duncan@ximian.com>
5550 * XmlDeclaration.cs: Rewrote the class, fixed formatting, added
5551 missing properties (InnerText, Value).
5553 * XmlDocument.cs (CreateXmlDeclaration): Implemented.
5555 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5557 * XmlTextWriter.cs: Impls for BaseStream and
5558 Namespaces and WriteState.
5560 * XmlWriter.cs: WriteState and WriteStartElementInternal.
5562 2002-03-23 Kral Ferch <kral_ferch@hotmail.com>
5564 * XmlNodeListChildren.cs: made class internal
5565 instead of public. Shouldn't be visible outside
5568 * XmlTextWriter.cs: Implementations for Formatting,
5569 IndentChar, Indenting, QuoteChar, WriteStartDocument(standalone).
5570 Suppresses encoding on xml declaration if null stream passed in.
5571 Formats output including suppressing indentation for elements in
5574 * XmlTextWriterOpenElement.cs: Initial checkin.
5575 XmlTextWriter uses stack of these objects to track
5578 2002-03-22 Mike Kestner <mkestner@speakeasy.net>
5580 * XmlElement.cs: impl HasAttribute(string name).
5582 2002-03-22 Duncan Mak <duncan@ximian.com>
5584 * XmlElement.cs: Reformatted.
5585 (CloneNode) Corrected.
5587 * XmlDocument.cs (CreateWhitespace):
5588 (CreateSignificantWhitespace): Implemented.
5590 * XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
5591 true, because Attributes have ChildNodes.
5593 2002-03-21 Kral Ferch <kral_ferch@hotmail.com>
5595 * XmlTextWriter.cs: WriteStartDocument tracks state, writes out
5596 xml declaration along with encoding. WriteEndElement throws
5597 exception if no WriteStartElement exists.
5599 2002-03-20 Duncan Mak <duncan@ximian.com>
5601 * XmlEntityReference.cs (CloneNode): Implemented.
5603 * XmlException.cs (Message): Implemented. We need to cache the
5604 message string because SystemException doesn't expose 'message'
5607 * XmlText.cs (Value): Added in the missing Value property.
5609 2002-03-20 Duncan Mak <duncan@ximian.com>
5611 * XmlAttribute.cs (CloneNode): Implemented.
5613 * XmlDocumentFragment.cs (CloneNode): Implemented.
5615 * XmlElement.cs (CloneNode): Implemented.
5617 2002-03-19 Duncan Mak <duncan@ximian.com>
5619 * XmlNotation.cs: Added to CVS.
5621 * XmlAttribute.cs (CloneNode): First crack at the CloneNode method.
5623 * XmlCDataSection.cs (CloneNode): Implemented.
5625 * XmlDocumentFragment.cs: Reformatted and added the missing properties
5626 (InnerXml, OwnerDocument, ParentNode).
5627 (CloneNode): Implemented.
5629 * XmlSignificantWhitespace.cs (CloneNode): Implemented.
5630 (Value) Implemented the 'get' property.
5632 * XmlWhitespace.cs (Module): implemented.
5634 2002-03-19 Jason Diamond <jason@injektilo.org>
5636 * XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
5639 2002-03-18 Jason Diamond <jason@injektilo.org>
5641 * XmlTextReader.cs: Don't restore properties after reading last
5642 attribute on an element.
5644 * XmlDocument.cs: Move back to element after reading attributes
5645 so that IsEmptyElement test succeeds.
5647 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5649 * XmlNamespaceManager.cs: Implemented LookupPrefix.
5651 * XmlTextWriter.cs: Implemented namespace and prefix support.
5653 2002-03-18 Kral Ferch <kral_ferch@hotmail.com>
5655 * XmlTextReader.cs: Restores properties after
5656 reading last attribute on an element.
5658 * XmlNode.cs: AppendChild sets the parent
5661 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5663 * XmlCDataSection.cs: Formatting, Implementation for WriteTo.
5665 * XmlComment.cs: Implementations for WriteTo and WriteContentTo.
5667 * XmlElement.cs: Fixed bug in WriteTo.
5669 * XmlProcessingInstruction.cs: Formatting.
5671 * XmlTextWriter.cs: Implementations for Close, WriteCData, WriteComment,
5672 fixes for WriteEndElement, WriteProcessingInstruction.
5674 2002-03-17 Kral Ferch <kral_ferch@hotmail.com>
5676 * XmlDocument.cs: Implementations for WriteTo() and WriteContentTo(),
5677 had Load() add PIs to the document, moved onXXX methods to alphabetical
5680 * XmlElement.cs: Implementations for WriteTo() and WriteContentTo().
5682 * XmlNode.cs: Implementations for InnerXml Get and OuterXml.
5684 * XmlProcessingInstruction.cs: Implementations for WriteTo() and
5687 * XmlTextWriter.cs: Implementations for WriteEndElement,
5688 WriteProcessingInstruction, WriteStartElement, and WriteString.
5690 * XmlWriter.cs: Implemented WriteStartElement() methods.
5692 2002-03-15 Duncan Mak <duncan@ximian.com>
5694 * XmlEntity.cs: Added to CVS. Need to implement BaseURI and
5695 InnerText once I know what they do.
5697 * XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
5698 that we can properly chain constructors.
5699 (CloneNode): implemented.
5700 (WriteContentTo): Removed MonoTODO attribute as this method has no
5701 effect in this class.
5703 * XmlProcessingInstruction.cs (Value): Added the missing Set
5705 (InnerText): Added in, but not implemented.
5707 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5709 * XmlTextWriter.cs: implemented constructors and
5710 WriteCData and WriteComment.
5712 2002-03-14 Duncan Mak <duncan@ximian.com>
5714 * XmlDocument.cs: Moved the NodeChanged EventHandler to its own
5715 file, and updated the callbacks to reflect the change.
5716 (XmlDocument): Added the NameTable constructor.
5717 (NameTable): Also the NameTable property.
5719 * XmlNodeChangedEventHandler.cs: Added, replacing the version that
5720 was in XmlDocument.cs. It has two arguments now (object,
5721 EventArgs) , instead of one (object).
5723 2002-03-14 Kral Ferch <kral_ferch@hotmail.com>
5725 * XmlWriter.cs: Formatting.
5727 * XmlTextWriter.cs: Initial checkin.
5729 2002-03-14 Duncan Mak <duncan@ximian.com>
5731 * Validation.cs: Removed, replaced by ValidationType.cs.
5733 * ValidationType.cs: Added.
5735 2002-03-13 Duncan Mak <duncan@ximian.com>
5737 * XmlException.cs: Made it [Serializable], implemented good ol'
5738 GetObjectData, and the serialization constructor.
5740 * XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
5741 (SetNamedItem): Reverted (added back in) the patch with the
5742 ReadOnly checks. "Don't doubt yourself, my son... you were right!"
5744 * XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
5745 (GetNamedItem (string, string)): implemented.
5746 (RemoveNamedItem): implemented.
5747 (SetNamedItem): implemented.
5749 2002-03-12 Kral Ferch <kral_ferch@hotmail.com>
5751 * XmlAttribute.cs: Moved a method from amongst properties down to
5752 it's alphabetical position in the methods section.
5754 * XmlNode.cs: Passes in 'this' to XmlNodeList constructor instead of
5755 last linked child. Set XmlNode base class to return false for IsReadOnly().
5756 Implemented GetEnumerator() and RemoveChild().
5758 * XmlNodeListChildren.cs: Now stores the parent instead of the last child.
5759 This is to support the behavior that the Enumerator doesn't become invalid
5760 when changes to the children occur. Flushed out rest of implementation for
5761 MoveNext, Current, and Reset.
5763 2002-03-12 Duncan Mak <duncan@ximian.com>
5765 * XmlCharacterData.cs: Reformatted the properties for better readability.
5767 * XmlLinkedNode.cs: Removed the awful boxy comments.
5769 * XmlNamedNodeMap.cs (Count):
5770 (Item): Implemented. Tests will be coming.
5772 * XmlEntityReference.cs:
5773 * XmlSignificantWhitespace.cs: Implemented these classes except for
5774 the Clone, WriteContentTo and WriteTo methods. Will have to
5775 investigate into these later.
5777 2002-03-11 Duncan Mak <duncan@ximian.com>
5779 * IHasXmlNode.cs: Added to CVS.
5781 2002-03-08 Jason Diamond <jason@injektilo.org>
5783 * XmlParserContext.cs: Added missing constructors and missing Encoding
5786 * XmlTextReader.cs: Start using the XmlParserContext class.
5788 2002-03-08 Jason Diamond <jason@injektilo.org>
5790 * XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
5792 2002-03-08 Mike Kestner <mkestner@speakeasy.net>
5794 * XmlNode.cs (Item): Implemented both indexers.
5796 2002-03-08 Jason Diamond <jason@injektilo.org>
5798 * DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
5799 XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
5801 2002-03-08 Jason Diamond <jason@injektilo.org>
5803 * XmlAttribute.cs: Attribute nodes are supposed to store their values
5804 as child nodes so updated to reflect that.
5806 * XmlDocument.cs, XmlElement.cs, XmlNode.cs: Moved code that was
5807 duplicated in XmlDocument and XmlElement into XmlNode so that it
5808 wouldn't have to be duplicated in XmlAttribute, too.
5810 2002-03-08 Kral Ferch <kral_ferch@hotmail.com>
5812 * XmlNodeList.cs, XmlDocument.cs, XmlLinkedNode.cs,
5813 XmlNode.cs: Formatting.
5815 * XmlNodeListChildren.cs: Implementation of XmlNodeList
5816 for XmlNode.ChildNodes property.
5818 * XmlNodeListAsArrayList.cs: Removed file. Using different
5819 data structure (circular list) in XmlNode so this file
5822 * XmlDocument.cs, XmlElement.cs: New ChildNodes tests found
5823 bug in setter property of LastLinkedChild so fixed it.
5825 2002-03-06 Jason Diamond <jason@injektilo.org>
5827 * XmlInputSource.cs, XmlNames_1_0.cs, XmlParse.cs: Removed files.
5828 We already have a parser in XmlTextReader.
5830 * XmlException.cs: Removed constructor accepting XmlInputSource.
5832 2002-03-06 Kral Ferch <kral_ferch@hotmail.com>
5834 * XmlNode.cs: Rewrote this class from scratch with
5835 MonoToDo attribs and NotImplementedExceptions. Now defines an
5836 internal LastLinkedNode property to aid the new implementation.
5837 XmlNodes only have ref to owner doc and parent nodes now.
5839 * XmlLinkedNode.cs: Added NextLinkedSibling internal property
5840 and ref to next sibling to support walking our circular child
5843 * XmlDocument.cs: Added ref to last child node and overrides
5844 XmlNode's internal LastLinkedChild property to support walking
5845 our circular child node list.
5847 2002-03-02 Kral Ferch <kral_ferch@hotmail.com>
5849 * XmlProcessingInstructions.cs: Class was empty. Implemented
5850 constructor, properties, and CloneNode() method. Put in
5851 MonoToDo attrib for remaining methods.
5853 * XmlComment.cs: Reformatted and put in MonoToDo attribs.
5854 Got rid of helper methods and fields since they were no
5857 * XmlLinkedNode.cs: Reformatted and put in MonoToDo attribs.
5859 * XmlDocument.cs: Added code to Load(XmlReader) to create XmlComment,
5860 XmlCDataSection, and XmlProcessingInstruction nodes. Implemented
5861 Createxxx() methods for those three node types.
5863 2002-03-02 Jason Diamond <jason@injektilo.org>
5865 * XmlDocument.cs: Implemented the remaining CreateElement and
5866 CreateAttribute methods.
5868 * XmlAttribute.cs: Re-implemented.
5870 * XmlElement.cs: Set owner element on attributes. Reformatted.
5872 2002-03-02 Jason Diamond <jason@injektilo.org>
5874 * XmlTextReader.cs: Implemented MoveToNextAttribute().
5876 * XmlDocument.cs: Reformatted. Adding missing methods and MonoTODO
5877 attributes. Create attribute nodes while loading. Implemented
5878 Load(string) and CreateTextNode().
5880 * XmlCharacterData.cs, XmlText.cs: Re-implemented.
5882 * XmlCDataSection.cs, XmlComment.cs: Call correct constructor in
5885 * XmlNamedNodeMap.cs, XmlAttributeCollection.cs: Stubbed out.
5887 2002-03-02 Mike Kestner <mkestner@speakeasy.net>
5889 * XmlAttribute.cs : Using fix.
5890 * XmlDocument.cs (CreateAttribute(String)): Implement.
5892 2002-03-02 Jason Diamond <jason@injektilo.org>
5894 * XmlNamespaceManager.cs: Atomize prefixes and namespaces strings in
5897 2002-02-28 Jason Diamond <jason@injektilo.org>
5899 * XmlDocument.cs, XmlNode.cs: Initial implementation of LoadXml
5900 courtesy of Kral Ferch <kral.ferch@hotmail.com>.
5902 2002-02-28 Jason Diamond <jason@injektilo.org>
5904 * XmlException.cs, XmlReader.cs, XmlTextReader.cs: Reformatted,
5905 added missing members and MonoTODO attributes.
5907 * XmlTextReader.cs: Throw XmlException instead of System.Exception.
5909 2002-02-27 Jason Diamond <jason@injektilo.org>
5911 * XmlElement.cs: Reformatted, added missing members and MonoTODO
5914 2002-02-26 Duncan Mak <duncan@ximian.com>
5916 * XmlCDataSection.cs: Initial implementation.
5918 * NameTable.cs: Fixed the whole thing. Wrote a NUnit test to test
5919 it out. This should (hopefully) be correct.
5921 2002-02-26 Jason Diamond <jason@injektilo.org>
5923 * XmlTextReader.cs: Apparently Microsoft's implementation treats
5924 namespace declarations as attributes so we do now, too.
5926 * XmlNamespaceManager.cs: HasNamespace fixed so that it only
5927 checks the current scope.
5929 2002-02-26 Duncan Mak <duncan@ximian.com>
5931 * XmlDocumentType.cs: Added a few hacks here and there to
5932 temporarily fix the "I broke the build issue".
5934 2002-02-25 Jason Diamond <jason@injektilo.org>
5936 * XmlDocument.cs, XmlElement.cs, XmlNode.xs, XmlNodeList.cs,
5937 XmlNodeListAsArrayList.cs: Multiple fixes necessary to get
5938 simple test to pass. The existing code is really shitty so I'll
5939 probably start writing tests and refactoring before much else
5942 2002-02-25 Duncan Mak <duncan@ximian.com>
5944 * NameTable.cs: Implemented.
5946 * XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.
5948 2002-02-24 Duncan Mak <duncan@ximian.com>
5950 * XmlNodeOrder.cs: Added to CVS.
5952 * XmlQualifiedName.cs: Fixed a warning from Equals ().
5954 * XmlTokenizedType.cs: Added to CVS.
5956 * XmlUrlResolver.cs: Added to CVS with one TODO task.
5958 2002-02-23 Duncan Mak <duncan@ximian.com>
5960 * XmlQualifiedName.cs: Fixed ToString () and added the operators
5963 2002-02-23 Jason Diamond <jason@injektilo.org>
5965 * XmlTextReader.cs: Added support for qualified attributes.
5967 2002-02-23 Jason Diamond <jason@injektilo.org>
5969 * XmlNamespaceManager.cs: Initial implementation.
5971 * XmlTextReader.cs: Added support for NamespaceURI property on
5974 2002-02-23 Nick Drochak <ndrochak@gol.com>
5976 * ChangeLog: Add the change log to this directory
5978 * XmlQualifiedName.cs: Fixed compile errors so it would build. Still has