Commit Graph
894 Commits
Author SHA1 Message Date
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 efcfec2517 2006-12-12 Atsushi Enomoto <[email protected]>
* XmlNode.cs : InnerText was returning comment text when there was
	  only a Comment node. Fixed bug #80233.

	* XmlNodeTests.cs : added test for bug #80233.


svn path=/trunk/mcs/; revision=69392
2006-12-12 12:15:13 +00:00
Atsushi Eno a175a4e0a0 2006-12-12 Atsushi Enomoto <[email protected]>
* XmlReader.cs : Create() with string url was not returning validating
	  XmlReader.

	* XmlReaderSettingsTests.cs : added test to make sure that Create()
	  returns a validating XmlReader.


svn path=/trunk/mcs/; revision=69383
2006-12-12 04:18:42 +00:00
Atsushi Eno cc34d1694b 2006-12-12 Atsushi Enomoto <[email protected]>
* DTDValidatingReader2.cs : when an attribute declaration is missing
	  in the corresponding attlist declaration, it caused NRE.
	  Fixed bug #80231.

	* XmlValidatingReaderTests.cs : added test for bug #80231.


svn path=/trunk/mcs/; revision=69382
2006-12-12 03:13:15 +00:00
Atsushi Eno 6c8f6ac907 2006-12-11 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : call overriden CreateAttribute() when loading from
	  XmlReader.

	* XmlDocumentTests.cs : make sure to call overriden CreateAttribute()
	  when loading from XmlReader.


svn path=/trunk/mcs/; revision=69290
2006-12-11 02:37:59 +00:00
Atsushi Eno d595cb3fbd 2006-12-05 Atsushi Enomoto <[email protected]>
* XmlReader.cs : new 2.0 MoveToAttribute(int) failed to move to the
	  final attribute in an element.

	* XPathNavigatorReaderTests.cs : added test for MoveToAttribute(int).


svn path=/trunk/mcs/; revision=69026
2006-12-05 11:12:02 +00:00
Atsushi Eno 23638c8d3c 2006-12-05 Atsushi Enomoto <[email protected]>
* XmlNode.cs : GetPrefixOfNamespace() was not correctly searching
	  ancestors' namespaces.

	* XPathEditableDocument.cs : those writers should lookup prefix when
	  WriteStartElement/WriteStartAttribute are passed null prefix.
	  Removed nodeStack in XmlDocumentInsertionWriter, since nodes are
	  always added to current node immediately.

	* XmlNodeTests.cs : added another test for GetPrefixOfNamespace().

	* XPathNavigatorTests.cs : added test for XPath navigator editor's
	  LookupPrefix().


svn path=/trunk/mcs/; revision=69021
2006-12-05 10:07:29 +00:00
Atsushi Eno 983e7a1263 2006-11-20 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : fixed some relationship between
	  ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
	  See new tests more details.
	* XmlWriter.cs : it could reuse XmlTextWriter.ctor(TextWriter,
	  XmlWriterSettings). It also resulted in dropping several internal
	  members in XmlTextWriter.

	* XmlWriterSettingsTests.cs : added tests for relationship between
	  ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().


svn path=/trunk/mcs/; revision=68180
2006-11-20 09:39:58 +00:00
Atsushi Eno 1d3440fc5d sanitizing MonoTODOs.
svn path=/trunk/mcs/; revision=67899
2006-11-15 11:31:25 +00:00
Atsushi Eno 6c0c6858a8 2006-11-14 Atsushi Enomoto <[email protected]>
* XmlReaderSettings.cs : in copy constructor, copy (dispatch)
	  validation event as well. Add OnValidationError() to be invoked
	  by other internal stuff to raise the validation event.

	* XmlSchemaValidatingReader.cs : dispatch validation events from
	  XmlReaderSettings. Turned out that outside System.Xml.dll
	  XmlReaderSettings.ValidationEventHandler is useless.

	* XmlReaderSettingsTests.cs : added validation event handler test
	  case.


