2002-07-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml / ChangeLog
index 98c9e4ef74e5560c7d1cab9fe7bf3eee0aa59e6e..51b7e65868187774729725f4262f7126e356ff21 100644 (file)
@@ -1,3 +1,469 @@
+2002-07-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * XmlTextReader.cs: implemented .ctor (Stream).
+
+2002-06-26  Duncan Mak  <duncan@ximian.com>
+
+       * XmlNodeReader.cs: Implementation of most of the properties, and
+       some of the related methods. 
+
+2002-06-23  Piers Haken <piersh@friskit.com>
+       
+       * XmlDocumentNavigator.cs: implement Clone()
+       * XmlElement.cs: remove bogus unimplemented override of InnerText
+       * XmlNode.cs: implment SelectNodes/SelectSingleNode
+       * XmlNodeArrayList.cs: new support class for SelectNodes
+
+2002-06-21  Ajay kumar Dwivedi <adwiv@yahoo.com>
+       
+       * XmlQualifiedName: Name and Namespaces are never null. If null is passed
+               to the constructor, set them to empty strings.
+               Fixed the Operators.
+       
+2002-06-18  Ajay kumar Dwivedi <adwiv@yahoo.com>
+       
+       * XmlTextReader.cs: HasLineInfo returns false instead of throwing an
+       Exception.
+
+2002-06-14  Duncan Mak  <duncan@ximian.com>
+
+       * XmlConvert.cs: Added CLSCompliant attributes to methods.
+       
+2002-06-12  Duncan Mak  <duncan@ximian.com>
+
+       * XmlCharacterData.cs (Value): Throw an ArgumentException in the
+       set block if the node is read-only.
+
+2002-06-10  Ajay kumar Dwivedi <adwiv@yahoo.com>
+       * XmlConstruct.cs : New Internal class with Helper methods for
+       Checking XmlConstructs
+       * XmlConvert.cs: Implemented most of the methods
+
+2002-06-08  Duncan Mak  <duncan@ximian.com>    
+
+       * XmlDocument.cs (Load):
+       Added bits to Load (string) for BaseURI support.
+
+       * XmlAttribute.cs (BaseURI): 
+       * XmlDocument.cs (BaseURI): 
+       * XmlEntity.cs (BaseURI): Implemented.
+
+2002-05-27  Jason Diamond  <jason@injektilo.org>
+
+       * XmlDocumentNavigator.cs: Added file to directory.
+
+       * XmlNode.cs (CreateNavigator): Implemented.
+       (InnerText): Implemented.
+
+       * XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
+       throwing exception.
+       (Load(XmlReader)): Allow for namespace qualified attributes.
+
+       * XmlElement.cs: Implemented GetAttribute(string, string) and both 
+       GetAttributeNode overloads.
+       (SetAttributeNode(XmlAttribute)): Implemented.
+
+       * XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
+       and RemoveNamedItem(string, string).
+
+       * XmlLinkedNode.cs (PreviousSibling): Implemented.
+
+       * XmlTextReader.cs: Added code to maintain the order of attributes as 
+       they're parsed. XML doesn't require this but Microsoft's parser does it and
+       matching them makes testing easier so now we have it, too.
+
+2002-05-26  Miguel de Icaza  <miguel@ximian.com>
+
+       * XmlDocument.cs: Implement the Save methods.
+
+2002-05-08  Mike Kestner  <mkestner@speakeasy.net>
+
+       * XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
+
+2002-04-28  Duncan Mak  <duncan@ximian.com>
+
+       * XmlSignificantWhitespace.cs (Value):
+       * XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
+       block. Added new private method, IsValidWhitespaceChar, for
+       checking.
+
+2002-04-16  Duncan Mak  <duncan@ximian.com>
+
+       * XmlParserContext.cs (NameTable): Fixed a typo in the set block.
+
+2002-04-12  Duncan Mak  <duncan@ximian.com>
+
+       * XmlAttribute.cs (Prefix): Added preliminary code for set block,
+       added comment on work that needs to be done here. A new MonoTODO item. 
+
+       * XmlDocument.cs (ctor): Corrected constructor signature, changed
+       parameter from 'NameTable' to 'XmlNameTable'.
+
+       * XmlDocumentFragment.cs (InnerXml): Added missing set block.
+
+       * XmlCaseOrder.cs: Moved to System.Xml.XPath.
+
+2002-04-10  Duncan Mak  <duncan@ximian.com>
+
+       * XmlNodeReader.cs: Initial stubs for the class.
+
+2002-04-08  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlAttributes.cs: InnerXml getter, WriteContentTo, and WriteTo
+       implementations.
+       
+       * XmlDeclaration.cs: WriteTo implementation.
+       
+       * XmlDocument.cs: InnerXml getter implementation.
+       
+       * XmlElement.cs: InnerXml getter implementation.
+
+       * XmlNode.cs: Removed MonoTODO attrib on OuterXml.
+       
+       * XmlSignificantWhitespace.cs: WriteTo implementation.
+       
+       * XmlText.cs: WriteContentTo and WriteTo implementation.
+       
+       * XmlTextWriter.cs: WriteRaw implementation.
+       
+       * XmlWhitespace.cs: WriteContentTo and WriteTo implementations.
+
+2002-04-05  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlAttributes.cs: Added reminder MonoTODO to set NamespaceURI
+       if prefix in constructor is one of the default ones.
+       
+       * XmlCharacterData.cs: Returns String.Empty for Value and Data
+       even when constructed with null.
+       
+       * XmlDeclaration.cs: Value doesn't put encoding or standalone
+       in if they are empty.
+       
+       * XmlDocument.cs: Implemented CreateNode methods and this caused
+       the changes in the other files in this checkin.
+       
+       * XmlProcessingInstruction.cs: Returns String.Empty for Value and Data
+       even when constructed with null.
+       
+       * XmlWhitespace.cs: Changed Value 'get' to return Data.
+
+2002-04-01  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
+       
+2002-03-31  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlTextWriter.cs: Impls for LookupPrefix, WriteBase64,
+       and WriteCharEntity.
+       
+       * XmlWrite.cs:  Fixed bug where attribute namespace decl
+       was pushing a scope onto the namespace manager when it shouldn't
+       have been.
+       
+2002-03-31  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlTextWriter.cs: Some tweaks for WriteAttibuteString
+       in different states (no open start element, in WriteState.Content mode).
+       
+2002-03-29  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlTextWriter.cs: XmlLang and XmlSpace properties
+       and WriteWhitespace.
+       
+       * XmlTextWriterOpenElement.cs: scope support for XmlLang
+       and XmlSpace.
+
+2002-03-29  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlTextWriter.cs: Working on Attribute methods.
+       
+       * XmlWriter.cs: Working on Attribute methods.
+
+2002-03-28  Duncan Mak  <duncan@ximian.com>
+
+       * XmlDocument.cs (CreateWhitespace):
+       (CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
+       method.
+
+       * XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
+
+2002-03-26  Duncan Mak  <duncan@ximian.com>
+
+       * XmlDocument.cs (CreateDocumentType): Implemented.
+
+       * XmlNode.cs (Value): Implemented.
+
+       * XmlProcessingInstruction.cs (InnerText): Implemented. It works just
+       like XmlCharacterData.
+
+       * XmlDeclaration.cs (CloneNode): 
+       * XmlDocument.cs (CreateXmlDeclaration): Added missing constructor
+       arguments.
+
+       * XmlCharacterData.cs (InnerText): Implemented. Funny that the
+       docs say it is the "The concatenated values of the node and all
+       the children of the node.". I wrote some test programs and
+       couldn't get any of the derived nodes to AppendChild. For now,
+       InnerText == Data == Value.
+       (Substring): Fixed typo.
+
+       * XmlDeclaration.cs (XmlDeclaration): Fixed the constructor parameter signature.
+
+       * XmlImplementation.cs (CreateDocument): Implemented.
+
+2002-03-25  Duncan Mak  <duncan@ximian.com>
+
+       * XmlDeclaration.cs: Rewrote the class, fixed formatting, added
+       missing properties (InnerText, Value).
+       
+       * XmlDocument.cs (CreateXmlDeclaration): Implemented.
+
+2002-03-23  Kral Ferch <kral_ferch@hotmail.com>
+
+       * XmlTextWriter.cs: Impls for BaseStream and
+       Namespaces and WriteState.
+       
+       * XmlWriter.cs: WriteState and WriteStartElementInternal.
+
+2002-03-23  Kral Ferch <kral_ferch@hotmail.com>
+
+       * XmlNodeListChildren.cs: made class internal
+       instead of public.  Shouldn't be visible outside
+       of System.Xml.
+       
+       * XmlTextWriter.cs: Implementations for Formatting,
+       IndentChar, Indenting, QuoteChar, WriteStartDocument(standalone).
+       Suppresses encoding on xml declaration if null stream passed in.
+       Formats output including suppressing indentation for elements in
+       mixed content mode.
+       
+       * XmlTextWriterOpenElement.cs: Initial checkin.
+       XmlTextWriter uses stack of these objects to track
+       state.
+       
+2002-03-22  Mike Kestner  <mkestner@speakeasy.net>
+
+       * XmlElement.cs: impl HasAttribute(string name).
+
+2002-03-22  Duncan Mak  <duncan@ximian.com>
+
+       * XmlElement.cs: Reformatted.
+       (CloneNode) Corrected.
+
+       * XmlDocument.cs (CreateWhitespace):
+       (CreateSignificantWhitespace): Implemented.
+
+       * XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
+       true, because Attributes have ChildNodes.
+
+2002-03-21  Kral Ferch <kral_ferch@hotmail.com>
+
+       * XmlTextWriter.cs: WriteStartDocument tracks state, writes out
+       xml declaration along with encoding.  WriteEndElement throws
+       exception if no WriteStartElement exists.
+
+2002-03-20  Duncan Mak  <duncan@ximian.com>
+
+       * XmlEntityReference.cs (CloneNode): Implemented.
+
+       * XmlException.cs (Message): Implemented. We need to cache the
+       message string because SystemException doesn't expose 'message'
+       from Exception.
+
+       * XmlText.cs (Value): Added in the missing Value property.
+
+2002-03-20  Duncan Mak  <duncan@ximian.com>    
+
+       * XmlAttribute.cs (CloneNode): Implemented.
+
+       * XmlDocumentFragment.cs (CloneNode): Implemented.
+
+       * XmlElement.cs (CloneNode): Implemented.
+
+2002-03-19  Duncan Mak  <duncan@ximian.com>
+
+       * XmlNotation.cs: Added to CVS.
+
+       * XmlAttribute.cs (CloneNode): First crack at the CloneNode method.
+
+       * XmlCDataSection.cs (CloneNode): Implemented.
+
+       * XmlDocumentFragment.cs: Reformatted and added the missing properties
+       (InnerXml, OwnerDocument, ParentNode).
+       (CloneNode): Implemented.
+
+       * XmlSignificantWhitespace.cs (CloneNode): Implemented.
+       (Value) Implemented the 'get' property.
+
+       * XmlWhitespace.cs (Module): implemented.
+
+2002-03-19  Jason Diamond <jason@injektilo.org>
+
+       * XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
+       in the prefix.
+
+2002-03-18  Jason Diamond <jason@injektilo.org>
+
+       * XmlTextReader.cs: Don't restore properties after reading last
+       attribute on an element.
+
+       * XmlDocument.cs: Move back to element after reading attributes
+       so that IsEmptyElement test succeeds.
+
+2002-03-18  Kral Ferch <kral_ferch@hotmail.com>
+
+       * XmlNamespaceManager.cs: Implemented LookupPrefix.
+       
+       * XmlTextWriter.cs: Implemented namespace and prefix support.
+
+2002-03-18  Kral Ferch <kral_ferch@hotmail.com>
+
+       * XmlTextReader.cs: Restores properties after
+       reading last attribute on an element.
+       
+       * XmlNode.cs: AppendChild sets the parent
+       on the child.
+
+2002-03-17  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlCDataSection.cs: Formatting, Implementation for WriteTo.
+
+       * XmlComment.cs: Implementations for WriteTo and WriteContentTo.
+       
+       * XmlElement.cs: Fixed bug in WriteTo.
+       
+       * XmlProcessingInstruction.cs: Formatting.
+       
+       * XmlTextWriter.cs: Implementations for Close, WriteCData, WriteComment,
+       fixes for WriteEndElement, WriteProcessingInstruction.
+
+2002-03-17  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlDocument.cs: Implementations for WriteTo() and WriteContentTo(),
+       had Load() add PIs to the document, moved onXXX methods to alphabetical
+       order in the file.
+       
+       * XmlElement.cs: Implementations for WriteTo() and WriteContentTo().
+       
+       * XmlNode.cs: Implementations for InnerXml Get and OuterXml.
+       
+       * XmlProcessingInstruction.cs: Implementations for WriteTo() and
+       WriteContentTo().
+       
+       * XmlTextWriter.cs: Implementations for WriteEndElement,
+       WriteProcessingInstruction, WriteStartElement, and WriteString.
+       
+       * XmlWriter.cs: Implemented WriteStartElement() methods.
+
+2002-03-15  Duncan Mak  <duncan@ximian.com>
+
+       * XmlEntity.cs: Added to CVS. Need to implement BaseURI and
+       InnerText once I know what they do.
+
+       * XmlDocumentType.cs (XmlDocumentType): Fix the constructor now
+       that we can properly chain constructors.
+       (CloneNode): implemented.
+       (WriteContentTo): Removed MonoTODO attribute as this method has no
+       effect in this class.
+
+       * XmlProcessingInstruction.cs (Value): Added the missing Set
+       block.
+       (InnerText): Added in, but not implemented.
+
+2002-03-14  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlTextWriter.cs: implemented constructors and 
+       WriteCData and WriteComment.
+
+2002-03-14  Duncan Mak  <duncan@ximian.com>
+
+       * XmlDocument.cs: Moved the NodeChanged EventHandler to its own
+       file, and updated the callbacks to reflect the change.
+       (XmlDocument): Added the NameTable constructor.
+       (NameTable): Also the NameTable property.
+
+       * XmlNodeChangedEventHandler.cs: Added, replacing the version that
+       was in XmlDocument.cs. It has two arguments now (object,
+       EventArgs) , instead of one (object).
+
+2002-03-14  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlWriter.cs: Formatting.
+       
+       * XmlTextWriter.cs: Initial checkin.
+       
+2002-03-14  Duncan Mak  <duncan@ximian.com>
+
+       * Validation.cs: Removed, replaced by ValidationType.cs.
+
+       * ValidationType.cs: Added.
+
+2002-03-13  Duncan Mak  <duncan@ximian.com>
+
+       * XmlException.cs: Made it [Serializable], implemented good ol'
+       GetObjectData, and the serialization constructor.
+
+       * XmlNamedNodeMap.cs (SetNamedItem): Check for the Name property.
+       (SetNamedItem): Reverted (added back in) the patch with the
+       ReadOnly checks. "Don't doubt yourself, my son... you were right!"
+
+       * XmlNamedNodeMap.cs (GetEnumerator): piggyback on the ArrayList implementation.
+       (GetNamedItem (string, string)): implemented.
+       (RemoveNamedItem): implemented.
+       (SetNamedItem): implemented.
+
+2002-03-12  Kral Ferch  <kral_ferch@hotmail.com>
+
+       * XmlAttribute.cs: Moved a method from amongst properties down to
+       it's alphabetical position in the methods section.
+       
+       * XmlNode.cs: Passes in 'this' to XmlNodeList constructor instead of
+       last linked child.  Set XmlNode base class to return false for IsReadOnly().
+       Implemented GetEnumerator() and RemoveChild().
+       
+       * XmlNodeListChildren.cs: Now stores the parent instead of the last child.
+       This is to support the behavior that the Enumerator doesn't become invalid
+       when changes to the children occur.  Flushed out rest of implementation for
+       MoveNext, Current, and Reset.
+
+2002-03-12  Duncan Mak  <duncan@ximian.com>
+
+       * XmlCharacterData.cs: Reformatted the properties for better readability.
+
+       * XmlLinkedNode.cs: Removed the awful boxy comments.
+
+       * XmlNamedNodeMap.cs (Count):
+       (Item): Implemented. Tests will be coming.
+
+       * XmlEntityReference.cs: 
+       * XmlSignificantWhitespace.cs: Implemented these classes except for
+       the Clone, WriteContentTo and WriteTo methods. Will have to
+       investigate into these later.
+
+2002-03-11  Duncan Mak  <duncan@ximian.com>
+
+       * IHasXmlNode.cs: Added to CVS.
+
+2002-03-08  Jason Diamond <jason@injektilo.org>
+
+       * XmlParserContext.cs: Added missing constructors and missing Encoding 
+       property.
+
+       * XmlTextReader.cs: Start using the XmlParserContext class.
+
+2002-03-08  Jason Diamond <jason@injektilo.org>
+
+       * XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
+
+2002-03-08  Mike Kestner  <mkestner@speakeasy.net>
+
+       * XmlNode.cs (Item): Implemented both indexers.
+
+2002-03-08  Jason Diamond  <jason@injektilo.org>
+
+       * DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
+       XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
+
 2002-03-08  Jason Diamond  <jason@injektilo.org>
 
        * XmlAttribute.cs: Attribute nodes are supposed to store their values