Commit Graph
214 Commits
Author SHA1 Message Date
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
Alan McGovern 10831124e7 2009-02-23 Alan McGovern <[email protected]>
* XmlTextReader.cs: Under the SL2 profile, the default resolver
        is a XmlXapResolver.


svn path=/trunk/mcs/; revision=127740
2009-02-23 14:33:20 +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 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
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
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 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
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
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
Jb Evain fa9980ab68 2007-08-04 Jb Evain <[email protected]>
* XmlTextReader.cs, XmlConvert.cs, XmlReaderBinarySupport.cs:
	Use the available constructor for the 2.1 profile.

svn path=/trunk/mcs/; revision=83488
2007-08-04 20:28:33 +00:00
Gert Driesen 0485826abb * XmlTextReaderTests.cs: Enable ProhibitDtd test on 1.0 profile too.
Fixed line endings.
* XmlTextReader.cs: Expose ProhibitDtd on 1.0 profile too.

svn path=/trunk/mcs/; revision=81106
2007-06-30 13:44:53 +00:00
Atsushi Eno 2a6b8ff712 2007-04-03 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : character ']' inside DTD comment caused parser
	  error. Fixed bug #81294.

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


svn path=/trunk/mcs/; revision=75325
2007-04-03 07:41:06 +00:00
Atsushi Eno 1f87900960 2007-02-20 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs, XmlTextReader2.cs : Reset() should work now.
	  Closing bug #80849.


svn path=/trunk/mcs/; revision=73159
2007-02-20 11:25:54 +00:00
Atsushi Eno 31d31bbcc3 2007-02-20 Atsushi Enomoto <[email protected]>
* DTDValidatingReader2.cs, XmlTextReader.cs, XmlNodeReaderImpl.cs:
	  Read() silently returns false when it is closed. Fixed bug #80848.

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


svn path=/trunk/mcs/; revision=73147
2007-02-20 08:44:13 +00:00
Atsushi Eno 9c2cf5d9e0 2006-12-19 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Fixed ReadChars() to consume child elements,
	  including such cases that it breaks tags in the middle of multiple
	  ReadChars() calls.

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


svn path=/trunk/mcs/; revision=69713
2006-12-19 07:44:46 +00:00
Atsushi Eno bb82cd0648 2006-12-19 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : ReadChars() does not have to store characters,
	  so avoid extra storing. Patch by Csaba Halasz, fixed bug #80306.


svn path=/trunk/mcs/; revision=69712
2006-12-19 06:42:52 +00:00
Atsushi Eno 1d3440fc5d sanitizing MonoTODOs.
svn path=/trunk/mcs/; revision=67899
2006-11-15 11:31:25 +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 c8f61053ec 2006-08-17 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs, XmlTextReader2.cs, DTDReader.cs :
	  (ResolveExternalEntityReplacementText) need to skip text
	  declaration in external entities. To make it possible internalize
	  SkipTextDeclaration() in XmlTextReader(2). Fixed bug #79090.


svn path=/trunk/mcs/; revision=63890
2006-08-17 08:19:29 +00:00
Atsushi Eno beae7faea1 2006-08-14 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : When a whitespace node comes after a text 
	  declaration in XML external entity (i.e. .ctor() with
	  XmlNodeType.Element), it contained extra value character ('<').

	* XmlTextReaderTests.cs : added test for whitespace node value which
	  comes after a text declaration in XML external entity (i.e. .ctor()
	  with XmlNodeType.Element).


svn path=/trunk/mcs/; revision=63726
2006-08-14 15:54:23 +00:00
Atsushi Eno 0ef60eab7a 2006-02-16 Atsushi Enomoto <[email protected]>
* XmlDocument.cs XmlTextReader.cs : in ReadNode(), we can avoid
	  extraneous whitespace node creation for XmlTextReader by setting
	  WhitespaceHandling.Significant when PreserveWhitespace is false.


svn path=/trunk/mcs/; revision=56918
2006-02-16 10:30:13 +00:00
Atsushi Eno 5ac56e429a 2006-02-16 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : atomize whitespace values. It effectively saves
	  memory consumption when an input XML is indented.


svn path=/trunk/mcs/; revision=56917
2006-02-16 09:27:47 +00:00
Atsushi Eno dd7de66cdd 2006-02-14 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : When "Significant" is assigned to
	  WhitespaceHandling, it should ignore non-significant whitespaces.

	* XmlTextReaderTests.cs : added WhitespaceHandling tests.


svn path=/trunk/mcs/; revision=56845
2006-02-14 04:34:43 +00:00
Atsushi Eno 7474c9c39a 2006-02-11 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs :
	  Avoid extra AppendValueChar() in ReadWhitespace().


svn path=/trunk/mcs/; revision=56767
2006-02-10 18:45:34 +00:00
Atsushi Eno c6ccddb382 2006-02-06 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : ReadTextReader() is now assured to have current
	  node content, except for Text, CDATA and Comment. ReadName() does
	  not use nameBuffer and reuse peekChars.


