Commit Graph
938 Commits
Author SHA1 Message Date
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 ed6c7af903 * XmlConstructs.cs
* XmlChar.cs
* XmlDocumentType.cs
* XmlImplementation.cs
* XmlNameTable.cs
* XmlResolver.cs
* Driver.cs
* IXmlLineInfo.cs
* Profile.cs
* XmlReaderSettings.cs
* XmlNodeChangedAction.cs
* XmlWriterSettings.cs
* XmlDocumentFragment.cs: set eol-style to native.


svn path=/trunk/mcs/; revision=50752
2005-09-26 10:25:02 +00:00
Gert Driesen 15ad7d81b6 * XmlResolver.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=50751
2005-09-26 10:23:21 +00:00
Gert Driesen adcd766c26 * XmlNodeChangedEventArgs.cs: Set eol-style to native.
svn path=/trunk/mcs/; revision=50750
2005-09-26 10:21:30 +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
Ben Maurer b27c8e1534 remove .cvsignore from everywhere, as it is useless on svn
svn path=/trunk/mcs/; revision=46564
2005-06-27 15:55:58 +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
Andrew Skiba 68bc7c0afb remove unnecessary argument from AppendChildValues function
svn path=/trunk/mcs/; revision=46347
2005-06-22 07:32:01 +00:00
Atsushi Eno 779494c75c 2005-06-17 Atsushi Enomoto <[email protected]>
* 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
2005-06-17 08:22:15 +00:00
Atsushi Eno 93261fb2a4 2005-06-17 Atsushi Enomoto <[email protected]>
* 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
2005-06-17 07:22:25 +00:00
Raja R Harinath 5942f52d09 Standardize line-endings in files (if most of the file is CRLF,
convert the whole thing to CRLF).  Set svn:eol-style native for 
files with LF line-endings.  Remove svn:executable.


svn path=/trunk/mcs/; revision=46117
2005-06-17 06:39:43 +00:00
Ben Maurer 47876a3539 more copy and paste reuse going away
svn path=/trunk/mcs/; revision=45988
2005-06-14 19:21:45 +00:00
Atsushi Eno 0d14407e85 2005-06-14 Atsushi Enomoto <[email protected]>
* 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
2005-06-14 08:14:28 +00:00
Atsushi Eno c2cd62fc4a 2005-06-14 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : whitespace nodes were incorrectly rejected
	  inside non-mixed content model.


svn path=/trunk/mcs/; revision=45934
2005-06-14 07:27:39 +00:00
Andrew Skiba 9b6d39261d TARGET_JVM for roundtrip bug
svn path=/trunk/mcs/; revision=45681
2005-06-09 09:11:06 +00:00
Atsushi Eno 53db25ba5f 2005-06-06 Atsushi Enomoto <[email protected]>
* XmlEntityReference.cs, XmlNode.cs : protected api fix.


svn path=/trunk/mcs/; revision=45504
2005-06-06 16:27:08 +00:00
Atsushi Eno 5f139203fd 2005-06-02 Atsushi Enomoto <[email protected]>
* 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
2005-06-02 11:41:00 +00:00
Atsushi Eno 90cd8391f9 2005-05-31 Atsushi Enomoto <[email protected]>
* DTDReader.cs :
	  make sure to close parser input before parser stack pop.
	* DTDValidatingReader.cs : ditto.
	* DTDObjectModel.cs : Fixed another incorrect null BaseURI check.

	* XmlValidatingReaderTests.cs : let's test external DTD as well.


svn path=/trunk/mcs/; revision=45262
2005-05-31 13:37:32 +00:00
Atsushi Eno 19e20699c0 2005-05-31 Atsushi Enomoto <[email protected]>
* 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
2005-05-31 11:41:54 +00:00
Atsushi Eno 16505f6e8b 2005-05-30 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
	  BaseURI which results in incorrect URI resolution.


svn path=/trunk/mcs/; revision=45177
2005-05-30 04:27:21 +00:00
Atsushi Eno ccf422ff07 2005-05-21 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs : For simple type restriction creation it failed
	  when there is no enumerations (largely failed).


svn path=/trunk/mcs/; revision=44868
2005-05-21 10:55:29 +00:00