Commit Graph
926 Commits
Author SHA1 Message Date
Atsushi Eno aa2607300a 2009-01-20 Atsushi Enomoto <[email protected]>
* XmlReaderBinarySupport.cs : do not hang in the middle of reading
	  byte chunk at some node types. Fixed bug #464229.

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


svn path=/trunk/mcs/; revision=123866
2009-01-20 10:35:44 +00:00
Sebastien Pouliot 25c6f1460f 2009-01-14 Sebastien Pouliot <[email protected]>
* NamespaceHandling.cs: New. Enum for Silverlight 2. Microsoft's 
	System.Xml.Linq.dll (often bundled in XAP files) needs it (or we 
	throw a TypeLoadException).
	* XmlWriterSettings.cs: Add SL2 specific NamespaceHandling property


svn path=/trunk/mcs/; revision=123372
2009-01-14 16:37:56 +00:00
Atsushi Eno b9326e77b1 2009-01-08 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadContentAsString() does not reject non-elements.
	  ReadElementContentAsString() rejects non-content nodes.

	* XmlReaderCommonTests.cs : added test for ReadContentAsString()
	  and ReadElementContentAsString() against certain node types.


svn path=/trunk/mcs/; revision=122737
2009-01-08 02:39:23 +00:00
Atsushi Eno 27e2330f5b 2008-12-19 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : namespace lookup failed for non-atomic
	  string in 1.1 profile. Fixed 1.0 part of #379139.


svn path=/trunk/mcs/; revision=121834
2008-12-19 08:18:02 +00:00
Atsushi Eno f50d8f786c 2008-12-18 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : remove unused file.


svn path=/trunk/mcs/; revision=121833
2008-12-19 05:49:37 +00:00
Atsushi Eno e30d02ad83 merge XPath optimization branch. About 15% faster/less memory use so
far.


svn path=/trunk/mcs/; revision=118710
2008-11-13 13:05:44 +00:00
Atsushi Eno 4a85110092 2008-11-04 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : simply call ClearValueBuffer() on each Read().


svn path=/trunk/mcs/; revision=117838
2008-11-04 02:25:08 +00:00
Atsushi Eno b72c134a48 2008-09-24 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : it returns non-null Schemas by default (and
	  returns non-empty set after being set null).


svn path=/trunk/mcs/; revision=113958
2008-09-24 13:49:20 +00:00
Atsushi Eno a3f31057d1 2008-09-17 Atsushi Enomoto <[email protected]>
* SubtreeXmlReader.cs : Close() should correctly skip empty element.
	  In Read(), make sure to move from Element state.

	* XmlReader.cs : detailed error location in ReadSubtree().

	* XmlReaderCommonTests.cs : another Subtree+EmptyElement case.


svn path=/trunk/mcs/; revision=113339
2008-09-17 17:50:18 +00:00
Atsushi Eno b3d04b7317 2008-09-17 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadSubtree() is valid only on an element.

	* XmlReaderCommonTests.cs :
	  added test for ReadSubtree() on non-element.


svn path=/trunk/mcs/; revision=113304
2008-09-17 13:04:56 +00:00
Atsushi Eno 57b933955b 2008-09-10 Atsushi Enomoto <[email protected]>
* XmlDocument.cs, XmlDocumentNavigator.cs :
          reduce navigator fields.


svn path=/trunk/mcs/; revision=112645
2008-09-10 08:24:55 +00:00
Marek Safar 2be4aa8ed9 Warnings cleanup
svn path=/trunk/mcs/; revision=111842
2008-08-28 17:11:51 +00:00
Marek Safar 95a6e77b85 Warnings cleanup
svn path=/trunk/mcs/; revision=111839
2008-08-28 16:53:31 +00:00
Stephane Delcroix 384e23d8f4 embed DtdProcessing in a #if NET_2_1
svn path=/trunk/mcs/; revision=111270
2008-08-21 15:29:16 +00:00
Stephane Delcroix a1c9e22c7d re-enable ResolveEntity in XmlReader and derived classes
svn path=/trunk/mcs/; revision=111269
2008-08-21 15:25:09 +00:00
Stephane Delcroix 973ea97002 adding DtdProcessing and MaxCharactersFromEntities properties for 2.1
svn path=/trunk/mcs/; revision=111268
2008-08-21 15:25:02 +00:00
Stephane Delcroix 398c7c902f new DtdProcessing enum for the 2.1 profile
svn path=/trunk/mcs/; revision=111243
2008-08-21 09:38:10 +00:00
Jb Evain 344b9a67c0 2008-08-05 Jb Evain <[email protected]>
* XmlConvert.cs (ToChar): add a specific SL2 version.


svn path=/trunk/mcs/; revision=109658
2008-08-05 10:37:12 +00:00
Jb Evain 65778b3d58 use sl compatible hack
svn path=/trunk/mcs/; revision=109657
2008-08-05 10:11:25 +00:00
Jb Evain 799d8f9653 use SL friendly Parse methods
svn path=/trunk/mcs/; revision=109575
2008-08-04 14:34:15 +00:00
Jb Evain 3169092e8d workaround bootstrap-smcs issue
svn path=/trunk/mcs/; revision=109566
2008-08-04 14:08:10 +00:00
Atsushi Eno 7889d76d13 2008-07-28 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : check null arg.
	* XmlTextReader.cs : fixed bug #412657; now we populate nametable
	  and namespace manager in case they are null in parser context, and
	  use them instead of the members in the parser context.

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


