Commit Graph
403 Commits
Author SHA1 Message Date
Atsushi Eno e66ea433af 2004-01-08 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs, XmlElement.cs :
	  Fixed incorrect protected .ctor modification.

svn path=/trunk/mcs/; revision=21836
2004-01-08 02:52:39 +00:00
Nick Drochak 9c0bba9060 2004-01-08 Nick Drochak <[email protected]>
* DTDValidatingReader.cs: Removed unused variable

svn path=/trunk/mcs/; revision=21815
2004-01-07 15:08:37 +00:00
Atsushi Eno 779b2bb2f0 2004-01-07 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : Implemented .NET 1.2 methods that take
	  atomizedNames argument.
	* XmlTextReader.cs : Use new namespace manager methods.
	  Reduced NameTable.Add().
	* DTDObjectModel.cs : fixed incorrectly commented-out line.

svn path=/trunk/mcs/; revision=21810
2004-01-07 14:46:43 +00:00
Atsushi Eno aa61a23fc0 2004-01-07 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs, XmlDocument.cs, XmlElement.cs :
	  set_Prefix should atomize to name table.
	  Avoided extraneous atomization attempt a bit.

svn path=/trunk/mcs/; revision=21803
2004-01-07 12:26:28 +00:00
Atsushi Eno 65b863c896 2004-01-07 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs, DTDReader.cs, XmlSecureResolver.cs :
	  avoiding obvious exception.
	* DTDReader.cs, XmlTextReader.cs : Some optimization.
	  Avoided extraneous PeekChar() and reduced name string creation.

svn path=/trunk/mcs/; revision=21797
2004-01-07 09:05:23 +00:00
David Sheldon d70eb80a72 2004-01-05 David Sheldon <[email protected]>
* XmlTextReader.cs: Fixed constructors taking string url to not
   loose the absolute part of the path.

svn path=/trunk/mcs/; revision=21726
2004-01-05 22:30:46 +00:00
Atsushi Eno b74de98e59 2004-01-04 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : Fixed Load() to set XmlResolver correctly. Patch
	  by Benjamin Jemlich.
	  Assure closing XmlTextReader which are internally used.

svn path=/trunk/mcs/; revision=21682
2004-01-04 18:20:41 +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 f8c0135cc9 2003-12-23 Atsushi Enomoto <[email protected]>
* XmlNamedNodeMap.cs : Fixed internal SetNamedItem(node, pos) to set
	  replacing node correctly. This fixes bug #52453.

svn path=/trunk/mcs/; revision=21445
2003-12-23 08:57:07 +00:00
Atsushi Eno e1658172d0 2003-12-21 Atsushi Enomoto <[email protected]>
* XmlDocument.cs, XmlElement.cs, XmlNode.cs :
	  GetElementsByTagName() - Fixed bugzilla #52419, refactored,
	  and moved private implementation methods to XmlNode class.

svn path=/trunk/mcs/; revision=21399
2003-12-21 17:04:21 +00:00
Atsushi Eno 57490eb85e 2003-12-20 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs :
	  Element's namespace should be escaped as usual attribute.

svn path=/trunk/mcs/; revision=21335
2003-12-19 02:05:48 +00:00
Atsushi Eno dc63b10603 2003-12-16 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : Indentation between xmldecl and doctype.
	* DTDValidatingReader.cs : AttList null reference fix.

svn path=/trunk/mcs/; revision=21329
2003-12-18 16:42:13 +00:00
Atsushi Eno e22ed2eb99 2003-12-16 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : Validity check and entity expansion were
	  incorrectly mixed.
	* DTDObjectModel.cs, DTDReader.cs, XmlInputStream.cs :
	  Going to remove XmlInputStream. XmlStreamReader might be replacable.

svn path=/trunk/mcs/; revision=21242
2003-12-16 15:38:15 +00:00
Atsushi Eno f44413d7fd 2003-12-15 Atsushi Enomoto <[email protected]>
* XPathDocument2ChangedEventHandler.cs : fixed incorrect argument.
	* Moved UpdateEventHandler.cs and XmlUpdateEventArgs.cs to sqlxml.

