Commit Graph
83 Commits
Author SHA1 Message Date
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 8752d92528 Kill MOONLIGHT from System.Xml. 2013-02-11 16:03:40 -05:00
Marek Safar 5b82f0e08c Clean up some NET_2_0 2012-06-14 15:44:35 +01:00
Martin Baulig 4c8278ed3b Add .NET 4.5 async methods to XmlReader and XmlWriter. 2012-06-03 04:02:28 +02:00
Martin Baulig 7d170f400d Sync parameter names with .NET. 2012-06-03 04:02:28 +02:00
Sebastien Pouliot a929787f0a Small adjustments needed for Profile[1-4] of the Portable Class Libraries. 2012-05-09 14:36:21 -04:00
Atsushi Eno 8bb3e10851 XmlWriterSettings could be null. 2010-08-28 01:47:57 +09:00
Atsushi Eno ba91a20909 support Uri in WriteValue(). 2010-08-06 21:59:27 +09: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
Jb Evain 846150badd use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153673
2010-03-16 12:31:23 +00:00
Jb Evain 561bf6b6b2 bring a net_2_0 feature set to monotouch
svn path=/trunk/mcs/; revision=140606
2009-08-25 10:18:20 +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 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 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 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
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
Atsushi Eno 983e7a1263 2006-11-20 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : fixed some relationship between
	  ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
	  See new tests more details.
	* XmlWriter.cs : it could reuse XmlTextWriter.ctor(TextWriter,
	  XmlWriterSettings). It also resulted in dropping several internal
	  members in XmlTextWriter.

	* XmlWriterSettingsTests.cs : added tests for relationship between
	  ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().


svn path=/trunk/mcs/; revision=68180
2006-11-20 09:39:58 +00:00
Atsushi Eno 1d3440fc5d sanitizing MonoTODOs.
svn path=/trunk/mcs/; revision=67899
2006-11-15 11:31:25 +00:00
Atsushi Eno 5bcb1c6d8d 2006-04-10 Atsushi Enomoto <[email protected]>
* XPathNavigatorCommonTests.cs : added test for bug #78067.
	* XPathNavigatorReaderTests.cs : ditto, for ReadSubtree() part.

	* XPathNavigatorReader.cs : Read() did not compute Depth correctly.
	  It caused bug #78067.

	* XPathNavigator.cs : get_OuterXml() returns indented output, without
	  XML declaration.

	* XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
	  and root nodes instead of dispatching to ReadSubtree().


svn path=/trunk/mcs/; revision=59286
2006-04-10 09:37:41 +00:00
Atsushi Eno ac928fb2a9 2006-04-05 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : Create(StringBuilder,XmlWriterSettings) was missing
	  settings argument to pass another .ctor().
	* XmlWriterSettings.cs : set_NewLineChars() should reject null.

	* XmlWriterSettingsTest.cs : added tests on set_Encoding(),
	  set_NewLineChars() and OmitXmlDeclaration.


svn path=/trunk/mcs/; revision=59061
2006-04-05 13:36:56 +00:00
Atsushi Eno 3dbaff91f4 2006-02-14 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : (WriteElementString and WriteAttributeString)
	  Skip empty string output.


svn path=/trunk/mcs/; revision=56844
2006-02-14 04:17:29 +00:00
Atsushi Eno e2440ce8e1 2006-01-30 Atsushi Enomoto <[email protected]>
* XmlNodeReader2.cs XmlException.cs XmlReader.cs XmlTextReader.cs
	  XmlWriter.cs XmlTextWriter.cs XmlValidatingReader.cs
	  XmlNodeReaderImpl.cs DTDValidatingReader.cs XmlSecureResolver.cs:
	  cleaning up obsolete NET_1_0 code.


svn path=/trunk/mcs/; revision=56239
2006-01-30 08:10:05 +00:00
Atsushi Eno 69c5728b60 2006-01-26 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : Dispose() is protected.

	* XmlSchemaValidationException.cs : fixed .ctor() signatures.

	* XPathNavigator.cs : fixed IsNode signature found by updated
	  corcompare.


svn path=/trunk/mcs/; revision=56048
2006-01-25 15:36:37 +00:00
Atsushi Eno d2efba1d17 2006-01-12 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
	  ArgumentException in WriteNmTokenInternal().

	* XmlTextWriterTests.cs : re-enabled WriteNmToken_InvalidChars().


