diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2004-02-03 11:07:35 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2004-02-03 11:07:35 +0300 |
commit | 949ccf26e7850458a63a104d7c5b44220e43a35c (patch) | |
tree | d9a58eaf462ed5adc6a44a13b08cf545a8a06c7f /mcs/class/System.XML/System.Xml/XmlChar.cs | |
parent | 33b5f6d8a26b2aed00ccc32ddca6ed1f4d3d6125 (diff) |
2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
* XmlChar.cs : now GetPredefinedEntity() returns int and -1 for not
predefined entity names.
* DTDObjectModel.cs : DTDxxxCollection now derives from
- DTDCollectionBase that derives from DictionaryBase.
- "Literal value" and "replacement text" are handled differently.
- Throw XmlException when external entity could not be resolved.
- Return ReplacementText for EntityValue.
* DTDReader.cs :
- Support IXmlLineInfo.
- Fixed IGNORE section handling to be more strict.
- Compute replacement text on reading entity declarations.
- Don't expand char references before getting literal entity value.
- Check not allowed parameter entity inside internal subset.
- Added ValidateWhitespaceNode() to check whitespace's Validity
Constraints on external elementdecl and standalone document.
- When invalid data against its datatype was found, don't throw
parse error.
- Other code refactory.
* XmlTextReader.cs :
- Check for invalid Text pattern "]]>" should not depend on line
info since it might not be supported.
- Check referenced character's validity (WFC).
svn path=/trunk/mcs/; revision=22730
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlChar.cs')
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlChar.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlChar.cs b/mcs/class/System.XML/System.Xml/XmlChar.cs index fc3782390df..025f0a9da05 100644 --- a/mcs/class/System.XML/System.Xml/XmlChar.cs +++ b/mcs/class/System.XML/System.Xml/XmlChar.cs @@ -147,7 +147,7 @@ namespace System.Xml return false;
}
- public static char GetPredefinedEntity (string name)
+ public static int GetPredefinedEntity (string name)
{
switch (name) {
case "amp":
@@ -161,7 +161,7 @@ namespace System.Xml case "apos":
return '\'';
default:
- return (char) 0;
+ return -1;
}
}
|