svn path=/trunk/mcs/; revision=67814
2006-11-14 07:28:29 +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 c0bc54dedd 2006-10-30 Atsushi Enomoto <[email protected]>
* XmlTextReader2.cs : if DTD does not exist, do not try to resolve
	  entity from null DTD (caused NRE). Fixed bug #79620.


svn path=/trunk/mcs/; revision=67124
2006-10-30 11:44:50 +00:00
Atsushi Eno bf12cc0a6d 2006-10-27 Atsushi Enomoto <[email protected]>
* DTDReader.cs : some parameter entity expansions were not done.
	  Fixed bug #79683.

	* 79683.dtd : added for bug #79683.

	* XmlTextReaderTests.cs : added bug #79683 case.

	* Makefile : added 79683.dtd to dist file.


svn path=/trunk/mcs/; revision=67025
2006-10-27 13:14:25 +00:00
Atsushi Eno 2d523b995c 2006-09-27 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : null arg check.


svn path=/trunk/mcs/; revision=65998
2006-09-27 20:58:34 +00:00
Atsushi Eno 88edd02629 2006-09-26 Atsushi Enomoto <[email protected]>
* XmlDeclaration.cs :
	  Removed bogus return statement in Value. Fixed bug #79496.

	* XmlDeclarationTests.cs : added bug #79496 case.


svn path=/trunk/mcs/; revision=65921
2006-09-26 15:52:09 +00:00
Atsushi Eno e2b9ba5fa5 2006-09-21 Atsushi Enomoto <[email protected]>
* XmlNameEntryCache.cs : It should expand temporary buffer even at
	  initial state. Fixed bug #79468.

	* XmlDocumentTests.cs : added bug #79468 case.


svn path=/trunk/mcs/; revision=65803
2006-09-22 03:21:03 +00:00
Atsushi Eno a6e2f53a1d 2006-09-19 Atsushi Enomoto <[email protected]>
* XmlElement.cs : for non-atomized names, alter null prefix with "".
	  Fixed bug #79420.

	* XmlElementTests.cs : added test for #79420.
	* XmlAttributeTests.cs : added similar test.
	* XmlDocumentTests.cs : fix warnings.


svn path=/trunk/mcs/; revision=65621
2006-09-19 05:13:39 +00:00
Atsushi Eno ec7c2c1d49 2006-09-04 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadContentAsString() and its family should allow 
	  attribute node. Fixed bug #79268.

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


svn path=/trunk/mcs/; revision=64843
2006-09-04 05:06:44 +00:00
Atsushi Eno d543ed0b78 2006-09-01 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : expect atomized names only when it is
	  appropriate. Fixed bug #79047.

	* XmlTextWriterTests.cs : added test for bug #79047


svn path=/trunk/mcs/; revision=64676
2006-09-01 05:21:48 +00:00
Atsushi Eno c5064307cb 2006-08-26 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
	  so that it could fill default and fixed attributes. This ends up
	  to fix bug #79163 (it fills fixed "xmlns" attribute and thus
	  the node's namespace URI becomes that of glade-2.0).

	* XmlDocumentTests.cs : added test for bug #79163.


svn path=/trunk/mcs/; revision=64413
2006-08-26 16:53:41 +00:00
Atsushi Eno f97f300d60 2006-08-17 Atsushi Enomoto <[email protected]>
* XmlEntity.cs, XmlEntityReference.cs, XmlNode.cs :
	  create entity content only when its children is being accessed.
	  It results differently when there is no actual reference in the
	  document - an invalid entity value (when it is used to create
	  child nodes) is ignored unless a code tries to access the Value
	  of an XmlEntity. Fixed bug #79091
	* DTDReader.cs : the fix above uncovered another bug (ibm66n03.xml).
	  Check illegal reference name in literal entity value.


svn path=/trunk/mcs/; revision=63900
2006-08-17 11:55:56 +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
Kornél Pál 2d604bc51e Converted ChangeLogs to UTF-8 and recovered incorrectly encoded characters.
svn path=/trunk/mcs/; revision=63835
2006-08-16 19:42:08 +00:00
Atsushi Eno d63cba1c01 2006-08-16 Atsushi Enomoto <[email protected]>
* XmlTextReader2.cs : Check recursive entity reference.
	  Fixed bug #79085. It makes W3C standalone tests on NET_2_0 working.


