Commit Graph
883 Commits
Author SHA1 Message Date
Atsushi Eno 9eed92664c 2010-07-09 Atsushi Enomoto <[email protected]>
* XmlNodeReaderImpl.cs : in GetNamespacesInScope(), avoid NREs under
	  "no current node" situation. Also, look for attributes on iterated
	  nodes, not current ones.


svn path=/trunk/mcs/; revision=160145
2010-07-09 16:51:34 +00:00
Atsushi Eno 1632203a41 2010-07-06 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : it had been failing to retrieve correct
	  encoding due to insufficient buffer reading. Fixed bug #615499.


svn path=/trunk/mcs/; revision=159967
2010-07-06 15:53:46 +00:00
Atsushi Eno 8a15a405a9 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlDefaultWriter.cs : add state management support. 
	* XmlWriter.cs : use above feature for "null Settings in source
	  writer" case. This brings some minor .NET compatibility and
	  should fix bug #607697.

	* XmlWriterTests.cs : remove NotWorking everywhere.


svn path=/trunk/mcs/; revision=159714
2010-06-30 07:05:11 +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 944d6f7146 2010-06-16 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : do not try to parse xml:base="".
	  Fixed bug #608391.

2010-06-16  Atsushi Enomoto  <[email protected]>

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


svn path=/trunk/mcs/; revision=159013
2010-06-16 11:24:09 +00:00
Atsushi Eno dc3a99c440 2010-06-14 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : do not create XmlSchemaInfo instance every time
	  it validates a node.

	* XmlSchemaValidator.cs : limit validity initialization. In some
	  cases it failed to set Invalid.


svn path=/trunk/mcs/; revision=158867
2010-06-14 07:35:04 +00:00
Atsushi Eno 5cb7940543 2010-05-12 Atsushi Enomoto <[email protected]>
* XmlNode.cs : use as-operator (isinst) to optimize certain use case.
	  Patch by Tom Hindle.


svn path=/trunk/mcs/; revision=157244
2010-05-12 15:04:05 +00:00
Atsushi Eno 92eb7cee6b 2010-04-28 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : minimize initial buffer size so that it does
	  not mostly block some readers. Fixed bug #591291.


svn path=/trunk/mcs/; revision=156280
2010-04-28 06:11:30 +00:00
Atsushi Eno f23c8f7fc2 2010-04-28 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : it seems .net does allow Load() with such an xml
	  reader positioned in the middle of the document. Fixed bug #598953.

	* XmlDocumentTests.cs : add test for bug #598953.


svn path=/trunk/mcs/; revision=156278
2010-04-28 01:22:00 +00:00
Atsushi Eno 61ec829ea9 2010-04-21 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs, DTDReader.cs : 0xFFFF was treated as if it were
	  0x10000. (It is invalid and should be rejected by decent
	  XmlReaders usage though.) Fixed bug #594628.


svn path=/trunk/mcs/; revision=155853
2010-04-21 08:19:39 +00:00
Atsushi Eno 2a26a5709a 2010-03-29 Atsushi Enomoto <[email protected]>
* XmlQualifiedName.cs : do not reject names in no namespace.


svn path=/trunk/mcs/; revision=154362
2010-03-29 11:19:23 +00:00
Atsushi Eno 5aed01b5aa 2010-03-26 Atsushi Enomoto <[email protected]>
* XmlReader.cs, XmlQualifiedName.cs : ReadElementContentAs() when
	  used for qname, treats non-prefixed name as in default namespace.

	* XmlReaderCommonTests.cs : added test for ReadElementContentAs() for
	  qname, with default namespace.


svn path=/trunk/mcs/; revision=154272
2010-03-26 13:56:39 +00:00
Atsushi Eno 383d6b9338 2010-03-17 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : fix cosmetic 2.0 compatibility issue in 
	  WriteStartAttribute() which allows "" for prefixed xmlns and brings
	  incompatibility with XmlTextWriter class.


