Commit Graph
610 Commits
Author SHA1 Message Date
Konstantin Triger bc72994ee4 allow null string in WriteCData
svn path=/branches/mainsoft/gh1.7/mcs/; revision=54370
2005-12-14 16:41:33 +00:00
Konstantin Triger 00059a52e4 merge -r 54103:54104
svn path=/branches/mainsoft/gh1.7/mcs/; revision=54106
2005-12-08 10:12:42 +00:00
Konstantin Triger b6b4d70bf9 merge -r 53682:53683
svn path=/branches/mainsoft/gh1.7/mcs/; revision=53684
2005-11-30 15:08:24 +00:00
Vladimir Krasnov bd6ec6e434 XmlInputStream.cs: fixed Initialize method to be able to read unicode file without BOM. TARGET_JVM only.
svn path=/trunk/mcs/; revision=53180
2005-11-17 14:57:06 +00:00
Atsushi Eno 7691b50279 2005-11-14 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : removed historical one.


svn path=/trunk/mcs/; revision=53013
2005-11-14 13:26:09 +00:00
Atsushi Eno f4112a5629 2005-11-10 Atsushi Enomoto <[email protected]>
* 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
2005-11-10 18:30:39 +00:00
Atsushi Eno eef73ce68c 2005-11-09 Atsushi Enomoto <[email protected]>
* 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
2005-11-10 18:19:49 +00:00
Atsushi Eno 0dbee9dd3a 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : added CanReadBinaryContent.
	* XmlTextReader.cs, XmlTextReader2.cs : GetNamespacesInScope() are
	  now both public and private (i.e. hush IsVirtual).
	* XmlWriterSettings.cs, XmlWriter.cs, XmlTextWriter.cs :
	  NormalizeNewLines vanished.

	* XmlWriterSettingsTests.cs : NormalizeNewLines does not exist anymore


svn path=/trunk/mcs/; revision=52876
2005-11-10 18:12:16 +00:00
Atsushi Eno e8c5d62a86 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlReader.cs : MoveToAttribute(int) is virtual in NET_2_0.


svn path=/trunk/mcs/; revision=52871
2005-11-10 17:58:13 +00:00
Atsushi Eno 8a668546b1 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : implemented VerifyTOKEN().

	* XmlConvertTests.cs : tests for ToUInt16/32/64() and VerifyTOKEN().


svn path=/trunk/mcs/; revision=52870
2005-11-10 17:44:03 +00:00
Atsushi Eno 84269d9282 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : VerifyNCName() and VerifyName() throws
	  ArgumentNullException for "".

	* XmlConvertTests.cs : some tests for ToInt16(), ToInt32(),
	  VerifyName() and VerifyNCName().


svn path=/trunk/mcs/; revision=52857
2005-11-10 16:55:55 +00:00
Atsushi Eno 38e3987552 2005-11-07 Atsushi Enomoto <[email protected]>
* XmlReader.cs : dependent XmlSchemaValidationFlags fix.
	  Added ReadElementContentAsObject() and ReadContentAsObject().
	* XmlReader.cs, XmlTextReader.cs :
	  LookupNamespace(string,bool) is now private.
	* XmlReader.cs, XmlNode,cs :
	  [DebuggerDisplay].

	* XmlSchemaValidationFlags.cs : updated to match 2.0 RTM.
	* XmlSchemaValidator.cs : related fix.

	* XmlSchemaValidatingReader.cs : XmlSchemaValidationFlags is updated.

	* XmlReaderSettingsTests.cs : XmlSchemaValidationFlags is updated.



svn path=/trunk/mcs/; revision=52659
2005-11-07 17:22:05 +00:00
Atsushi Eno 6d7725e5bb 2005-11-07 Atsushi Enomoto <[email protected]>
* 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
2005-11-07 11:42:17 +00:00
Atsushi Eno bc2aba513c 2005-11-07 Atsushi Enomoto <[email protected]>
* 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
2005-11-07 10:37:57 +00:00
Atsushi Eno a7a4be34df 2005-11-07 Atsushi Enomoto <[email protected]>
* 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
2005-11-07 08:48:22 +00:00
Atsushi Eno 29581a1ead 2005-10-23 Atsushi Enomoto <[email protected]>
* 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
2005-10-23 20:45:26 +00:00
Atsushi Eno 7c1521311f 2005-10-23 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : oops, so WriteState.Error is NET_2_0 only.