svn path=/trunk/mcs/; revision=55415
2006-01-12 05:04:09 +00:00
Atsushi Eno d364a58d86 2006-01-06 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
	  ReadSubtree() for non-element content since they are not allowed
	  in ReadSubtree() (but allowed here).

	* XPathNavigator.cs : use WriteNode(XPathNavigator, bool)
	  rather than WriteNode(XmlWriter, bool) in WriteSubtree().

	* XmlWriterTests.cs : added tests for WriteNode(XPathNavigator, bool)
	  as well as XPathNavigator.WriteSubtree(XmlWriter).


svn path=/trunk/mcs/; revision=55143
2006-01-06 11:56:08 +00:00
Atsushi Eno 0dbee9dd3a 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : added CanReadBinaryContent.
	* XmlTextReader.cs, XmlTextReader2.cs : GetNamespacesInScope() are
	  now both public and private (i.e. hush IsVirtual).
	* XmlWriterSettings.cs, XmlWriter.cs, XmlTextWriter.cs :
	  NormalizeNewLines vanished.

	* XmlWriterSettingsTests.cs : NormalizeNewLines does not exist anymore


svn path=/trunk/mcs/; revision=52876
2005-11-10 18:12:16 +00:00
Atsushi Eno a7a4be34df 2005-11-07 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : XmlReader.ReadTypedValue() does not exist 
	  anymore, so it is not override.

	* XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
	* XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
	  ReadTypedValue() is removed.
	* XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
	* XmlWriter.cs : Settings is virtual.

	* XPathNodeIterator.cs : added [DebuggerDisplay]. pretty useless tho.
	* XPathNavigator.cs : [DebuggerDisplay] as well.
	  SelectSingleNode() and AppendChildElement() are now virtual.


svn path=/trunk/mcs/; revision=52637
2005-11-07 08:48:22 +00:00
Atsushi Eno a584d18d44 2005-10-03 Atsushi Enomoto <[email protected]>
* XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
	  added supprot for NormalizeNewLines.
	  NewLineOnAttributes is considered only when Indent is true.

	* XmlWriterSettingsTests.cs : test for NormalizeNewLines.


svn path=/trunk/mcs/; revision=51109
2005-10-03 09:35:02 +00:00
Atsushi Eno 8b5cdb6619 2005-09-21 Atsushi Enomoto <[email protected]>
* Makefile : shut down CS0642 noise.
	* System.Xml.dll.sources : added XmlOutputMethod.

	* XmlOutputMethod.cs : new file.
	* XmlWriter.cs, XmlValidatingReader.cs, XmlReaderSettings.cs,
	  XmlUrlResolver.cs, XmlWriterSettings.cs :
	  more NET_2_0 updates.


svn path=/trunk/mcs/; revision=50353
2005-09-21 03:35:52 +00:00
Atsushi Eno 62460b3c62 2005-06-27 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : added Create(XmlWriter).
	* XmlValidatingReader.cs : added Read*AsBase64/BinHex().
	* XmlReaderSettings.cs : added obsolete annoyances to hush corcompare.


svn path=/trunk/mcs/; revision=46537
2005-06-27 08:33:39 +00:00
Atsushi Eno 459db72717 2005-05-09 Atsushi Enomoto <[email protected]>
* XmlReader.cs : added ReadElementContentAsLong().
	* XmlWriter.cs : removed some obsolete WriteValue() overloads.
	* XmlResolver.cs,
	  IXmlNamespaceResolver.cs : removed deprecated 2.0 bits.
	* XQueryConvert.cs : obsolete (yeah, now XQuery should be hidden).


svn path=/trunk/mcs/; revision=44239
2005-05-09 05:26:33 +00:00
Atsushi Eno c8d5ac5a2d 2005-03-24 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : WriteQualifiedName() should check namespace validity
	  (whether it is in scope or not).
	* XmlTextWriter.cs : When WriteQualifiedName() is invoked inside
	  attribute and no matching namespace declaration, create prefix
	  on demand. Code reused from WriteStartAttribute().

	* XmlTextWriterTests.cs : added more tests on WriteQualifiedName().


svn path=/trunk/mcs/; revision=42189
2005-03-24 05:59:50 +00:00
Atsushi Eno 1b3a8330dd 2004-12-06 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
	  ns is null, and don't lookup prefix for empty namespace.



svn path=/trunk/mcs/; revision=37185
2004-12-06 11:15:11 +00:00
Atsushi Eno 866dca5fdd 2004-11-14 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : after WriteAttributes(), argument XmlReader must
	  move to element. This fixes bug #69350.


