Files
mono/mcs/class/System.XML/System.Xml/ChangeLog
T
Ben Maurer aad7ab6a71 2003-09-01 Ben Maurer <[email protected]>
* XmlDocument.cs (Save): use the encoding of the document, if
	available.

svn path=/trunk/mcs/; revision=17808
2003-09-01 21:54:45 +00:00

2295 lines
85 KiB
Plaintext

2003-09-01 Ben Maurer <[email protected]>
* XmlDocument.cs (Save): use the encoding of the document, if
available.
2003-08-24 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : Implemented SchemaType. Added support for
ValidationType.Schema. Added support for XmlResolver. Fixed
ReadTypedValue() not to consume EndElement.
2003-08-19 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
infinite loop.
* XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
Commented out Console.Error.WriteLine().
* XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
escape and unescape for relative URI string.
2003-08-19 Ben Maurer <[email protected]>
* XmlParserContext.cs: Make each context inherit next.
2003-08-18 Ben Maurer <[email protected]>
* XmlChar.cs (IsWhitespace): Spare enumerator allocation.
* XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
fat, use low-fat loops instead. Even better, call the function
inside XmlChar for code reuse.
* HighWaterStack.cs (added): New class that acts like a Stack, but
helps with memory allocation.
* XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
HighWaterStack.
* XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
use a variable that stores the position in the ArrayList.
2003-08-18 Ben Maurer <[email protected]>
* XmlTextWriter.cs: Begin diet. String.Format has too much
saturated fat, lets replace with the fat-free .Write ()
calls. Effects best seen when Paolo's StreamWriter patch is
applied.
2003-08-14 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : Fixed ReadAttributeValue() that might result in
vanishing current node.
2003-08-14 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : Added SchemaType.
Read() Assures to return to element.
* DTDObjectModel.cs : Removed DTDEntityDeclaration.BaseURI.
* XmlReader.cs : ReadString() should be virtual in NET_1_1.
* XmlTextReader.cs : 1) Depth should consider Attribute and its values.
Introduced insideAttribute field to support them.
2) ReadAttributeValue() should consider empty string.
* XmlValidatingReader.cs :
Fixed several properties which premised as if it was already read.
Encoding and Namespaces now throws NotSupportedException for other
than XmlTextReader.
Implemented ReadTypedValue() based on IHasXmlSchemaInfo.SchemaType.
2003-08-10 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : Reverted CanSeek as to return false anyway.
2003-08-10 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs : added XmlResolver related members. Added
invalid entity recursion logic. Added encodingdecl check on textdecl.
* DTDValidatingReader.cs : It now implements IHasXmlParserContext.
* XmlChar.cs : IsPubidChar() should not allow TAB(&#9;).
* XmlDocumentType.cs : 1) internal CreateDocumentType() was now changed
to receive DTDObjectModel to support other than XmlTextReader.
2) Most of its public member is now based on DTDObjectModel.
* XmlDocument.cs : 1) Synchronous change with XmlDocumentType.
2) ReadNode() now considers XmlParserContext's DTDObjectModel for
other than XmlTextReader (such as XmlValidatingReader).
* XmlNode.cs : code cleanup only.
* XmlParserInput.cs : added HasPEBuffer, used to check illegal nesting.
* XmlTextReader.cs : 1) Illegal entity reference check logic was moved
from ReadContent() to SetEntityReferenceProperties(). 2) Indentation
change on ReadEntityReference(). 3) ReadAttribute() now checks
reference to external entity reference. 4) Added textdecl encoding
check. 5) DTDObjectModel fields are now set correctly. 6) added
PERef markup nest check. 7) If PEDecl was not found, it might be WFC
violation, not only be VC violation. 8) ReadEntityDecl() now receives
its declared entity itself, and this method checks IsInternalSubset.
* XmlValidatingReader.cs : 1) Added GetInternalPerserContext().
2) ValidationType.None should be the same as Auto, not DTD (in the
future it should keep xml schema's default values).
Pending Stuff in XmlTextReader which breaks some NUnit tests;
1) SetEntityReferenceProperies() has check for illegal references.
2) ReadAttribute(bool) has similar check for illegal references.
2003-08-09 Atsushi Enomoto <[email protected]>
* DTDAutomata.cs : Fixed (modified or added) TryEndElement() of choice,
sequence and oneOrMore. Fixed DTDChoiceAutomata.TryStartElement().
2003-08-09 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Checked and fixed all TryExpandPERef() invokation
and supplied SkipWhitespace() as they needed. It broke monodoc.
Fixed ReadEntityValueDecl() to get correct value.
2003-08-08 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs :
Fixed Initialize() that might result in incorrect buffer.
CanRead and Position should consider buffer (especially when the
stream was EOF).
CanSeek should use stream's CanSeek.
* XmlChar.cs : added GetPredefinedEntity().
* DTDObjectModel.cs :
- Modified ComputeDefaultValue() to use it.
- Fixed NormalizedDefaultValue not to expect parsed value as string.
- ResolveExternalEntity now detects invalid standalone specification.
- DTDParameterEntityDeclaration.Value is now changed to property and
keep its resolved value of literal value of external value using
new Resolve (XmlResolver) method (called only by XmlTextReader).
* DTDValidatingReader.cs :
- It now handles entity-expanded Whitespace and SignificantWhitespace
correctly. Does not raise unexpected text not allowed error.
- Fixed MoveToAttribute()s to move internal reader correctly, and
should be able to move in other cases than on element node.
- On Read()ing document type and ResolveEntity(), it now sets
XmlResolver on text reader.
- On ID constraints check and type verification, it now uses
normalized attribute or its tokenized value(s).
- Fixed ValidateAttributes() to add default values when
ValidationType is Auto.
* XmlParserContext.cs : added internal Dtd setter.
* XmlParserInput.cs :
InsertParameterEntityBuffer() should add surrounding whitespaces.
Removed unused code block.
* XmlTextReader.cs :
- Modified ReadReference(), ReadAttribute() and Dereference() to use
XmlChar.GetPredefinedEntity().
- When returning entity reference, it checks extity declaration
existence in certain conditions.
- ReadAttribute() now skips general entity replacement on reading
entity value.
- ReadText() now handles whitespace texts as XmlNodeType.Whitespace.
- ReadXmlDeclaration() holds isStandalone, which might be used in
entity reference's well-formedness check.
- internal 'DTD' now uses XmlParserContext.Dtd.
- isInternalSubset was meaningless. Now uses input stack's Count.
- Added some required SkipWhitespace().
- Several parameter entity handling changes. Added GetPEValue(name).
TryExpandPERef() now uses ImportAsPERef(). ReadParameterEntityDecl()
now uses its Resolve() when it was external PE. Now it uses value
buffer instead of currentTag, to efficiently read (included) PE.
CompileDeclaration() now uses ImportAsPERef instead of ExpandPERef().
ImportAsPERef() simply inserts the value to currentInput.
ReadEntityDecl() also uses value buffer. Removed non-used methods.
- Default attributes are now stored in normalized form.
- Dereference() now considers non-expanding predefined entities.
* XmlValidatingReader.cs : now holds Schemas, and ValidationType.Auto
is more correctly supported.
* XmlAttributeCollection.cs :
When removing default attribute, it immediately inserts the attribute.
RemoveAll() should consider default (not-removable) attributes.
* XmlDocument.cs :
Should have its default XmlResolver. Added Internal Resolver.
Some Load() should use its XmlResolver.
ImportNode() should copy its children in node level, not value level.
It also have to consider not to copy default attribute on importing
XmlElement.
* XmlDocumentType.cs : Now uses document's XmlResolver to read DTD.
* XmlAttribute.cs,
XmlDocumentFragment.cs.
XmlElement.cs : use XmlResolver on InnerXml. Removed some MonoTODO.
* XmlNodeReader.cs : GetInternalParserConext() should provide its DTD.
ResolveEntity() uses XmlResolver on entityReader.
2003-08-07 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs :
- Added validation error check (and AddError(), Errors).
- Fixed ComputeDefaultValue() to handle various references correctly.
- DTDEntityDeclaration.EntityValue became property, and added
LiteralEntityValue. The new one holds resolved value.
Added ResolveExternalEntity(). It now required root in .ctor().
* DTDValidatingReader.cs :
- Now it handles namespaced attributes (as input to xsd validator).
- Added XmlResolver property as usual XmlReader.
- Added currentEntityHandling field so that it can stand changing
XmlValidatingReader's EntityHandling dynamically.
- FilterNormalization() now requires name for getting datatypes and
can stand for non-current attribute normalization.
- Splitted ReadContent() from Read() that can be called recursively
when expanding entities.
- Now handles Entity not found error *after* resolution of entities,
as MS.NET does.
- Read()ing DTD checks its Errors and raises validation error events.
In some situations, DTD parsing may detect VC error, not WFC error.
It also strictly checks NData existence.
- Handling of entity-resolved text is a bit changed and Read()ing
element, endElement, cdata now changed to switch collecting text
and collected text.
- content type ANY should allow texts.
- Added enumerated attribute validity check.
- Added Name/Names creation rule check for ID/IDREF/IDREFS.
- Added entity existence check for ENTITY/ENTITIES attributes.
- Added NMTOKEN creation rule check for NMTOKEN/NMTOKENS.
- Fixed to remove extraneous #REQUIRED check.
- Contributing default attribute is now only applied to the case
ValidationType is DTD or None.
- ResolveEntity() now handles external entities.
Added Mono.Xml.IXmlParserContext interface support.
* XmlDocumentType.cs : Fixed to use BaseURI to build DTD model.
* XmlTextReader.cs :
- Fixed ReadAttributeValue() to reset returnEntityReference.
- Added bool MaybeTextDecl only for ResolveEntity().
- Fixed ReadWhitespace(). In fact its value is considered even if it
is in the end of the XML.
- Fixed ReadXmlDeclaration(). Now skips text declaration.
- CompileDTDSubset() now checks IGNORE/INCLUDE section end balances.
- ReadContentSpec() should set OrderType = OR for mixed model.
Fixed to set content element name correctly.
- ImportAsPERef() now skips Text declaration.
- Type of enumerated default attributes shold be string.
- Undeclared PE error is now handled as DTD's VC error, not
XmlTextReader's WFC error.
* XmlValidatingReader.cs : BaseURI should provide that of
original XmlReader's when read was not started yet.
Fixed XmlResolver to delegate to DTDValidatingReader.
* XmlAttributeCollection.cs : Acquiring attList declaration is
insufficient especially in case of lack of elementdecl.
* XmlChar.cs : (Maybe this is compact than XmlConstructs.)
added IsWhitespace(),IsNCNameChar(),IsName(),IsNCName(),IsNmToken(),
IsPubid(). Copies IsValidIANAEncoding() from XmlConstructs.
* XmlInputStream.cs : Removed "version" declaration check. It should
be done by XmlTextReader.
* XmlNodeReader.cs : added internal GetInternalParserContext() and now
it can be used in XmlValidatingReader.ResolveEntity().
ResolveEntity() sets XmlTextReader.MaybeTextDecl.
2003-08-05 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs :
Added full ExpandEntities support for text node and entity reference
node (although require many usage tests). Almost all methods and
properties now have currentTextValue != null check, that field means
that there are cached (entity-resolved) text.
Implemented default attribute aware XmlLang and XmlSpace.
* XmlNodeReader.cs : ResolveEntity() should not require DTD.
2003-08-03 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs,
XmlNodeReader.cs,
XmlReader.cs,
XmlTextReader.cs,
XmlValidatingReader.cs : fixed pragma USE_VERSION_1_0 to NET_1_0.
2003-08-03 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs : Added BaseURI (but not used yet).
DTDAttListDeclaration.ctro() now requires root dtd object model.
* DTDValidatingReader.cs : Read() now expands EntityReference if
entity handling of validating reader is ExpandEntities.
* XmlReader.cs,
XmlTextReader.cs,
XmlNodeReader.cs,
XmlValidatingReader.cs : Implemented "virtual" ReadInnerXml and
ReadOuterXml which are modified in MS.NET 1.1.
* XmlConstructs.cs : added int version of IsValid, IsInvalid,
IsContent, IsMarkup and IsNCNameStart.
Fixed int version of IsXXX() to check array index range.
Added IsValidName (string).
* XmlTextReader.cs :
- Read() handles document with non document element as an error.
- ReadText() and ReadCharacterReference() checkes illegal characters.
- ReadEntityReference() checks name validity.
- ReadProcessingInstruction() rejects such name that starts with
"xml" ignoring case, and checks attributes more strictly.
- ReadDeclaration() rejects unrecognized kind of declaration.
- In many places, added "required whitespace" check in DTD markup.
- DTD content model now disallows mixing use of '|' and ','.
2003-08-02 Atsushi Enomoto <[email protected]>
* XmlDocumentFragment.cs : I missed to add it in relation to the
previous XmlParserContext patch. Similar to XmlAttribute/XmlElement.
* XmlNodeReader.cs : removed some TODO attributes.
* DTDValidatingReader.cs,
XmlValidatingReader.cs : Implemented ResolveEntity().
2003-07-31 Atsushi Enomoto <[email protected]>
* XmlParserContext.cs,
XmlAttribute.cs,
XmlElement.cs : Added internal Dtd and new internal XmlParserContext
.ctor() that takes DTDObjectModel. And then rewrote classes which
uses DTD information. Changed DocTypeName, InternalSubset, PublicId
and SystemId to use DTDObjectModel.
* DTDObjectModel.cs :
Added DTDObjectModel.InternalSubsetHasPEReference.
Added DTDEntityDeclaration.IsInternalSubset.
* XmlTextReader.cs :
Added internal GetInternalParserContext (to build entity reader).
Added private isIntSubset to check if the DTD subset is internal or
external, which might affect well-formedness constraints.
Changed GenerateDTDObjectModel to return the resulting DTD model.
* XmlEntityReference.cs : implemented BaseURI.
* XmlNodeReader.cs :
- Implemented ResolveEntity() and CanResolveEntity(). In fact
it leads too many changes on almost all methods and properties,
since they now must be aware of entityReader.
- fixed ownerElement that might be used to return from attribute
value to the element through parent attribtues.
- Now changed indexer to call GetAttribute() and moved actual logic
to the matching GetAttribute() methods.
2003-07-29 Atsushi Enomoto <[email protected]>
* XmlNode.cs : fixed internal ConstructNamespaceManager() for InnerXml
not to create extraneous xmlns="".
2003-07-28 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : (Read,ValidateAttributes,ReadAttributeValue)
attribute declaration should be got independently of elementdecl.
* XmlAttribute.cs :
Added internal SetDefault() to mark as default.
Removed InnerText implementation that is just the same as XmlNode.
* XmlDocument.cs : id shouldn't be removed from table at 'trying' to
get matching elements. ReadAttributeNode() now sets default mark.
* XmlElement.cs : WriteTo() should ignore default attributes.
* XmlTextWriter.cs : shuold allow valid name char such as digits.
2003-07-27 Piers Haken <[email protected]>
* XmlQualifiedName.cs : fields should never be null
2003-07-27 Atsushi Enomoto <[email protected]>
* XmlDocumentFragment.cs : added XPathNodeType indicating Root.
2003-07-27 Atsushi Enomoto <[email protected]>
* XmlDocument.cs (GetIdenticalAttribute): restored OwnerElement.IsRooted
2003-07-27 Atsushi Enomoto <[email protected]>
* XmlLinkedNode.cs : added internal IsRooted.
2003-07-26 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs :
- Added ID support in ValidateAttributes().
- More refined ReadAttributeValue() support for non-expanding entity
situation
- It should handle LocalName, Name, Prefix, NamespaceURI and Value
correctly when the reader is on each of the value nodes of an
attribute. Now XmlDocument.ReadNode() should work well.
* XmlDocument.cs :
- added idTable, AddIdenticalAttribute(), GetIdenticalAttribute() and
RemoveIdenticalAttribute()
- Implemented GetElementById().
* XmlAttributeCollection.cs :
- added private ownerDocument property and replaced
ownerElement.OwnerDocument with it.
- Added AdjustIdenticalAttribute() and it is used in SetNamedItem().
It calls XmlDocument.{Add|Remove}IdenticalAttribute().
- Added RemoveIdenticalAttribute() and it is used in Remove().
(I also added AddIdenticalAttribute() but is not used.)
2003-07-26 Duncan Mak <[email protected]>
* XmlDocument.cs (GetIdenticalAttribute): Temporarily remove test
for OwnerElement.IsRooted to fix the build..
2003-07-26 Atsushi Enomoto <[email protected]>
* XmlDocumentType.cs :
modified private DTD to dtd and added internal DTD (the same thing).
* XmlElement.cs :
Fixed SetAttributeNode() to check if specified attribute is already
set to the other element. In fact it is W3C DOM's specification but
MS.NET 1.0 failed to catch it.
* XmlTextReader.cs :
ReadAttributeValue() should check if the value of the attribute is
already read when the whole value is entity reference.
Also, Name of text nodes should be "", not "#text"
2003-07-26 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : .ctor() shouldallow localName "xml" (not prefix)
with http://www.w3.org/XML/1998/namespace.
* XmlEntity.cs : patch by Aleksey Sanin. InnerText is now supported.
* XmlNode.cs : InnerText should handle CDATA and whitespaces.
* XmlTextReader.cs : Should allow " (#PCDATA)* " in ReadContentSpec().
* XmlTextWriter.cs : Quick fix for accepting (and writing) same-named
attributes (as MS.NET does). It isn't good way and I may change it.
2003-07-24 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs : Added DTDEntityDeclarationCollection and
DTDNotationDeclarationCollection and replaced Hashtables with them.
Added NormalizedDefaultValue property for DTDAttributeDefinition.
* DTDValidatingReader.cs :
- It now reads attribute values into value collection.
- Renamed consumedDefaultAttribute to consumedAttribute, and
inContent to insideContent.
- GetAttribute() should allow reader's other node state than element.
- MoveToNextAttribute() should move when reader is placed other than
the first attribute.
- HandleError() now supports ValidationType.None (i.e. does nothing).
- ValidateAttribute() now collects and resolves attribute value
entity references. (On the other hand, it doesn't support
EntityHandling.ExpandCharEntity.)
- NodeType shouldn't return Attribute after ReadAttributeValue().
Now only Text is supported, but must also support EntityReference.
- Add FilterNormalization() and partially support Normalization.
2003-07-24 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs :
Read() now handles parser context stuff (BaseURI, XmlLang and
XmlSpace) correctly for an empty element.
Normalization property now doesn't throw an error. Will be used soon.
* XmlValidatingReader.cs : added ValidationType.None support (wait for
the next DTDValidatingReader update for "not firing event handler).
* XmlNodeReader.cs : jun. 30th commit seems wrong. It keeps its state.
2003-07-19 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs :
changed base class to XmlReader and implemented IXmlLineInfo members.
changed .ctor() argument from event handler to validating reader.
Removed some #if ... #else ... #endif blocks.
Added validation event support for Read() using HandleError().
* XmlValidatingReader.cs : added internal OnValidationEvent().
* XmlDocument.cs : ReadNode() now checks reader's state more strictly.
2003-07-19 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : applied BenM's patch for file uri problem
(bug #46610).
2003-07-15 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs :
added DTDObjectModel support for non-XmlTextReader XmlReader
e.g. XmlNodeReader (Read() method).
* XmlDocument.cs :
added internal CreateDocumentType(XmlTextReader) and moved
ReadDoctypeNode() to XmlDocumentType.ImportFromDTD().
* XmlDocumentType.cs :
added internal .ctor(XmlTextReader, document) and ImportFromDTD().
* XmlTextReader.cs :
Renamed useSbForVal (valueBuilderAvailable), valSb (valueBuilder)
and currentSubset (DTD).
Added GenerateDTDObjectModel() (for independent doctype parsing).
2003-07-15 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs :
.ctor() should reject xml- or xmlns-prefixed node.
* XmlNamespaceManager.cs :
added some xmlns validity check.
* XmlNode.cs :
optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
avoiding XmlNamespaceManager creation.
* XmlNodeReader.cs :
doctype node should return PUBLIC and SYSTEM for its indexer,
and Value should be internal subset,
2003-07-12 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs,
DTDValidatingReader.cs : Completely rewrote attribute handling.
2003-07-12 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs,
XmlElement.cs : Fixed CloneNode() for bug #46129.
* XmlDocument.cs : Fixed MakeReaderErrorMessage that specified invalid
String.Format arguments, and basically XmlException.ctor(
IXmlLineInfo, message) seems good idea to use.
* XmlTextReader.cs :
- Fixed .ctor(Stream, XmlNodeType, XmlParserContext) which had
required non-null context which don't have to exist.
- Added state check. Introduced 'currentState' and 'maybeTextDecl'
(for external entity) and removed hasEnteredDocument. Added
state-check logic to ReadStartTag(), ReadEndTag(), ReadText(),
ReadCData(), ReadDoctypeDecl() and ReadWhitespace().
- Replaced throw ReaderError() with throw new XmlException() and
fixed that some error hadn't thrown, only created.
- ResetState() should re-initialize existing private members other
than some specified fields.
- Private AddAttribute() should check if the same-named attribute
already exists.
* DTDObjectModel.cs : Additive declaration for ATTLIST is availabe now.
2003-07-09 Lluis Sanchez Gual <[email protected]>
* XmlTextReader.cs : Implemented ResetState() method.
2003-07-06 Atsushi Enomoto <[email protected]>
* XmlElement.cs : IsEmpty has removed attributes since it incorrectly
used RemoveAll().
2003-07-06 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : Load(string filename) should close its stream.
Small change for the latest DTDObjectModel change.
* XmlTextReader.cs : Changed for the latest DTDObjectModel change (all
changed methods are only related to DTD stuff).
Now uses XmlSchemaDatatype for attribute type definition.
* XmlValidatingReader : initial (limited) support for DTD validation.
It can handle only XmlTextReader.
* DTDObjectModel.cs : changed radically for initial validation support.
* added DTDAutomata.cs and DTDValidatingReader.cs.
2003-07-06 Atsushi Enomoto <[email protected]>
* XmlElement.cs : Removed extraneous xmlns output support (it should
be done by XmlTextWriter).
* XmlNode.cs : InsertBefore() now checks validity of the newChild (and
most of the changes are in fact indentation changes).
* XmlWriter.cs : WriteAttributes() now can write entity references.
WriteNode() now writes xmldecl attributes correctly.
Removed namespaceManager and xmlns check logic, since it should be
done by individual XmlTextWriter.
* XmlTextWriter.cs : Patch by Jerome. AddMissingElementXmlns () has
written multiple xmlns declarations.
Moved namespaceManager from abstract XmlWriter.
Write{Start|End}Attribute() and WriteString() now checks xmlns
attribute value. (MS.NET holds value only with this write method).
2003-07-04 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : removed xmlReader.Close() from Load(XmlReader).
2003-06-30 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
essentially changed most of the property handling (e.g. removed attribute
enumerator and it now became really cloneable).
* XmlNodeReader.cs : ReadInnerXml() changes its state as error
when the method is called at Initial state.
2003-06-25 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
as non-empty, and XmlElement's IsEmpty is designed as such.
Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
doctype node.
* XmlNode.cs : Fixed XPathNodeType. It should throw an exception
instead of returning undefined enum value.
Modified some code comments.
* XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
when XmlReader's node is not at empty element or at EndElement.
Fixed XmlDeclaration's standalone check.
2003-06-21 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : removed CRLFs. Fixed private InitializeContext()
to use known Uri way (used in XmlUrlResolver) instead of UriBuilder.
2003-06-20 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : quick fix for public ctor() BaseURI bug.
2003-06-20 Ben Maurer <[email protected]>
* XmlTextReader.cs: Reduces memory allocation when the reader is
not queried for some values.
* NameTable.cs: Now uses a custom hashtable to implement. As a
result, when Get (char[], int, int) is called, a string is only
allocated if it is actually a new entry.
(StrEqArray) Compares a string and a char[]
(AddEntry) Adds a new entry to the hashtable
(Entry) Represents a hashtable entry.
2003-06-20 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.
2003-06-16 Ben Maurer <[email protected]>
* XmlUrlResolver.cs: really fixed #44231
2003-06-16 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
this method set current node null.
* XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
String.Empty instead of null (expected value).
* XmlTextReader.cs,
XmlUrlResolver.cs,
XmlInputStream.cs : fixed BaseURI problem (bug #44231).
2003-06-15 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : this [name] and this [name, ns] (and
GetAttribute() methods in turn) returns null instead of String.Empty.
* XmlTextWriter.cs : WriteStartAttribute() should try to use specified
prefix before auto-generating prefixes.
Implemented WriteBase64().
2003-06-13 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : LookupNamespace () has refered invalid current
node for attributes. Modified to use private "document" property.
2003-06-10 Lluis Sanchez Gual <[email protected]>
* XmlTextWriter.cs: when adding an attribute with a namespace, a prefix must be automaticaly
generated, and a namespace declaration must be added.
* XmlWriter.cs: the namespace for the prefix xmlns must be http://www.w3.org/2000/xmlns/
2003-06-10 Zoltan Varga <[email protected]>
* XmlAttribute.cs: Accept a null prefix or namespaceURI.
2003-06-10 Duncan Mak <[email protected]>
* XmlDocumentNavigator.cs (GetNode): Make it implement
IHasXmlNode.
2003-06-05 Lluis Sanchez Gual <[email protected]>
* XmlTextWriter.cs : Fixed bug. After calling for example WriteStartElement ("pref","ln","ns");
a call to LookupPrefix ("pref") when still writting attributes should
return "ns", and it didn't.
2003-06-02 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
* XmlConvert.cs : fixed VerifyNCName() to check correctly.
2003-06-01 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Compute document node one time.
MoveToFirstChild() should move to PIs and comments.
2003-05-30 Miguel de Icaza <[email protected]>
* XmlReader.cs (ReadStartElement): Improve error message.
2003-05-28 Lluis Sanchez Gual <[email protected]>
* XmlTextReader.cs : MoveToAttribute methods must set the enumerator to the right
position, since MoveToNextAttribute may be called after it.
SetProperties(): attributes do not "inherit" the namespace.
* XmlDocument.cs: ReadNode(), ReadAttributeNode(): must keep the current reader position.
2003-05-27 Atsushi Enomoto <[email protected]>
* NameTable.cs : Add() sets the given name string interned.
* XmlParserContext.cs : added internal PushScope() and PopScope() to
hold stacks of xml:base, xml:lang and xml:space.
* XmlTextReader.cs : implemented XmlLang and XmlSpace (only as a
property for stacked attributes). Renamed Initialize() to Initialize-
Context(). Modified to use XmlParserContext.PushScope()/PopScope().
2003-05-26 Lluis Sanchez Gual <[email protected]>
* XmlReader.cs: Little fix to WriteAttributeString()
2003-05-24 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
Reverted the recent accessibility mistake (5/16).
* XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic
from XmlNode to XmlDocument.
2003-05-18 Lluis Sanchez Gual <[email protected]>
* XmlQualifiedName.cs : Fixed bug in equality operator.
2003-05-18 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : patch by Jonathan Hogg. Flush() does not close
any open attributes or elements. WriteWhitespace() checks state and
closes start tag. Fixed WriteStringInternal() to replace CR/LF chars
when it is called inside attribute value.
* XmlException.cs : added .NET 1.1 .ctor.
* added XmlSecureResolver.cs (only stubbing).
* XmlAttribute.cs : set_InnerXml() should remove children.
* XmlAttribute.cs,
XmlElement.cs,
XmlDocumentFragment.cs,
XmlDocument.cs : removed XmlTextReader reuse (It was buggy stuff).
* XmlNode.cs : RemoveAll() should also remove all attributes.
* XmlTextRader.cs : .ctor() for attribute value reader should add
quotations at initialization, since it requires quote chars.
* XmlWriter.cs : WriteAttributeString() more correct xmlns check.
2003-05-16 Atsushi Enomoto <[email protected]>
* changed XPathNodeType modifier to internal *protected* override.
* XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
* XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
* XmlAttributeCollection.cs : removed some incorrect TODO attributes.
* XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
when the argument is "xmlns".
* XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
* XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
* XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
* XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
not to set error state for non-started XmlNodeReader.
* XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
BaseURI support. Fixed Initialize() to handle Attribute correctly.
SetProperty for attribute auto-completes xmlns NSURI.
Attribute and whitespace handling became more correct.
Don't parse external DTD if XmlResolver is null.
* XmlTextWriter.cs : implemented WriteEntityRef().
WriteStartAttribute() checks if ns does not equal to that of xmlns.
* XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
2003-05-05 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : IsInvalid() Now uses XmlConstructs.IsName(Start).
EncodeName() now correctly encodes invalid names.
Result string of ToString(DateTime) contains "fffffff".
2003-04-29 Atsushi Enomoto <[email protected]>
* XmlElement.cs : fixed IsEmpty (removed private field isEmpty).
* XmlNodeReader.cs : Fixed AttributeCount, each this[] (indexers),
MoveTo*Attribute(),
Fixed this[] to work correctly against XmlDeclarations.
Fixed ReadInnerXml() and ReadOuterXml() to call Read() correctly.
(which may prevent validations etc.)
* XmlReader.cs,
XmlNodeReader.cs,
XmlTextReader.cs : Fixed ReadString() to be compliant with each
other.
* XmlTextReader.cs : ReadInnerXml() now moves to next node correctly.
2003-04-27 Pedro Mart�nez Juli� <[email protected]>
* XmlNode.cs: ensure to get a valid Uri in BaseUri when loading the
source document from a file.
2003-04-27 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : fixed WriteTo() and WriteContentTo() to write
content EntityReference correctly.
* XmlNodeReader.cs : many fix for EndElement handling (AttributeCount,
HasAttributes, indexers, MoveTo*Attribute() and Read() ).
Modified Skip() to call Read () explicitly.
* XmlTextReader.cs :
Fixed ReadInnerXml() which ignored EndElement token in certain cases.
Implemented MoveToAttribute (local, ns), and modified GetAttribute()
in relation to this change.
Attributes for XmlDeclaration are now correctly set.
* XmlTextWriter.cs : WriteRaw() is now different from WriteString().
Simplified WriteAttributes() for XmlDeclaration.
2003-04-26 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : fixed ReadInnerXml(). it was inconsistent with
Depth property fix.
2003-04-25 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : fixed Load() to set baseURI correctly.
* XmlReader.cs : patch by Gonzalo. Fixed not to skip XmlDeclaration.
* XmlTextReader.cs :
fixed Depth. When it's on StartElement, Depth was already incremented.
fixed private SaveProperty(), which moved away its saved properties
when MoveToElement was called repeatedly.
* XmlTextWriter.cs : fixed WriteQualifiedName() to close start tag.
* XmlWriter.cs :
WriteAttributes() refactory (for XMLDecl).
WriteNode() don't Read() when the reader is Initial state, let other
invokation to Read(). In case of Element, it should write entire
element. In case of Attribute, it shouldn't Read().
WriteStartDocument() should omit standalone decl. when there is no
explicit value.
2003-04-23 Gonzalo Paniagua Javier <[email protected]>
* XmlReader.cs: reverted last patch. It breaks System.Configuration
because 1. it considers XmlDeclaration as content and 2. always
returns XmlNodeType.None.
2003-04-23 Atsushi Enomoto <[email protected]>
* Added missing ChangeLog of 4/4/2003.
* XmlTextWriter.cs : patch by Erik. fixed WriteQualifiedName.
(write prefix instead of ns.)
* XmlInputStream.cs : file access mode fix (FileAccess.Read was missing)
* XmlTextReader.cs : modified to call Read() instead of ReadContent().
(It may be required for decorated reader such as XmlValidatingReader.)
Changed Read() error message for mismatch end tag.
* XmlDocument.cs : (ReadNode) friendly message for mismatch EndElement.
* XmlReader.cs : Corrected misinterpreted MoveToContent() method.
2003-04-04 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : Load() now closes the given XmlReader.
Don't allow creation of XmlTextReader for Doctype. (workaround.)
* XmlInputStream.cs : It now closes its internal stream explicitly.
* XmlNode.cs : RemoveChild() bugfix for removing LastLinkedChild.
* XmlNodeReader.cs : GetAttribute() bugfix for not-present attribute.
* XmlParserInput.cs : added Close() method.
* XmlReader.cs : MoveToContent() should (1) not Read in case of empty
element, and (2) MoveToElement() in case of attribute.
* XmlTextReader.cs : Close() now actually closes source TextReaders.
2003-03-26 Duncan Mak <[email protected]>
* XmlTextWriter.cs (Write): A patch from Atsushi to fix
prematurely ending the write, or something like that. It was
causing us to chop off the end of the document when we're trying
to generate XML Schemas.
2003-03-23 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : implemented ReadString().
fixed ctor(string, XmlNodeType, XmlParserContext) - don't raise
null reference exception when context is null.
* XmlNodeReader.cs : fixed ReadString() - should ignore attributes etc.
fixed Read() - when positioned at EndElement, it didn't progress.
fixed HasAttribute - it didn't return false in all cases.
fixed Name and LocalName - only limited type of nodes return names.
fixed AttributeCount - in some cases it threw null ref exception.
2003-03-22 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : WriteStartDocument doesn't set hasRoot=true, then
WriteEndDocument without root element now raises an error correctly.
* XmlDocumentNavigator.cs : (MoveToFirstChild) fixed bugzilla #36672.
implemented BaseURI, NameTable, XmlLang, GetAttributes, GetNamespace,
MoveToAttribute.
2003-03-22 Atsushi Enomoto <[email protected]>
* XmlElement.cs : RemoveAttribute now don't throws when specified
attribute does not exist.
2003-03-21 Atsushi Enomoto <[email protected]>
* XmlNode.cs : add descriptions for some node type error.
2003-03-21 Atsushi Enomoto <[email protected]>
* XmlNodeArrayList.cs, XmlNodeListChildren.cs : bugzilla #39920 fix.
2003-03-19 Atsushi Enomoto <[email protected]>
* XmlDeclaration.cs : quick fix, not to use regex for set_Value.
2003-03-19 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Fixed wrong notationdecl SYSTEM id read.
* XmlInputStream.cs : Should allow versionless input stream entity.
2003-03-18 Atsushi Enomoto <[email protected]>
* added XmlParserInput.cs for multi xml document sources.
* added DTDObjectModel.cs (maybe temporary).
* XmlTextReader.cs :
+ fixed ctor to use XmlStreamReader. Allowed null XmlParserContext.
+ Some members such as LineNumber, ReadChar now uses XmlParserInput.
+ added support for Namespaces (namespace-ignorant parse available).
+ added support for XmlResolver.
+ replace SetReaderContext()/SetReaderFragment() with Initialize().
+ use NameTable in CreateNameString.
+ fixed ReadCData(). Now reads "]]]>" correctly.
+ support for DTD parse.
+ Read() now throws an error when it reached EOF while Depth > 0.
* XmlAttribute.cs,
XmlDocumentFragment.cs,
XmlElement.cs : fix related to the changes of XmlTextReader.Initialize
* XmlDocument.cs : ReadNode() now reads DocumentType.
* XmlDocumentType.cs : implemented Entities, Notations, WriteTo().
* XmlEntity.cs,
XmlNotation.cs : added override LastLinkedChild (for doctype node).
* XmlNamedNodeMap.cs : Remove() raises an error if target is read only.
* XmlElement.cs : bugfix for node removal of set_InnerXml.
* XmlNode.cs : added insertBeforeIntern() derived from InsertBefore().
(to append child XmlEntity into XmlDocumentType correctly.)
* XmlInputStream.cs : fixed to access file with FileAccess.Read.
2003-03-15 Duncan Mak <[email protected]>
* XmlElement.cs (Name): Only append prefix + ':' when prefix is
neither String.Empty nor null. Thanks to Simon Guindon for
reporting the bug and Jackson for fixing this bug with me.
2003-03-15 Atsushi Enomoto <[email protected]>
* XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
* XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
fixed ReadNode(), it should call reader.Read() only on Initial state.
* XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
System.Net.WebClient directly.
* XmlParserContext.cs : baseURI never be null.
* XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
* XmlUrlResolver.cs : namespace change for XmlInputStream.
2003-03-12 Elan Feingold <[email protected]>
* XmlTextReader.cs: When throwing a ReaderException, show what
character was the culprit
2003-03-05 Atsushi Enomoto <[email protected]>
* XmlDocumentFragment.cs, XmlElement.cs :
modified InnerXml (fragment type from Element to DocumentFragment).
* XmlElement.cs : fixed WriteTo() ns check.
* XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
* XmlNode.cs : fixed ConstructNamespaceManager().
* XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
IsPubid with an int arg.
* XmlReader.cs : changed to use XmlChar.cs (its role is as same as
XmlConstructs.cs).
* XmlTextReader.cs :
improved error messages with line info.
/ checking matching start and end tags.
/ prevents the apperance of multiple root elements. (patch by Erik)
fixed and refactored ReadInnerXml() and ReadOuterXml()
changed to use XmlChar.cs.
* XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
(It will help c14n implementation.)
/ blocks multiple attribute output with element node.
2003-02-28 Alan Tam <[email protected]>
* XmlConvert.cs: fixed the most ToXXX(string) and ToString(XXX)
methods to make them compatible with the XML Schema Spec from W3C
ToString(TimeSpan) is still outstanding
2003-02-18 Gonzalo Paniagua Javier <[email protected]>
* XmlDocument.cs:
(Load (string)): hack to workaround some issues with Uri.Parse. Once
Parse is fixed, remove the hack.
2003-02-16 Atsushi Enomoto <[email protected]>
* XmlQualifiedName.cs : fixed GetHashCode() to avoid null reference
* XmlTextReader.cs : fixed ReadAttributeValue() to handle
entity reference, and some refactory.
2003-02-16 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.
2003-02-16 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : added (also contains internal XmlStreamReader).
* XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
and can read non-UTF-8 stream.
* XmlTextReader.cs : related to above stream fix.
* XmlUrlResolver.cs : implemented GetEntity ().
2003-02-03 Gonzalo Paniagua Javier <[email protected]>
* XmlTextWriter.cs: implemented WriteRaw (char[], int, int).
2003-02-02 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : implemented QuoteChar.
2003-01-26 Atsushi Enomoto <[email protected]>
* XmlNode.cs : implemented ReplaceChild.
removed DocElem checking at InsertBefore.
* XmlNodeReader.cs : fixed ReadString and Read for correct node info.
* XmlText.cs : implemented CloneNode and SplitText.
2003-01-24 Gonzalo Paniagua Javier <[email protected]>
* XmlCharacterData.cs: added XPathNodeType property.
2003-01-22 Gonzalo Paniagua Javier <[email protected]>
* XmlTextWriter.cs: throw an exception if WriteEndDocument is
called without a prior call to WriteStartDocument.
2003-01-21 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : several fix to get more compatible with MS.NET.
2003-01-19 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
null when no matching uri.
* XmlElement.cs : removed unnecessary xmlns output.
* XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
* XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
along with the change above, and moved timing of 'xmlns' output
to CloseStartElement.
* XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
2003-01-18 Atsushi Enomoto <[email protected]>
* XmlWriter.cs: modified WriteStartElement (see test for detail).
Added WriteNode.
2003-01-13 Ville Palo <[email protected]>
* XmlDocument.cs: Added CheckName () method to check names validity.
2003-01-11 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs:
(ReadOuterXml): use Depth property which return elementDepth, not depth.
2003-01-11 Atsushi Enomoto <[email protected]>
* XmlElement.cs : (by ville) XmlElement.set_InnerText event bugfix.
* XmlTextReader.cs : some fix for ReadOuterXml().
2003-01-08 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : bugfix for attributes related to creation of
XmlAttribute *node*.
2003-01-08 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : bugfix for attribute values which have entity
references.
2002-12-28 Ville Palo <[email protected]>
* XmlDocument.cs: XmlTextWriter.Formatting == Indented when
calling Save () -methods.
2002-12-28 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : primitive reading implementation.
2002-12-28 Atsushi Enomoto <[email protected]>
* XmlElement.cs : quick fix for the incomplete patch of #35308 below.
2002-12-28 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : removed inconsistent line-feed output.
* XmlElement.cs, XmlTextWriter.cs :
fixed for bugzilla 35308 (default ns output)
* XmlWhitespace.cs : limited output only when preserving whitespace.
2002-12-24 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs, XmlDocument.cs, XmlTextReader.cs:
Implemented XmlTextReader.ReadAttributeValue().
Added internal ReadAttributeNodeValue().
Fixed XmlAttribute.InnerXml to use these methods.
* XmlDocument.cs, XmlDocumentFragment.cs, XmlElement.cs, XmlNode.cs:
Implemented XmlDocument.ReadNode() and removed ConstructDOM().
Other changes are replacing them.
2002-12-24 Atsushi Enomoto <[email protected]>
* XmlDocument.cs: patch by Ville (fixed default PreserveWhitespace)
2002-12-21 Atsushi Enomoto <[email protected]>
* XmlElement.cs, XmlTextWriter.cs, XmlWriter.cs:
patch by JD Conley <[email protected]>.
(Fix for xmlns attribute output.)
2002-12-05 Ville Palo <[email protected]>
* XmlQualifiedName.cs: Little fix to ToString () -method
2002-12-04 Tim Haynes <[email protected]>
* class/System.XML/System.Xml/XmlElement.cs: Made more refined
checks on attributeNode to fix 32262.
2002-12-03 Atsushi Enomoto <[email protected]>
* XmlDocument.cs (CreateNavigator(XmlNode)) : reverted
* XmlTextWriter.cs (WriteStartElementInternal):
fixed when default namespace was specified, all descendants
fail to omit the default namespace declarations.
* XmlAttribute.cs,
XmlDocument.cs,
XmlNode.cs (internal XmlLang/XmlSpace) : implemented(defined)
* XmlAttribute.cs,
XmlDocumentFragment.cs,
XmlElement.cs (set_InnerXml): now uses XmlLang/XmlSpace
* XmlElement.cs (set_IsEmpty) : implemented
(WriteTo) : removed my improper indenting (Writer already done)
* XmlNode.cs (BaseURI) : fixed if ParentNode is null, NullPointerEx
(ConstructDOM) : implemented when xmlReader isn't XmlTextReader
...and renamed XmlDocument.ConventionalParser to ReusableReader ;-)
2002-12-01 Atsushi Enomoto <[email protected]>
* XmlNode.cs (RemoveChild):
bugfixed when XmlNode is Document OwnerDocument is null
* XmlDeclaration.cs (Value):
bugfixed regular expression pattern.
* XmlDocument.cs (CreateNavigator): bugfixed access modifier.
2002-11-24 Duncan Mak <[email protected]>
* XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
first patch to Mono! ;-)
2002-11-19 Gonzalo Paniagua Javier <[email protected]>
* XmlNode.cs:
(AppendChild): readded refChild != null condition before throwing
"cannot insert this node in this position" exception. There's probably
a better solution. Fixes #34191.
(RemoveAll): changed following Atsushi instructions.
2002-11-13 Duncan Mak <[email protected]>
* XmlElement.cs (IsEmpty): A temporary check-in to keep gtk-sharp
compiling.
2002-11-14 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : unified all constructors, added ConventionalParser,
implemented CloneNode() and CreateEntityReference(),
* XmlEntityReference.cs : set_Value, WriteContentTo, WriteTo
set BaseURI to MonoTODO
* XmlNode.cs : implemented PrependChild, modified ConstructDOM,
bugfix InsertAfter (incorrect prepending) and InsertBefore
(more than one DocumentElements hadn't caused errors)
* XmlTextReader.cs : unified all constructors,
added internal SetReaderContext(), SetReaderFragment()
bugfix (syntax check of PUBLIC / getting internal subset)
2002-11-13 Atsushi Enomoto <[email protected]>
XmlAttribute.cs : set_InnerText, set_InnerXml, some check for set_Prefix
XmlAttributeCollection.cs : (indexer) this[localName, namespaceURI]
XmlCharacterData.cs : exchanged Data and Value
(for processing events and inheritance)
XmlDocumentFragment.cs : set_InnerXml
XmlSignificantWhitespace.cs : set_Value
XmlTextReader.cs : ReadAttributeValue
2002-11-04 Atsushi Enomoto <[email protected]>
XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement'
2002-11-03 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : checks owner element.
implemented CopyTo, InsertAfter, InsertBefore, Prepend,
Remove, RemoveAt, SetNamedItem.
removed some logics that sets 'Parent' (that should be null)
* XmlDocument.cs : set_InnerXml, [PreserveWhitespace(incomplete)]
* XmlDocumentFragment.cs : get_InnerXml, WriteContentTo, WriteTo
* XmlElement.cs : implemented WriteTo, set_InnerText.
Fixed WriteTo() to add xmlns:* attributes when
writer.LookupPrefix() returned mismatching.
* XmlNamedNodeMap.cs : compare not only name but localname and nsuri.
Removing different prefixes for the same uri now runs correct.
added SetNamedItem(XmlNode node, int position_to_insert).
* XmlNode.cs : ConstructDOM (logically) creates XmlEntityReference,
XmlWhitespace, and XmlSignificantWhitespace
2002-10-31 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : implemented CreateDocumentFragment()
* XmlElement.cs, XmlLinkedNode.cs :
moved LastLinkedChild from XmlElement to XmlLinkedNode.
* XmlEntityReference.cs : must throw NotImplementedException.
* XmlNode.cs :
+ implemented InsertBefore() and then implemented InsertAfter()
and modified AppendChild() to call it.
+ added logic to check ReadOnly, parent document equivalence,
and inserting any 'content' before/after DocumentElement.
+ implemented Clone() [it is equals to CloneNode() by MS doc.]
+ added logic in RemoveChild() to check parent of oldChild.
+ fixed ConstructNamespaceManager() to internal only.
2002-10-29 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : add internal 'IsDefault' property
(equals to !Specified)
* XmlImplementation.cs : added 'internalNameTable' property.
* XmlDocument.cs :
+ now allows "" for 'standalone' in CreateXmlDeclaration.
+ implemented 'Implementation' property and constructor with it.
+ added logic for appending name table (but still no use)
+ implemented property 'DocumentType'
(but without internalSubset parsing. wait for next update.)
* XmlNode.cs :
+ modified AppendChild() and RemoveChild() to support fragment.
+ modified AppendChild() to remove newChild from its parent
when newChild is already in the other place.
+ modified RemoveChild() to set parentNode null.
+ modified ConstructDOM() to create DocumentType,
and fixed access modifier ('internal protected' to 'internal')
* XmlLinkedNode.cs : fixed 'NextSibling' to return null
when its parent is null.
* XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
property to enable AppendChild() for this class.
* XmlTextReader.cs : appended private publicId and systemId fields.
2002-10-28 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs: make it work when the underlying Stream is not
'seekable'.
2002-10-26 Piers Haken <[email protected]>
* XmlNode.cs: add virtual property XPathNodeType
* XmlAttribute.cs:
* XmlComment.cs:
* XmlDocument.cs:
* XmlElement.cs::
* XmlProcessingInstruction.cs:
* XmlSignificantWhitespace.cs:
* XmlText.cs:
* XmlWhitespace.cs: implement XPathNodeType property
* XmlDocumentNavigator.cs: use XPathNodeType property instead of switch
2002-10-26 Piers Haken <[email protected]>
* XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
2002-10-23 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs: don't increment depth for entity references.
2002-10-22 Tim Haynes <[email protected]>
* - Fixed the duplication of xmlns:xx = yy when serializing the
XML for serialization
Fixed the unnecessary parsing/serializing when adding assemblies
for serialization
Avoided setting the XmlNode.InnerXml property
(as it's not implemented)
Fixed the usage/implementation of
XmlElement.GetElementsByTagName()
2002-10-21 Duncan Mak <[email protected]>
* XmlDocument.cs:
* XmlElement.cs:
* XmlNode.cs:
* XmlTextReader.cs: Implementation for XmlNode.InnerXml from
Atsushi Enomoto <[email protected]>.
2002-10-18 Duncan Mak <[email protected]>
* XmlDocument.cs: Applied a patch by Atsushi Enomoto
<[email protected]>.
2002-10-12 A.Enomoto <[email protected]>
* XmlDocument.cs (ImportNode): Implemented
2002-10-06 Gonzalo Paniagua Javier <[email protected]>
* XmlDocument.cs: one more Load method implemented.
* XmlTextReader.cs: Depth now works.
2002-09-22 Gonzalo Paniagua Javier <[email protected]>
* XmlConvert.cs: IsInvalid is now internal.
* XmlNamespaceManager.cs: implemented RemoveNamespace
* XmlTextReader.cs: return BaseURI and Encoding from the parser.
* XmlTextWriter.cs: implemented WriteName and WriteNmToken.
2002-09-19 Matt Hunter <[email protected]>
* XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
* XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
2002-09-19 Gonzalo Paniagua Javier <[email protected]>
* XmlConvert.cs: finished implementation.
* XmlTextReader.cs: fixed #30239.
* XmlTextWriter.cs: fixed #30240.
2002-09-15 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs: line and position begin with 1.
2002-09-13 Gonzalo Paniagua Javier <[email protected]>
* XmlException.cs: added a new internal constructor for IXmlLineInfo
and output line and position info in Message.
* XmlReader.cs: implemented missing bits.
2002-09-12 Piers Haken <[email protected]>
* XmlDocumentNavigator.cs: implement MoveToId()
2002-09-05 Gonzalo Paniagua Javier <[email protected]>
* XmlTextWriter.cs: fixed bug #29886.
2002-08-26 Ravi Pratap <[email protected]>
* XmlAttribute.cs (InnerText): Implement getting this property.
* XmlNode.cs (InnerText): Ensure that we append only values of
text nodes.
2002-08-26 Gonzalo Paniagua Javier <[email protected]>
* XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
that allowed compiling this.
[ FIXME: filed bug #29435. mcs should have failed on this ]
2002-08-25 Tim Coleman <[email protected]>
* XmlNode.cs:
Change CreateNavigator to not be virtual.
* XmlElement.cs:
Add set_Prefix and InnerText accessors.
* XmlEntityReference.cs:
Add set_Value accessor.
* XmlTextWriter.cs:
Make objects which should be private private.
* XmlWriter.cs:
Remove WriteStartElementInternal abstract definition.
* XmlValidatingReader.cs:
New stubs added.
2002-08-22 Jason Diamond <[email protected]>
* XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
and RemoveAllAttributes courtesy of Matt Hunter <[email protected]>.
2002-08-22 Jason Diamond <[email protected]>
* XmlElement.cs: Correction to previous GetElementsByTagName patch
courtesy of Matt Hunter <[email protected]>.
2002-08-22 Jason Diamond <[email protected]>
* XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
qualified GetElementsByTagName courtesy of Matt Hunter
<[email protected]>.
2002-08-19 Jason Diamond <[email protected]>
* XmlDocument.cs, XmlElement.cs: Added implementation of
GetElementsByTagName courtesy of Matt Hunter <[email protected]>.
2002-08-16 Jason Diamond <[email protected]>
* XmlElement.cs: Fixed writing out qualified elements courtesy of
Marcus B�rgel <[email protected]>.
2002-08-13 Tim Coleman <[email protected]>
* XmlTextWriter.cs:
Partial implementation of WriteQualifiedName ().
2002-08-07 Kral Ferch <[email protected]>
* XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
InsertData(), and ReplaceData(). These methods fire the
NodeChanging and NodeChanged events.
* XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
* XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
2002-08-03 Tim Coleman <[email protected]>
* XmlNamespaceManager.cs:
.Net allows the empty namespace to be redefined
at a later point, but the current implementation
did not. This fixes a hashtable conflict.
2002-07-26 Tim Coleman <[email protected]>
* XmlTextWriter.cs:
When given a textwriter, check to see if it has a
null encoding. This was being done for other inputs
than a textwriter.
Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <[email protected]>
* XmlTextReader.cs: rough line/column support.
2002-07-23 Duncan Mak <[email protected]>
* XmlConvert.cs: Implement the ToDateTime method. ToDateTime
(string, string []) is particularly strange.
* XmlException.cs: Remember to call the base serialization
constructor.
* XmlNodeReader.cs: Keep a new variable to store the Depth.
2002-07-14 Jason Diamond <[email protected]>
* XmlAttribute.cs: Removed ownerElement field since we can reuse
parentNode field.
* XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
if the current node is an attribute.
* XmlElement.cs: SetAttributeNode now sets the new attribute's
owner element.
2002-07-12 Jason Diamond <[email protected]>
* XmlDocument.cs: If null was passed in for prefix or namespaceURI when
creating an element, use String.Empty instead.
2002-07-12 Piers Haken <[email protected]>
* XmlAttributeCollection.cs: implement some ItemOf indexers
* XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
* XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
2002-07-06 Ajay kumar Dwivedi <[email protected]>
2002-10-26 Piers Haken <[email protected]>
* XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.
2002-10-23 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs: don't increment depth for entity references.
2002-10-22 Tim Haynes <[email protected]>
* - Fixed the duplication of xmlns:xx = yy when serializing the
XML for serialization
Fixed the unnecessary parsing/serializing when adding assemblies
for serialization
Avoided setting the XmlNode.InnerXml property
(as it's not implemented)
Fixed the usage/implementation of
XmlElement.GetElementsByTagName()
2002-10-21 Duncan Mak <[email protected]>
* XmlDocument.cs:
* XmlElement.cs:
* XmlNode.cs:
* XmlTextReader.cs: Implementation for XmlNode.InnerXml from
Atsushi Enomoto <[email protected]>.
2002-10-18 Duncan Mak <[email protected]>
* XmlDocument.cs: Applied a patch by Atsushi Enomoto
<[email protected]>.
2002-10-12 A.Enomoto <[email protected]>
* XmlDocument.cs (ImportNode): Implemented
2002-10-06 Gonzalo Paniagua Javier <[email protected]>
* XmlDocument.cs: one more Load method implemented.
* XmlTextReader.cs: Depth now works.
2002-09-22 Gonzalo Paniagua Javier <[email protected]>
* XmlConvert.cs: IsInvalid is now internal.
* XmlNamespaceManager.cs: implemented RemoveNamespace
* XmlTextReader.cs: return BaseURI and Encoding from the parser.
* XmlTextWriter.cs: implemented WriteName and WriteNmToken.
2002-09-19 Matt Hunter <[email protected]>
* XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
* XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
2002-09-19 Gonzalo Paniagua Javier <[email protected]>
* XmlConvert.cs: finished implementation.
* XmlTextReader.cs: fixed #30239.
* XmlTextWriter.cs: fixed #30240.
2002-09-15 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs: line and position begin with 1.
2002-09-13 Gonzalo Paniagua Javier <[email protected]>
* XmlException.cs: added a new internal constructor for IXmlLineInfo
and output line and position info in Message.
* XmlReader.cs: implemented missing bits.
2002-09-12 Piers Haken <[email protected]>
* XmlDocumentNavigator.cs: implement MoveToId()
2002-09-05 Gonzalo Paniagua Javier <[email protected]>
* XmlTextWriter.cs: fixed bug #29886.
2002-08-26 Ravi Pratap <[email protected]>
* XmlAttribute.cs (InnerText): Implement getting this property.
* XmlNode.cs (InnerText): Ensure that we append only values of
text nodes.
2002-08-26 Gonzalo Paniagua Javier <[email protected]>
* XmlWriter.cs: made ws and namespaceManager protected. mcs has a bug
that allowed compiling this.
[ FIXME: filed bug #29435. mcs should have failed on this ]
2002-08-25 Tim Coleman <[email protected]>
* XmlNode.cs:
Change CreateNavigator to not be virtual.
* XmlElement.cs:
Add set_Prefix and InnerText accessors.
* XmlEntityReference.cs:
Add set_Value accessor.
* XmlTextWriter.cs:
Make objects which should be private private.
* XmlWriter.cs:
Remove WriteStartElementInternal abstract definition.
* XmlValidatingReader.cs:
New stubs added.
2002-08-22 Jason Diamond <[email protected]>
* XmlAttributeCollection.cs, XmlElement.cs: Implementation of RemoveAll
and RemoveAllAttributes courtesy of Matt Hunter <[email protected]>.
2002-08-22 Jason Diamond <[email protected]>
* XmlElement.cs: Correction to previous GetElementsByTagName patch
courtesy of Matt Hunter <[email protected]>.
2002-08-22 Jason Diamond <[email protected]>
* XmlDocument.cs, XmlElement.cs: Added implementation of namepsace
qualified GetElementsByTagName courtesy of Matt Hunter
<[email protected]>.
2002-08-19 Jason Diamond <[email protected]>
* XmlDocument.cs, XmlElement.cs: Added implementation of
GetElementsByTagName courtesy of Matt Hunter <[email protected]>.
2002-08-16 Jason Diamond <[email protected]>
* XmlElement.cs: Fixed writing out qualified elements courtesy of
Marcus B�rgel <[email protected]>.
2002-08-13 Tim Coleman <[email protected]>
* XmlTextWriter.cs:
Partial implementation of WriteQualifiedName ().
2002-08-07 Kral Ferch <[email protected]>
* XmlCharacterData.cs: Implemented AppendData(), DeleteData(),
InsertData(), and ReplaceData(). These methods fire the
NodeChanging and NodeChanged events.
* XmlDocument.cs: Fixed bugs in onNodeChanged() and onNodeChanging().
* XmlNode.cs: AppendChild() fires NodeInserting and NodeInserted events.
RemoveAll() and RemoveChild() fire NodeRemoving and NodeRemoved events.
2002-08-03 Tim Coleman <[email protected]>
* XmlNamespaceManager.cs:
.Net allows the empty namespace to be redefined
at a later point, but the current implementation
did not. This fixes a hashtable conflict.
2002-07-26 Tim Coleman <[email protected]>
* XmlTextWriter.cs:
When given a textwriter, check to see if it has a
null encoding. This was being done for other inputs
than a textwriter.
Wed Jul 24 13:16:19 CEST 2002 Paolo Molaro <[email protected]>
* XmlTextReader.cs: rough line/column support.
2002-07-23 Duncan Mak <[email protected]>
* XmlConvert.cs: Implement the ToDateTime method. ToDateTime
(string, string []) is particularly strange.
* XmlException.cs: Remember to call the base serialization
constructor.
* XmlNodeReader.cs: Keep a new variable to store the Depth.
2002-07-14 Jason Diamond <[email protected]>
* XmlAttribute.cs: Removed ownerElement field since we can reuse
parentNode field.
* XmlDocumentNavigator.cs: MoveToParent now moves to the OwnerElement
if the current node is an attribute.
* XmlElement.cs: SetAttributeNode now sets the new attribute's
owner element.
2002-07-12 Jason Diamond <[email protected]>
* XmlDocument.cs: If null was passed in for prefix or namespaceURI when
creating an element, use String.Empty instead.
2002-07-12 Piers Haken <[email protected]>
* XmlAttributeCollection.cs: implement some ItemOf indexers
* XmlNamedNodeMap.cs: add internal 'Nodes' accessor for the nodeList field
* XmlNode.cs: SelectNodes: return empty XmlNodeList, not null
2002-07-06 Ajay kumar Dwivedi <[email protected]>
* XmlTextWriter: Fixed Indentation. IndentationOverridden should
not be set when inside a attribute.
2002-07-06 Ajay kumar Dwivedi <[email protected]>
* XmlTextWriter: In WriteStartElement, if namespace is null and
prefix is null|empty do not write out xmlns=""
* XmlWriter: WriteStartElement calls the virtual method with null
argument instead of empty string.
2002-07-05 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs: implemented .ctor (Stream).
2002-06-26 Duncan Mak <[email protected]>
* XmlNodeReader.cs: Implementation of most of the properties, and
some of the related methods.
2002-06-23 Piers Haken <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* XmlTextReader.cs: HasLineInfo returns false instead of throwing an
Exception.
2002-06-14 Duncan Mak <[email protected]>
* XmlConvert.cs: Added CLSCompliant attributes to methods.
2002-06-12 Duncan Mak <[email protected]>
* XmlCharacterData.cs (Value): Throw an ArgumentException in the
set block if the node is read-only.
2002-06-10 Ajay kumar Dwivedi <[email protected]>
* XmlConstruct.cs : New Internal class with Helper methods for
Checking XmlConstructs
* XmlConvert.cs: Implemented most of the methods
2002-06-08 Duncan Mak <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* XmlDocument.cs: Implement the Save methods.
2002-05-08 Mike Kestner <[email protected]>
* XmlNamedNodeMap.cs (SetNamedItem): Fixed a copy/paste bug.
2002-04-28 Duncan Mak <[email protected]>
* XmlSignificantWhitespace.cs (Value):
* XmlWhitespace.cs (Value): Added MonoTODO to the 'set'
block. Added new private method, IsValidWhitespaceChar, for
checking.
2002-04-16 Duncan Mak <[email protected]>
* XmlParserContext.cs (NameTable): Fixed a typo in the set block.
2002-04-12 Duncan Mak <[email protected]>
* 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 <[email protected]>
* XmlNodeReader.cs: Initial stubs for the class.
2002-04-08 Kral Ferch <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* XmlTextWriter.cs: Impls for WriteEndDocument and WriteFullEndElement.
2002-03-31 Kral Ferch <[email protected]>
* 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 <[email protected]>
* XmlTextWriter.cs: Some tweaks for WriteAttibuteString
in different states (no open start element, in WriteState.Content mode).
2002-03-29 Kral Ferch <[email protected]>
* XmlTextWriter.cs: XmlLang and XmlSpace properties
and WriteWhitespace.
* XmlTextWriterOpenElement.cs: scope support for XmlLang
and XmlSpace.
2002-03-29 Kral Ferch <[email protected]>
* XmlTextWriter.cs: Working on Attribute methods.
* XmlWriter.cs: Working on Attribute methods.
2002-03-28 Duncan Mak <[email protected]>
* XmlDocument.cs (CreateWhitespace):
(CreateSignificantWhitespace): Removed extraneous call to the ToCharArray
method.
* XmlSignificantWhitespace.cs (Value): Removed MonoTODO attribute.
2002-03-26 Duncan Mak <[email protected]>
* 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 <[email protected]>
* XmlDeclaration.cs: Rewrote the class, fixed formatting, added
missing properties (InnerText, Value).
* XmlDocument.cs (CreateXmlDeclaration): Implemented.
2002-03-23 Kral Ferch <[email protected]>
* XmlTextWriter.cs: Impls for BaseStream and
Namespaces and WriteState.
* XmlWriter.cs: WriteState and WriteStartElementInternal.
2002-03-23 Kral Ferch <[email protected]>
* 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 <[email protected]>
* XmlElement.cs: impl HasAttribute(string name).
2002-03-22 Duncan Mak <[email protected]>
* 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 <[email protected]>
* XmlTextWriter.cs: WriteStartDocument tracks state, writes out
xml declaration along with encoding. WriteEndElement throws
exception if no WriteStartElement exists.
2002-03-20 Duncan Mak <[email protected]>
* 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 <[email protected]>
* XmlAttribute.cs (CloneNode): Implemented.
* XmlDocumentFragment.cs (CloneNode): Implemented.
* XmlElement.cs (CloneNode): Implemented.
2002-03-19 Duncan Mak <[email protected]>
* 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 <[email protected]>
* XmlDocument.cs: Fixed typo in Load that was duplicating the LocalName
in the prefix.
2002-03-18 Jason Diamond <[email protected]>
* 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 <[email protected]>
* XmlNamespaceManager.cs: Implemented LookupPrefix.
* XmlTextWriter.cs: Implemented namespace and prefix support.
2002-03-18 Kral Ferch <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* XmlTextWriter.cs: implemented constructors and
WriteCData and WriteComment.
2002-03-14 Duncan Mak <[email protected]>
* 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 <[email protected]>
* XmlWriter.cs: Formatting.
* XmlTextWriter.cs: Initial checkin.
2002-03-14 Duncan Mak <[email protected]>
* Validation.cs: Removed, replaced by ValidationType.cs.
* ValidationType.cs: Added.
2002-03-13 Duncan Mak <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
* IHasXmlNode.cs: Added to CVS.
2002-03-08 Jason Diamond <[email protected]>
* XmlParserContext.cs: Added missing constructors and missing Encoding
property.
* XmlTextReader.cs: Start using the XmlParserContext class.
2002-03-08 Jason Diamond <[email protected]>
* XmlTextReader.cs: Implemented MoveToElement and MoveToFirstAttribute.
2002-03-08 Mike Kestner <[email protected]>
* XmlNode.cs (Item): Implemented both indexers.
2002-03-08 Jason Diamond <[email protected]>
* DomEncodingType.cs, TreePosition.cs, XPathNodeType.cs, XmlDataType.cs,
XmlExceptionCode.cs, XmlSortOrder.cs, XmlUtil.cs: Removed files.
2002-03-08 Jason Diamond <[email protected]>
* XmlAttribute.cs: Attribute nodes are supposed to store their values
as child nodes so updated to reflect that.
* XmlDocument.cs, XmlElement.cs, XmlNode.cs: Moved code that was
duplicated in XmlDocument and XmlElement into XmlNode so that it
wouldn't have to be duplicated in XmlAttribute, too.
2002-03-08 Kral Ferch <[email protected]>
* XmlNodeList.cs, XmlDocument.cs, XmlLinkedNode.cs,
XmlNode.cs: Formatting.
* XmlNodeListChildren.cs: Implementation of XmlNodeList
for XmlNode.ChildNodes property.
* XmlNodeListAsArrayList.cs: Removed file. Using different
data structure (circular list) in XmlNode so this file
is no longer valid.
* XmlDocument.cs, XmlElement.cs: New ChildNodes tests found
bug in setter property of LastLinkedChild so fixed it.
2002-03-06 Jason Diamond <[email protected]>
* XmlInputSource.cs, XmlNames_1_0.cs, XmlParse.cs: Removed files.
We already have a parser in XmlTextReader.
* XmlException.cs: Removed constructor accepting XmlInputSource.
2002-03-06 Kral Ferch <[email protected]>
* XmlNode.cs: Rewrote this class from scratch with
MonoToDo attribs and NotImplementedExceptions. Now defines an
internal LastLinkedNode property to aid the new implementation.
XmlNodes only have ref to owner doc and parent nodes now.
* XmlLinkedNode.cs: Added NextLinkedSibling internal property
and ref to next sibling to support walking our circular child
node list.
* XmlDocument.cs: Added ref to last child node and overrides
XmlNode's internal LastLinkedChild property to support walking
our circular child node list.
2002-03-02 Kral Ferch <[email protected]>
* XmlProcessingInstructions.cs: Class was empty. Implemented
constructor, properties, and CloneNode() method. Put in
MonoToDo attrib for remaining methods.
* XmlComment.cs: Reformatted and put in MonoToDo attribs.
Got rid of helper methods and fields since they were no
longer needed.
* XmlLinkedNode.cs: Reformatted and put in MonoToDo attribs.
* XmlDocument.cs: Added code to Load(XmlReader) to create XmlComment,
XmlCDataSection, and XmlProcessingInstruction nodes. Implemented
Createxxx() methods for those three node types.
2002-03-02 Jason Diamond <[email protected]>
* XmlDocument.cs: Implemented the remaining CreateElement and
CreateAttribute methods.
* XmlAttribute.cs: Re-implemented.
* XmlElement.cs: Set owner element on attributes. Reformatted.
2002-03-02 Jason Diamond <[email protected]>
* XmlTextReader.cs: Implemented MoveToNextAttribute().
* XmlDocument.cs: Reformatted. Adding missing methods and MonoTODO
attributes. Create attribute nodes while loading. Implemented
Load(string) and CreateTextNode().
* XmlCharacterData.cs, XmlText.cs: Re-implemented.
* XmlCDataSection.cs, XmlComment.cs: Call correct constructor in
XmlCharacterData.
* XmlNamedNodeMap.cs, XmlAttributeCollection.cs: Stubbed out.
2002-03-02 Mike Kestner <[email protected]>
* XmlAttribute.cs : Using fix.
* XmlDocument.cs (CreateAttribute(String)): Implement.
2002-03-02 Jason Diamond <[email protected]>
* XmlNamespaceManager.cs: Atomize prefixes and namespaces strings in
the name table.
2002-02-28 Jason Diamond <[email protected]>
* XmlDocument.cs, XmlNode.cs: Initial implementation of LoadXml
courtesy of Kral Ferch <[email protected]>.
2002-02-28 Jason Diamond <[email protected]>
* XmlException.cs, XmlReader.cs, XmlTextReader.cs: Reformatted,
added missing members and MonoTODO attributes.
* XmlTextReader.cs: Throw XmlException instead of System.Exception.
2002-02-27 Jason Diamond <[email protected]>
* XmlElement.cs: Reformatted, added missing members and MonoTODO
attributes.
2002-02-26 Duncan Mak <[email protected]>
* XmlCDataSection.cs: Initial implementation.
* NameTable.cs: Fixed the whole thing. Wrote a NUnit test to test
it out. This should (hopefully) be correct.
2002-02-26 Jason Diamond <[email protected]>
* XmlTextReader.cs: Apparently Microsoft's implementation treats
namespace declarations as attributes so we do now, too.
* XmlNamespaceManager.cs: HasNamespace fixed so that it only
checks the current scope.
2002-02-26 Duncan Mak <[email protected]>
* XmlDocumentType.cs: Added a few hacks here and there to
temporarily fix the "I broke the build issue".
2002-02-25 Jason Diamond <[email protected]>
* XmlDocument.cs, XmlElement.cs, XmlNode.xs, XmlNodeList.cs,
XmlNodeListAsArrayList.cs: Multiple fixes necessary to get
simple test to pass. The existing code is really shitty so I'll
probably start writing tests and refactoring before much else
can get done.
2002-02-25 Duncan Mak <[email protected]>
* NameTable.cs: Implemented.
* XmlDeclaration.cs: It should inherit from XmlLinkedNode, not XmlNode.
2002-02-24 Duncan Mak <[email protected]>
* XmlNodeOrder.cs: Added to CVS.
* XmlQualifiedName.cs: Fixed a warning from Equals ().
* XmlTokenizedType.cs: Added to CVS.
* XmlUrlResolver.cs: Added to CVS with one TODO task.
2002-02-23 Duncan Mak <[email protected]>
* XmlQualifiedName.cs: Fixed ToString () and added the operators
(== and !=).
2002-02-23 Jason Diamond <[email protected]>
* XmlTextReader.cs: Added support for qualified attributes.
2002-02-23 Jason Diamond <[email protected]>
* XmlNamespaceManager.cs: Initial implementation.
* XmlTextReader.cs: Added support for NamespaceURI property on
elements.
2002-02-23 Nick Drochak <[email protected]>
* ChangeLog: Add the change log to this directory
* XmlQualifiedName.cs: Fixed compile errors so it would build. Still has
MonoTODO's