Commit Graph
376 Commits
Author SHA1 Message Date
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
Atsushi Eno a02a5b1d9c 2003-10-09 Atsushi Enomoto <[email protected]>
* Added DTDReader.cs. It is almost importation of XmlTextReader.
	* DTDObjectModel.cs :
	  - More .NET-ism. Properties took place of fields.
	  - Imported PE set from XmlTextReader. Added location info.
	  - Added DTDEntityBase common to PE and GE.
	  - More correct text declaration handling with new XmlTextReader.
	* DTDValidatingReader.cs :
	  - Now uses entity resolving XmlTextReader to validate attributes
	    correctly. Implemented standalone
	  - Standalone and default related validity constraints check.
	* XmlImplementation.cs: Implemented HasFeature().
	* XmlNode.cs : Implemented Supports().
	* XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
	* XmlParserInput.cs : Removed extraneous members.
	* XmlTextReader.cs :
	  - All DTD related functionality now goes to DTDReader.cs
	  - It became old simple TextReader input style.
	  - Implemented GetRemainder().
	  - Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
	    additional new private method ReadUntilEndTag().
	  - Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
	    ReadXmlDeclaration() now became simple.
	  - More strict entity reference check at SetEntityReferenceProperty()
	  - Removed extraneous members.
	* XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.

svn path=/trunk/mcs/; revision=18812
2003-10-09 19:13:16 +00:00
Gonzalo Paniagua Javier aebbfda1ff 2003-10-09 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs: when we get an unexpected EOF in ReadContent, set
	the state before throwing the exception if depth > 0.

svn path=/trunk/mcs/; revision=18786
2003-10-09 02:35:08 +00:00
Atsushi Eno 6cd4bcc7f3 2003-10-04 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : Removed extraneous MonoTODO.
	* XmlTextWriter.cs : Implemented WriteBinHex() and WriteChars().
	  WriteStartElement() and WriteStartAttribute() should ignore Prefix
	  if namespace uri is not specified.

svn path=/trunk/mcs/; revision=18594
2003-10-04 17:42:01 +00:00
Atsushi Eno f3b6ece17d 2003-10-04 Atsushi Enomoto <[email protected]>
* XmlDocumentFragment.cs,
	  XmlElement.cs,
	  XmlEntityReference.cs : Removed extraneous MonoTODO.
	* XmlNode.cs : Implemented Normalize().
	* XmlNodeReader.cs :
	  - AttributeCount and HasAttributes should return its owner element's
	    value, to be consistent with XmlTextReader.
	  - Fixed Depth to reflect correct attribute/attribute-value iteration.
	  - simplified ownerElement and HasValue.
	  - Prefix won't return null.
	  - MoveToElement() should also work against attribute value nodes.
	* XmlTextReader.cs : MoveToElement() should return false if it is
	  positioned at element itself.

svn path=/trunk/mcs/; revision=18589
2003-10-04 15:09:59 +00:00
Atsushi Eno 469f0f2e8a 2003-10-04 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Improved SignificantWhitespace handling.

svn path=/trunk/mcs/; revision=18582
2003-10-04 05:30:23 +00:00
Atsushi Eno 55f2fd0bea 2003-10-01 Atsushi Enomoto <[email protected]>
* XmlSecureResolver.cs : Implemented basic feature.

svn path=/trunk/mcs/; revision=18496
2003-10-01 23:05:31 +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
Lluis Sanchez 971083668c * XmlTextWriter.cs : An attribute can require a prefix for the default
namespace, so we need to store the prefix as well as the namespace.

svn path=/trunk/mcs/; revision=18469
2003-10-01 15:04:16 +00:00
Atsushi Eno ff5c9e2293 2003-09-30 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : Simplified to use
	  XmlSchemaUtil.GetParserContext().
	* XmlValidatingReader.cs : ValidationType.Auto should always use
	  XsdValidatingReader because xsi:schemaLocation might be used.

svn path=/trunk/mcs/; revision=18441
2003-09-30 19:12:06 +00:00
Atsushi Eno 1a44cecb32 2003-09-30 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Attribute value token properties were incorrectly
	  set by the linked node.

svn path=/trunk/mcs/; revision=18436
2003-09-30 17:17:52 +00:00
Atsushi Eno 1bf025113f 2003-09-26 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
	  considers such case that target node was not adapted to the document.
	* XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
	* XmlTextWriter.cs : use 'as'  instead of 'try..catch'.

svn path=/trunk/mcs/; revision=18308
2003-09-26 12:31:49 +00:00
Ben Maurer f45be9e722 2003-09-25 Ben Maurer <[email protected]>
* XmlNode.cs (XPathNodeType): Give more useful debugging message.
	* XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
	in MoveToNext.

