public Release Read() { string text = textReader.Read(); if (text == null) { return(null); } text = Utility.TrimString(text, "<releases>"); text = Utility.TrimString(text, "</releases>"); text = Utility.FixXmlText(text); XDocument doc = XDocument.Parse(text); return(DataReader.ReadRelease(doc.Root)); }
public Artist Read() { string text = textReader.Read(); if (text == null) { return(null); } text = Utility.TrimString(text, "<artists>"); text = Utility.TrimString(text, "</artists>"); text = Utility.FixXmlText(text); XDocument doc = XDocument.Parse(text); return(DataReader.ReadArtist(doc.Root)); }