svn path=/trunk/mcs/; revision=56587
2006-02-06 15:14:54 +00:00
Atsushi Eno 7a4835c251 2006-02-06 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : eliminated currentTagBuffer. XmlDeclaration is
	  now once read as PI and then re-parsed from Value. DTD internal
	  subset is now parsed as usual "value".


svn path=/trunk/mcs/; revision=56580
2006-02-06 11:31:30 +00:00
Atsushi Eno c47a86cc87 2006-02-06 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Expect() could be written inline and it could
	  provide better information. ReadEndTag() could use Expect() instead
	  of costy ReadName().


svn path=/trunk/mcs/; revision=56577
2006-02-06 08:42:07 +00:00
Atsushi Eno 1e49788762 2006-02-04 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : on ReadEndTag() we can avoid NameTable.Add().
	  Store name, local name and prefix in the stack instead of just name
	  and reuse them for EndElement.


svn path=/trunk/mcs/; revision=56560
2006-02-04 07:54:00 +00:00
Atsushi Eno c150169800 2006-02-03 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : no need to call Clear() for each attribute value.


svn path=/trunk/mcs/; revision=56523
2006-02-03 14:05:48 +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
Paolo Molaro 6cc731eeeb Fri Jan 27 20:39:48 CET 2006 Paolo Molaro <[email protected]>
* XmlTextReader.cs, XmlChar.cs: more tweaks and speedups.


svn path=/trunk/mcs/; revision=56186
2006-01-27 19:40:37 +00:00
Atsushi Eno 0144433aec 2006-01-27 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : optimization patch by Paolo.
	  Fast path optimization in PeekChar().
	  Avoid double-evaluation of PeekChar() and ReadChar() by new
	  Advance() method.


svn path=/trunk/mcs/; revision=56171
2006-01-27 16:51:55 +00:00
Atsushi Eno 775f8f8bd7 2005-10-05 Atsushi Enomoto <[email protected]>
* System.Configuration.dll.sources: added
	  IntegerValidatorAttribute.cs, IntegerValidator.cs,
	  LongValidator.cs and LongValidatorAttribute.cs.

	* IntegerValidatorAttribute.cs, IntegerValidator.cs,
	  LongValidator.cs, LongValidatorAttribute.cs : new files.


svn path=/trunk/mcs/; revision=54458
2005-12-15 14:40:17 +00:00
Atsushi Eno 431580c4bc 2005-12-13 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : 1.x build fix.


svn path=/trunk/mcs/; revision=54274
2005-12-13 10:16:42 +00:00
Atsushi Eno 9991cfa13f 2005-12-13 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : when XmlReader.Create() creates this instance,
	  don't expect strict text declaration. Check SkipTextDeclaration()
	  on Read().


svn path=/trunk/mcs/; revision=54269
2005-12-13 03:59:27 +00:00
Atsushi Eno fee29e205c 2005-12-09 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs :
	  Added Encoding property on NonBlockingStreamReader
	* XmlTextReader.cs :
	  set Encoding property when it proceeds to xml declaration.

	* XmlTextReaderTests.cs : added test for Encoding property.


svn path=/trunk/mcs/; revision=54166
2005-12-09 16:37:22 +00:00
Atsushi Eno de3ddcb8ca 2005-12-09 Atsushi Enomoto <[email protected]>
* XmlChar.cs : removed incorrect comment.
	* XmlReader.cs : Create() clones XmlReaderSettings (if supplied).
	  For wrapped XmlReader, check ConformanceLevel to be consistent.
	* XmlTextReader.cs, XmlTextReader2.cs : added get_Conformance for
	  internal use. Removed unused fields.
	* XmlInputStream.cs : updated NonBlockingStreamReader to the latest
	  StreamReader (it is almost a copy).

	* XmlReaderSettingsTests.cs : added some ConformanceLevel tests.
	  Added CreateClonesSettings() to make sure XmlReader.Create() clones
	  XmlReaderSettings.


svn path=/trunk/mcs/; revision=54151
2005-12-09 06:43:34 +00:00
Atsushi Eno e8fcabe5d2 2005-12-08 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : avoid Char.IsSurrogate() and do it inside
	  PeekChar(), which improves notable performance.


svn path=/trunk/mcs/; revision=54116
2005-12-08 17:51:19 +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 38e3987552 2005-11-07 Atsushi Enomoto <[email protected]>
* XmlReader.cs : dependent XmlSchemaValidationFlags fix.
	  Added ReadElementContentAsObject() and ReadContentAsObject().
	* XmlReader.cs, XmlTextReader.cs :
	  LookupNamespace(string,bool) is now private.
	* XmlReader.cs, XmlNode,cs :
	  [DebuggerDisplay].

	* XmlSchemaValidationFlags.cs : updated to match 2.0 RTM.
	* XmlSchemaValidator.cs : related fix.

	* XmlSchemaValidatingReader.cs : XmlSchemaValidationFlags is updated.

	* XmlReaderSettingsTests.cs : XmlSchemaValidationFlags is updated.



