Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2004-05-12 13:11:19 +0400
committerAtsushi Eno <atsushieno@gmail.com>2004-05-12 13:11:19 +0400
commit4190429496298c20393c9583bcb4d4052f817bc7 (patch)
tree69419353fdcf02b9df2ef97a61224d8f71af1996 /mcs/class/System.XML/System.Xml/XmlElement.cs
parent8710d9f877f54e22fad03267b9d7f581a9245c3d (diff)
2004-05-12 Atsushi Enomoto <atsushi@ximian.com>
* 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
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlElement.cs')
-rw-r--r--mcs/class/System.XML/System.Xml/XmlElement.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlElement.cs b/mcs/class/System.XML/System.Xml/XmlElement.cs
index 340b79d5bd5..57e4bbcede2 100644
--- a/mcs/class/System.XML/System.Xml/XmlElement.cs
+++ b/mcs/class/System.XML/System.Xml/XmlElement.cs
@@ -47,6 +47,8 @@ namespace System.Xml
XmlDocument doc,
bool atomizedNames) : base (doc)
{
+ XmlConvert.VerifyName (localName);
+
if (atomizedNames) {
this.prefix = prefix;
this.localName = localName;