110 Commits
Author SHA1 Message Date
Egor Bogatov 95ea74ebdb [System.XML] xunit tests and trivial types from CoreFX (#9351)
Adds 1192 xunit tests for System.XML from CoreFX
Also, moves common lines from `mobile_System.Xml.sources` and `System.Xml.sources` to `common.sources`

Part of #8132
2018-07-20 02:10:02 +02:00
Marek Safar d4816ef1ab [System.Xml] Remove reflection calls for value has to be set 2018-02-22 08:39:29 +01:00
Marek Safar 79fa40e7f2 Remove referencesource submodule and move sources to mcs/class/referencesource
This simplified PR workflow and makes branching easier
2016-05-03 13:34:32 +02:00
Marek Safar 09e4e3806a [bcl] Remove wrong IVT attributes 2016-03-16 18:36:33 +01:00
Marek Safar 27f07c8095 [bcl] Update to 4.6 referencesource 2015-10-16 23:33:32 +02:00
Marek Safar 401a35cd69 [system.xml] Serialization from reference sources for desktop 2015-05-13 18:47:07 +02:00
Marek Safar 914e2bcf40 [system.xml] System.Xml.Serialization.Advanced from reference sources 2015-05-12 18:43:06 +02:00
Marek Safar 5f959e7bac [system.xml] Resource string from reference sources 2015-05-12 11:56:27 +02:00
Atsushi Eno b8ee40b9f3 Revert "[system.xml] System.Xml.Serialization.Advanced from reference sources"
This reverts commit e66d448104.
2015-05-12 14:44:59 +08:00
Atsushi Eno ddca46d22b Revert "[system.xml] Serialization from reference sources for desktop"
This reverts commit 6ae517ea65.
2015-05-12 14:42:19 +08:00
Marek Safar 6ae517ea65 [system.xml] Serialization from reference sources for desktop 2015-05-11 15:37:01 +02:00
Marek Safar e66d448104 [system.xml] System.Xml.Serialization.Advanced from reference sources 2015-05-08 14:41:32 +02:00
Marek Safar 69101f50ec [system.xml] serialization handlers from reference sources 2015-05-08 14:41:32 +02:00
Marek Safar 90d072e8de [system.xml] System.Xml.Serialization.Configuration from reference sources 2015-05-08 11:15:50 +02:00
Marek Safar d86dc4c41a [system.xml] Fix public api 2015-04-27 20:06:46 +02:00
Marek Safar 50db473790 [system.xml] Clean up build output 2015-03-04 13:45:25 +01:00
Atsushi Eno 510710e423 take out ThisAssembly from SR.cs, conflicts with the one in Sys.Data. 2015-03-02 21:32:07 +08:00
Atsushi Eno 751ecd3e5b [xml] take out some types in Dummy.cs to better source files. 2015-03-02 19:12:39 +08:00
Atsushi Eno 4bdf5defdd Add referencesource's [InternalsVisiblTo] attributes in System.Xml.dll. 2015-03-02 11:36:45 +08:00
Atsushi Eno c646ba01a3 Add referencesource-based message strings to the build.
It should be using RESOURCE_STRINGS, but mcs doesn't support its special
option for string resources for multiple files.

The resource .cs files are generated by genresstringcs.sh, but System.Xml.txt
contains some bogus characters that prevents source generation, so after
the tool has generated the sources, I manually fixed them.
It won't matter once mcs supports the option for multiple files anyways.
2015-03-02 11:36:44 +08:00
Atsushi Eno e7b1d9d96e [Sys.Xml] first onging mobile build work. It does NOT build for mobiles now.
Removed Configuration dependencies and codegenerator parts in XmlSerializer
as well as switching CodeIdentifier implementation to old mono stuff
as referencesource totally depends on CodeDom (mono doesn't).
2015-03-02 11:36:41 +08:00
Atsushi Eno 8062ba1e7b Fixed bug #3504 - implemented ValidateEndElement() var argument support.
It is documented in MSDN and I could implement it.

For the actual implementation of object-to-string conversion, I could pick
up dead old XmlValueConverter class from pre-RTM .NET 2.0(!).
It is now added to the sources where applicable.
2012-03-09 23:52:34 +09:00
Jérémie Laval be41cdb078 [System.Xml] Enable existing API under 4.0 profile too 2010-12-06 16:07:27 +00:00
Atsushi Eno 08afe91b30 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlDefaultWriter.cs : new source (which I once wrote for relaxng
	  and corcompare).
	* XmlWriter.cs : in some cases XmlWriter.Create() returns a new
	  wrapping writer instance.
	  If there was no Settings specified, return null.

	* System.Xml.dll.sources,
	  moonlight_raw_System.Xml.dll.sources,
	  monotouch_System.Xml.dll.sources : add DefaultXmlWriter.cs.

	* XmlWriterTests.cs : add a bit more assertions.
	  Remove NotWorking from some tests.


svn path=/trunk/mcs/; revision=159712
2010-06-30 06:40:47 +00:00
Atsushi Eno 9a708bffad 2009-11-27 Atsushi Enomoto <[email protected]>
* NamespaceHandling.cs, XmlWriterSettings.cs, XmlTextWriter2.cs:
	  implement NamespaceHandling support for Moonlight.

	* System.Xml.dll.sources : added NamespaceHandling which is kept
	  internal in 2.0 (to simplify its support in XmlTextWriter).


svn path=/trunk/mcs/; revision=147022
2009-11-27 03:14:15 +00:00
Atsushi Eno 019345956c 2009-03-13 Atsushi Enomoto <[email protected]>
* SerializationSource.cs, KeyHelper.cs : split out KeyHelper from
	  SerializationSource as the class is going to be used in 2.1 too.
	* XmlRootAttribute.cs : use KeyHelper above to add internal Key
	  property that is used in SL2 System.Xml.Serialization.dll.

	* System.Xml.dll.sources, net_2_1_raw_System.Xml.dll.sources :
	  added KeyHelper.cs.


svn path=/trunk/mcs/; revision=129243
2009-03-13 06:59:28 +00:00
Atsushi Eno 19308b4ef0 2007-06-28 Atsushi Enomoto <[email protected]>
Yes, it is Hack Week, I had to start delayed though.

	* System.Xml.dll.sources : added XsltDebuggerWrapper.cs, as initial
	  attempt to support external debugger.

	* XslText.cs XslMessage.cs XslVariable.cs XslNotSupportedOperation.cs
	  XslNumber.cs XslElement.cs XslIf.cs XslCopyOf.cs XslFallback.cs
	  XslValueOf.cs XslComment.cs XslAttribute.cs XslApplyImports.cs
	  XslApplyTemplates.cs XslLiteralElement.cs XslCompiledElement.cs
	  XslTemplateContent.cs XslForEach.cs XslCallTemplate.cs
	  XslCopy.cs XslProcessingInstruction.cs XslChoose.cs :
	  minimum required injection for debugger.

	initial attempt to hook debuggers.
	* XsltDebuggerWrapper.cs : new.
	* XslTransformProcessor.cs Compiler.cs : use above.

	* XslCompiledTransform.cs XslTransform.cs : initial attempt to
	  support external debugger.


svn path=/trunk/mcs/; revision=80984
2007-06-28 16:44:07 +00:00
Atsushi Eno 732496f334 2006-11-01 Atsushi Enomoto <[email protected]>
* Makefile : Now it supports (and expects) cyclic build. You need
	  another System.XML iteration in mcs/class/Makefile.
	* System.Xml.dll.sources : moved extension classes, added config and
	  XmlSchemaEnumerator.cs and removed IXmlSerializerImplementation.cs.


svn path=/branches/atsushi/mcs/; revision=67234
2006-11-01 20:02:15 +00:00
Atsushi Eno b3cbbff9ce 2006-07-24 Atsushi Enomoto <[email protected]>
In class/System.XML:
	* System.Xml.dll.sources : added XmlMappingAccess.

	* XmlMappingAccess.cs : new type in 2.0 RTM.
	* XmlCodeExporter.cs, SoapCodeExporter.cs,
	  MapCodeGenerator.cs,
	  XmlSchemaImporter.cs, SoapSchemaImporter.cs, SchemaImporter.cs,
	  SchemaImporterExtension.cs, SchemaImporterExtensionCollection.cs,
	  XmlMemberMapping.cs, XmlSerializationReader.cs :
	  several 2.0 API fixes from betas to RTM.

	In class/System.Web.Services:
	* ProtocolImporter.cs, ServiceDescriptionImporter.cs :
	  some 2.0 API fixes from betas to RTM.

	In tools/wsdl:
	* MonoWSDL2.cs : 2.0 API fixes from beta2 to RTM.


svn path=/trunk/mcs/; revision=62910
2006-07-24 10:50:58 +00:00
Atsushi Eno a40a00bcde 2006-03-15 Atsushi Enomoto <[email protected]>
* XslTransformProcessor.cs,
	  Compiler.cs : eliminate ExpressionStore. Now sorting is done
	  inside XslSortEvaluator.
	* XslSortEvaluator.cs : new file. It handles current node in XSLT
	  context. Fixed bug #77781.

	* Expression.cs : extracted XPathSortElement, XPathSorters
	  and XPathSorter from CompiledExpression, and split
	  XPathSorters.Sort() into some methods. Those changes are to make
	  them reusable in XslSortEvaluator.

	* System.Xml.dll.sources : added XslSortEvaluator.cs.

	* knownFailures.txt : removed two xsl:sort+current() tests.


svn path=/trunk/mcs/; revision=58015
2006-03-15 14:43:45 +00:00
Atsushi Eno 9eb523dd9f 2006-02-21 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
	  which discards "overriden" namespaces.
	* XmlTextWriter2.cs : fresh implementation.
	  - The source structure is simplified and cleaner.
	  - When outputting escaped string, output directly to TextWriter.
	  - roughly 20% performance improvement.

	  (Also fixed previous perf. evaluation excess in ChangeLog.)


	* XmlReaderCommonTests.cs : added custom assertion overload that takes
	  test label.
	* XmlNodeReaderTests.cs : labeled some.
	* XmlTextWriterTests.cs :
	  Changed the semantics of AttributeNamespacesXmlnsXmlns() and
	  removed NotDotNet (in contrast this test should fail with previous
	  version of XmlTextWriter). See the code comment for details.
	  Added WriteQualifiedNameXmlnsError().


	* System.Xml.dll.sources : removed XmlTextWriterOpenElement.cs and 
	  XmlTextWriter.cs. Added XmlTextWriter2.cs, to be renamed to
	  XmlTextWriter.cs in a few days or weeks.


svn path=/trunk/mcs/; revision=57095
2006-02-21 15:39:10 +00:00
Atsushi Eno 29ce6906d7 2006-02-17 Atsushi Enomoto <[email protected]>
* DTDValidatingReader2.cs, EntityResolvingXmlReader.cs :
	  new files for refactoring DTD validating reader. As the first stage,
	  it splits entity handling process from DTD validation step.

	  (DTDValidatingReader.cs will be removed at some stage).

	* System.Xml.dll.sources : removed DTDValidatingReader and added
	  DTDValidatingReader2.cs and EntityResolvingXmlReader.cs.


svn path=/trunk/mcs/; revision=56967
2006-02-17 08:47:38 +00:00
Atsushi Eno cbc55bdc39 2006-02-16 Atsushi Enomoto <[email protected]>
* IHasXmlChildNode.cs :
	  New internal interface to hold LastLinkedChild.
	* XmlNodeListChildren.cs XmlEntity.cs XmlElement.cs XmlAttribute.cs
	  XmlLinkedNode.cs XmlEntityReference.cs XmlNode.cs
	  XmlDocumentFragment.cs XmlDocument.cs : use it. It minimizes memory
	  consumption in XmlText, XmlWhitespace, XmlComment etc.

	* System.Xml.dll.sources : added IHasXmlChildNode.cs.


svn path=/trunk/mcs/; revision=56945
2006-02-16 15:46:11 +00:00
Atsushi Eno 150bf8474d 2006-01-27 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XmlIteratorNodeList.cs.

	* XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
	  It does not iterate all nodes in advance.
	* XmlNode.cs : use XmlIteratorNodeList in SelectNodes().


svn path=/trunk/mcs/; revision=56148
2006-01-27 06:29:26 +00:00
Atsushi Eno 99c907944c 2005-12-08 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XmlSchemaCompilationSettings.cs

	* XmlReaderSettings.cs : thanks to idiotic MS design,
	  AllowXmlAttributes is turned on by default.

	* XmlSchemaCompilationSettings.cs : new file.
	* XmlSchemaSet.cs : added CompilationSettings property.
	* XmlSchemaComplexType.cs : support for EnableUpaCheck.

	* XmlReaderSettingsTests.cs : (DefaultValue)
	  Added assertion label everywhere.
	* XmlWriterTests.cs : WriteNodeError is broken under MS.NET 2.0 (it
	  should cause an error).

	* XmlSchemaSetTests.cs : added CompilationSettings tests.


svn path=/trunk/mcs/; revision=54094
2005-12-08 06:56:12 +00:00
Atsushi Eno b506772860 2005-11-22 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : added non-compiler transformer (aka. stub).

	* System.Xml.dll.sources : added dummy XslCompiledTransform.cs.


svn path=/trunk/mcs/; revision=53337
2005-11-22 04:18:35 +00:00
Atsushi Eno bb6f4f7d64 2005-09-25 Atsushi Enomoto <[email protected]>
* XmlSchemaBuiltInType.cs : removed obsolete beta file.

	* System.Xml.dll.sources : removed XmlSchemaBuiltInType.cs.


svn path=/trunk/mcs/; revision=50735
2005-09-25 18:49:25 +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
Kornél Pál 431f1b3485 Moved assembly version and assembly reference constants to a common Consts.cs file. Updated 2.0.3600.0 assembly versions to 2.0.0.0. Updated some old beta version numbers to recent ones. Fixed hard coded assembly references to use constants with the appropriate version number.
svn path=/trunk/mcs/; revision=48519
2005-08-18 19:36:17 +00:00
Ben Maurer 7ee4149d42 more executable bits
svn path=/trunk/mcs/; revision=46568
2005-06-27 16:07:43 +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
Ben Maurer 47876a3539 more copy and paste reuse going away
svn path=/trunk/mcs/; revision=45988
2005-06-14 19:21:45 +00:00
Ben Maurer 9371fbf8ba Remove copy and paste reuse for Locale.cs.
First step in attempting to do an actual framework here.


svn path=/trunk/mcs/; revision=45986
2005-06-14 18:30:41 +00:00
Atsushi Eno a6c63b3071 2005-05-09 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : removed obsolete TypeTableEntry.cs.

	* TypeTableEntry.cs : removed obsolete code.


svn path=/trunk/mcs/; revision=44238
2005-05-09 05:23:00 +00:00
Atsushi Eno 59f1697a06 2004-05-05 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : XPathAtomicValue.cs -> XmlAtomicValue.cs.

	* XmlAtomicValue.cs : moved from XPathAtomicValue, removed some stuff.

	* SubtreeXmlReader.cs :
	  removed atomizedName related 2.0 member (deprecated).

	* XPathAtomicValue.cs :
	  it is now XmlAtomicValue and in sys.xml.schema.
	* XPathNavigator.cs, Expression.cs :
	  removed atomizedName related 2.0 members (deprecated).

	* XsdValidatingReader.cs :
	  removed atomicName related 2.0 members (deprecated in beta2).

	* XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
	  XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
	  DTDValidatingReader.cs : Removed most of "atomizedName" related
	  stuff that are obsoleted in 2.0 beta2.
	* XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.

	* XmlNamespaceManagerTests.cs : removed atomizedName related tests.


svn path=/trunk/mcs/; revision=44083
2005-05-05 14:14:57 +00:00
Atsushi Eno e7869b768c 2004-05-05 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : removed XmlValueConverter (obsoleted).
	* System.Xml_test.dll.sources : removed XPathAtomicValue (obsoleted).


svn path=/trunk/mcs/; revision=44076
2005-05-05 11:17:01 +00:00
Ben Maurer c62156fb77 In .:
2005-04-03  Ben Maurer  <[email protected]>

	* System.Xml.dll.sources: Kill multiplexing hack.

In System.Xml.Xsl:
2005-04-03  Ben Maurer  <[email protected]>

	* *.cs: Kill unmanaged xslt and the multiplexing hack.


svn path=/trunk/mcs/; revision=42497
2005-04-03 17:24:12 +00:00
Atsushi Eno 63a58a8b58 2005-03-04 Atsushi Enomoto <[email protected]>
* XslNotSupportedOperation.cs : added not-supported template content 
	  type. Such elements should be rejected only run-time (since there
	  could be future-version-only template content).
	* XslCompiledElement.cs : added XslCompiledElementBase type, for
	  not invoking Compile() in base .ctor() (in some types this design
	  forces us to add extraneous protected fields to the base type).
	* XslTemplateContent.cs : added "sort" element check (except for
	  xsl:for-each, it should be skipped).

	* Compiler.cs : added another CompileTemplateContent() which is
	  requred in xsl:for-each. Commented out unused method.

	* System.Xml.dll.sources : Added XslNotSupportedOperation.cs.



svn path=/trunk/mcs/; revision=41444
2005-03-04 15:29:21 +00:00
Atsushi Eno 79a80467d0 2004-01-18 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources :
	  Added XmlNameEntry.cs and XmlNameEntryCache.cs.



svn path=/trunk/mcs/; revision=39087
2005-01-18 11:15:14 +00:00
Atsushi Eno 55142afb4f 2005-01-17 Atsushi Enomoto <[email protected]>
* xmlschemagen.config,
	  XmlSchemaSerializer.cs : replacement of CustomSerializer.cs which was
	  based on genxs but manually modified.
	* CustomSerializer.cs : removed.

2004-01-17  Atsushi Enomoto  <[email protected]>

	* System.Xml.dll.sources : replaced CustomSerializer with 
	  XmlSchemaSerializer.
	  Replaced XmlNodeReader with XmlNodeReaderImpl.cs and
	  XmlNodeReader2.cs. (dispatches entity reader and non-entity reader.)



svn path=/trunk/mcs/; revision=39005
2005-01-17 09:40:11 +00:00