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-02-14 21:55:27 +0300
committerAtsushi Eno <atsushieno@gmail.com>2004-02-14 21:55:27 +0300
commitbe4a3f8ed551fe42611987c23e70be6ee54e8a48 (patch)
treee3d123045c349cd8c7ffde95d06b3bb8dbae524f /mcs/class/System.Security/Mono.Xml
parentf871106b78630e04462f7899bb7b213d8459e451 (diff)
2004-02-14 Atsushi Enomoto <atsushi@ximian.com>
* XmlCanonicalizer.cs: Use child nodes of entity reference nodes (it is now correctly supported in XmlEntityReference). svn path=/trunk/mcs/; revision=23097
Diffstat (limited to 'mcs/class/System.Security/Mono.Xml')
-rwxr-xr-xmcs/class/System.Security/Mono.Xml/ChangeLog5
-rwxr-xr-xmcs/class/System.Security/Mono.Xml/XmlCanonicalizer.cs5
2 files changed, 9 insertions, 1 deletions
diff --git a/mcs/class/System.Security/Mono.Xml/ChangeLog b/mcs/class/System.Security/Mono.Xml/ChangeLog
index 76bbaf7b1b5..d303a835474 100755
--- a/mcs/class/System.Security/Mono.Xml/ChangeLog
+++ b/mcs/class/System.Security/Mono.Xml/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-14 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlCanonicalizer.cs: Use child nodes of entity reference nodes (it
+ is now correctly supported in XmlEntityReference).
+
2003-07-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* XmlCanonicalizer.cs: fixed to make it build for 1.0 and 1.1.
diff --git a/mcs/class/System.Security/Mono.Xml/XmlCanonicalizer.cs b/mcs/class/System.Security/Mono.Xml/XmlCanonicalizer.cs
index 18cbfd3b873..3aee88206cf 100755
--- a/mcs/class/System.Security/Mono.Xml/XmlCanonicalizer.cs
+++ b/mcs/class/System.Security/Mono.Xml/XmlCanonicalizer.cs
@@ -96,7 +96,10 @@ namespace Mono.Xml {
WriteProcessingInstructionNode (node, visible);
break;
case XmlNodeType.EntityReference:
- throw new XmlException ("Entity references should be resolved by parser", null);
+// throw new XmlException ("Entity references should be resolved by parser", null);
+ for (int i = 0; i < node.ChildNodes.Count; i++)
+ WriteNode (node.ChildNodes [i]);
+ break;
case XmlNodeType.Attribute:
throw new XmlException ("Attribute node is impossible here", null);
case XmlNodeType.EndElement: