Commit Graph
114 Commits
Author SHA1 Message Date
Marek Safar cc90ac0be7 [system.xml] Dispose XmlReader using correct value. Fixes #21771 2014-08-03 19:10:45 +02: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
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 6dff1f002e Don't return void result 2012-06-06 14:28:16 +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 78873611b2 More .NET 4.5 work. 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
Sebastien Pouliot a929787f0a Small adjustments needed for Profile[1-4] of the Portable Class Libraries. 2012-05-09 14:36:21 -04:00
Marek Safar d365718f2b Fix some API mismatch 2012-04-05 15:46:25 +01:00
Atsushi Eno a890db1917 Fix bug #2956: XmlReader.HasValue became virtual (from abstract) in .NET 4. 2012-01-19 18:52:36 +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
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
atsushieno c7d49e94be Parse list type, and parse QName without prefix, as expected. 2010-08-09 17:43:40 +09: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
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 87dcaba14c 2009-03-18 Atsushi Enomoto <[email protected]>
* XmlReader.cs : handle DateTimeOffset in typed reader methods.


svn path=/trunk/mcs/; revision=129672
2009-03-18 06:36:24 +00:00
Atsushi Eno c45153282b 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlReader.cs : (ReadToFollowing) check LocalName, not Name.
	  Fixed bug #478506.


svn path=/trunk/mcs/; revision=129474
2009-03-16 17:27:32 +00:00
Chris Toshok 53fd125cbe In System.Runtime.Serialization/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlBinaryDictionaryReader.cs, XmlSimpleDictionaryReader.cs: 2.1
	has HasValue.

In System.XML/System.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs,
	EntityResolvingXmlReader.cs: 2.1 has HasValue.


In System.XML/Mono.Xml:
2009-03-02  Chris Toshok  <[email protected]>

	* SubtreeXmlReader.cs, XmlFilterReader.cs: 2.1 has HasValue.

In System.Xml.Linq/System.Xml.Linq:
2009-03-02  Chris Toshok  <[email protected]>

	* XNodeReader.cs: 2.1 has HasValue.

In System.ServiceModel.Web/System.Runtime.Serialization.Json:
2009-03-02  Chris Toshok  <[email protected]>

	* JsonReader.cs: 2.1 has HasValue.


svn path=/trunk/mcs/; revision=128406
2009-03-03 00:44:33 +00:00
Atsushi Eno 2bf962aa2a 2009-02-27 Atsushi Enomoto <[email protected]>
* XmlReader.cs : do not try to read at non-readable state in
          MoveToContent().


svn path=/trunk/mcs/; revision=128185
2009-02-27 09:04:00 +00:00
Atsushi Eno 822b2e868a 2009-02-23 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadContentAsXxx() should not advance XmlReader
          when it is on attribute *value* text.


svn path=/trunk/mcs/; revision=127725
2009-02-23 10:56:37 +00:00
Geoff Norton b1c69b43b5 2009-02-19 Geoff Norton <[email protected]>
* *.cs: The tuner takes care of the visibility of this for us, and it
	is in fact needed. (Readd ReadAttributeValue to 2.1)

svn path=/trunk/mcs/; revision=127366
2009-02-19 05:15:28 +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 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
Marek Safar 95a6e77b85 Warnings cleanup
svn path=/trunk/mcs/; revision=111839
2008-08-28 16:53:31 +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
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 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 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 dc93e1e74b 2007-08-09 Atsushi Enomoto <[email protected]>
* XmlReader.cs : HasValue, ReadAttributeValue() and ResolveEntity()
	  do not exist in 2.1 profile. Hiding abstract stuff seems to cause
	  some issues at run time, so they are ifdef-ed out from 2.1.
	* XmlNodeReader2.cs DTDValidatingReader2.cs XmlTextReader.cs
	  XmlTextReader2.cs XmlNodeReaderImpl.cs DTDValidatingReader.cs
	  EntityResolvingXmlReader.cs : hence the change above.

	* SubtreeXmlReader.cs XmlFilterReader.cs : dependent changes due to
	  XmlReader.cs changes for 2.1 profile.


svn path=/trunk/mcs/; revision=83702
2007-08-09 03:37:04 +00:00
Atsushi Eno 44effe49e4 2007-07-11 Atsushi Enomoto <[email protected]>
* XmlReader.cs : looks like I introduced extra Settings check at
	  r69383. Fixed bug #82062.

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


svn path=/trunk/mcs/; revision=81785
2007-07-11 11:37:37 +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
Atsushi Eno aa42463723 2007-06-11 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : ReadStartElement() has bogus error message.


svn path=/trunk/mcs/; revision=79155
2007-06-11 08:43:53 +00:00
Atsushi Eno 22c1a62ad1 2007-04-25 Atsushi Enomoto <[email protected]>
* XmlReader.cs : fixed wrong depth comparison in ReadToNextSibling().
	  Fixed bug #81451, by Eric Mercier.

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


svn path=/trunk/mcs/; revision=76259
2007-04-25 16:02:28 +00:00
Atsushi Eno de8c3d5de0 2007-03-05 Atsushi Enomoto <[email protected]>
* XmlReader.cs : when Create() returns customized XmlTextReader, set
	  EntityHandling.ExpandEntities. Fixed bug #81000.

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


svn path=/trunk/mcs/; revision=73698
2007-03-05 05:50:41 +00:00
Atsushi Eno 03a84c968b 2007-02-07 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadElementContentAsString() and all relevant methods
	  didn't consume empty element correctly.

	* XmlReaderCommonTests.cs : added ReadElementContentAsStringEmpty().


