Changeset 3293 for trunk/sources/HeuristicLab.Persistence/3.3/Default
- Timestamp:
- 04/09/10 11:14:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Default/Xml/XmlParser.cs
r3028 r3293 18 18 public class XmlParser : IEnumerable<ISerializationToken> { 19 19 20 private readonly Xml Reader reader;20 private readonly XmlTextReader reader; 21 21 private delegate IEnumerator<ISerializationToken> Handler(); 22 22 private readonly Dictionary<string, Handler> handlers; … … 27 27 /// <param name="input">The input.</param> 28 28 public XmlParser(TextReader input) { 29 XmlReaderSettings settings = new XmlReaderSettings { 30 ConformanceLevel = ConformanceLevel.Document, 31 IgnoreWhitespace = true, 32 IgnoreComments = true 33 }; 34 reader = XmlReader.Create(input, settings); 29 reader = new XmlTextReader(input); 30 reader.WhitespaceHandling = WhitespaceHandling.All; 31 reader.Normalization = false; 35 32 handlers = new Dictionary<string, Handler> { 36 33 {XmlStringConstants.PRIMITIVE, ParsePrimitive},
Note: See TracChangeset
for help on using the changeset viewer.