* XmlNamespaceManager.cs : check null arg.
* XmlTextReader.cs : fixed bug #412657; now we populate nametable
and namespace manager in case they are null in parser context, and
use them instead of the members in the parser context.
* XmlTextReaderTests.cs : added test for bug #412657.
svn path=/trunk/mcs/; revision=109049
* XmlTextReader.cs : when Normalized is true, '<' after \r which
comes after text node was incorrectly consumed as a text content.
Fixed bug #398374.
* XmlTextReaderTests.cs : added test for bug #398374.
svn path=/trunk/mcs/; revision=105288
* XmlReader.cs XmlNodeReader2.cs XmlTextReader.cs XmlTextReader2.cs
XmlNodeReaderImpl.cs EntityResolvingXmlReader.cs :
The previous attempt was wrong. Those internal-virtualized ones
could be used in System.Xml.Core classes and outside the assembly
any derived XmlReaders would have thrown throw Exception.
Now I marked them as nonexistent-in-2.1 or privatized.
* XmlWriter.cs : actually only this class is affected (if there
were DOM or XSD they would have been affected as well).
* SubtreeXmlReader.cs XmlFilterReader.cs : further dependent changes.
svn path=/trunk/mcs/; revision=83706
* XmlReader.cs : HasValue, ReadAttributeValue() and ResolveEntity()
do not exist in 2.1 profile. Hiding abstract stuff seems to cause
some issues at run time, so they are ifdef-ed out from 2.1.
* XmlNodeReader2.cs DTDValidatingReader2.cs XmlTextReader.cs
XmlTextReader2.cs XmlNodeReaderImpl.cs DTDValidatingReader.cs
EntityResolvingXmlReader.cs : hence the change above.
* SubtreeXmlReader.cs XmlFilterReader.cs : dependent changes due to
XmlReader.cs changes for 2.1 profile.
svn path=/trunk/mcs/; revision=83702
* XmlTextReader.cs : Fixed ReadChars() to consume child elements,
including such cases that it breaks tags in the middle of multiple
ReadChars() calls.
* XmlTextReaderTests.cs : added test for bug #80308.
svn path=/trunk/mcs/; revision=69713
* XmlTextReader.cs : ReadChars() does not have to store characters,
so avoid extra storing. Patch by Csaba Halasz, fixed bug #80306.
svn path=/trunk/mcs/; revision=69712
* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs:
pass the XmlResolver through to the GetStream impl.
2006-11-13 Atsushi Enomoto <[email protected]>
* XmlReaderSettingsTests.cs : added custom resolver case for primary
XML stream (custom resolver is indeed used and here it should cause
error).
svn path=/trunk/mcs/; revision=67808
* XmlTextReader.cs, XmlTextReader2.cs, DTDReader.cs :
(ResolveExternalEntityReplacementText) need to skip text
declaration in external entities. To make it possible internalize
SkipTextDeclaration() in XmlTextReader(2). Fixed bug #79090.
svn path=/trunk/mcs/; revision=63890
* XmlTextReader.cs : When a whitespace node comes after a text
declaration in XML external entity (i.e. .ctor() with
XmlNodeType.Element), it contained extra value character ('<').
* XmlTextReaderTests.cs : added test for whitespace node value which
comes after a text declaration in XML external entity (i.e. .ctor()
with XmlNodeType.Element).
svn path=/trunk/mcs/; revision=63726
* XmlDocument.cs XmlTextReader.cs : in ReadNode(), we can avoid
extraneous whitespace node creation for XmlTextReader by setting
WhitespaceHandling.Significant when PreserveWhitespace is false.
svn path=/trunk/mcs/; revision=56918
* XmlTextReader.cs : atomize whitespace values. It effectively saves
memory consumption when an input XML is indented.
svn path=/trunk/mcs/; revision=56917
* XmlTextReader.cs : When "Significant" is assigned to
WhitespaceHandling, it should ignore non-significant whitespaces.
* XmlTextReaderTests.cs : added WhitespaceHandling tests.
svn path=/trunk/mcs/; revision=56845
* XmlTextReader.cs : ReadTextReader() is now assured to have current
node content, except for Text, CDATA and Comment. ReadName() does
not use nameBuffer and reuse peekChars.
svn path=/trunk/mcs/; revision=56587
* XmlTextReader.cs : eliminated currentTagBuffer. XmlDeclaration is
now once read as PI and then re-parsed from Value. DTD internal
subset is now parsed as usual "value".
svn path=/trunk/mcs/; revision=56580
* XmlTextReader.cs : Expect() could be written inline and it could
provide better information. ReadEndTag() could use Expect() instead
of costy ReadName().
svn path=/trunk/mcs/; revision=56577
* XmlTextReader.cs : on ReadEndTag() we can avoid NameTable.Add().
Store name, local name and prefix in the stack instead of just name
and reuse them for EndElement.
svn path=/trunk/mcs/; revision=56560
* XmlTextReader.cs : optimization patch by Paolo.
Fast path optimization in PeekChar().
Avoid double-evaluation of PeekChar() and ReadChar() by new
Advance() method.
svn path=/trunk/mcs/; revision=56171
* XmlTextReader.cs : when XmlReader.Create() creates this instance,
don't expect strict text declaration. Check SkipTextDeclaration()
on Read().
svn path=/trunk/mcs/; revision=54269
* XmlInputStream.cs :
Added Encoding property on NonBlockingStreamReader
* XmlTextReader.cs :
set Encoding property when it proceeds to xml declaration.
* XmlTextReaderTests.cs : added test for Encoding property.
svn path=/trunk/mcs/; revision=54166
* 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
* 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
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
* 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
* 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
* 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