Commit Graph
30 Commits
Author SHA1 Message Date
Marek Safar a98054a9f3 Fixes build 2013-02-25 21:53:46 +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 78873611b2 More .NET 4.5 work. 2012-06-03 04:02:28 +02:00
Sebastien Pouliot 42f2df1f80 2009-04-28 Sebastien Pouliot <[email protected]>
* XmlReaderSettings.cs: Add MaxCharactersInDocument property for 
	NET_2_1 profile
	* XmlUrlResolver.cs: Cleanup #ifdef NET_2_1 inside this file 
	since this is not used anymore in Moonlight


svn path=/trunk/mcs/; revision=132855
2009-04-28 15:49:07 +00:00
Atsushi Eno 3b434e9bea 2007-12-06 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : in net_2_0, use Uri.IsAbsoluteUri to filter
	  relative URIs out.

	* XmlUrlResolverTests.cs : fixed test; file://file.txt is to access
	  such a server whose (domain) name is "file.txt", which is actually
	  an absolute URI. Remove "regression" in the nunit test.


svn path=/trunk/mcs/; revision=90794
2007-12-06 06:32:05 +00:00
Jb Evain 3c28434d94 2007-08-04 Jb Evain <[email protected]>
* XmlUrlResolver.cs: remove code duplication in 2.1.

svn path=/trunk/mcs/; revision=83489
2007-08-04 20:33:27 +00:00
Atsushi Eno d545b768d2 2007-08-03 Atsushi Enomoto <[email protected]>
* XmlResolver.cs, XmlUrlResolver.cs, XmlSecureResolver.cs :
	  remove ICredential in NET_2_1 (they have to be explicitly removed
	  outside tuner work as ICredentials does not exist in 2.1 profile).
	  We cannot use WebRequest in 2.1 as well, so remove dependency on
	  it in GetEntity() (and added MonoTODO for non-file URLs).


svn path=/trunk/mcs/; revision=83389
2007-08-03 07:38:56 +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
Raja R Harinath 5942f52d09 Standardize line-endings in files (if most of the file is CRLF,
convert the whole thing to CRLF).  Set svn:eol-style native for 
files with LF line-endings.  Remove svn:executable.


svn path=/trunk/mcs/; revision=46117
2005-06-17 06:39:43 +00:00
Atsushi Eno eff521817b 2005-03-30 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : just return connected Stream instead of fully
	  downloaded memory cache. Fix by Konstantin Triger.


svn path=/trunk/mcs/; revision=42361
2005-03-29 23:49:13 +00:00
Atsushi Eno 0905ad6b9e 2005-03-22 Atsushi Enomoto <[email protected]>
* XmlParserInput.cs,
	  XmlNode.cs,
	  XmlUrlResolver.cs,
	  DTDValidatingReader.cs : removed/commented out those warned code.


svn path=/trunk/mcs/; revision=42059
2005-03-22 07:09:06 +00:00
Atsushi Eno 72734a59d4 2005-02-16 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : just use InnerText for Value. Patch by Andrew
	  Skiba.
	* XmlConvert.cs : Handle null and empty strings for EncodeName(),
	  EncodeLocalName() and EncodeNmToken(). Patch by Andrew Skiba.
	* NameTable.cs : usually tail of namespaces are rather different than
	  head of them. Patch by Andrew Skiba.
	* XmlUrlResolver.cs : missing %20 handling. Patch by Andrew Skiba.


svn path=/trunk/mcs/; revision=40757
2005-02-16 16:25:46 +00:00
Duncan Mak 8fa6e766dd Add MIT license to System.XML.DLL
svn path=/trunk/mcs/; revision=30055
2004-06-21 18:07:31 +00:00
Atsushi Eno 4190429496 2004-05-12 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs,
	  DTDReader.cs,
	  XmlDocument.cs,
	  XmlInputStream.cs,
	  XmlParserInput.cs,
	  XmlTextReader.cs,
	  XmlUrlResolver.cs : removed reference to Mono.Xml.
	  Made Mono.Xml.* classes internal.
	* XmlDocument.cs : output xml declaration for TextWriter output in Save()
	* XmlElement.cs : Name character check should be done in .ctor().
	* XmlNamespaceManager.cs : Removed dangerous internal .ctor()

svn path=/trunk/mcs/; revision=27149
2004-05-12 09:11:19 +00:00
Atsushi Eno 822f455b93 2004-02-16 Atsushi Enomoto <[email protected]>
* DTDAutomata.cs,
	  DTDObjectModel.cs,
	  DTDReader.cs,
	  DTDValidatingReader.cs : made classes internal.
	* XmlDocument.cs : removed extra FIXMEs.
	* XmlNamedNodeMap.cs,
	  XmlResolver.cs,
	  XmlUrlResolver.cs :
	  Fixed incorrect method signature.

svn path=/trunk/mcs/; revision=23142
2004-02-16 19:04:50 +00:00
Atsushi Eno 7ea3f6ddf9 2004-01-03 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : trivial character-case fix
	* XmlUrlResolver.cs : It downloads network stream content at
	  GetEntity() call. You can try like below:
	    for (int i=0;i<100;i++) u.GetEntity(url, null, typeof(Stream));

svn path=/trunk/mcs/; revision=21648
2004-01-03 17:01:22 +00:00
Atsushi Eno ffad6ddea4 2003-12-15 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : GetEntity() does not return direct network stream
	  that may hold up connection. Now it reads up all the content stream.