svn path=/trunk/mcs/; revision=63812
2006-08-16 13:31:06 +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 fc826ee0c8 2006-08-10 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : more indentation fixes. Now I believe it is
	  almost MS compat, but it won't help poor Mike.

	* XmlTextWriterTests.cs : more indentation tests.


svn path=/trunk/mcs/; revision=63574
2006-08-10 05:56:02 +00:00
Atsushi Eno e8adca21e7 2006-08-07 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : WriteBinHex() is allowed at Attribute state.
	  Fixed bug #79019.

	* XmlTextWriterTests.cs : test for #79019.


svn path=/trunk/mcs/; revision=63422
2006-08-07 03:36:21 +00:00
Atsushi Eno 93c714b33f 2006-07-28 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : fixed some indentation bugs: comments and PIs
	  should not cause indentation override like text, cdata and
	  whitespaces do.
	  Fixed some error messages on node kind.
	* XmlTextWriter.cs, XmlTextWriterOpenElement.cs : removed old code.
	  (I don't want to remove old great code but it confused mike today.)

	* XmlTextWriterTests.cs : added test case for comments, PIs and
	  indentation.


svn path=/trunk/mcs/; revision=63079
2006-07-28 15:45:18 +00:00
Atsushi Eno 6331ad5c79 2006-07-26 Atsushi Enomoto <[email protected]>
Refactoring compilation to make Compile() portable to
	XmlSchemaSet.Compile() and fix multi-schema bugs (not done yet)

	* XmlSchema.cs : 
	  Removed "root schema" concept from Compile().
	  Since nested inclusion does not result in an error, the role of
	  schemaLocationStack is identical to handledUris, thus removed it.
	  The handledUris does not have to be a field.
	  Moved NamedIdentities and IDCollections to XmlSchemaSet.
	  Renamed a Compile() which is called from XmlSchemaCollection and
	  XmlSchemaSet as CompileSubset(). Renamed private Compile() as
	  DoCompile().
	  public Compile() now internally creates a new XmlSchemaSet and
	  compiles the set.
	* XmlSchemaCollection.cs : now it hooks its schemaSet's validation
	  event handler and thus XmlSchemaSet does not need to check this
	  collection's event handler by itself.
	  XmlSchema.Compile() -> XmlSchema.CompileSubset().
	* XmlSchemaSet.cs :
	  Removed SchemaCollection which became unneccessary.
	  Added NamedIdentities and IDCollection.
	  XmlSchema.Compile() -> XmlSchema.CompileSubset().
	* XmlSchemaAttributeGroupRef.cs, XmlSchemaXPath.cs
	  XmlSchemaSimpleTypeList.cs, XmlSchemaComplexContentRestriction.cs,
	  XmlSchemaGroup.cs, XmlSchemaComplexContentExtension.cs,
	  XmlSchemaSequence.cs, XmlSchemaSimpleContentRestriction.cs,
	  XmlSchemaSimpleContentExtension.cs, XmlSchemaAny.cs,
	  XmlSchemaElement.cs, XmlSchemaNotation.cs, XmlSchemaAll.cs,
	  XmlSchemaComplexType.cs, XmlSchemaAnnotation.cs,
	  XmlSchemaAttributeGroup.cs, XmlSchemaSimpleTypeRestriction.cs,
	  XmlSchemaSimpleContent.cs, XmlSchemaGroupRef.cs,
	  XmlSchemaChoice.cs, XmlSchemaSimpleType.cs,
	  XmlSchemaIdentityConstraint.cs, XmlSchemaSimpleTypeUnion.cs,
	  XmlSchemaAnyAttribute.cs, XmlSchemaComplexContent.cs,
	  XmlSchemaAttribute.cs, XmlSchemaObject.cs :
	  removed XmlSchemaObject.IsCompiled(). Check compilation state by
	  comparing compilation ID directly.

	* XmlReader.cs :
	  For DTD validator, call to SetSchemas() makes no sense.
	* XmlValidatingReader.cs : now it internally holds old
	  XmlSchemaCollection instead of new XmlSchemaSet, to make
	  XmlSchemaSet.SchemaCollection unneccessary.
	  Removed SetSchemas() since it is now extraneous because of the
	  XmlReaderChange above.


svn path=/trunk/mcs/; revision=62988
2006-07-26 10:13:56 +00:00
Atsushi Eno 2e8e4e6a2f 2006-07-25 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : TimeSpan conversion for TimeSpan.MinValue was
	  failing.

	* XmlConvertTest.cs :
	  Added TimeSpan conversion test for min/max values.


svn path=/trunk/mcs/; revision=62944
2006-07-25 08:42:59 +00:00
Atsushi Eno f142637031 2006-07-19 Atsushi Enomoto <[email protected]>
* XmlReader.cs : In Create(), support validation flags for DTD.
	* DTDValidatingReader2.cs : when NET_2_0 and ProcessIdentityConstraints
	  is false, skip ID validation.


svn path=/trunk/mcs/; revision=62755
2006-07-19 17:25:58 +00:00
Atsushi Eno e7937e3666 2006-06-26 Atsushi Enomoto <[email protected]>
* XmlReader.cs : when Create() received string url, it should set 
	  XmlTextReader2.CloseInput always true. Fixed bug #78706.

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


svn path=/trunk/mcs/; revision=62053
2006-06-26 04:45:26 +00:00
Atsushi Eno 234edcaeed 2006-06-08 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : if an attribute being written has the same
	  non-empty namespace URI as current default namespace, its prefix
	  should be written. Fixed bug #78598.

	* XmlTextWriterTests.cs : added test for bug #78598.


svn path=/trunk/mcs/; revision=61550
2006-06-08 02:39:12 +00:00
Atsushi Eno 95f31f664c 2006-05-09 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : (WriteTo) when the namespace URI is empty,
	  always use empty string for prefix.

	* XmlAttributeTests.cs : added NonEmptyPrefixWithEmptyNS().


svn path=/trunk/mcs/; revision=60438
2006-05-09 11:55:53 +00:00
Geoff Norton 9f3e358a8b 2006-04-27 Geoff Norton <[email protected]>
* XmlDocument.cs: Move back to the element after
        reading an attribute.  This mimics Microsofts behaviour.


svn path=/trunk/mcs/; revision=60005
2006-04-27 19:04:56 +00:00
Atsushi Eno a301e7e1da 2006-04-21 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
	  rejected after writing some content. I totally disagree on that
	  it should be allowed, but here is the fix.

	* XmlTextWriterTests.cs : test for bug #78148.


svn path=/trunk/mcs/; revision=59722
2006-04-21 02:29:45 +00:00
Atsushi Eno 4bc7d6b705 2006-04-14 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadElementContentAsObject() incorrectly rejected
	  the argument type System.Object.

	* XmlReaderCommonTests.cs : added test for ReadElementContentAs()
	  with argument typeof(object).


svn path=/trunk/mcs/; revision=59479
2006-04-14 09:55:16 +00:00
Atsushi Eno 5bcb1c6d8d 2006-04-10 Atsushi Enomoto <[email protected]>
* XPathNavigatorCommonTests.cs : added test for bug #78067.
	* XPathNavigatorReaderTests.cs : ditto, for ReadSubtree() part.

	* XPathNavigatorReader.cs : Read() did not compute Depth correctly.
	  It caused bug #78067.

	* XPathNavigator.cs : get_OuterXml() returns indented output, without
	  XML declaration.

	* XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
	  and root nodes instead of dispatching to ReadSubtree().


svn path=/trunk/mcs/; revision=59286
2006-04-10 09:37:41 +00:00
Atsushi Eno bbbe93b299 2006-04-06 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadElementContentAsXXX() did not consume empty
	  element correctly.

	* XmlReaderCommonTests.cs : added test for 
	  ReadElementContentAsString() and empty element.


svn path=/trunk/mcs/; revision=59111
2006-04-06 12:12:50 +00:00
Atsushi Eno ac928fb2a9 2006-04-05 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : Create(StringBuilder,XmlWriterSettings) was missing
	  settings argument to pass another .ctor().
	* XmlWriterSettings.cs : set_NewLineChars() should reject null.

	* XmlWriterSettingsTest.cs : added tests on set_Encoding(),
	  set_NewLineChars() and OmitXmlDeclaration.


svn path=/trunk/mcs/; revision=59061
2006-04-05 13:36:56 +00:00
Boris Kirzner 5ab5c2fdd5 Fix .Net Soap serialization compatibility.
svn path=/trunk/mcs/; revision=58928
2006-04-03 10:30:43 +00:00
Atsushi Eno c463f3240d 2006-03-28 Atsushi Enomoto <[email protected]>
* XmlNameEntry.cs XmlNameEntryCache.cs :
	  Added atomization support for prefixed names.
	  Inspired by Joshua Tauberer's patch.
	* XmlElement.cs XmlAttribute.cs : use above.


svn path=/trunk/mcs/; revision=58637
2006-03-28 03:44:08 +00:00
Atsushi Eno 659cdc1ac2 2006-03-23 Atsushi Enomoto <[email protected]>
* XmlReader.cs : in XmlReader.Create() ValidationType Auto and XDR
	  are simply ignored (it was found on running NvdlValidatingReader
	  under MS.NET 2.0).


svn path=/trunk/mcs/; revision=58354
2006-03-23 13:07:37 +00:00
Atsushi Eno a5ab4e3f7b 2006-03-23 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : avoid NullReferenceException. Input
	  XmlReader might not be IHasXmlParserContext.


svn path=/trunk/mcs/; revision=58345
2006-03-23 09:23:30 +00:00
Atsushi Eno 45352253ca 2006-03-08 Atsushi Enomoto <[email protected]>
* XmlReader.cs: ReadContentAsXXX() just stops at start element,
	  without rejecting it as an error.
	  ReadElementContentAsXXX() rejects child element nodes.

	* XmlReaderCommonTests.cs : Added tests for ReadContentAsString() and
	  ReadElementContentAsString().


svn path=/trunk/mcs/; revision=57691
2006-03-08 12:33:01 +00:00
Atsushi Eno c01749afbc 2006-02-28 Atsushi Enomoto <[email protected]>
* XmlElement.cs : (WriteTo) use IsEmpty to determine which to use:
	  WriteEndElement() and WriteFullEndElement(). Fixed sys.security
	  regression.


svn path=/trunk/mcs/; revision=57395
2006-02-28 15:59:55 +00:00
Atsushi Eno 9275dc19bf 2006-02-24 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs :
	  WriteRaw() has stupid second arg. Fixed bug #77623.
	  WriteString() should raise an error when it is called immediately
	  after WriteStartDocument().

	* XmlTextWriterTests.cs : added test for bug #77623. Also fixed
	  WriteString() test which failed to fail (Assert.Fail).


svn path=/trunk/mcs/; revision=57229
2006-02-24 06:58:11 +00:00
Atsushi Eno 64477a4650 2006-02-22 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : WriteChars() should allow Attribute state.


svn path=/trunk/mcs/; revision=57146
2006-02-22 07:46:09 +00:00
Atsushi Eno 578b26de8c 2006-02-22 Atsushi Enomoto <[email protected]>
* XmlChar.cs : (IndexOfInvalidChar) fixed surrogate pairs handling.
	  They were always regarded as invalid.
	* XmlTextWriter2.cs : seems like MS XmlTextWriter outputs invalid
	  characters as character references. It totally does not make sense
	  but corcompare depended on that behavior.

	  This "compatibility" fix causes 10% or more performance loss!!!

	* XmlTextWriterTests.cs : added invalid character processing test.


svn path=/trunk/mcs/; revision=57145
2006-02-22 07:05:20 +00:00