svn path=/trunk/mcs/; revision=52105
2005-10-23 20:19:28 +00:00
Atsushi Eno 795d84863f 2005-10-23 Atsushi Enomoto <[email protected]>
* 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
2005-10-23 20:13:10 +00:00
Atsushi Eno bfa4dfa209 2005-10-23 Atsushi Enomoto <[email protected]>
* 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
2005-10-23 19:48:22 +00:00
Atsushi Eno 21b9253d8b 2005-10-23 Atsushi Enomoto <[email protected]>
* 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
2005-10-23 19:10:47 +00:00
Joshua Tauberer 8a760e94e0 2005-10-07 Joshua Tauberer <[email protected]>
* 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
2005-10-08 21:01:02 +00:00
Gert Driesen 92ba341131 * XmlAttribute.cs: InnerText and InnerXml do not override getters in
NET_2_0. Removed extra CLSCompliant attribute on SchemaInfo.
* XmlReaderSettings.cs: Marked sealed.

svn path=/trunk/mcs/; revision=51464
2005-10-08 11:23:54 +00:00
Atsushi Eno 6b340411a9 2005-10-04 Atsushi Enomoto <[email protected]>
* 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
2005-10-04 18:08:14 +00:00
Atsushi Eno a10cc38d1a 2005-10-04 Atsushi Enomoto <[email protected]>
* XmlReader.cs : Name is virtual in NET_2_0.


svn path=/trunk/mcs/; revision=51178
2005-10-04 16:44:20 +00:00
Atsushi Eno a584d18d44 2005-10-03 Atsushi Enomoto <[email protected]>
* 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
2005-10-03 09:35:02 +00:00
Atsushi Eno f50bd018f8 2005-10-01 Atsushi Enomoto <[email protected]>
* 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
2005-10-01 18:34:38 +00:00
Atsushi Eno 57574a07ef 2005-10-01 Atsushi Enomoto <[email protected]>
* 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
2005-10-01 11:19:18 +00:00
Atsushi Eno 280e5f8d48 2005-09-28 Atsushi Enomoto <[email protected]>
* 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
2005-09-28 18:13:34 +00:00
Atsushi Eno 8e2ebd4f21 2005-09-27 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : surrogate computation is incorrect. Fixed bug
	  #76247. Patch by Brion Vibber.

	* XmlTextReaderTests.cs : added test for bug #76247.


svn path=/trunk/mcs/; revision=50870
2005-09-27 15:28:58 +00:00
Atsushi Eno 04fad49fe6 2005-09-26 Atsushi Enomoto <[email protected]>
* 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
2005-09-26 16:01:18 +00:00
Gert Driesen 2084843ffb * XmlNodeChangedEventArgs.cs: Only make ctor publicly available
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
2005-09-26 10:20:35 +00:00
Atsushi Eno ccef6c8982 2005-09-25 Atsushi Enomoto <[email protected]>
* XmlSchemaValidationFlags.cs, XmlSchemaValidator.cs :
	  NET_2_0 API updates.

	* XmlReader.cs, XmlReaderSettings.cs, XmlDocument.cs:
	  XmlSchemaValidationFlags updates.

	* XmlSchemaValidatingReader.cs: XmlSchemaValidationFlags updates.

	* XmlReaderSettingsTests.cs : XmlSchemaValidationFlags NET_2_0 update.


svn path=/trunk/mcs/; revision=50732
2005-09-25 17:43:39 +00:00
Atsushi Eno b241697162 2005-09-21 Atsushi Enomoto <[email protected]>
* XmlWriterSettings.cs : true NET_2_0 updates.

	* XmlWriterSettingsTests.cs : removed NormalizeNewLines.


svn path=/trunk/mcs/; revision=50354
2005-09-21 03:41:40 +00:00
Atsushi Eno 8b5cdb6619 2005-09-21 Atsushi Enomoto <[email protected]>
* Makefile : shut down CS0642 noise.
	* System.Xml.dll.sources : added XmlOutputMethod.

	* XmlOutputMethod.cs : new file.
	* XmlWriter.cs, XmlValidatingReader.cs, XmlReaderSettings.cs,
	  XmlUrlResolver.cs, XmlWriterSettings.cs :
	  more NET_2_0 updates.


svn path=/trunk/mcs/; revision=50353
2005-09-21 03:35:52 +00:00
Atsushi Eno 2da6c2e2c0 2005-09-21 Atsushi Enomoto <[email protected]>
* XmlNodeReader2.cs, XmlReader.cs,
	  XmlTextReader.cs, XmlTextReader2.cs,
	  XmlNodeChangedEventArgs.cs, XmlElement.cs,
	  XmlNode.cs, XmlDocument.cs :
	  updated NET_2_0 API.

	* XmlReaderSettingsTests.cs : updated NET_2_0 related tests.
	* NameTableTests.cs : numbered testcases. fixed argument order.