svn path=/trunk/mcs/; revision=18302
2003-09-26 00:39:16 +00:00
Atsushi Eno 9d37f0560b 2003-09-23 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
	  recovery was still not enough. Fixed GrowScopes() (incorrect index).

svn path=/trunk/mcs/; revision=18271
2003-09-23 15:16:15 +00:00
Atsushi Eno 2b05aa1793 2003-09-21 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs :
	  - Fix for bugzilla #48337 (containing Ben's advice on that).
	  - Added internal XmlTokenInfo classes. Nodes are now handled as token
	    objects (linked node, attributes and attribute values). Most of the
	    node state properties and iterating methods are changed to refer to
	    the token classes (except for value builder availability). Removed
	    fields which are never used. CompileDTDSubset() is changed in
	    reflection to nodeType field removal.
	  - Fixed Depth that should vary in moving between attributes and/or
	    reading attribute values.
	  - LineNumber and LinePosition now returns more correct location.
	  - Fixed Value that should still return true if its value is an empty
	    attribute value string.
	  - EntityValue is checked WFC constraints even thoug it is not used.
	  - All .ctor() now initializes ReadState as Initial.
	  - Read() should be available for attribute value constructor.
	* XmlAttribute.cs : set_InnerXml() now calls reader's Read().

svn path=/trunk/mcs/; revision=18240
2003-09-21 08:05:31 +00:00
Atsushi Eno 56a621a674 2003-09-21 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs: PopScope() must retain those namespaces which
	  are added in the scope before PushScope() was called.

svn path=/trunk/mcs/; revision=18239
2003-09-21 07:17:05 +00:00
Ben Maurer 0dea21e9a0 2003-09-20 Ben Maurer <[email protected]>
* XmlNamespaceManager.cs: Rewrote. Uses arrays, rather than linked
	lists and removes uses of Hashtable. Results in huge speed gains.

svn path=/trunk/mcs/; revision=18225
2003-09-20 23:23:50 +00:00
Ben Maurer 73f4fc19f5 NaN.ToString () != INF.
svn path=/trunk/mcs/; revision=18198
2003-09-20 03:18:21 +00:00
Lluis Sanchez 16442aeba9 * XmlTextWriter.cs: Attributes that have a namespace must be always
prefixed.

svn path=/trunk/mcs/; revision=18083
2003-09-14 13:01:47 +00:00
Atsushi Eno 42f2e5051b 2003-09-13 Atsushi Enomoto <[email protected]>
* XmlTextWriterOpenElement.cs : Changed to receive prefix and localName
	  in .ctor().
	* XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement.
	  Changed xmlns adding scheme. In detail, 1) WriteStartElement does not
	  add Namespaces immediately, but adds at AddMissingElementXmlns so
	  that we don't have to have extra check than namespaceManager's
	  LookupPrefix(). 2) Removed writtenAttributes for performance reason
	  since it is no more required.

svn path=/trunk/mcs/; revision=18063
2003-09-13 17:33:09 +00:00
Ben Maurer f863bda93f *** empty log message ***
svn path=/trunk/mcs/; revision=18046
2003-09-12 00:28:40 +00:00
Atsushi Eno 0e1d16f71b 2003-09-10 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : patch by Jonathan Hogg. Fixed CreateAttribute()
	  that handled xmlns attributes inproperly.

svn path=/trunk/mcs/; revision=18024
2003-09-10 17:58:53 +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
Ben Maurer 68ec5ce1a6 Dont make function call to StringBuffer
svn path=/trunk/mcs/; revision=17981
2003-09-07 21:55:47 +00:00
Ben Maurer 55df2f030d more optimization
svn path=/trunk/mcs/; revision=17980
2003-09-07 21:38:21 +00:00
Ben Maurer 09ca3f3ac0 performance hacking
svn path=/trunk/mcs/; revision=17951
2003-09-06 20:29:44 +00:00
Ben Maurer aad7ab6a71 2003-09-01 Ben Maurer <[email protected]>
* XmlDocument.cs (Save): use the encoding of the document, if
	available.

svn path=/trunk/mcs/; revision=17808
2003-09-01 21:54:45 +00:00
Atsushi Eno 4b0fc2dec7 2003-08-24 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : Implemented SchemaType. Added support for
	  ValidationType.Schema. Added support for XmlResolver. Fixed
	  ReadTypedValue() not to consume EndElement.

svn path=/trunk/mcs/; revision=17561
2003-08-24 19:10:41 +00:00