* 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
* DTDValidatingReader.cs : removed some extra IsDefault check (with
the latse code default attributes are stored in hashtables anyways.)
Fixup attribute namespaces _after_ xmlns attributse are filled.
The latest change is not good that namespaceURI of a local attribute
was incorrectly globally looked up (it should be always "").
* XmlValidatingReaderTests.cs : added attribute namespace check in
DefaultXmlnsAttributeLookup() as well.
svn path=/trunk/mcs/; revision=46122
* XmlValidatingReader.cs : LookupNamespace() was trying to access to
null reference to validatingReader.
* DTDValidatingReader.cs : Fixed default xmlns* attribute handling.
It used to be valid only at the declaring element.
* XmlValidatingReaderTests.cs : added DefaultXmlnsAttributeLookup().
svn path=/trunk/mcs/; revision=46120
* DTDValidatingReader.cs : further text node fixes.
- Cut out validation code from Text node case.
- Now it does not use error-prone case transition but uses
DocumentFragment 'vacant room' and fixed incorrect transition from
whitespace to text.
- CDATA should be validated the same as Text is.
svn path=/trunk/mcs/; revision=45935
* XmlEntityReference.cs, XmlNode.cs : For entity references, BaseURI
resolution should be different from that of parent since they might
differ. Patch by Andrew Skiba.
svn path=/trunk/mcs/; revision=45323
* DTDValidatingReader.cs : Last BaseURI exposed this hidden bug via
sys.security tests.
* XmlValidatingReaderTests.cs : added ResolveEntityAndBaseURI() which
is imported from sys.security.
svn path=/trunk/mcs/; revision=45257
* DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
BaseURI which results in incorrect URI resolution.
svn path=/trunk/mcs/; revision=45177
* DTDObjectModel.cs : For simple type restriction creation it failed
when there is no enumerations (largely failed).
svn path=/trunk/mcs/; revision=44868