svn path=/trunk/mcs/; revision=36102
2004-11-14 05:39:35 +00:00
Atsushi Eno b248901394 2004-10-29 Atsushi Enomoto <[email protected]>
* XmlDocument.cs, XmlNodeReader.cs, XmlTextReader.cs,
	  XmlValidatingReader.cs : Those readers could just implement internal
	  interface IHasXmlParserContext.
	* XmlTextReader.cs, XmlValidatingReader.cs : this[] disappeared in 2.0.
	  (XmlReader has them as virtual.)
	* XmlReader.cs : ReadAsObject() disappeared.
	* XmlWriter.cs : WriteFromObject() disappeared.

svn path=/trunk/mcs/; revision=35417
2004-10-29 01:20:48 +00:00
Atsushi Eno eb0e3a755b 2004-10-14 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : CreateTextWriter() is private.

svn path=/trunk/mcs/; revision=35000
2004-10-14 15:30:41 +00:00
Atsushi Eno a252366b96 2004-10-04 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : WriteNode(XPathNavigator,bool) should check null arg.
	  For attribute nodes, it should not use WriteSubtree() which does not
	  support attribute nodes.

svn path=/trunk/mcs/; revision=34690
2004-10-04 21:59:19 +00:00
Atsushi Eno 616dba98f5 2004-09-08 Atsushi Enomoto <[email protected]>
* XmlWriter.cs, XmlTextWriter.cs, XmlWriterSettings.cs :
	  Implemented CheckCharacters and CloseOutput support.

svn path=/trunk/mcs/; revision=33563
2004-09-08 08:41:30 +00:00
Atsushi Eno e95a1ed5dd 2004-09-08 Atsushi Enomoto <[email protected]>
* XmlReader.cs : evidence is always provided.
	* XmlWriter.cs, XmlTextWriter.cs :
	  added support for ConformanceLevel and OmitXmlDeclaration.

svn path=/trunk/mcs/; revision=33558
2004-09-08 05:49:24 +00:00
Atsushi Eno cd663617ec 2004-09-08 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Console.WriteLine() injected :(
	* XmlTextWriter.cs : It it partly supports XmlWriterSettings.
	* XmlWriter.cs : implemented Create().
	* XmlWriterSettings.cs : removed EncodeXmlBinary (deprecated).

svn path=/trunk/mcs/; revision=33554
2004-09-08 05:11:19 +00:00
Atsushi Eno c0623bd2ef 2004-09-06 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : on reader.NodeType is None, WriteNode() still tries
	  to read more (and might result in an error).

svn path=/trunk/mcs/; revision=33420
2004-09-06 16:47:26 +00:00
Atsushi Eno fd301fc3b0 2004-08-30 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : implemented WriteValue(object) for known types.

svn path=/trunk/mcs/; revision=33010
2004-08-30 01:38:36 +00:00
Atsushi Eno e173cfb357 2004-08-23 Atsushi Enomoto <[email protected]>
* XmlReader.cs, XmlTextReader.cs, XmlWriter.cs :
	  eliminate MS.Internal.Xml.* classes.

svn path=/trunk/mcs/; revision=32702
2004-08-23 15:03:43 +00:00
Atsushi Eno 1331b09b01 2004-08-03 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : implemented settings-less Create().
	* XmlWriterSettings.cs : added some comments.

svn path=/trunk/mcs/; revision=31781
2004-08-03 06:49:58 +00:00
Atsushi Eno f6d978f6f4 2004-07-29 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : implemented WriteNode(XPathNavigator, bool)
	  incompletely, using XPathNavigator.ReadSubtree().

svn path=/trunk/mcs/; revision=31611
2004-07-29 15:22:25 +00:00
Atsushi Eno e186f33ef2 2004-07-28 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : Added new WriteStartAttribute(string).

svn path=/trunk/mcs/; revision=31551
2004-07-28 11:53:56 +00:00
Atsushi Eno 2d70b54516 2004-07-28 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : Added 2.0 VerifyNMTOKEN() and internal WriteBinHex().
	* XmlQualifiedName.cs : Added internal static Parse().
	* XmlReader.cs : use XmlQualifiedName.Parse().
	* XmlTextWriter.cs : use new XmlWriter.WriteNameInternal() etc.
	* XmlWriter.cs : Added 2.0 Settings and WriteFromObject().
	  Implemented 2.0 virtual methods that used to be abstract in 1.x.

svn path=/trunk/mcs/; revision=31540
2004-07-28 09:10:34 +00:00
Atsushi Eno 94832930cf 2004-07-26 Atsushi Enomoto <[email protected]>
* XmlReader.cs : Implemented ReadValueAsXxx() except for
	  ReadValueAsList().
	* XmlTextReader.cs : implemented them as well, just invoking
	  base.ReadValueAsXxx ().
	* XmlWriter.cs : implemented some WriteValue() methods.

svn path=/trunk/mcs/; revision=31468
2004-07-26 13:59:43 +00:00