Skip to content

Commit

Permalink
2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
Browse files Browse the repository at this point in the history
	* XmlTextReader.cs : 1.x build fix.


svn path=/trunk/mcs/; revision=54274
  • Loading branch information
atsushieno committed Dec 13, 2005
1 parent 86cd30f commit 431580c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mcs/class/System.XML/System.Xml/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2005-12-13 Atsushi Enomoto <atsushi@ximian.com>

* XmlTextReader.cs : 1.x build fix.

2005-12-13 Atsushi Enomoto <atsushi@ximian.com>

* XmlTextReader.cs : when XmlReader.Create() creates this instance,
Expand Down
2 changes: 2 additions & 0 deletions mcs/class/System.XML/System.Xml/XmlTextReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2083,11 +2083,13 @@ private void SkipTextDeclaration ()
}
// Encoding value should be checked inside XmlInputStream.
}
#if NET_2_0
// this condition is to check if this instance is
// not created by XmlReader.Create() (which just
// omits strict text declaration check).
else if (Conformance == ConformanceLevel.Auto)
throw NotWFError ("Encoding declaration is mandatory in text declaration.");
#endif

Expect ("?>");
}
Expand Down

0 comments on commit 431580c

Please sign in to comment.