* XmlReader.cs, XmlNode.cs :
[DebuggerDisplay] are not worthy of existing.
* XPathNavigator.cs, XPathNodeIterator.cs :
[DebuggerDisplay] are not worthy of existing.
svn path=/trunk/mcs/; revision=52880
* XmlTokenizedType.cs, XmlNodeOrder.cs : so those enums happen to
have [Serializable] in .NET 1.x, and removed in 2.0 (enums are
anyways serializable, so those attributes do not make sense).
svn path=/trunk/mcs/; revision=52877
* XmlConvert.cs : VerifyNCName() and VerifyName() throws
ArgumentNullException for "".
* XmlConvertTests.cs : some tests for ToInt16(), ToInt32(),
VerifyName() and VerifyNCName().
svn path=/trunk/mcs/; revision=52857
* XmlElement.cs, XmlCDataSection.cs, XmlText.cs, XmlWhitespace.cs,
XmlSignificantWhitespace.cs : added ParentNode overrides (actually
they don't make sense since it just calls base.)
* XmlNode.cs, XmlDocument.cs : changed .NET 2.0 CreateNavigator() impl
to match signature and skip OwnerDocument check in XmlNode (since
it is overriden). Maybe MS does not have ownerDocument as a field and
costs too much on OwnerDocument property.
Added missing bits in XmlDocument.
svn path=/trunk/mcs/; revision=52647
* XmlAttribute.cs : added new overrides in 2.0 RTM (this scarcely
makes sense without real optimization though).
* XmlDocument.cs, XmlElement.cs, XmlNode.cs : avoid ChildNodes and
save extra XmlNodeList creation cost.
svn path=/trunk/mcs/; revision=52646
* XsdValidatingReader.cs : XmlReader.ReadTypedValue() does not exist
anymore, so it is not override.
* XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
* XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
ReadTypedValue() is removed.
* XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
* XmlWriter.cs : Settings is virtual.
* XPathNodeIterator.cs : added [DebuggerDisplay]. pretty useless tho.
* XPathNavigator.cs : [DebuggerDisplay] as well.
SelectSingleNode() and AppendChildElement() are now virtual.
svn path=/trunk/mcs/; revision=52637
* XPathNavigator.cs : now 2.0 MoveToFirst() invokes internal
MoveToFirstImpl() and it is from what XmlDocumentNavigator did.
This fixes XPathEditableDocument.MoveToFirst().
* XmlDocumentNavigator.cs : now MoveToFirst() invokes internal
MoveToFirstImpl().
svn path=/trunk/mcs/; revision=52108
* XmlTextWriter.cs : (Error state check) actually I need to set Error.
* XmlNamespaceManagerTests.cs : GetNamespacesInScope() - Added test
labels. Fixed counts; they count default namespaces. MS seems to
have a bug on declaration removal (xmlns='') on .Local.
* XmlNodeReaderTests.cs : in .NET 2.0 undeclared entity are not
allowed at all, so disabled tests that depends on such references.
svn path=/trunk/mcs/; revision=52101
* XmlTextWriter.cs : throw InvalidOperationException if any of
WriteBlah() methods were invoked at error state.
* XmlTextWriterTests.cs : split some tests that try to write nodes
at error state (.NET 2.0 correctly rejects them).
svn path=/trunk/mcs/; revision=52100
* XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
default namespace was returning "" instead of null. It didn't check
empty namespace URI for non-empty prefixes.
* XmlTextReaderTests.cs, XmlValidatingReaderTests.cs,
XmlReaderCommonTests.cs : added and fixed tests to make sure that
LookupNamespace("") returns null for default namespace, and checks
that empty namespace URI is not allowed for non-empty prefix.
svn path=/trunk/mcs/; revision=52099
* XmlTextReader.cs: SkipTextDeclaration would not accept processing
instructions that began with the string 'xml', e.g. rejecting
'xml-stylesheet'.
svn path=/trunk/mcs/; revision=51480
* XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
digits for "second" were not exactly 3. Fixed bug #76328.
* XmlConvertTests.cs : added test for bug #76328.
svn path=/trunk/mcs/; revision=51188
* XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
added supprot for NormalizeNewLines.
NewLineOnAttributes is considered only when Indent is true.
* XmlWriterSettingsTests.cs : test for NormalizeNewLines.
svn path=/trunk/mcs/; revision=51109
* XmlAttribute.cs, XmlDocument.cs : check id table updates when
XmlAttribute.set_Value() was invoked. Fixed bug #76311.
* XmlAttributeTests.cs : test for bug #76311.
svn path=/trunk/mcs/; revision=51080
* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs :
XmlReader.Create() with string url argument are not working because
of incorrect choice of the .ctor().
* XmlReaderCommonTests.cs : added simple Create() test.
svn path=/trunk/mcs/; revision=51075
* XmlNodeReaderImpl.cs : when the source node was not a document and
it is an empty element, Read() was incorrectly moving to the parent
of the source node. Patch by Csaba Halasz. Fixed bug #76260.
* XmlNodeReaderTests.cs : added test for bug #76260.
svn path=/trunk/mcs/; revision=50962
* DTDValidatingReader.cs : Namespace manager was not handled correctly.
Now it does the same as XmlTextReader does. Fixed bug #76234.
* XmlValidatingReaderTests.cs : added test for bug #76234.
svn path=/trunk/mcs/; revision=50782
in NET_2_0. Fixed API compatiblity with .NET 1.1.
* XmlOutputMethod.cs: Fixed values of enum fields to match MS.NET. Make it
only available in .NET 2.0.
svn path=/trunk/mcs/; revision=50749
in System.Xml:
* XmlTextReader.cs : when there is a heading half of surrogate
* at the
end of read buffer, it didn't treat it as a surrogate.
Fixed bug #76102.
in Test/System.Xml:
* XmlTextReaderTests.cs : added #76102 testcase.
in Test/XmlFiles:
* 76102.xml : added test for bug #76102.
in Test/System.Xml/W3C:
* Makefile: build fix.
svn path=/trunk/mcs/; revision=50050
* XmlTextWriter.cs : for surrogate pair, output character
* reference
as a single character instead of two reference pairs. Fixed
bug #76095.
Patch by Brion Vibber.
* XmlTextWriterTests.cs : added #76095 testcase.
svn path=/trunk/mcs/; revision=49997
* XmlDocument.cs: Added an InheritanceDemand for Unrestricted on
CreateDocumentType and ReadNode methods.
* XmlException.cs: Added a Demand for SerializationFormatter on
GetObjectData method.
* XmlResolver.cs: Added an InheritanceDemand for Unrestricted on
ResolveUri method.
* XmlSecureResolver.cs: Fixed exception when creating evidences with
an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy
and PermitOnly if the security manager is enabled.
* XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
class.
* XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on
the class.
* XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted
on the class.
svn path=/trunk/mcs/; revision=49179
* DTDReader.cs : no need to skip text declaration for such entity
declaration that has literal entity. It should not expand entities
inside ResolveExternalEntityReplacementText().
Finally fixed bug #51495.
svn path=/trunk/mcs/; revision=48444
* XmlTextReader.cs, XmlTextReader2.cs : added internal .ctor() to
receive both TextReader, XmlNodeType and BaseURI for entity
resolution (though it would be removed later).
* XmlParserInput.cs : Now to handle nested PE insertion and correct
BaseURI, it internally holds a stack of "input source".
* DTDObjectModel.cs,
DTDReader.cs :
Required fixes for XmlParserInput.
Handle BaseURI as expected. Added ActualUri for resolved actual
source URI (to resolve nested entities). Pass ActualUri to internal
XmlTextReader.ctor() in ResolveExternalEntityReplacementText()
(well, yes I remember, it is problematic.)
Incorrect Base URI handling bug (part of #51495) is fixed.
svn path=/trunk/mcs/; revision=48443
* XmlAttribute.cs : When there was only one child in attribute
and it was an entity reference, set_Value() tried to set text value
and thus failed.
* XmlAttributeTests.cs : Test if set_Value() works in such cases that
there was only one child in attribute and it was an entity reference.
svn path=/trunk/mcs/; revision=47993
* XmlTextWriter.cs : In WriteQualifiedName(), when there is open
attribute, it calls LookupPrefix() and then if namespace was empty,
it resulted in an exception. Fixed bug #75546.
* XmlTextWriterTests.cs : added bug #75546 testcase.
svn path=/trunk/mcs/; revision=47312
* XmlTextReader.cs : use StringBuilder.ToString(int,int) when it does
not have a large chunk of data, following Ben's idea.
svn path=/trunk/mcs/; revision=46380
* XmlTextReader.cs : use StringBuilder to store character values; that
saves 40% memory for large chunk of xml. Patch by Gonzalo.
Don't remove ChangeLog entry BTW.
svn path=/trunk/mcs/; revision=46353