Commit Graph
938 Commits
Author SHA1 Message Date
Atsushi Eno 7a340a0083 2005-05-21 Atsushi Enomoto <[email protected]>
* XmlImplementation.cs : added new NET_2_0 ctor.
	  Let's check corcompare:-/


svn path=/trunk/mcs/; revision=44867
2005-05-21 10:33:07 +00:00
Atsushi Eno 4dae412aed 2005-05-11 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : namespace storing was stupid.


svn path=/trunk/mcs/; revision=44381
2005-05-11 10:43:35 +00:00
Atsushi Eno 3e84fc4524 2005-05-10 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : since namespace declarations might be
	  resolved differently due to entity handling, it holds its own set
	  of declared namespaces. NamespaceURI and LookupNamespace() use it.

	* XmlValidatingReaderTests.cs : fixed TestPreserveEntityNotOnDotNet()
	  which was regarded as a bug while it was by design.


svn path=/trunk/mcs/; revision=44316
2005-05-10 05:24:54 +00:00
Atsushi Eno 459db72717 2005-05-09 Atsushi Enomoto <[email protected]>
* XmlReader.cs : added ReadElementContentAsLong().
	* XmlWriter.cs : removed some obsolete WriteValue() overloads.
	* XmlResolver.cs,
	  IXmlNamespaceResolver.cs : removed deprecated 2.0 bits.
	* XQueryConvert.cs : obsolete (yeah, now XQuery should be hidden).


svn path=/trunk/mcs/; revision=44239
2005-05-09 05:26:33 +00:00
Atsushi Eno 0bd75036c7 2005-05-06 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : Now XmlStreamReader uses non-blocking TextReader
	  that is mostly copied from StreamReader. It should fix bug #74161.


svn path=/trunk/mcs/; revision=44109
2005-05-06 05:45:14 +00:00
Atsushi Eno 59f1697a06 2004-05-05 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : XPathAtomicValue.cs -> XmlAtomicValue.cs.

	* XmlAtomicValue.cs : moved from XPathAtomicValue, removed some stuff.

	* SubtreeXmlReader.cs :
	  removed atomizedName related 2.0 member (deprecated).

	* XPathAtomicValue.cs :
	  it is now XmlAtomicValue and in sys.xml.schema.
	* XPathNavigator.cs, Expression.cs :
	  removed atomizedName related 2.0 members (deprecated).

	* XsdValidatingReader.cs :
	  removed atomicName related 2.0 members (deprecated in beta2).

	* XmlNodeReader2.cs, XmlTextReader2.cs, XmlValidatingReader.cs,
	  XmlNamespaceManager.cs, IXmlNamespaceResolver.cs,
	  DTDValidatingReader.cs : Removed most of "atomizedName" related
	  stuff that are obsoleted in 2.0 beta2.
	* XQueryConvert.cs : XPathAtomicValue -> XmlAtomicValue.

	* XmlNamespaceManagerTests.cs : removed atomizedName related tests.


svn path=/trunk/mcs/; revision=44083
2005-05-05 14:14:57 +00:00
Andrew Skiba 09d343e8d3 mangle the interface method names when compiling for TARGET_JVM
svn path=/trunk/mcs/; revision=44024
2005-05-04 13:35:32 +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 c8d5ac5a2d 2005-03-24 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : WriteQualifiedName() should check namespace validity
	  (whether it is in scope or not).
	* XmlTextWriter.cs : When WriteQualifiedName() is invoked inside
	  attribute and no matching namespace declaration, create prefix
	  on demand. Code reused from WriteStartAttribute().

	* XmlTextWriterTests.cs : added more tests on WriteQualifiedName().


svn path=/trunk/mcs/; revision=42189
2005-03-24 05:59:50 +00:00
Atsushi Eno 76a1671b91 2005-03-22 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : create schema set on demand.


svn path=/trunk/mcs/; revision=42119
2005-03-22 15:46:22 +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 df1ee3d110 2004-03-15 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : In ComparePosition(), make use of IsDescendant().

	* XmlDocumentNavigator.cs : overriden IsDescendant (default 
	  implementation extraneously clones).



svn path=/trunk/mcs/; revision=41861
2005-03-15 21:24:18 +00:00
Atsushi Eno c6dc16ee40 2005-03-15 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : When expanding entities and there is a
	  sequence of text nodes, its value was not returned.
	* XmlTextReader.cs : better invalid char error report for EOF.


svn path=/trunk/mcs/; revision=41840
2005-03-15 16:40:38 +00:00
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 b0c7f07f28 2005-03-09 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
	  surrogate calculations. This fixes bug #73513. Patch by
	  Andrew Skiba.

	* XmlTextReaderTests.cs : added SurrogatePair() based on bug #73513.



svn path=/trunk/mcs/; revision=41610
2005-03-09 18:21:10 +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 687a961cb8 2005-01-17 Atsushi Enomoto <[email protected]>
* XmlNode.cs, XmlAttribute.cs : reverted the previous patch. It broke
	  several nunit tests.

	  ..Missed the commits except for ChangeLog :(


svn path=/trunk/mcs/; revision=39021
2005-01-17 14:34:45 +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