svn path=/trunk/mcs/; revision=153709
2010-03-17 05:10:42 +00:00
Jb Evain 846150badd use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153673
2010-03-16 12:31:23 +00:00
Geoff Norton 601bca785f 2010-02-20 Geoff Norton <[email protected]>
* XmlInputStream.cs: Disable this codepath on monotouch.  Fixes
        #562155

svn path=/trunk/mcs/; revision=152143
2010-02-20 20:27:04 +00:00
Miguel de Icaza befdecc6a1 2010-02-12 Miguel de Icaza <[email protected]>
* XmlWriterSettings.cs: Expose NamespaceHandling in NET 4.0 

svn path=/trunk/mcs/; revision=151626
2010-02-12 16:16:59 +00:00
Atsushi Eno 12a17f7f10 2010-01-28 Atsushi Enomoto <[email protected]>
* XmlReaderBinarySupport.cs : eliminate possible extra buffer
	  storing of zeros. Fixed bug #543332.

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


svn path=/trunk/mcs/; revision=150347
2010-01-28 05:54:20 +00:00
Atsushi Eno e1cad400ae 2010-01-25 Atsushi Enomoto <[email protected]>
Parse float and TimeSpan max/min values correctly.
Patch by Tiaan Geldenhuys.

svn path=/trunk/mcs/; revision=150102
2010-01-25 05:08:29 +00:00
Atsushi Eno eb13491be6 2010-01-22 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : fix type check for optimal node creation.
	  Fixed bug #571336, #571226 and #572738.


svn path=/trunk/mcs/; revision=150041
2010-01-22 06:17:10 +00:00
Atsushi Eno e013411012 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : Do not ignore ticks which are less than a
	  millisecond. Remove trailing zeros for milliseconds and ticks.

	* XmlConvertTests.cs : add test for ToString(TimeSpan) with small
	  ticks.


svn path=/trunk/mcs/; revision=149618
2010-01-15 10:49:03 +00:00
Atsushi Eno 4079df7702 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : trim spaces when parsing TimeSpan.

	* XmlConvertTests.cs : add test for ToTimeSpan() with spaces.


svn path=/trunk/mcs/; revision=149617
2010-01-15 10:21:16 +00:00
Atsushi Eno 4678757465 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : shorten format string patterns.


svn path=/trunk/mcs/; revision=149612
2010-01-15 09:52:46 +00:00
Atsushi Eno a2eea4d7e5 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : DateTimeOffset parse is sloppy.

	* XmlConvertTests.cs : add test for ToDateTimeOffset() with date
	  string with spaces.


svn path=/trunk/mcs/; revision=149609
2010-01-15 08:58:42 +00:00
Atsushi Eno e48ffb5e67 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : handle Infinity and -Infinity here due to the
	  commented reason.


svn path=/trunk/mcs/; revision=149387
2010-01-12 08:54:06 +00:00
Atsushi Eno c16c7121b1 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToSingle(string) should do the same as ToDouble().

	* XmlConvertTests.cs : float parse should do the same. Fix NaN test.


svn path=/trunk/mcs/; revision=149386
2010-01-12 08:48:17 +00:00
Atsushi Eno 6d97ab5da5 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDouble(string) should handle NaN, INF and -INF
	  with whitespace allowed.

	* XmlConvertTests.cs : another double parse test for string with
	  spaces, for string constants such as NaN.


svn path=/trunk/mcs/; revision=149385
2010-01-12 08:38:04 +00:00
Atsushi Eno 91f7cf5926 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDouble(string) and ToIntXX(string) allows
	  whitespaces.

	* XUtil.cs : to create an XNode from an object, do not use ToString()
	  directly. Handle TimeSpan in xsd manner.


svn path=/trunk/mcs/; revision=149382
2010-01-12 07:40:31 +00:00
Atsushi Eno 74a5119351 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToString(DateTimeOffset) does not emit extra
	  fraction numbers.