svn path=/trunk/mcs/; revision=21196
2003-12-15 20:00:04 +00:00
Atsushi Eno 2b27ae7138 2003-12-15 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : BaseURI was broken. This fixes bug #52098.

svn path=/trunk/mcs/; revision=21192
2003-12-15 19:44:03 +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 da54c77a46 2003-12-12 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs,
	  XmlElement.cs : Fixed bug #51415.
	  When adding attribute to an element using Attributes, it failed.

svn path=/trunk/mcs/; revision=21059
2003-12-12 07:13:08 +00:00
Atsushi Eno 9c9c1c4cbb 2003-12-11 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : Fixed ReadNode() to call AppendChild() to document
	  after setting all attribute nodes. Modified ReadNode() to handle
	  Depth comparison and error handling (!= to <). It allows MS's
	  SgmlReader bug that returns incorrect Depth.

svn path=/trunk/mcs/; revision=21014
2003-12-11 05:43:12 +00:00
Atsushi Eno 98ac1234b3 2003-12-11 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fixed MoveToNextAttribute (and
	  MoveToNextNamespace) that might result in NullReferenceException.
	  patch by Sanjay Gupta. This fixed bug #51941 (and possibly #51415)

svn path=/trunk/mcs/; revision=21013
2003-12-11 04:13:30 +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 dd1a4d6aa4 2003-12-04 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
	* XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
	  This may fix bug #51415.

svn path=/trunk/mcs/; revision=20778
2003-12-04 16:30:38 +00:00
Atsushi Eno d0d1b1e4ad 2003-11-28 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : set_Prefix checks value when existing is "xmlns".

svn path=/trunk/mcs/; revision=20592
2003-11-28 16:59:28 +00:00
Atsushi Eno bcc961ca84 2003-11-28 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : patch by Gonzalo (I modified a bit). WriteNode()
	  shouldn't expect non-empty element content. This will fix bug #48287.

svn path=/trunk/mcs/; revision=20591
2003-11-28 16:32:42 +00:00
Atsushi Eno 3576a348b5 2003-11-28 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : When element's namespace should be overwritten by
	  one of its attribute, if exist as such. This fixes bug #51305.

svn path=/trunk/mcs/; revision=20564
2003-11-28 01:09:10 +00:00
Atsushi Eno 0b5457bd50 2003-11-24 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : Fixed ReadContent() which may result in
	  invalid additional Text node.

svn path=/trunk/mcs/; revision=20391
2003-11-24 17:02:35 +00:00
Atsushi Eno 0fc04af1cb 2003-11-24 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs :
	  On WriteProcessingInstruction(), ArgumentException() is expected ;-)

svn path=/trunk/mcs/; revision=20390
2003-11-24 15:30:32 +00:00
Atsushi Eno e213ea0691 2003-11-24 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs :
	  WriteProcessingInstruction() should check name validity.
	  AddMissingElementXmlns() should allow namespace emission even if it
	  is identical to existing one.

svn path=/trunk/mcs/; revision=20388
2003-11-24 15:16:54 +00:00
Atsushi Eno ebbc046198 2003-11-22 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Fixed ReadInnerXml(). This fixes bug #51267.

svn path=/trunk/mcs/; revision=20328
2003-11-22 02:54:34 +00:00
Eran Domb f6d1555aa1 XmlTextWriter.cs (WriteStartAttribute) : Check if the ket already exists in the newAttributeNamespaces table
before trying to add it to the table.

svn path=/trunk/mcs/; revision=20259
2003-11-20 05:46:17 +00:00
Atsushi Eno 35bad455de 2003-11-19 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : Replaced entity should not treat whitespaces
	  as significant.
	* XmlNode.cs : Removed extraneous MonoTODOs.

