Atsushi Eno
976be34045
[xml] XmlTextReader: Value was wrong after ReadAttributeValue() on xml declaration.
2014-10-24 12:20:09 +08:00
Marek Safar
153d104c07
[system.xml] Make XmlSerializer work even when XmlTextReader has explicitly set its resolver
2014-10-05 17:58:02 -04:00
Marek Safar
58105a4dc6
[system.xml] Add missing 4.0 property
2014-10-05 15:44:55 -04:00
Alexander Köplinger
48e112d652
[Cleanup] Removed TARGET_JVM
...
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Marek Safar
cc90ac0be7
[system.xml] Dispose XmlReader using correct value. Fixes #21771
2014-08-03 19:10:45 +02:00
Atsushi Eno
3e6f644393
Fix bug #9541 by Bart Verthé - do not reset document schema when reading an element.
2014-04-24 12:26:01 +09:00
Miguel de Icaza
2cf74970a1
Merge pull request #835 from HorstKakuschke/master
...
Fixes Xamarin Bug 16742: XmlConvert.ToDateTime(string, XmlDateTimeSeria...
2014-02-12 15:24:11 -05:00
Marek Safar
9ba1566be6
[system.xml] Add more invalid argument checks
2014-02-11 16:50:13 +01:00
Marek Safar
a6e236b2d6
[system.xml] Support more primitive types in XmlReader::ReadContentAs
2014-02-10 23:10:58 +01:00
Horst Kakuschke
2ff1bf33aa
Fixes Xamarin Bug 16742: XmlConvert.ToDateTime(string, XmlDateTimeSerializationMode) throws index out of bounds exception
...
Fix for bug + added tests for method
XmlConvert.ToDateTime(string, XmlDateTimeSerializationMode)
2013-12-11 20:14:17 +01:00
Atsushi Eno
72d14cca36
Fix bug #12469 - add more conversion methods to XmlAtomicValue.
...
Since XmlAtomicValue is pretty much hidden in the implementation, there is
almost no way to verify how it should work. So the changes are all based on
assumption. Yet I added a test based on bug #12469 .
There is still problem on processing *invalid* inputs. They have to be
rejected, but they pass.
2013-08-07 18:54:03 +09:00
Atsushi Eno
439046726f
implement character validation methods in XmlConvert. Fix bug #11910 .
2013-08-06 14:38:14 +09:00
Martin Baulig
3fee2dd792
Trivial API additions.
2013-03-12 17:22:59 -04:00
Atsushi Eno
beefa7d320
Fix possible NRE caused by null XmlResolver settings.
2013-02-27 16:50:54 +09:00
Marek Safar
a98054a9f3
Fixes build
2013-02-25 21:53:46 +01:00
Rodrigo Kumpera
1b92a4148c
Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs.
2013-02-11 18:42:18 -05:00
Rodrigo Kumpera
f378e23a3f
Since NET_2_1 implies NET_4_* now, take this into account and simplify our ifdefs.
2013-02-11 18:41:51 -05:00
Rodrigo Kumpera
8752d92528
Kill MOONLIGHT from System.Xml.
2013-02-11 16:03:40 -05:00
Sergey Bogdanov
b6b26f5afd
- XmlConvert.ToString to TimeSpan incorrectly returns T suffix even if Time was not set (0h 0m 0s)
2012-08-08 15:13:20 +03:00
Marek Safar
5b82f0e08c
Clean up some NET_2_0
2012-06-14 15:44:35 +01:00
Marek Safar
d5d4b9c22b
Fix some warnings
2012-06-08 12:48:08 +01:00
Marek Safar
73c6db0665
Fix XmlReaderSettings::Clone
2012-06-06 14:59:07 +01:00
Marek Safar
9215ddf7ad
Make XmlWriterSettingsTests .net compatible
2012-06-06 14:52:01 +01:00
Marek Safar
6dff1f002e
Don't return void result
2012-06-06 14:28:16 +01:00
Martin Baulig
8b3b458b19
XmlResolver.GetEntityAsync().
...
* The default implementation throws NotImplementedException.
* Added nunit tests.
2012-06-06 02:51:44 +02:00
Martin Baulig
4c8278ed3b
Add .NET 4.5 async methods to XmlReader and XmlWriter.
2012-06-03 04:02:28 +02:00
Martin Baulig
78873611b2
More .NET 4.5 work.
2012-06-03 04:02:28 +02:00
Martin Baulig
7d170f400d
Sync parameter names with .NET.
2012-06-03 04:02:28 +02:00
Martin Baulig
efdd059bdd
Add .NET 4.5 async methods to XmlReader.
2012-06-02 21:53:22 +02:00
Miguel de Icaza
ae0feab435
Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported
2012-06-01 18:04:24 -04:00
Marek Safar
7b3f562eab
A fix for failing xml writer tests
2012-05-31 11:25:24 +01:00
Sebastien Pouliot
a929787f0a
Small adjustments needed for Profile[1-4] of the Portable Class Libraries.
2012-05-09 14:36:21 -04:00
Richard Kettlewell
b79b1ceaf5
Fix XmlTextWriter's use of NewLineHandling.
...
- Move the setting of newline_handling early enough that Initialize()
can see it.
- Reduce the set of characters that trigger the slow path for
attribute values for the NewLineHandling.None case.
- Rewrite the handling of \t, \r and \n to match the MS docs
(which match the observed behavior of their implementation)
- Add some tests.
2012-05-03 10:49:54 +01:00
Marek Safar
0f7de17e3f
Remove 1.1 only members with wrong profile check
2012-04-16 17:35:59 +01:00
Marek Safar
d365718f2b
Fix some API mismatch
2012-04-05 15:46:25 +01:00
Atsushi Eno
2927d27304
bugfix #3231 - when XmlWriterSettings specifies Indent, some WriteWhitespace() is ignored.
2012-03-08 22:42:10 +09:00
Atsushi Eno
82f61e9074
Fix bug 998 - in XmlResolver.ResolveUri(), make some policy change on "how to determine a string as an absolute URI.
...
It's a bit difficult decision, as the "relative URI" could be any path string
that contain colons as a *valid* path (especially on *nix land).
We historically did allow such string that contain "http:" etc. as to be
treated as absolute (which historically worked long time).
But this test case uncovered possible other cases.
Hopefully this does not bring issues that is pretty much anticipated. Such
issues could also happen in older code anyways.
2012-01-19 20:45:42 +09:00
Atsushi Eno
a890db1917
Fix bug #2956 : XmlReader.HasValue became virtual (from abstract) in .NET 4.
2012-01-19 18:52:36 +09:00
QuickJack
fd2ece8e63
Removes 2 warnings CS0168
2011-12-27 16:33:31 +01:00
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