Commit Graph
938 Commits
Author SHA1 Message Date
Atsushi Eno a477ee03e7 revert the broken change that even fails on .NET 2.0.
svn path=/trunk/mcs/; revision=90445
2007-11-29 17:23:23 +00:00
Konstantin Triger 6c84b57e08 change log for r90413
svn path=/trunk/mcs/; revision=90414
2007-11-29 07:57:46 +00:00
Konstantin Triger ae40414c3e fix ToDateTime(XmlDateTimeSerializationMode.Unspecified)/ToString(DateTime) for local time
svn path=/trunk/mcs/; revision=90413
2007-11-29 07:57:02 +00:00
Atsushi Eno 0274fff8a3 2007-11-09 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDateTime(XmlDateTimeSerializationMode) should
	  allow more strings than existing one. Fixed bug #339004.

	* XmlConvertTests.cs : added test for #339004 and more.


svn path=/trunk/mcs/; revision=89305
2007-11-09 08:48:09 +00:00
Atsushi Eno 756ab6c79b 2007-10-30 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
	  not Parse(). Use 'K' for roundtrip format.

	* XmlCustomFormatter.cs : use RoundtripKind when converting to and
	  from DateTime.

	* XmlConvertTest.cs : added test for DateTime roundtrip.

	* XmlSerializerTests.cs : added test for bug #337729.


svn path=/trunk/mcs/; revision=88448
2007-10-30 12:33:34 +00:00
Atsushi Eno c8e0f4c0ca 2007-10-10 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : making <del>silly</del>funky MS compatibility
	  change in WriteStartAttribute() to call WriteEndAttribute() if an
	  attribute is open.


svn path=/trunk/mcs/; revision=87281
2007-10-10 17:22:43 +00:00
Atsushi Eno cfbd08e86f 2007-10-10 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : I could make previous change only in 2.0 mode.


svn path=/trunk/mcs/; revision=87261
2007-10-10 11:42:52 +00:00
Atsushi Eno f209b0ba7b 2007-10-10 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : When it is at Error state, do not try to close
	  attributes and elements at Close(). They will result in further
	  error and rather hide the actual issue when disposed.


svn path=/trunk/mcs/; revision=87254
2007-10-10 11:11:10 +00:00
Atsushi Eno 854f0d1cdb 2007-09-28 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : it is now documented that WriteNode(XPathNavigator)
	  ignores attributes and namespace decls, so do that.
	* XQueryConvert.cs : removed extra stuff that are not in use.

	* XmlWriterTests.cs : added WriteNodeXPathNavigatorAttribute().


svn path=/trunk/mcs/; revision=86546
2007-09-28 05:27:11 +00:00
Atsushi Eno 28bfedcf61 2007-09-27 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : implemented WriteValue(object) based on
	  MSDN "Writing Typed Data" with some fix.
	  http://msdn2.microsoft.com/en-us/library/bft97s8e(VS.80).aspx
	* XmlTextWriter.cs : state check is extraneous. It caused unexpected
	  rejection of empty namespace URI.

	* XmlWriterTests.cs : added test for WriteValue(object).
	* XmlTextWriterTests.cs : added WriteQualifiedName() test with empty
	  namespace.


svn path=/trunk/mcs/; revision=86483
2007-09-27 11:39:15 +00:00
Atsushi Eno 08087f828c 2007-08-13 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : fix extraneous indentation which is put after
	  omitted xmldecl.

	* XmlWriterSettingsTests.cs : added test for extraneous newline on
	  OmitXmlDeclaration mode.


svn path=/trunk/mcs/; revision=83958
2007-08-13 13:51:34 +00:00
Jb Evain 8ae4bc05b9 2007-08-09 Jb Evain <[email protected]>
* XmlTextReader.cs: Avoid using 2.0 only feature in 2.1.

svn path=/trunk/mcs/; revision=83752
2007-08-09 13:25:18 +00:00
Jb Evain 9fac96317b 2007-08-04 Jb Evain <[email protected]>
* XmlConvert.cs: use 2.1 available overloads of Parse.

svn path=/trunk/mcs/; revision=83747
2007-08-09 13:19:22 +00:00
Jb Evain d6a4cd0089 2007-08-04 Jb Evain <[email protected]>
* XmlInputStream.cs: there's no ASCII encoding in 2.1.