svn path=/trunk/mcs/; revision=72402
2007-02-07 09:10:32 +00:00
Atsushi Eno a175a4e0a0 2006-12-12 Atsushi Enomoto <[email protected]>
* XmlReader.cs : Create() with string url was not returning validating
	  XmlReader.

	* XmlReaderSettingsTests.cs : added test to make sure that Create()
	  returns a validating XmlReader.


svn path=/trunk/mcs/; revision=69383
2006-12-12 04:18:42 +00:00
Atsushi Eno d595cb3fbd 2006-12-05 Atsushi Enomoto <[email protected]>
* XmlReader.cs : new 2.0 MoveToAttribute(int) failed to move to the
	  final attribute in an element.

	* XPathNavigatorReaderTests.cs : added test for MoveToAttribute(int).


svn path=/trunk/mcs/; revision=69026
2006-12-05 11:12:02 +00:00
Atsushi Eno 53341ede85 2006-11-13 Michael Meeks <[email protected]>
* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs:
	pass the XmlResolver through to the GetStream impl.

2006-11-13  Atsushi Enomoto <[email protected]>

	* XmlReaderSettingsTests.cs : added custom resolver case for primary
	  XML stream (custom resolver is indeed used and here it should cause
	  error).


svn path=/trunk/mcs/; revision=67808
2006-11-14 01:25:47 +00:00
Atsushi Eno ec7c2c1d49 2006-09-04 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadContentAsString() and its family should allow 
	  attribute node. Fixed bug #79268.

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


svn path=/trunk/mcs/; revision=64843
2006-09-04 05:06:44 +00:00
Atsushi Eno 6331ad5c79 2006-07-26 Atsushi Enomoto <[email protected]>
Refactoring compilation to make Compile() portable to
	XmlSchemaSet.Compile() and fix multi-schema bugs (not done yet)

	* XmlSchema.cs : 
	  Removed "root schema" concept from Compile().
	  Since nested inclusion does not result in an error, the role of
	  schemaLocationStack is identical to handledUris, thus removed it.
	  The handledUris does not have to be a field.
	  Moved NamedIdentities and IDCollections to XmlSchemaSet.
	  Renamed a Compile() which is called from XmlSchemaCollection and
	  XmlSchemaSet as CompileSubset(). Renamed private Compile() as
	  DoCompile().
	  public Compile() now internally creates a new XmlSchemaSet and
	  compiles the set.
	* XmlSchemaCollection.cs : now it hooks its schemaSet's validation
	  event handler and thus XmlSchemaSet does not need to check this
	  collection's event handler by itself.
	  XmlSchema.Compile() -> XmlSchema.CompileSubset().
	* XmlSchemaSet.cs :
	  Removed SchemaCollection which became unneccessary.
	  Added NamedIdentities and IDCollection.
	  XmlSchema.Compile() -> XmlSchema.CompileSubset().
	* XmlSchemaAttributeGroupRef.cs, XmlSchemaXPath.cs
	  XmlSchemaSimpleTypeList.cs, XmlSchemaComplexContentRestriction.cs,
	  XmlSchemaGroup.cs, XmlSchemaComplexContentExtension.cs,
	  XmlSchemaSequence.cs, XmlSchemaSimpleContentRestriction.cs,
	  XmlSchemaSimpleContentExtension.cs, XmlSchemaAny.cs,
	  XmlSchemaElement.cs, XmlSchemaNotation.cs, XmlSchemaAll.cs,
	  XmlSchemaComplexType.cs, XmlSchemaAnnotation.cs,
	  XmlSchemaAttributeGroup.cs, XmlSchemaSimpleTypeRestriction.cs,
	  XmlSchemaSimpleContent.cs, XmlSchemaGroupRef.cs,
	  XmlSchemaChoice.cs, XmlSchemaSimpleType.cs,
	  XmlSchemaIdentityConstraint.cs, XmlSchemaSimpleTypeUnion.cs,
	  XmlSchemaAnyAttribute.cs, XmlSchemaComplexContent.cs,
	  XmlSchemaAttribute.cs, XmlSchemaObject.cs :
	  removed XmlSchemaObject.IsCompiled(). Check compilation state by
	  comparing compilation ID directly.

	* XmlReader.cs :
	  For DTD validator, call to SetSchemas() makes no sense.
	* XmlValidatingReader.cs : now it internally holds old
	  XmlSchemaCollection instead of new XmlSchemaSet, to make
	  XmlSchemaSet.SchemaCollection unneccessary.
	  Removed SetSchemas() since it is now extraneous because of the
	  XmlReaderChange above.


svn path=/trunk/mcs/; revision=62988
2006-07-26 10:13:56 +00:00
Atsushi Eno f142637031 2006-07-19 Atsushi Enomoto <[email protected]>
* XmlReader.cs : In Create(), support validation flags for DTD.
	* DTDValidatingReader2.cs : when NET_2_0 and ProcessIdentityConstraints
	  is false, skip ID validation.


svn path=/trunk/mcs/; revision=62755
2006-07-19 17:25:58 +00:00
Atsushi Eno e7937e3666 2006-06-26 Atsushi Enomoto <[email protected]>
* XmlReader.cs : when Create() received string url, it should set 
	  XmlTextReader2.CloseInput always true. Fixed bug #78706.

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


svn path=/trunk/mcs/; revision=62053
2006-06-26 04:45:26 +00:00
Atsushi Eno 4bc7d6b705 2006-04-14 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadElementContentAsObject() incorrectly rejected
	  the argument type System.Object.

	* XmlReaderCommonTests.cs : added test for ReadElementContentAs()
	  with argument typeof(object).


svn path=/trunk/mcs/; revision=59479
2006-04-14 09:55:16 +00:00