예제 #1
0
        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;
        }
예제 #2
0
        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;
        }