* XmlEntityReference.cs, XmlNode.cs : For entity references, BaseURI
resolution should be different from that of parent since they might
differ. Patch by Andrew Skiba.
svn path=/trunk/mcs/; revision=45323
* DTDValidatingReader.cs : Last BaseURI exposed this hidden bug via
sys.security tests.
* XmlValidatingReaderTests.cs : added ResolveEntityAndBaseURI() which
is imported from sys.security.
svn path=/trunk/mcs/; revision=45257
* DTDObjectModel.cs : in DTDEntityBase.Resolve() don't overwrite
BaseURI which results in incorrect URI resolution.
svn path=/trunk/mcs/; revision=45177
* DTDObjectModel.cs : For simple type restriction creation it failed
when there is no enumerations (largely failed).
svn path=/trunk/mcs/; revision=44868
* 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
* 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
* 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
* XmlUrlResolver.cs : just return connected Stream instead of fully
downloaded memory cache. Fix by Konstantin Triger.
svn path=/trunk/mcs/; revision=42361
* 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
* 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
* 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
* 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
* DTDValidatingReader.cs : reverted one change in r40985. Entity stack
is nothing to do with ReadAttributeValue().
svn path=/trunk/mcs/; revision=41511
* 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
* 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
* 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
* 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
* 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
* 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
* XmlDocumentNavigator.cs : iteratedNames array could be fixed and
performance got improved. Patch by Knstantin Triger.
svn path=/trunk/mcs/; revision=41182
* 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
* 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
* 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
* XmlDocumentNavigator.cs : it should virtually expand EntityReference,
so refactored to handle both entity references and top level children.
svn path=/trunk/mcs/; revision=41082
* 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
* 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
* 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
* 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
* 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
* 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
* DTDValidatingReader.cs : element name stack might be empty when the
input XmlReader contains fragments. Patch by Andrew Skiba.
svn path=/trunk/mcs/; revision=40637
* 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
* 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
* 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
* 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