svn path=/trunk/mcs/; revision=109049
2008-07-28 16:40:11 +00:00
Atsushi Eno a4075531b5 2008-06-11 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : fixed bug #397934. Utc mode accepts more formats.

	* XmlConvertTests.cs : added test for bug #397934


svn path=/trunk/mcs/; revision=105562
2008-06-11 11:27:45 +00:00
Atsushi Eno 20aff136fb 2008-06-11 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : no need for TARGET_JVM.

	* XmlConvertTests.cs : no need for TARGET_JVM. Fix wrong comparison.


svn path=/trunk/mcs/; revision=105558
2008-06-11 10:57:03 +00:00
Atsushi Eno 0f244de298 2008-06-09 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : when Normalized is true, '<' after \r which
	  comes after text node was incorrectly consumed as a text content.
	  Fixed bug #398374.

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


svn path=/trunk/mcs/; revision=105288
2008-06-09 09:03:08 +00:00
Atsushi Eno 3ef5ecc28d 2008-06-05 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : now we can use roundtrip format for float/double.
	  Fixed bug #320424.

	* XmlConvertTests.cs : added test for bug #320424.


svn path=/trunk/mcs/; revision=104961
2008-06-05 07:55:34 +00:00
Atsushi Eno b4c814a17c 2008-06-04 Atsushi Enomoto <[email protected]>
* DTMXPathDocumentBuilder2.cs : fixed bug #378239.cs. Merge
	  sequential text nodes in correct way, say, whitespace entities
	  inside text should be merged (while they should be discarded around
	  CDATA).

	* XmlTextReader2.cs : added FIXME comment which won't fix, that
	  I have noticed during fixing bug #378239.

	* XslTransformTests.cs : added test for bug #378239.


svn path=/trunk/mcs/; revision=104923
2008-06-04 20:06:44 +00:00
Atsushi Eno 4c58cdb97c 2008-05-22 Atsushi Enomoto <[email protected]>
* XmlReader.cs : some Create() overloads with baseUri argument did
	  not set baseUri correctly. Fixed bug #392385.

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


svn path=/trunk/mcs/; revision=103763
2008-05-22 07:29:51 +00:00
Atsushi Eno ac161ee6eb 2008-05-07 Atsushi Enomoto <[email protected]>
* XmlReader.cs : force CloseInput to every XmlReader that is created
	  from url (I mean, every internal XmlReader instance).

	* XmlFilterReader.cs : clone settings so that it does not depend on
	  inconsistent settings after creation. Fixed bug #385638.

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


svn path=/trunk/mcs/; revision=102702
2008-05-07 08:34:57 +00:00
Atsushi Eno 680bfdbdee 2008-04-17 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : check attribute identity only if the
	  source node is in the document tree. Fixed bug #380720.

	* XmlElementTests.cs : added test for bug #380720.
	* XmlAttributeTests.cs : numbered some assertions.


svn path=/trunk/mcs/; revision=101019
2008-04-17 16:02:53 +00:00
Roei Erez 9526d33973 fix xml convert regarding roundtrip formatting
svn path=/trunk/mcs/; revision=96776
2008-02-27 14:46:20 +00:00
Atsushi Eno caea8c9e44 2008-02-19 Atsushi Enomoto <[email protected]>
* XmlParserContext.cs : .net does not populate XmlNamespaceManager
	  automatically.
	* XmlDocument.cs : so, always create one here.

	* XmlParserContextTests.cs : they are working. case #3 should not
	  try to parse broken internalSubset (we do not allow broken
	  intsubset and it is almost no worthy of assuring only-nominal
	  .net compat that such broken internalSubset should be allowed).


svn path=/trunk/mcs/; revision=96116
2008-02-19 05:33:38 +00:00
Atsushi Eno d8ad395849 2008-01-25 Atsushi Enomoto <[email protected]>
* XmlReader.cs : MoveToNextSibling() should check EOF (as Skip() does
	  not). Fixed bug #347768.

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


svn path=/trunk/mcs/; revision=93873
2008-01-25 03:47:12 +00:00
Atsushi Eno 4e8f715a16 2008-01-15 Atsushi Enomoto <[email protected]>
* XmlParserContext.cs : do not pass invalid URI to XmlTextReader#ctor
	  even as a dummy. Fixed bug #353654.


svn path=/trunk/mcs/; revision=92935
2008-01-15 10:28:04 +00:00
Konstantin Triger e175c2c052 TARGET_JVM: make sure XmlDateTimeSerializationMode.Unspecified works
svn path=/trunk/mcs/; revision=92606
2008-01-10 17:56:47 +00:00
Noam Lampert 4608f9902b Allow compilation in Java
svn path=/trunk/mcs/; revision=91824
2007-12-23 10:43:31 +00:00
Atsushi Eno 9b1d414235 2007-12-17 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : added NET_3_5 members.


svn path=/trunk/mcs/; revision=91429
2007-12-17 10:39:16 +00:00
Atsushi Eno 3b434e9bea 2007-12-06 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : in net_2_0, use Uri.IsAbsoluteUri to filter
	  relative URIs out.

	* XmlUrlResolverTests.cs : fixed test; file://file.txt is to access
	  such a server whose (domain) name is "file.txt", which is actually
	  an absolute URI. Remove "regression" in the nunit test.


svn path=/trunk/mcs/; revision=90794
2007-12-06 06:32:05 +00:00
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