svn path=/trunk/mcs/; revision=20224
2003-11-19 15:14:24 +00:00
Jackson Harper 85c05ef1d8 * XPathEditor.cs: .net 1.2 only
svn path=/trunk/mcs/; revision=20149
2003-11-18 00:13:29 +00:00
Atsushi Eno 40e9508231 2003-11-17 Atsushi Enomoto <[email protected]>
* AsyncXmlTextWriter.cs, IXPathChangeNavigator.cs, IXPathEditor.cs,
	  IXPathNavigator.cs, IXmlDataEvidence.cs, IXmlNamespaceResolver.cs,
	  UpdateEventHandler.cs, XPathChangeNavigator.cs, XPathDocument2.cs,
	  XPathDocument2ChangedEventAction.cs,
	  XPathDocument2ChangedEventHandler.cs, XPathEditor.cs,
	  XPathNavigator2.cs, XmlChangeFilters.cs, XmlInfoItemType.cs,
	  XmlNamespaceScope.cs, XmlNodeChangeType.cs, XmlQualifiedNameTable,cs,
	  XmlQueryDialect.cs, XmlUpdateEventArgs.cs
	  : Added .NET 1.2 classes (for convenience of ObjectSpaces stubbing).

svn path=/trunk/mcs/; revision=20121
2003-11-17 18:00:17 +00:00
Atsushi Eno b66b7ca806 2003-11-02 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
	  to skip XmlEntityReference.
	* XmlTextWriter.cs : Fixed AddMissingElements() and
	  WriteStartAttribute() not to emit extraneous xmlns.

svn path=/trunk/mcs/; revision=19552
2003-11-02 14:15:04 +00:00
Atsushi Eno f07ba5468a 2003-11-02 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : Skip multiple xmlns when element and any of
	  attributes have the same xmlns values.
	  WriteEndElement() allows open attribute (calles WriteEndAttribute()).
	  Indentation should be inserted between ">" and "</xxx>" .

svn path=/trunk/mcs/; revision=19546
2003-11-02 08:03:08 +00:00
Pedro Martínez Juliá 37b37cedbc 2003-11-02 Pedro Mart�nez Juli� <[email protected]>
* XmlConvert.cs: Only parse INF/-INF/NaN. Other Infinty or NAN
    numbers are parsed with the respective ::Parse method.

svn path=/trunk/mcs/; revision=19534
2003-11-01 23:47:00 +00:00
Pedro Martínez Juliá 1edf6a5bb4 2003-11-01 Pedro Mart�nez Juli� <[email protected]>
* XmlConvert.cs: Revert my last change. INF and -INF must be
    processed here because Double::Parse and Single::Parse doesn't
    understand anything of parsing [-]INF.

svn path=/trunk/mcs/; revision=19533
2003-11-01 23:42:02 +00:00
Atsushi Eno d952a741cc 2003-11-01 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : Save(Stream) should not close the stream.

svn path=/trunk/mcs/; revision=19517
2003-11-01 11:52:28 +00:00
Atsushi Eno 5f6674b5da 2003-10-25 Atsushi Enomoto <[email protected]>
* DTDReader.cs, DTDValidatingReader.cs, XmlInputStream.cs,
	  XmlTextReader.cs : More cleanup.
	* XmlDocument.cs : Removed CheckName(). Code cleanup.
	* XmlElement.cs : .ctor() now adds default attributes (if required).
	* XmlAttribute.cs, XmlElement.cs, XmlEntity.cs, XmlEntityReference.cs,
	  XmlNotation.cs : Now uses OwnerDocument's NameTable.

svn path=/trunk/mcs/; revision=19404
2003-10-26 03:39:03 +00:00
Pedro Martínez Juliá 371204e925 2003-10-25 Pedro Mart�nez Juli� <[email protected]>
* XmlConvert.cs: Support for the sign in double and single. The
    processing of the infinites and nan numbers are more complex than
    comparing to "INF" so we must let Double::Parse and Single::Parse
    doing their job.

svn path=/trunk/mcs/; revision=19393
2003-10-25 20:22:02 +00:00
Atsushi Eno 9a5b6800ec 2003-10-25 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : Now it handles whitespace entity as
	  significant.
	* XmlConvert.cs : As to NIST testcases, exponential support on single
	  and double floating point numbers.
	* XmlValidatingReader.cs : If it IsDefault, then line number and line
	  position returns 0.