svn path=/trunk/mcs/; revision=83743
2007-08-09 12:57:04 +00:00
Atsushi Eno 4f400a3856 2007-08-09 Atsushi Enomoto <[email protected]>
* 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
2007-08-09 04:15:15 +00:00
Atsushi Eno dc93e1e74b 2007-08-09 Atsushi Enomoto <[email protected]>
* 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
2007-08-09 03:37:04 +00:00
Jb Evain 3c28434d94 2007-08-04 Jb Evain <[email protected]>
* XmlUrlResolver.cs: remove code duplication in 2.1.

svn path=/trunk/mcs/; revision=83489
2007-08-04 20:33:27 +00:00
Jb Evain fa9980ab68 2007-08-04 Jb Evain <[email protected]>
* XmlTextReader.cs, XmlConvert.cs, XmlReaderBinarySupport.cs:
	Use the available constructor for the 2.1 profile.

svn path=/trunk/mcs/; revision=83488
2007-08-04 20:28:33 +00:00
Atsushi Eno aeb49c6096 2007-08-03 Atsushi Enomoto <[email protected]>
* 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
2007-08-03 16:28:48 +00:00
Atsushi Eno d545b768d2 2007-08-03 Atsushi Enomoto <[email protected]>
* 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
2007-08-03 07:38:56 +00:00
Atsushi Eno 99887597f8 2007-07-12 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : in WriteNode(XPathNavigator,bool), default namespace
	  is broken. Fixed bug #82051.

	* XmlWriterTests.cs : added test for bug #82051.


svn path=/trunk/mcs/; revision=81852
2007-07-12 08:31:57 +00:00
Atsushi Eno 44effe49e4 2007-07-11 Atsushi Enomoto <[email protected]>
* 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
2007-07-11 11:37:37 +00:00
Atsushi Eno 96c772e3ef 2007-07-04 Atsushi Enomoto <[email protected]>
* 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
2007-07-04 18:37:29 +00:00
Atsushi Eno 7fca944c2b 2007-07-04 Atsushi Enomoto <[email protected]>
* 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
2007-07-04 13:19:57 +00:00
Gert Driesen 0485826abb * XmlTextReaderTests.cs: Enable ProhibitDtd test on 1.0 profile too.
Fixed line endings.
* XmlTextReader.cs: Expose ProhibitDtd on 1.0 profile too.

svn path=/trunk/mcs/; revision=81106
2007-06-30 13:44:53 +00:00
Atsushi Eno c377364220 2007-06-13 Atsushi Enomoto <[email protected]>
* 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
2007-06-13 17:29:58 +00:00
Atsushi Eno aa42463723 2007-06-11 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : ReadStartElement() has bogus error message.


svn path=/trunk/mcs/; revision=79155
2007-06-11 08:43:53 +00:00
Atsushi Eno a90b8aa7ce 2007-05-31 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs :
	  NewLineOnAttributes indentation fix, for bug #81770.

	* XmlWriterSettingsTests.cs : added test for NewLineOnAttributes.


svn path=/trunk/mcs/; revision=78290
2007-05-31 02:23:03 +00:00
Atsushi Eno d783b2366c 2007-05-25 Atsushi Enomoto <[email protected]>
* XQueryConvert.cs : removed unused methods. They will prevent
	  System.Xml.Core.dll implementation.


svn path=/trunk/mcs/; revision=77960
2007-05-25 18:06:13 +00:00
Konstantin Triger 205ff8aec3 Refactor Clone
svn path=/trunk/mcs/; revision=77454
2007-05-16 06:25:35 +00:00
Konstantin Triger 286c3bfeb8 ensure the file is closed in XmlWriter.Create(filename)
svn path=/trunk/mcs/; revision=77450
2007-05-16 06:04:45 +00:00
Konstantin Triger 3b34b7bbe8 Refactor Clone
svn path=/trunk/mcs/; revision=77449
2007-05-16 06:01:20 +00:00
Konstantin Triger fe898472cf cosmetic fix for the exception type
svn path=/trunk/mcs/; revision=76822
2007-05-07 10:44:31 +00:00
Atsushi Eno d059df767a 2007-04-25 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : MinValue and MaxValue, same for ToDateTime().