svn path=/trunk/mcs/; revision=50351
2005-09-21 02:58:41 +00:00
Atsushi Eno c041318f2c 2005-09-14 Atsushi Enomoto <[email protected]>
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
2005-09-14 18:18:06 +00:00
Atsushi Eno fd3a4d2430 2005-09-14 Atsushi Enomoto <[email protected]>
* 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
2005-09-14 01:44:27 +00:00
Sebastien Pouliot a17dea8630 2005-08-31 Sebastien Pouliot <[email protected]>
* 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
2005-08-31 13:12:47 +00:00
Atsushi Eno e129534ca8 2005-08-16 Atsushi Enomoto <[email protected]>
* 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
2005-08-16 18:47:53 +00:00
Atsushi Eno 718c8cb031 2005-08-16 Atsushi Enomoto <[email protected]>
* 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
2005-08-16 18:23:16 +00:00
Atsushi Eno f6ccddf3c3 2005-08-16 Atsushi Enomoto <[email protected]>
* DTDReader.cs, XmlParserInput.cs :
	  let's fix #51495. First of all, refactoring.


svn path=/trunk/mcs/; revision=48438
2005-08-16 16:30:00 +00:00
Atsushi Eno 657284b696 2005-08-04 Atsushi Enomoto <[email protected]>
* 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
2005-08-04 09:34:09 +00:00
Gert Driesen b6157808b4 * XmlSchemaInference.cs: Is sealed in Beta 2.
* XmlSchemaInfo.cs: Added ContentType property.
* XmlSchemaObjectEnumerator.cs: No longer sealed in Beta 2.
* XmlSchemaSet.cs: No longer sealed in Beta 2. XmlResolver property
is now CLSCompliant.
* XmlConvert.cs: Renamed RoundTripKind to RoundtripKind.
* XmlDateTimeSerializationMode.cs: Renamed RoundTripKind to RoundtripKind 
to match .NET 2.0 Beta 2.
* XmlNodeReader2.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2, and is explicit interface implementation.
* XmlTextReader.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlTextReader2.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XmlValidatingReader.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* IXmlNamespaceResolver.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XmlNamespaceManager.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XmlNodeReaderImpl.cs: GetNamespacesInScope returns generic IDictionary in 
.NET 2.0 Beta 2.
* DTDValidatingReader.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XsltArgumentList.cs: No longer sealed in .NET 2.0.
* XsltException.cs: Message override is back in .NET 2.0 Beta 2.
* XmlMapping.cs: API compatibility fixes. Ctor is not protected in .NET 1.1. 
SetKey is not obsolete in .NET 2.0 Beta 2.
* XPathNavigator.cs: GetNamespacesInScope returns generic IDictionary
in .NET 2.0 Beta 2.
* XsdValidationReader.cs: GetNamespacesInScope returns generic IDictionary 
in .NET 2.0 Beta 2.
* XmlSchemaValidatingReader.cs: GetNamespacesInScope returns generic
IDictionary in .NET 2.0 Beta 2.
* SubtreeXmlReader.cs: GetNamespacesInScope now returns generic IDictionary.

svn path=/trunk/mcs/; revision=47974
2005-08-03 17:39:08 +00:00
Atsushi Eno 764efc74fe 2005-07-14 Atsushi Enomoto <[email protected]>
* 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
2005-07-14 16:49:36 +00:00
Atsushi Eno 512ed7121f 2005-06-29 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
	  to ISO 8601 and XSD datatypes 3.2.6.1).

	* XmlConvertTests.cs : added timespan milliseconds testcase.


svn path=/trunk/mcs/; revision=46727
2005-06-29 17:35:43 +00:00
Andrew Skiba 8e800a1d51 Fixes valid-sa-086 test from W3C xmlconf suite
svn path=/trunk/mcs/; revision=46552
2005-06-27 12:19:24 +00:00
Atsushi Eno e56037a5ac 2005-06-27 Atsushi Enomoto <[email protected]>
* XmlQueryDialect.cs : removed.

	* System.Xml.dll.sources : removed XmlQueryDialect.
	  Added xslt message event stuff.


svn path=/trunk/mcs/; revision=46539
2005-06-27 08:39:15 +00:00
Atsushi Eno 62460b3c62 2005-06-27 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : added Create(XmlWriter).
	* XmlValidatingReader.cs : added Read*AsBase64/BinHex().
	* XmlReaderSettings.cs : added obsolete annoyances to hush corcompare.


svn path=/trunk/mcs/; revision=46537
2005-06-27 08:33:39 +00:00
Atsushi Eno 620ef5b8c1 2005-06-22 Atsushi Enomoto <[email protected]>
* 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
2005-06-22 18:43:43 +00:00
Atsushi Eno e3d19b2004 2005-06-22 Atsushi Enomoto <[email protected]>
* 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
2005-06-22 08:12:53 +00:00