svn path=/trunk/mcs/; revision=149377
2010-01-12 06:46:38 +00:00
Atsushi Eno e73ff21907 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : fix some cosmetic compatibility bugs:
	  ArgumentException -> FormatException.


svn path=/trunk/mcs/; revision=149375
2010-01-12 05:43:23 +00:00
Atsushi Eno e703e2593c 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : handle a corner case for empty string handling 
	  difference between XmlTextWriter and XmlWriter.Create().

	* XmlWriterTests.cs : added a corner case test for empty string handling
	  difference between XmlTextWriter and XmlWriter.Create().


svn path=/trunk/mcs/; revision=149368
2010-01-12 03:07:59 +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 3e8c163580 2009-11-17 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : fix DateTimeOffset roundtrip by giving format
	  strings in refined order. Patch by Santa Marta, at:
	  http://irc.gimite.net/channel/mono-jp/archive/20091105
	  ( http://smdn.invisiblefulmoon.net/misc/forum/programming/#n10 )

	* XmlConvertTests.cs : add test for DateTimeOffset roundtrip.


svn path=/trunk/mcs/; revision=146324
2009-11-17 08:48:40 +00:00
Andreia Gaita 3353c5052a * XmlNamespaceManager.cs: XmlReader.Read calls LookupNamespace via
the internal sig, which skips any overrides that might exist on
subclasses, so redirect all calls to the public call to make sure
all overrides are called as well.
Make AddNamespace, HasNamespace and RemoveNamespace private.

svn path=/trunk/mcs/; revision=146174
2009-11-13 19:32:43 +00:00
Atsushi Eno 2b68d146fa 2009-11-11 Atsushi Enomoto <[email protected]>
* XmlDocument.cs, XmlElement.cs, XmlAttribute.cs,
	  XmlAttributeCollection.cs :
	  when CreateElement() and/or CreateAttribute() are overriden,
	  use overriden method. Otherwise, use internal optimal ones.
	  Fixed bug #549839.


svn path=/trunk/mcs/; revision=145920
2009-11-11 04:27:02 +00:00
Atsushi Eno e9f0b186ac 2009-11-11 Atsushi Enomoto <[email protected]>
* XmlNodeReaderImpl.cs : when the reader is at attribute value,
	  MoveToNextAttribute() incorrectly moved to the first attribute.
	  Fixed bug #550379.

	* XmlNodeReaderTests.cs : added test for bug #550379.


svn path=/trunk/mcs/; revision=145910
2009-11-11 02:41:28 +00:00
Andreia Gaita 45aaadc71d * XmlConvert.cs: make ToUri static, fixes #548918 (moon)
2009-10-23  Andreia Gaita  <[email protected]>

svn path=/trunk/mcs/; revision=144712
2009-10-23 04:11:19 +00:00
Atsushi Eno aa2dc8a038 2009-10-05 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : fix wrong ToDateTimeOffset loop, based on the
	  patch by David Mitchell.


svn path=/trunk/mcs/; revision=143367
2009-10-05 05:35:35 +00:00
Atsushi Eno 361af0a399 2009-09-15 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : removed duplicate ID attribute check
	  here as this behavior not specifically defined by W3C DOM Level 2
	  specification. Fixed bug #508296.

	* XmlAttributeCollectionTests.cs : add test for bug #508296 by
	  Tom Hindle.


svn path=/trunk/mcs/; revision=141952
2009-09-15 12:40:28 +00:00
Atsushi Eno 6d0574134d 2009-08-21 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : there still was use of bogus
	  XmlParserContext.NameTable.

	* XmlTextReaderTests.cs : added test for null nametable in parser
	  context.


svn path=/trunk/mcs/; revision=140397
2009-08-21 03:45:06 +00:00
Atsushi Eno 62f25871a3 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed
	  as long as the URI is correct. Fixed bug #514015.

	* XmlNamespaceManagerTests.cs : add test for bug #514015.


svn path=/trunk/mcs/; revision=138396
2009-07-22 12:33:56 +00:00
Atsushi Eno ca5cc074aa 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : cosmetic exception type change. Patch by
	  Hib Eris. Fixed bug #523971.

	* XmlTextReaderTests.cs : added test for bug #523971 by Hib Eris.


svn path=/trunk/mcs/; revision=138369
2009-07-22 08:38:04 +00:00
Sebastien Pouliot 86ae882387 2009-05-27 Sebastien Pouliot <[email protected]>
* XmlReaderSettings.cs: Set prohibitDtd when changing the value 
	of DtdProcessing. Will fix a few Moonlight DRT tests


svn path=/trunk/mcs/; revision=134827
2009-05-27 11:43:29 +00:00
Atsushi Eno 1716177eb5 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : no reason not to report invalid input string for
	  ToGuid().


svn path=/trunk/mcs/; revision=134369
2009-05-19 06:25:43 +00:00
Sebastien Pouliot cc6d045346 In Test/System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]> 

	* XmlReaderCommonTests.cs: Add test case for an empty string url

