* 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
* DTDObjectModel.cs : in 2.0 and especially 2.1 profiles, use
our own DictionaryBase-like generic type. It is to reduce
dependency on DictionaryBase which does not exist in 2.1 mscorlib.
(included in 2.0 as well so that we do not skip NUnit tests so far)
svn path=/trunk/mcs/; revision=83411
* XmlResolver.cs, XmlUrlResolver.cs, XmlSecureResolver.cs :
remove ICredential in NET_2_1 (they have to be explicitly removed
outside tuner work as ICredentials does not exist in 2.1 profile).
We cannot use WebRequest in 2.1 as well, so remove dependency on
it in GetEntity() (and added MonoTODO for non-file URLs).
svn path=/trunk/mcs/; revision=83389
* XmlReader.cs : looks like I introduced extra Settings check at
r69383. Fixed bug #82062.
* XmlReaderSettingsTests.cs : added test for bug #82062.
svn path=/trunk/mcs/; revision=81785
* System.Xml.Core.dll.sources : remove unused DTDValidatingReader2.cs
* DTDValidatingReader2.cs :
we can remove NET_2_1 from this unused code in SL.
svn path=/trunk/mcs/; revision=81350
* SubtreeXmlReader.cs XmlFilterReader.cs :
exclude xsd stuff from NET_2_1 profile.
* DTDAutomata.cs DTDObjectModel.cs DTDReader.cs
DTDValidatingReader2.cs XmlException.cs XmlReader.cs
XmlReaderSettings.cs XmlWriter.cs :
Make System.Xml.Core.dll build easier, using NET_2_1.
DTD support is simply cut at this stage (as it largely depends on
sys.xml.schema stuff).
svn path=/trunk/mcs/; revision=81332
* XmlNode.cs : InnerText is settable on XmlDocumentFragment (silly,
but since XmlDocumentFragment does not override this property
it must be handled here).
* XmlDocumentFragmentTests.cs : added InnerText().
* XmlWriterSettingsTests.cs : replace \r\n with \n to make it pass
on windows.
svn path=/trunk/mcs/; revision=79457
* XmlConvert.cs : MinValue and MaxValue are unchanged by the
serialization mode (unlike DateTime.ToString()).
* XmlCustomFormatter.cs : fix GenerateToXmlString() as well.
* XmlConvertTests.cs : added test for MaxValue serialization with
every XmlDateTimeSerializationMode.
svn path=/trunk/mcs/; revision=76275
* XmlConvert.cs : in 2.0, use F instead of f in dateTime formatting.
* XmlCustomFormatter.cs :
in 2.0, use F instead of f for dateTime formatting.
* XmlSerializationWriterTests.cs, XmlSerializerTests.cs :
fixed wrong dateTime formatting tests.
svn path=/trunk/mcs/; revision=76268
* 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
* XmlNode.cs : InnerText was returning comment text when there was
only a Comment node. Fixed bug #80233.
* XmlNodeTests.cs : added test for bug #80233.
svn path=/trunk/mcs/; revision=69392
* XmlReader.cs : Create() with string url was not returning validating
XmlReader.
* XmlReaderSettingsTests.cs : added test to make sure that Create()
returns a validating XmlReader.
svn path=/trunk/mcs/; revision=69383
* DTDValidatingReader2.cs : when an attribute declaration is missing
in the corresponding attlist declaration, it caused NRE.
Fixed bug #80231.
* XmlValidatingReaderTests.cs : added test for bug #80231.
svn path=/trunk/mcs/; revision=69382
* XmlDocument.cs : call overriden CreateAttribute() when loading from
XmlReader.
* XmlDocumentTests.cs : make sure to call overriden CreateAttribute()
when loading from XmlReader.
svn path=/trunk/mcs/; revision=69290
* XmlReader.cs : new 2.0 MoveToAttribute(int) failed to move to the
final attribute in an element.
* XPathNavigatorReaderTests.cs : added test for MoveToAttribute(int).
svn path=/trunk/mcs/; revision=69026
* XmlNode.cs : GetPrefixOfNamespace() was not correctly searching
ancestors' namespaces.
* XPathEditableDocument.cs : those writers should lookup prefix when
WriteStartElement/WriteStartAttribute are passed null prefix.
Removed nodeStack in XmlDocumentInsertionWriter, since nodes are
always added to current node immediately.
* XmlNodeTests.cs : added another test for GetPrefixOfNamespace().
* XPathNavigatorTests.cs : added test for XPath navigator editor's
LookupPrefix().
svn path=/trunk/mcs/; revision=69021
* XmlTextWriter2.cs : fixed some relationship between
ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
See new tests more details.
* XmlWriter.cs : it could reuse XmlTextWriter.ctor(TextWriter,
XmlWriterSettings). It also resulted in dropping several internal
members in XmlTextWriter.
* XmlWriterSettingsTests.cs : added tests for relationship between
ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
svn path=/trunk/mcs/; revision=68180
* XmlReaderSettings.cs : in copy constructor, copy (dispatch)
validation event as well. Add OnValidationError() to be invoked
by other internal stuff to raise the validation event.
* XmlSchemaValidatingReader.cs : dispatch validation events from
XmlReaderSettings. Turned out that outside System.Xml.dll
XmlReaderSettings.ValidationEventHandler is useless.
* XmlReaderSettingsTests.cs : added validation event handler test
case.
svn path=/trunk/mcs/; revision=67814
* 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
* XmlTextReader2.cs : if DTD does not exist, do not try to resolve
entity from null DTD (caused NRE). Fixed bug #79620.
svn path=/trunk/mcs/; revision=67124
* XmlReader.cs : ReadContentAsString() and its family should allow
attribute node. Fixed bug #79268.
* XmlReaderCommonTests.cs : added test for bug #79268.
svn path=/trunk/mcs/; revision=64843
* XmlTextWriter2.cs : expect atomized names only when it is
appropriate. Fixed bug #79047.
* XmlTextWriterTests.cs : added test for bug #79047
svn path=/trunk/mcs/; revision=64676
* XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
so that it could fill default and fixed attributes. This ends up
to fix bug #79163 (it fills fixed "xmlns" attribute and thus
the node's namespace URI becomes that of glade-2.0).
* XmlDocumentTests.cs : added test for bug #79163.
svn path=/trunk/mcs/; revision=64413
* XmlEntity.cs, XmlEntityReference.cs, XmlNode.cs :
create entity content only when its children is being accessed.
It results differently when there is no actual reference in the
document - an invalid entity value (when it is used to create
child nodes) is ignored unless a code tries to access the Value
of an XmlEntity. Fixed bug #79091
* DTDReader.cs : the fix above uncovered another bug (ibm66n03.xml).
Check illegal reference name in literal entity value.
svn path=/trunk/mcs/; revision=63900