Commit Graph
230 Commits
Author SHA1 Message Date
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
Atsushi Eno beefa7d320 Fix possible NRE caused by null XmlResolver settings. 2013-02-27 16:50:54 +09: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
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 5dc4ecd8e8 Remove wrong buffer size check in XmlTextReader.ReadChrs(). 2011-03-08 15:26:51 +09: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 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 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
Jb Evain 846150badd use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153673
2010-03-16 12:31:23 +00:00
Atsushi Eno 6d0574134d 2009-08-21 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : there still was use of bogus
	  XmlParserContext.NameTable.

	* XmlTextReaderTests.cs : added test for null nametable in parser
	  context.


svn path=/trunk/mcs/; revision=140397
2009-08-21 03:45:06 +00:00
Miguel de Icaza 57dea3038a 2009-08-01 Miguel de Icaza <[email protected]>
* Various changes to support the non-XAP XmlSchema resolution on
	the Moonlight build.    

	Major missing feature: WebRequest resolution.

svn path=/trunk/mcs/; revision=139248
2009-08-01 17:57:00 +00:00
Sebastien Pouliot cc6d045346 In Test/System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]> 

	* XmlReaderCommonTests.cs: Add test case for an empty string url

In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>  

	* XmlTextReader.cs (InitializeContext): Under NET_2_1 do not give
	a second change	using Path.GetFullPath. (GetStreamFromUrl) Add
	extra validations that would be missed in NET_2_1


svn path=/trunk/mcs/; revision=132856
2009-04-28 15:55:19 +00:00
Geoff Norton a6e5f0c04e fix the 1.1 build
svn path=/trunk/mcs/; revision=130269
2009-03-26 03:10:02 +00:00
Geoff Norton a2c3e1f406 2009-03-25 Geoff Norton <[email protected]>
* XmlTextReader.cs: Create the uri as relativeorabsolute.

svn path=/trunk/mcs/; revision=130268
2009-03-26 02:54:01 +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
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