Commit Graph
535 Commits
Author SHA1 Message Date
Atsushi Eno f064d7982f ugh, the patch was changing different ChangeLog :(
svn path=/trunk/mcs/; revision=41613
2005-03-09 19:57:21 +00:00
Atsushi Eno 785a6f581f 2005-03-09 Atsushi Enomoto <[email protected]>
* XmlParserInput.cs : silly mixed line endings :(


svn path=/trunk/mcs/; revision=41608
2005-03-09 17:53:30 +00:00
Atsushi Eno 3cee4bfb34 2005-03-08 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : namespace declaration check for those which starts
	  with 'x' 'm' 'l' should not be done here (it might be 'declared'
	  though reserved).
	* XmlNamespaceManager.cs : error message for "'xml' prefix for
	  different namespace" is incorrect.


svn path=/trunk/mcs/; revision=41546
2005-03-08 06:06:59 +00:00
Atsushi Eno b074c39916 2005-03-07 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : ugh, so I introduced extraneous reader.Read() in
	  ReadNode() for EntityReference and it resulted in unexpected skip.
	* DTDValidatingReader.cs : On EndEntity, LocalName and Name should
	  return the name of entity. Removed unused entityReaderNameStack.


svn path=/trunk/mcs/; revision=41533
2005-03-07 17:12:00 +00:00
Atsushi Eno 7f53c871e4 2005-03-07 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : reverted one change in r40985. Entity stack
	  is nothing to do with ReadAttributeValue().


svn path=/trunk/mcs/; revision=41511
2005-03-07 09:31:38 +00:00
Atsushi Eno 7e1ed138ed 2005-03-07 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : When there was actual attribute in source 
	  XmlReader, MoveToAttribute(i) did not move source reader as expected.



svn path=/trunk/mcs/; revision=41510
2005-03-07 08:56:33 +00:00
Atsushi Eno 11d67c1519 2005-03-03 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : In ReadNode(), on EntityReference node, when 
	  XmlReader can resolve entity, it expands entity and apppend 
	  children into the entity reference. Patch by Konstantin Triger.


svn path=/trunk/mcs/; revision=41425
2005-03-04 05:41:14 +00:00
Atsushi Eno cd668536eb 2005-03-03 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : For duplicating namespace mapping, it should
	  create another prefix without throwing an exception.

	* XmlTextWriterTests.cs : added testcase for duplicating namespace 
	  mapping processing (should create another prefix, not exception).


svn path=/trunk/mcs/; revision=41387
2005-03-03 09:25:16 +00:00
Atsushi Eno 5527fe3ce9 2005-03-02 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : LookupPrefix() should not return those prefix
	  that is overriden by another xmlns declaration.

	* XmlTextWriterTests.cs : Added test for LookupPrefix() for
	  overriden prefix.


svn path=/trunk/mcs/; revision=41372
2005-03-02 19:02:39 +00:00
Atsushi Eno c772137287 2005-02-26 Atsushi Enomoto <[email protected]>
* XslFunctions.cs : unparsed-entity-uri() should return SYSTEM ID
	  instead of BaseURI.

	* XmlEntity.cs : it was not returning SYSTEM ID when there is no
	  PUBLIC ID.
	* XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
	  get_NodeType() resulted in loop.


svn path=/trunk/mcs/; revision=41239
2005-02-26 16:54:11 +00:00
Atsushi Eno 5d693154f9 2005-02-25 Atsushi Enomoto <[email protected]>
* XmlComment.cs, XmlNode.cs, XmlText.cs, XmlProcessingInstruction.cs,
	  XmlEntityReference.cs, XmlSignificantWhitespace.cs, XmlAttribute.cs,
	  XmlElement.cs, XmlEntity.cs, XmlCDataSection.cs :
	  For those nodes that are created by Clone(), IsReadOnly is false.
	  Patch by Konstantin Triger.

	* XmlNodeTests.cs : added Clone() of readonly node returns a node
	  that is not readonly.



svn path=/trunk/mcs/; revision=41185
2005-02-25 09:39:56 +00:00
Atsushi Eno 275a07c82e 2005-02-25 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : iteratedNames array could be fixed and
	  performance got improved. Patch by Knstantin Triger.


svn path=/trunk/mcs/; revision=41182
2005-02-25 07:21:28 +00:00
Atsushi Eno 71fa56f043 2005-02-25 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : MS does not reject non-NCName prefix. Patch by
	  Konstantin Triger.

	* XmlAttributeTests.cs : added nonNCName Prefix case.


svn path=/trunk/mcs/; revision=41181
2005-02-25 06:50:09 +00:00
Atsushi Eno b7a95b1570 2005-02-24 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : WriteString() should be valid when 
	  WriteStartDocument() was not called.

	* XmlTextWriterTests.cs : Test for call to WriteRaw() -> WriteString()


svn path=/trunk/mcs/; revision=41159
2005-02-24 14:20:00 +00:00
Atsushi Eno a28cd51c40 2005-02-23 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : IsValidDeclaration was giving useless error
	  information.

	* GenericOutputter.cs : It should not attempt to write prefix "xml" and
	  namespace "http://www.w3.org/XML/1998/namespace".


svn path=/trunk/mcs/; revision=41094
2005-02-23 14:47:39 +00:00
Atsushi Eno 5f5e3472a9 2005-02-23 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : it should virtually expand EntityReference,
	  so refactored to handle both entity references and top level children.


svn path=/trunk/mcs/; revision=41082
2005-02-23 07:53:00 +00:00
Atsushi Eno 5b8aa4a2f8 2005-02-22 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : XmlParserContext was not properly popped on
	  the expected timing and thus had lost BaseURI, XmlSpace and XmlLang.


svn path=/trunk/mcs/; revision=41021
2005-02-22 08:33:53 +00:00
Atsushi Eno 1c93b8f685 2005-02-21 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : It should not skip whitespace and
	  significant whitespace nodes unless it is expanding entities.
	* XmlDocumentNavigator.cs : Fixed NodeType that was returning
	  incorrect type when there is a sequence of text/cdata/space nodes.


svn path=/trunk/mcs/; revision=40985
2005-02-21 13:11:35 +00:00
Atsushi Eno cc6208377f 2005-02-18 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : Prefix "xml" is bound to the fixed
	  namespace "http://www.w3.org/XML/1998/namespace", but it is not
	  vice versa (i.e. we can use other prefixes for this namespace URI).


svn path=/trunk/mcs/; revision=40842
2005-02-18 06:24:10 +00:00
Atsushi Eno 1b6d1852f5 2005-02-17 Atsushi Enomoto <[email protected]>
* XmlNode.cs : It does not have to iterate children to find argument
	  node. Fixed exception type to ArgumentException. Patch by Andrew
	  Skiba.


svn path=/trunk/mcs/; revision=40793
2005-02-17 07:58:10 +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
Atsushi Eno 78f19205da 2005-02-15 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : For default attributes, WriteTo() writes nothing
	  under MS.NET.
	* DTDValidatingReader.cs : reduced indentation using Linus trick
	  (it was too deep in nest).



svn path=/trunk/mcs/; revision=40691
2005-02-15 11:51:00 +00:00
Atsushi Eno 0ff43514f8 2005-02-14 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : Namespaces and prefixes are not properly
	  handled (it incorrectly assumed DTD definitions and thus always 
	  assumed empty namespace/prefixes).


svn path=/trunk/mcs/; revision=40649
2005-02-14 20:34:21 +00:00
Atsushi Eno 14d46993f6 2005-02-14 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : element name stack might be empty when the
	  input XmlReader contains fragments. Patch by Andrew Skiba.


svn path=/trunk/mcs/; revision=40637
2005-02-14 16:27:14 +00:00
Martin Baulig 06dbf17232 2005-01-25 Martin Baulig <[email protected]>
* XmlNode.cs (XmlNode.SchemaInfo): Mark this as not CLS-compliant
	to avoid a CS3025.

	* XmlReaderSettings.cs (XmlReaderSettings.XmlResolver): Mark this
	as not CLS-compliant to avoid a CS3025.


svn path=/trunk/mcs/; revision=39449
2005-01-25 01:02:31 +00:00
Atsushi Eno e65be58d88 2005-01-18 Atsushi Enomoto <[email protected]>
* XmlNode.cs,
	  XmlAttribute.cs,
	  XmlAttributeCollection.cs :
	  Now reuse parentNode field for XmlAttribute.OwnerElement and
	  reduce class allocation size.
	* XmlNameEntry.cs :
	  New class that represents a name triplet.
	  XmlNameEntryCache.cs :
	  New type to cache name entries.
	* XmlAttribute.cs,
	  XmlElement.cs :
	  Replace name strings with name entry and save class allocation size.
	  XmlDocument.cs :
	  Add name entry cache field to document and reuse name entries that 
	  are already allocated.



svn path=/trunk/mcs/; revision=39086
2005-01-18 10:41:55 +00:00
Atsushi Eno 78aab415aa 2005-01-17 Atsushi Enomoto <[email protected]>
* XmlNode.cs, XmlAttribute.cs : reverted the previous patch. It broke
	  several nunit tests.



svn path=/trunk/mcs/; revision=39019
2005-01-17 13:54:00 +00:00
Ben Maurer acdce6f0fd 2005-01-15 Ben Maurer <[email protected]>
* XmlNode.cs (InnerText, AppendChildValues): Don't allocate a
	string in the case where nothing needs to be appended.

	* XmlAttribute.cs (BuildChildValue): Start out the string with
	`null' not `String.Empty'. String.Concat (null, blah) == blah,
	pointerwise. ie, there is no allocation. This makes it so that
	getting the value of an attribute is faster for the fast case.


svn path=/trunk/mcs/; revision=38983
2005-01-16 02:51:22 +00:00
Atsushi Eno 48f78cd26e 2005-01-13 Atsushi Enomoto <[email protected]>
* XmlResolver.cs : throw ArgumentException in ResolveUri().



svn path=/trunk/mcs/; revision=38857
2005-01-13 08:20:37 +00:00
Atsushi Eno e857d44273 2005-01-11 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : WriteComment() was outputting extraneous EOL.

	* XmlTextWriterTests.cs : added Indent2() to test WriteComment EOL.


svn path=/trunk/mcs/; revision=38702
2005-01-11 16:00:05 +00:00
Atsushi Eno 96e205f1b3 2004-12-26 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadElementContentAsBinHex() was calling ..AsBase64().
	* XmlValidatingReader.cs : In set_EntityHandling(), set that property
	  of DTDValidatingReader.
	* XmlNodeReader2.cs,
	  XmlNodeReaderImpl.cs : added simplified implementation that splits
	  entity handling and anything else.
	* XQueryConvert.cs : implemented ShouldCheckValueFacets().
	  Use Convert class instead of simple casts (check range).
	* XmlReaderSettings.cs : added SetSchemas() for XPathNavigator.



svn path=/trunk/mcs/; revision=38088
2004-12-26 16:39:07 +00:00
Atsushi Eno ea5f087e84 2004-12-26 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : XmlResolver.ResolveUri() may return null.

	* XmlParserContext.cs : all the string properties must not be set as
	  null. Thanks to Joshua.
	* XmlTextReader.cs,
	  DTDObjectModel.cs,
	  DTDReader.cs : XmlResolver.ResolveUri() may return null.

	* XsdValidatingReader.cs : XmlResolver.ResolveUri() may return null.

	* XslFunction.cs,
	  Compiler.cs : XmlResolver.ResolveUri() may return null.



svn path=/trunk/mcs/; revision=38084
2004-12-26 16:26:30 +00:00
Atsushi Eno 503e5b950a 2004-12-17 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XmlReaderBinarySupport.cs.

	* XmlReaderBinarySupport.cs : added support class for base64/binhex
	  reading that mostly automates those reader support.
	* XmlReader.cs : added CanReadBinaryContent, CanReadValueChunk,
	  ReadContentAsBase64(), ReadElementContentAsBase64(),
	  ReadContentAsBinHex(), ReadElementContentAsBinHex() and
	  ReadValueChunk().
	* XmlTextReader.cs : Now ReadBase64() and ReadBinHex() implementations
	  are moved to XmlReaderBinarySupport. Added CanReadBinaryContent and
	  CanReadValueChunk overrides. Call Binary.Reset() to enable them.
	* XmlTextReader2.cs : added CanReadBinaryContent, CanReadValueChunk.
	  Added ReadContentAsBase64(), ReadElementContentAsBase64(),
	  ReadContentAsBinHex(), ReadElementContentAsBinHex() (just because
	  they are overriden in MS.NET).
	* XmlNodeReader.cs : added CanReadBinaryContent and CanReadValueChunk.
	  Call Binary.Reset() to enable them.

	* XPathNavigatorReader.cs : added CanReadBinaryContent and
	  CanReadValueChunk. Call Binary.Reset() to enable them.

	* SubtreeXmlReader.cs, XmlFilterReader.cs :
	  added CanReadBinaryContent and CanReadValueChunk.
	  Call Binary.Reset() to enable them.


svn path=/trunk/mcs/; revision=37892
2004-12-17 17:56:54 +00:00
Atsushi Eno 76dd46d7f2 2004-12-16 Atsushi Enomoto <[email protected]>
* XmlConvert.cs :
	  Added DateTime related methods with serialization mode.



svn path=/trunk/mcs/; revision=37832
2004-12-16 13:58:49 +00:00
Atsushi Eno f305240c9c 2004-12-16 Atsushi Enomoto <[email protected]>
* XmlSchemaInfo.cs : added internal copy constructor.

	* XmlReader.cs : added MoveToFollowing().
	* XmlNode.cs,
	  XmlElement.cs,
	  XmlAttribute.cs : added SchemaInfo support.
	* XmlDocument.cs : added Schemas and Validate().
	  ReadNode() now copies xmlReader's SchemaInfo.
	* XmlNodeReader.cs : ditto (just reflects node's SchemaInfo).

	* SubtreeXmlReader.cs, XmlFilterReader.cs :
	  Override SchemaInfo to return input reader's SchemaInfo.



svn path=/trunk/mcs/; revision=37829
2004-12-16 12:16:32 +00:00
Atsushi Eno 103fb0642d 2004-12-15 Atsushi Enomoto <[email protected]>
* xsdtest.cs : added --v2 option that uses XmlReader.Create()
	  instead of XmlValidatingReader.

	* XmlFilterReader.cs : don't expect XmlReaderSettings of its source.

	* XmlSchemaValidatingReader.cs : xsi:* attributes are now handled via
	  XmlSchemaValidator.ValidateElement().
	  Removed some obsolete overrides.

	* XmlReader.cs :
	  Create() should assure NameTable!=null on creating XmlTextReader.
	  Now use XmlSchemaValidatingReader for all xsd validation.
	* XmlTextReader2.cs :
	  Don't use input reader's Settings. It is null.
	* XmlReaderSettings.cs : added XmlResolver.

	* XmlSchemaSet.cs : set default resolver. Clear components before
	  recompilation.
	* XmlSchemaValidator.cs :
	  SourceUri is System.Uri.
	  GetUnspecifiedDefaultAttributes() is allowed only when it is inside
	  start tag.
	  Added AddSchema().
	  Added duplicate attribute check.
	  Added ValidateElement() that takes xsi:* parameters.
	  (http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackId=7fc38ea1-c306-4fb7-8631-0e174b0ff3c6)
	  HandleXsiNil() now just takes string parameter.



svn path=/trunk/mcs/; revision=37782
2004-12-15 13:58:32 +00:00
Atsushi Eno 2ff40096cb 2004-12-14 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XmlSchemaValidatingReader.

	* XmlSchemaValidatingReader.cs : new file; another XmlReader 
	  implementation that handles XSD validation. It is an reference
	  application for XmlSchemaValidator.
	* XsdValidatingReader.cs : Use readerLineInfo for IXmlLineInfo.

	* XmlReaderSettings.cs : XsdValidate and DtdValidate are now
	  ValidationType.
	* XmlReader.cs : In Create(), use XmlSchemaValidatingReader for xsd
	  validation.

	* XmlSchemaValidator.cs : implemented basic validation feature.



svn path=/trunk/mcs/; revision=37739
2004-12-14 12:09:23 +00:00
Zoltan Varga c196ef2c3f 2004-12-12 Zoltan Varga <[email protected]>
* XmlTextReader.cs: Work around a compiler bug in csc 2.0 beta 1.

svn path=/trunk/mcs/; revision=37668
2004-12-12 21:14:29 +00:00
Atsushi Eno 8961d21eeb 2004-12-09 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs : implemented lightweight XmlSchema generator.


svn path=/trunk/mcs/; revision=37469
2004-12-09 08:50:35 +00:00
Atsushi Eno bf30c35790 2004-12-08 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : making smarter relationship between
	  XmlValidatingReader. Added ValidationEventHandler and ValidationType.
	  nonDefaultAttributeCount was extraneous.
	  Added 'checkIdentity' (i.e. !IgnoreIdentityConstraints).
	  DefaultAttributesCache property did make little sense, so just
	  reverted to ArrayList field.

	* XmlValidatingReader.cs : making smarter relationship between
	  XsdValidatingReader.


svn path=/trunk/mcs/; revision=37429
2004-12-08 22:12:44 +00:00
Atsushi Eno 9a2a6c86f3 2004-12-08 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XmlSchemaValidator.cs,
	  XmlValueGetter.cs and XmlSchemaValidationFlags.cs.

	* XmlException.cs : added SecurityPermissionAttributes.
	* XmlReaderSettings.cs,
	  XmlReader.cs : added ValidationFlags and removed obsolete ones.

	* XmlValueGetter.cs,
	  XmlSchemaValidationFlags.cs,
	  XmlSchemaValidator.cs : added.
	* XmlSchemaSet.cs : XmlResolver is now internally gettable.


svn path=/trunk/mcs/; revision=37398
2004-12-08 17:14:21 +00:00
Atsushi Eno 1b3a8330dd 2004-12-06 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
	  ns is null, and don't lookup prefix for empty namespace.



svn path=/trunk/mcs/; revision=37185
2004-12-06 11:15:11 +00:00
Gonzalo Paniagua Javier 18a02e4348 2004-12-03 Gonzalo Paniagua Javier <[email protected]>
* XmlTextReader.cs: don't use \0 as buffer terminator.
	* XmlInputStream.cs: s/Array.Copy/Buffer.BlockCopy/.


svn path=/trunk/mcs/; revision=36995
2004-12-03 08:37:45 +00:00
Atsushi Eno c074d29c67 2004-11-30 Atsushi Enomoto <[email protected]>
* DTDReader.cs : Consideration on parameter entity was missing for 
	  attribute default value. Fixed bug #70008.



svn path=/trunk/mcs/; revision=36816
2004-11-30 06:19:52 +00:00
Atsushi Eno 16dd4c5974 2004-11-26 Atsushi Enomoto <[email protected]>
* XmlReader.cs : not fixage, just explicitly formatted code a bit.
	* XmlTextReader.cs,
	  XmlEntity.cs,
	  XmlAttributeCollection.cs,
	  XmlTextWriter.cs,
	  XmlElement.cs,
	  XmlNode.cs,
	  DTDObjectModel.cs,
	  XmlParserInput.cs,
	  DTDReader.cs,
	  XmlDocument.cs : warning removal.



svn path=/trunk/mcs/; revision=36587
2004-11-26 02:51:06 +00:00
Atsushi Eno 5c69bd82bf 2004-11-25 Atsushi Enomoto <[email protected]>
* XmlQualifiedNameTable.cs : oops, it was not implemented.



svn path=/trunk/mcs/; revision=36516
2004-11-25 05:03:12 +00:00
Atsushi Eno 3adcf9dff4 2004-11-24 Atsushi Enomoto <[email protected]>
* XmlQualifiedName.cs : in 2.0 it is [Serializable].
	* XmlTextReader.cs : removed unused local variable.
	* XmlTextWriter.cs : Improved some exception messages.
	  moved some private fields into #if NET_2_0.
	* XmlValidatingReader.cs : rename specifiedResolver to
	  resolverSpecified and use it in internal get_Resolver().
	  Added [Obsolete] for ReadTypedValue() whose base is obsoleted.



svn path=/trunk/mcs/; revision=36465
2004-11-24 10:43:19 +00:00
Atsushi Eno 7a32a34e50 2004-11-22 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Now attribute normalization is handled on Read(),
	  not on get_Value. This caused a problem when we use
	  XmlValidatingReader that value is not always normalized expectedly.



svn path=/trunk/mcs/; revision=36361
2004-11-22 01:39:57 +00:00
Atsushi Eno 2a010f92e5 2004-11-22 Atsushi Enomoto <[email protected]>
* XmlReader.cs : removed old ReadValueAsXXX() and added new
	  ReadContentAsXXX() and ReadElementContentAsXXX().
	* XmlTextReader.cs : removed old ReadValueAsXXX() (no overrides now).
	* XmlTextWriter.cs : added indentation on Comment nodes.
	* XmlDateTimeSerializationMode.cs : updated.
	* XmlResolver.cs : added 2.0 NameTable field.
	* ValidationType.cs : added ObsoleteAttributes on some members.



svn path=/trunk/mcs/; revision=36358
2004-11-22 01:19:15 +00:00
Atsushi Eno f3ed69141a 2004-11-18 Atsushi Enomoto <[email protected]>
* XmlParserContext.cs : the fix was not checked in :(



svn path=/trunk/mcs/; revision=36259
2004-11-18 11:35:13 +00:00