svn path=/trunk/mcs/; revision=21173
2003-12-15 14:31:55 +00:00
Atsushi Eno 157370a854 2003-12-07 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : Update with recent System.Uri change. This fixes
	  bugzilla #51808 (patch by Jeroen Zwartepoorte, a bit modified).

svn path=/trunk/mcs/; revision=20835
2003-12-07 15:03:54 +00:00
Atsushi Eno c7fa9e9505 2003-10-19 Atsushi Enomoto <[email protected]>
* XmlNode.cs : GetPrefixOfNamespace() also contained a bug similar to
	  GetNamespaceOfPrefix() fixed at 2003-10-13.
	* XmlTextReader.cs : ReadBase64() should keep incomplete base64 block
	  which remained by previous call of this method.
	* XmlUrlResolver.cs : Added assertion for file Uri path's absoluteness.
	* XmlValidatingReader.cs : Notice about intention of XDR won't be
	  supported (at least in Mono 1.0).

svn path=/trunk/mcs/; revision=19187
2003-10-19 04:47:46 +00:00
Atsushi Eno 84cd05bacb 2003-10-01 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : Should work with null type argument.

svn path=/trunk/mcs/; revision=18494
2003-10-01 22:35:41 +00:00
Atsushi Eno 22bae8654d 2003-09-08 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : GetEnumerator() should return all of the
	  available pairs (of prefix and namespace).
	* XmlQualifiedName.cs : Quick fix for NullReferenceException in case
	  of name (or ns) is null. (The description of the immediate previous
	  changes will be inserted below.)
	* XmlTextWriter.cs : Fixed WriteDocType(). Removed CheckValidName().
	* XmlUrlResolver.cs : Changed not to call WebClient.Dispose() which
	  will release resources it had allocated.

svn path=/trunk/mcs/; revision=17996
2003-09-08 16:36:38 +00:00
Atsushi Eno 7d1f83ba18 2003-08-19 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
	  infinite loop.
	* XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
	  Commented out Console.Error.WriteLine().
	* XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
	  escape and unescape for relative URI string.

svn path=/trunk/mcs/; revision=17414
2003-08-19 19:26:14 +00:00
Atsushi Eno d670f3a599 2003-07-19 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : applied BenM's patch for file uri problem
	  (bug #46610).

svn path=/trunk/mcs/; revision=16429
2003-07-19 14:33:10 +00:00
Atsushi Eno 4ddc13eced 2003-06-20 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : several ResolveUri() fix. e.g. for external URIs.

svn path=/trunk/mcs/; revision=15503
2003-06-19 20:00:43 +00:00
Ben Maurer ef440e6c3a FINALLY!
2003-06-16  Ben Maurer <[email protected]>
        * XmlUrlResolver.cs: really fixed #44231

svn path=/trunk/mcs/; revision=15489
2003-06-19 00:22:50 +00:00
Atsushi Eno c1afba2caf 2003-06-16 Atsushi Enomoto <[email protected]>
* XmlNodeReader.cs : fixed MoveToNextAttribute(). In some cases
	  this method set current node null.
	* XmlTextReader.cs : fixed GetAttribute (name, ns), which returned
	  String.Empty instead of null (expected value).
	* XmlTextReader.cs,
	  XmlUrlResolver.cs,
	  XmlInputStream.cs : fixed BaseURI problem (bug #44231).

svn path=/trunk/mcs/; revision=15440
2003-06-16 16:57:39 +00:00
Atsushi Eno 5a8beb8931 2003-03-15 Atsushi Enomoto <[email protected]>
* XmlConstructs.cs : fix "int IsXXX()" to reject negative value.
	* XmlDocument.cs : simplify Load(string url) to use XmlTextReader.
	  fixed ReadNode(), it should call reader.Read() only on Initial state.
	* XmlInputStream.cs : Changed namespace. Added XmlStreamReader(stream)
	  and XmlStreamReader (string). Fixed XmlInputStream(url) not to use
	  System.Net.WebClient directly.
	* XmlParserContext.cs : baseURI don't be null.
	* XmlTextWriter.cs : use WebName for Encoding instead of HeaderName.
	* XmlUrlResolver.cs : namespace change for XmlInputStream.

svn path=/trunk/mcs/; revision=12517
2003-03-15 08:35:39 +00:00
Atsushi Eno 16bc71e8f1 2003-02-16 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : WebClient.Credentials was not implemented yet.

svn path=/trunk/mcs/; revision=11620
2003-02-16 12:32:19 +00:00
Atsushi Eno 615abae8f1 2003-02-16 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : added (also contains internal XmlStreamReader).
	* XmlDocument.cs : Load () now can specify URL using XmlUrlResolver,
		and can read non-UTF-8 stream.
	* XmlTextReader.cs : related to above stream fix.
	* XmlUrlResolver.cs : implemented GetEntity ().

svn path=/trunk/mcs/; revision=11611
2003-02-16 07:25:43 +00:00
Duncan Mak 3e0bd7c691 2002-02-24 Duncan Mak <[email protected]>
* XmlTokenizedType.cs: Added to CVS.

	* XmlUrlResolver.cs: Added to CVS with one TODO task.

2002-02-23  Duncan Mak  <[email protected]>

	* XmlQualifiedName.cs: Fixed ToString () and added the
	operators (== and !=).

svn path=/trunk/mcs/; revision=2616
2002-02-24 18:50:34 +00:00