svn path=/trunk/mcs/; revision=52659
2005-11-07 17:22:05 +00:00
Atsushi Eno 21b9253d8b 2005-10-23 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
	  default namespace was returning "" instead of null. It didn't check
	  empty namespace URI for non-empty prefixes.

	* XmlTextReaderTests.cs, XmlValidatingReaderTests.cs,
	  XmlReaderCommonTests.cs : added and fixed tests to make sure that
	  LookupNamespace("") returns null for default namespace, and checks
	  that empty namespace URI is not allowed for non-empty prefix.


svn path=/trunk/mcs/; revision=52099
2005-10-23 19:10:47 +00:00
Joshua Tauberer 8a760e94e0 2005-10-07 Joshua Tauberer <[email protected]>
* XmlTextReader.cs: SkipTextDeclaration would not accept processing
    instructions that began with the string 'xml', e.g. rejecting
    'xml-stylesheet'.


svn path=/trunk/mcs/; revision=51480
2005-10-08 21:01:02 +00:00
Atsushi Eno 57574a07ef 2005-10-01 Atsushi Enomoto <[email protected]>
* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs :
	 XmlReader.Create() with string url argument are not working because
	 of incorrect choice of the .ctor().

	* XmlReaderCommonTests.cs : added simple Create() test.


svn path=/trunk/mcs/; revision=51075
2005-10-01 11:19:18 +00:00
Atsushi Eno 8e2ebd4f21 2005-09-27 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : surrogate computation is incorrect. Fixed bug
	  #76247. Patch by Brion Vibber.

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


svn path=/trunk/mcs/; revision=50870
2005-09-27 15:28:58 +00:00
Atsushi Eno 2da6c2e2c0 2005-09-21 Atsushi Enomoto <[email protected]>
* XmlNodeReader2.cs, XmlReader.cs,
	  XmlTextReader.cs, XmlTextReader2.cs,
	  XmlNodeChangedEventArgs.cs, XmlElement.cs,
	  XmlNode.cs, XmlDocument.cs :
	  updated NET_2_0 API.

	* XmlReaderSettingsTests.cs : updated NET_2_0 related tests.
	* NameTableTests.cs : numbered testcases. fixed argument order.


svn path=/trunk/mcs/; revision=50351
2005-09-21 02:58:41 +00:00
Atsushi Eno c041318f2c 2005-09-14 Atsushi Enomoto <[email protected]>
in System.Xml:
        * XmlTextReader.cs : when there is a heading half of surrogate
        * at the
          end of read buffer, it didn't treat it as a surrogate.
          Fixed bug #76102.

        in Test/System.Xml:
        * XmlTextReaderTests.cs : added #76102 testcase.

        in Test/XmlFiles:
        * 76102.xml : added test for bug #76102.

        in Test/System.Xml/W3C:
        * Makefile: build fix.


svn path=/trunk/mcs/; revision=50050
2005-09-14 18:18:06 +00:00
Sebastien Pouliot a17dea8630 2005-08-31 Sebastien Pouliot <[email protected]>
* XmlDocument.cs: Added an InheritanceDemand for Unrestricted on 
	CreateDocumentType and ReadNode methods.
	* XmlException.cs: Added a Demand for SerializationFormatter on 
	GetObjectData method.
	* XmlResolver.cs: Added an InheritanceDemand for Unrestricted on 
	ResolveUri method.
	* XmlSecureResolver.cs: Fixed exception when creating evidences with 
	an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy 
	and PermitOnly if the security manager is enabled.
	* XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
	class.
	* XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on 
	the class.
	* XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted 
	on the class.


svn path=/trunk/mcs/; revision=49179
2005-08-31 13:12:47 +00:00
Atsushi Eno 718c8cb031 2005-08-16 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs, XmlTextReader2.cs : added internal .ctor() to
	  receive both TextReader, XmlNodeType and BaseURI for entity
	  resolution (though it would be removed later).
	* XmlParserInput.cs : Now to handle nested PE insertion and correct
	  BaseURI, it internally holds a stack of "input source".
	* DTDObjectModel.cs,
	  DTDReader.cs :
	  Required fixes for XmlParserInput.
	  Handle BaseURI as expected. Added ActualUri for resolved actual
	  source URI (to resolve nested entities). Pass ActualUri to internal
	  XmlTextReader.ctor() in ResolveExternalEntityReplacementText()
	  (well, yes I remember, it is problematic.)

	  Incorrect Base URI handling bug (part of #51495) is fixed.


svn path=/trunk/mcs/; revision=48443
2005-08-16 18:23:16 +00:00