the internal sig, which skips any overrides that might exist on
subclasses, so redirect all calls to the public call to make sure
all overrides are called as well.
Make AddNamespace, HasNamespace and RemoveNamespace private.
svn path=/trunk/mcs/; revision=146174
* XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed
as long as the URI is correct. Fixed bug #514015.
* XmlNamespaceManagerTests.cs : add test for bug #514015.
svn path=/trunk/mcs/; revision=138396
* XmlNamespaceManager.cs : namespace lookup failed for non-atomic
string in 1.1 profile. Fixed 1.0 part of #379139.
svn path=/trunk/mcs/; revision=121834
* XmlNamespaceManager.cs : check null arg.
* XmlTextReader.cs : fixed bug #412657; now we populate nametable
and namespace manager in case they are null in parser context, and
use them instead of the members in the parser context.
* XmlTextReaderTests.cs : added test for bug #412657.
svn path=/trunk/mcs/; revision=109049
* XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
which discards "overriden" namespaces.
* XmlTextWriter2.cs : fresh implementation.
- The source structure is simplified and cleaner.
- When outputting escaped string, output directly to TextWriter.
- roughly 20% performance improvement.
(Also fixed previous perf. evaluation excess in ChangeLog.)
* XmlReaderCommonTests.cs : added custom assertion overload that takes
test label.
* XmlNodeReaderTests.cs : labeled some.
* XmlTextWriterTests.cs :
Changed the semantics of AttributeNamespacesXmlnsXmlns() and
removed NotDotNet (in contrast this test should fail with previous
version of XmlTextWriter). See the code comment for details.
Added WriteQualifiedNameXmlnsError().
* System.Xml.dll.sources : removed XmlTextWriterOpenElement.cs and
XmlTextWriter.cs. Added XmlTextWriter2.cs, to be renamed to
XmlTextWriter.cs in a few days or weeks.
svn path=/trunk/mcs/; revision=57095
* XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
such invalid "xml" prefix which is being mapped to different
namespace URI than the predefined one.
Removed comment that does not make sense.
* XmlNamespaceManager.cs : IsValidDeclaration() could be private.
Added some comments.
* XmlTextWriterTests.cs : re-enabled bug #77094 related tests.
svn path=/trunk/mcs/; revision=55414
* XsdValidatingReader.cs : XmlReader.ReadTypedValue() does not exist
anymore, so it is not override.
* XmlNamespaceManager.cs : NameTable is virtual in 2.0 RTM.
* XmlReader.cs : IsEmptyElement is reverted to be abstract in 2.0 RTM.
ReadTypedValue() is removed.
* XmlValidatingReader.cs : ReadTypedValue() is not virtual now.
* XmlWriter.cs : Settings is virtual.
* XPathNodeIterator.cs : added [DebuggerDisplay]. pretty useless tho.
* XPathNavigator.cs : [DebuggerDisplay] as well.
SelectSingleNode() and AppendChildElement() are now virtual.
svn path=/trunk/mcs/; revision=52637
* 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
* 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
* 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
* 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
* XmlAttributeCollection.cs : In .net 2.0, it became sealed class.
* IXmlDataEvidence.cs : not "Evidences" but "Evidence".
* XmlInputStream.cs : new csc rejected implicit int->char cast.
* XmlNamespaceManager.cs : In net_2_0, LookupNamespace(string) and
LookupPrefix(string) does not require argument string as atomized.
Added HasNamespace (string, bool).
* XmlReader.cs : Added Settings and SchemaInfo properties.
* XmlReaderSettings.cs : Added NameTable. Throw XmlException when
attempt to set Schemas.
* XmlTextReader.cs : Fixed "Evidences" to "Evidence". new csc rejected
implicit int->char cast.
* XmlValidatingReader.cs : Fixed "Evidences" to "Evidence".
svn path=/trunk/mcs/; revision=30919
* XmlNamespaceManagre.cs : Fixed LookupNamespace() and LookupPrefix().
They require that names are *already* atomized.
* XmlNodeReader.cs,
XmlTextWriter.cs : use safe overload of LookupXXX().
svn path=/trunk/mcs/; revision=28789
* DTDObjectModel.cs,
DTDReader.cs,
XmlDocument.cs,
XmlInputStream.cs,
XmlParserInput.cs,
XmlTextReader.cs,
XmlUrlResolver.cs : removed reference to Mono.Xml.
Made Mono.Xml.* classes internal.
* XmlDocument.cs : output xml declaration for TextWriter output in Save()
* XmlElement.cs : Name character check should be done in .ctor().
* XmlNamespaceManager.cs : Removed dangerous internal .ctor()
svn path=/trunk/mcs/; revision=27149
* XmlAttributeCollection.cs : set owner element as parent on removal
events (though they are not "parent" in infoset or dom context)
* XmlElement.cs : Don't remove attributes twice (raises extraneous
removal events).
* XmlNamespaceManager.cs, XmlNodeChangedEventArgs :
Added NET_1_2 members.
svn path=/trunk/mcs/; revision=22933
* 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
* XmlNamespaceManager.cs: Rewrote PopScope() because its namespace
recovery was still not enough. Fixed GrowScopes() (incorrect index).
svn path=/trunk/mcs/; revision=18271
* XmlNamespaceManager.cs: PopScope() must retain those namespaces which
are added in the scope before PushScope() was called.
svn path=/trunk/mcs/; revision=18239
* 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
* 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
* XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
infinite loop.
* XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
Commented out Console.Error.WriteLine().
* XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
escape and unescape for relative URI string.
svn path=/trunk/mcs/; revision=17414
* System.Xml.dll.source: add System.Xml/HighWaterStack.cs
* XmlChar.cs (IsWhitespace): Spare enumerator allocation.
* XmlTextWriter.cs (WriteWhitespace): Enumerators are very high in
fat, use low-fat loops instead. Even better, call the function
inside XmlChar for code reuse.
* HighWaterStack.cs (added): New class that acts like a Stack, but
helps with memory allocation.
* XmlNamespaceManager.cs, XmlParserContext.cs: Rewrote to use
HighWaterStack.
* XmlTextReader.cs: Remove orderedAttributesEnumerator variable,
use a variable that stores the position in the ArrayList.
svn path=/trunk/mcs/; revision=17385
* XmlAttribute.cs :
.ctor() should reject xml- or xmlns-prefixed node.
* XmlNamespaceManager.cs :
added some xmlns validity check.
* XmlNode.cs :
optimized GetNamespaceOfPrefix() and GetPrefixOfNamespace() by
avoiding XmlNamespaceManager creation.
* XmlNodeReader.cs :
doctype node should return PUBLIC and SYSTEM for its indexer,
and Value should be internal subset,
svn path=/trunk/mcs/; revision=16266
* changed XPathNodeType modifier to internal *protected* override.
* XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
* XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
* XmlAttributeCollection.cs : removed some incorrect TODO attributes.
* XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
when the argument is "xmlns".
* XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
* XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
* XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
* XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
not to set error state for non-started XmlNodeReader.
* XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
BaseURI support. Fixed Initialize() to handle Attribute correctly.
SetProperty for attribute auto-completes xmlns NSURI.
Attribute and whitespace handling became more correct.
Don't parse external DTD if XmlResolver is null.
* XmlTextWriter.cs : implemented WriteEntityRef().
WriteStartAttribute() checks if ns does not equal to that of xmlns.
* XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).
svn path=/trunk/mcs/; revision=14613
* XmlDocumentFragment.cs, XmlElement.cs :
modified InnerXml (fragment type from Element to DocumentFragment).
* XmlElement.cs : fixed WriteTo() ns check.
* XmlNamespaceManager.cs : MS.NET allows Add() used two or more times.
* XmlNode.cs : fixed ConstructNamespaceManager().
* XmlConstructs.cs : added IsSpace, IsName, IsNameStart, IsNCName,
IsPubid with an int arg.
* XmlReader.cs : changed to use XmlChar.cs (its role is as same as
XmlConstructs.cs).
* XmlTextReader.cs :
improved error messages with line info.
/ checking matching start and end tags.
/ prevents the apperance of multiple root elements. (patch by Erik)
fixed and refactored ReadInnerXml() and ReadOuterXml()
changed to use XmlChar.cs.
* XmlTextWriter.cs : changed to put element's xmlns at CloseStartTag ()
(It will help c14n implementation.)
/ blocks multiple attribute output with element node.
svn path=/trunk/mcs/; revision=12186
* XmlNamespaceManager.cs : fundamental change of LookupPrefix to return
null when no matching uri.
* XmlElement.cs : removed unnecessary xmlns output.
* XmlNode.cs : GetPrefixOfNamespace fix along with the change above.
* XmlTextWriter.cs : LookupPrefix and WriteStartElementInternal fix
along with the change above, and moved timing of 'xmlns' output
to CloseStartElement.
* XmlWriter.cs: modified WriteStartAttribute, same as yesterday.
svn path=/trunk/mcs/; revision=10699
* XmlConvert.cs: IsInvalid is now internal.
* XmlNamespaceManager.cs: implemented RemoveNamespace
* XmlTextReader.cs: return BaseURI and Encoding from the parser.
* XmlTextWriter.cs: implemented WriteName and WriteNmToken.
svn path=/trunk/mcs/; revision=7725
* XmlNamespaceManager.cs:
.Net allows the empty namespace to be redefined
at a later point, but the current implementation
did not. This fixes a hashtable conflict.
svn path=/trunk/mcs/; revision=6379