svn path=/trunk/mcs/; revision=76276
2007-04-25 19:37:49 +00:00
Atsushi Eno 044e2c1ec4 2007-04-25 Atsushi Enomoto <[email protected]>
* 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
2007-04-25 19:31:47 +00:00
Atsushi Eno a1cc211652 2007-04-25 Atsushi Enomoto <[email protected]>
* 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
2007-04-25 18:22:32 +00:00
Atsushi Eno 22c1a62ad1 2007-04-25 Atsushi Enomoto <[email protected]>
* XmlReader.cs : fixed wrong depth comparison in ReadToNextSibling().
	  Fixed bug #81451, by Eric Mercier.

	* XmlReaderCommonTests.cs : added test for bug #81451.


svn path=/trunk/mcs/; revision=76259
2007-04-25 16:02:28 +00:00
Atsushi Eno 2a6b8ff712 2007-04-03 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : character ']' inside DTD comment caused parser
	  error. Fixed bug #81294.

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


svn path=/trunk/mcs/; revision=75325
2007-04-03 07:41:06 +00:00
Atsushi Eno de8c3d5de0 2007-03-05 Atsushi Enomoto <[email protected]>
* XmlReader.cs : when Create() returns customized XmlTextReader, set
	  EntityHandling.ExpandEntities. Fixed bug #81000.

	* XmlReaderSettingsTests.cs : added test for bug #81000.


svn path=/trunk/mcs/; revision=73698
2007-03-05 05:50:41 +00:00
Konstantin Triger be86198543 TARGET_JVM: remove #ifdefs
svn path=/trunk/mcs/; revision=73608
2007-03-01 16:40:15 +00:00
Atsushi Eno 1f87900960 2007-02-20 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs, XmlTextReader2.cs : Reset() should work now.
	  Closing bug #80849.


svn path=/trunk/mcs/; revision=73159
2007-02-20 11:25:54 +00:00
Atsushi Eno 31d31bbcc3 2007-02-20 Atsushi Enomoto <[email protected]>
* DTDValidatingReader2.cs, XmlTextReader.cs, XmlNodeReaderImpl.cs:
	  Read() silently returns false when it is closed. Fixed bug #80848.

	* XmlReaderCommonTests.cs : added test for bug #80848.


svn path=/trunk/mcs/; revision=73147
2007-02-20 08:44:13 +00:00
Atsushi Eno 03a84c968b 2007-02-07 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadElementContentAsString() and all relevant methods
	  didn't consume empty element correctly.

	* XmlReaderCommonTests.cs : added ReadElementContentAsStringEmpty().


svn path=/trunk/mcs/; revision=72402
2007-02-07 09:10:32 +00:00
Atsushi Eno 78b764c7e7 2006-12-20 Atsushi Enomoto <[email protected]>
* XmlNode.cs : (InsertBefore) when newChild == refChild, do nothing
	  except for node type check. Fixed bug #80331.

	* XmlNodeTests.cs : added tests for bug #80331.


svn path=/trunk/mcs/; revision=69837
2006-12-20 19:46:13 +00:00
Atsushi Eno 9c2cf5d9e0 2006-12-19 Atsushi Enomoto <[email protected]>
* 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
2006-12-19 07:44:46 +00:00
Atsushi Eno bb82cd0648 2006-12-19 Atsushi Enomoto <[email protected]>
* 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
2006-12-19 06:42:52 +00:00
Atsushi Eno efcfec2517 2006-12-12 Atsushi Enomoto <[email protected]>
* 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
2006-12-12 12:15:13 +00:00
Atsushi Eno a175a4e0a0 2006-12-12 Atsushi Enomoto <[email protected]>
* 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
2006-12-12 04:18:42 +00:00
Atsushi Eno cc34d1694b 2006-12-12 Atsushi Enomoto <[email protected]>
* 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
2006-12-12 03:13:15 +00:00
Atsushi Eno 6c8f6ac907 2006-12-11 Atsushi Enomoto <[email protected]>
* 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
2006-12-11 02:37:59 +00:00