In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>  

	* XmlTextReader.cs (InitializeContext): Under NET_2_1 do not give
	a second change	using Path.GetFullPath. (GetStreamFromUrl) Add
	extra validations that would be missed in NET_2_1


svn path=/trunk/mcs/; revision=132856
2009-04-28 15:55:19 +00:00
Sebastien Pouliot 42f2df1f80 2009-04-28 Sebastien Pouliot <[email protected]>
* XmlReaderSettings.cs: Add MaxCharactersInDocument property for 
	NET_2_1 profile
	* XmlUrlResolver.cs: Cleanup #ifdef NET_2_1 inside this file 
	since this is not used anymore in Moonlight


svn path=/trunk/mcs/; revision=132855
2009-04-28 15:49:07 +00:00
Sebastien Pouliot 8d388ec068 In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]> 

	* XmlXapResolver.cs: Remove dependency on XmlUrlResolver. Small 
	fixes wrt new unit tests (inside moon-unit).

In .:
2009-04-28  Sebastien Pouliot  <[email protected]> 

	* net_2_1_raw_System.Xml.dll.sources: Remove XmlUrlResolver.cs 
	and the associated [SecuritySafeCritical] that it required


svn path=/trunk/mcs/; revision=132852
2009-04-28 15:36:50 +00:00
Sebastien Pouliot 31751dd12a In Test/System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* XmlResolverTest.cs: New. Unit tests for base features.

In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
	method for NET_2_1 profile.

In .:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* System.Xml_test.dll.sources: Add System.Xml/XmlResolverTest.cs to
	the unit tests


svn path=/trunk/mcs/; revision=132851
2009-04-28 15:23:37 +00:00
Atsushi Eno 0e439d038d 2009-04-22 Atsushi Enomoto <[email protected]>
* XmlQualifiedName.cs : added Parse() overload that is used for
	  xsd validation.

	* XmlSchemaValidator.cs, BuiltInDatatype.cs, XmlAtomicValue.cs:
	  use xsd-supported version of XmlQualifiedName.Parse().
	  Fixed bug #496205.


svn path=/trunk/mcs/; revision=132347
2009-04-22 05:43:28 +00:00
Atsushi Eno 6ffb2498cf 2009-04-22 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : when the node to be inserted has owner
	  element _but_ is identical to that of this collection, do not
	  reject it to raise an error. Fixed bug #496022.

	* XmlAttributeCollectionTests.cs : added test for bug #496022.


svn path=/trunk/mcs/; revision=132344
2009-04-22 04:46:09 +00:00
Geoff Norton a2c3e1f406 2009-03-25 Geoff Norton <[email protected]>
* XmlTextReader.cs: Create the uri as relativeorabsolute.

svn path=/trunk/mcs/; revision=130268
2009-03-26 02:54:01 +00:00