private static AtomFeed GetFeed(String rawXml, AtomReader atomReader) { AtomEntryBase feed; using (var stringReader = new StringReader(rawXml)) using (var reader = XmlReader.Create(stringReader, new XmlReaderSettings {IgnoreWhitespace = true})) feed = atomReader.Read(reader); return feed as AtomFeed; }
private static AtomEntry GetEntry(String rawXml, AtomReader atomReader) { AtomEntryBase entry; using (var stringReader = new StringReader(rawXml)) using (var reader = XmlReader.Create(stringReader, new XmlReaderSettings { IgnoreWhitespace = true })) entry = atomReader.Read(reader); return entry as AtomEntry; }