svn path=/trunk/mcs/; revision=19384
2003-10-25 15:52:43 +00:00
Atsushi Eno 4cb580369a 2003-10-25 Atsushi Enomoto <[email protected]>
* DTDReader.cs,
	  XmlConstructs.cs,
	  XmlTextReader.cs,
	  XmlWriter.cs : Fixed incorrect access modifier.
	* XmlTextWriter.cs : Imported state variable from XmlWriter.
	* DTDValidatingReader.cs : Removed extraneous MonoTODO.
	* XmlConvert.cs : Implemented ToTimeSpan().
	  Modified ToDateTime() to reuse the same array.

svn path=/trunk/mcs/; revision=19373
2003-10-25 09:36:42 +00:00
Atsushi Eno b8058c932d 2003-10-19 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : Fixed synchronization stuff.
	* XmlConvert.cs : Added two FromBinHexString() methods.
	* XmlTextReader.cs : Modified to use one of the above method.
	* XmlValidatingReader.cs : XsdValidatingReader.XmlResolver will be
	  disabled (in the next commit), so resolver won' be set to it.
	  Attempt to validate against XDR now throws NotSupportedException.

svn path=/trunk/mcs/; revision=19191
2003-10-19 13:56:55 +00:00
Atsushi Eno d86a6f346b 2003-10-19 Atsushi Enomoto <[email protected]>
* XmlChar.cs : added WhitespaceChars, used in common.
	* XmlConvert.cs,
	  XmlDeclaration.cs,
	  XmlParserInput.cs,
	  XmlTextReader.cs,
	  XmlTextWriter.cs : String.Trim()
	* XmlConvert.cs : shifted XmlConstructs to XmlChar.
	* XmlTextReader.cs : Implemented Normalization.

svn path=/trunk/mcs/; revision=19188
2003-10-19 09:23:29 +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 035b374b64 2003-10-18 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : CloneNode() does not copy PreserveWhitespace.
	* XmlWriter.cs : Calling WriteNode() with XmlReader whose state is
	  XmlDeclaration now calls WriteProcessingInstruction(). This fixes
	  testcase XmlWriterTests.WriteNodeFullDocument().
	* XmlTextWriter.cs : Added LAMESPEC comments related to above.

svn path=/trunk/mcs/; revision=19161
2003-10-18 15:21:26 +00:00
Miguel de Icaza b0d537f12e Use the default encoding from the StreamWriter if no encoding was passed
svn path=/trunk/mcs/; revision=18992
2003-10-13 21:51:15 +00:00
Atsushi Eno 15ed3550d0 2003-10-13 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : Fixed bugzilla #49607. Save() outputs XML
	  declaration even though there is no XmlDeclaration child.
	* XmlTextReader.cs : Fixed Init() so that ResetState() should work.

svn path=/trunk/mcs/; revision=18976
2003-10-13 17:48:28 +00:00
Atsushi Eno fbbe421807 2003-10-13 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : Implemented WriteSurrogateCharEntity().
	  Reverted my recent extraneous check in WriteStartAttribute().

svn path=/trunk/mcs/; revision=18959
2003-10-13 12:06:21 +00:00
Atsushi Eno a8b09dc4f6 2003-10-13 Atsushi Enomoto <[email protected]>
* XmlNode.cs : GetNamespaceOfPrefix() should check Attributes existence.
	  And it should throw ArgumentNullException.

svn path=/trunk/mcs/; revision=18949
2003-10-13 03:32:45 +00:00
Atsushi Eno b9afb3f024 2003-10-13 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : Fixed InnerText that did not removed its content
	  if there is two or more children.
	* XmlNode.cs : XmlNode.cs : Fixed bugzilla #49580 (1)to return "",
	  (2)not to compare NodeType for detached nodes, (3)optimization to
	  compare element's prefix.
	* XmlSecureResolver.cs : Removed extraneous members.

svn path=/trunk/mcs/; revision=18948
2003-10-13 03:08:07 +00:00