Commit Graph
1035 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier 795b8cb0d9 Delay initialization of the stream until first read
This way uri-based resources are not fetched before they are supposed
	to.

	Fixes Xamarin bug #762.
2011-09-13 01:22:39 -04:00
Atsushi Eno 106e52d9ec Allow DocumentType in ImportNode().
http://lists.ximian.com/pipermail/mono-devel-list/2011-May/037575.html
2011-05-19 13:15:46 +09:00
Atsushi Eno 88c6254f34 Extend supported XmlDateTimeSerialization formats. Fixed bug #690475. 2011-04-28 17:35:38 +09:00
Atsushi Eno a84476bb6d auto-detect UTF16-LE too. 2011-04-06 20:20:07 +09:00
Rolf Bjarne Kvinge f64261401d Fix many corcompare issues for moonlight 2011-03-31 16:05:03 +02:00
Atsushi Eno f59aed0bd7 Nowadays, XmlDeclaratoin.WriteTo() writes PI instead of raw.
This resulted in invalid output to JsonWriter (via JsonReaderWriterFactory).
2011-03-26 19:13:47 +09:00
Atsushi Eno a932622943 Complete previous XmlNodeList revert to get it working again. 2011-03-17 10:00:42 +09:00
Atsushi Eno 60343749d8 Revert XPathNodeIteratorNodeListIterator2-based iterator.
Fixed #679425, but it may regress since no test case is provided.
2011-03-16 16:40:48 +09:00
Geoff Norton 98f4834a34 Fix the mobile build 2011-03-14 16:11:42 -04:00
Atsushi Eno 208fdd9a47 Enable DTD attdecl processing in mobile profile. 2011-03-15 00:44:43 +09:00
Atsushi Eno e94b0eb15f Result-preserving node list while not performance-harmful until node removal.
Node removal while iterating should be prohibited as documented in MSDN though.
2011-03-10 22:40:44 +09:00
Atsushi Eno 7c23f96f71 Auto detect BOM-less utf-16 and utf-32. Fixed bug #674580. 2011-03-09 15:56:16 +09:00
Atsushi Eno 5dc4ecd8e8 Remove wrong buffer size check in XmlTextReader.ReadChrs(). 2011-03-08 15:26:51 +09:00
Atsushi Eno 38c9b6b53a XmlReader.ReadToNextSibling() saved wrong Depth and failed to proceed.
Fixed bug #676020.
2011-03-08 00:47:41 +09:00
Marek Safar a352bb2f72 moonlight build fix 2011-02-07 17:19:41 +00:00
Marek Habersack cd72a7bcb5 [xml] XmlReaderSettings.{DtdProcessing,MaxCharactersFromEntities,MaxCharactersInDocument} are present in 3.5+
With the exception of DtdProcessing, the properties are part of .NET 3.5+. DtdProcessing appeared in 4.0.
2011-02-03 17:40:00 +01:00
Atsushi Eno 9021910845 Do not return DocumentFragment from AppendChild() etc. Fixed bug #666249. 2011-01-31 13:27:46 +09:00
Geoff Norton 16d4fd790b Further .NET 4.0 ification of the mobile profile 2011-01-25 20:10:54 -05:00
Marek Habersack ec3fd3ea70 [xml] Out of range errors should be swallowed when doing string -> datetime conversion 2011-01-06 10:37:49 +01:00
Atsushi Eno 8fd76fb60d Fix ToDateTime() with serialization mode to not mess hour based on timezone.
Fixed bug #661787.
2011-01-05 17:00:58 +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 f166d738ba Do not add 'zzz' to all DateTime formats blindly. Fixed bug #655089. 2010-11-26 14:36:31 +09:00
Andreia Gaita ba36a57d91 [Xml] duh, don't hide the stacktrace 2010-11-12 16:55:54 +00:00
Andreia Gaita 773b544db0 [Xml] Check if the underlying writer supports LookupPrefix and return empty
instead of blowing up.
2010-11-12 16:07:51 +00:00
Andreia Gaita 972005a311 [Xml] Only call Close on the base Writer if it hasn't been closed yet. Fixes #651647
The serialization classes provided by the SL toolkit
(System.Runtime.Serialization.dll) don't like having Close called more than
once, so it seems that they don't check their own state and we have to do it
to avoid making repeated Close calls.
2010-11-09 18:02:27 +00:00
Andreia Gaita ef80c566af [Xml] Fix GetAttribute to handle null namespaces properly, add unit test. 2010-10-27 19:33:56 +01:00
Atsushi Eno adf9e99a21 XmlDocument.InnerText is overriden to explicitly throw IOE in 4.0. 2010-10-18 21:04:02 +09:00
Jb Evain 0253e041a7 Enable the System.Xml build for monodroid 2010-09-08 18:48:29 +02:00
Atsushi Eno 140dd51ff4 Allow empty element in ReadElementContent*() e.g. for empty list. 2010-09-01 23:56:57 +09:00
Atsushi Eno 6eb3340e2b Uri was also not supported in Read*ContentAs(). 2010-08-30 22:26:03 +09:00
Atsushi Eno ebeab788ab Add TimeSpan support in Read*ContentAs() methods. 2010-08-30 18:41:57 +09:00
Atsushi Eno 8bb3e10851 XmlWriterSettings could be null. 2010-08-28 01:47:57 +09:00
atsushieno c7d49e94be Parse list type, and parse QName without prefix, as expected. 2010-08-09 17:43:40 +09:00
Atsushi Eno ba91a20909 support Uri in WriteValue(). 2010-08-06 21:59:27 +09:00
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