public override void Load(XmlElement parentNode) { if (parentNode == null) { throw new ArgumentNullException("parentNode"); } this.genres = LoadObjectList <GenreInfoNode>(parentNode, "./genre"); this.authors = LoadObjectList <AuthorInfoNode>(parentNode, "./author"); this.bookTitle = LoadRequiredElement(parentNode, "./book-title"); this.annotation = LoadObject <AnnotationInfoNode>(parentNode, "./annotation"); this.keywords = LoadElement(parentNode, "./keywords"); this.date = LoadObject <DateTimeNode>(parentNode, "./date"); this.coverpage = LoadElementXml(parentNode, "./coverpage"); this.lang = LoadRequiredElement(parentNode, "./lang"); this.sourceLang = LoadElement(parentNode, "src-lang"); this.translators = LoadObjectList <AuthorInfoNode>(parentNode, "./translator"); this.sequences = LoadObjectList <SequenceInfoNode>(parentNode, "./sequence"); }
public override void Load(XmlElement parentNode) { if (parentNode == null) { throw new ArgumentNullException("parentNode"); } this.genres = LoadObjectList<GenreInfoNode>(parentNode, "./genre"); this.authors = LoadObjectList<AuthorInfoNode>(parentNode, "./author"); this.bookTitle = LoadRequiredElement(parentNode, "./book-title"); this.annotation = LoadObject<AnnotationInfoNode>(parentNode, "./annotation"); this.keywords = LoadElement(parentNode, "./keywords"); this.date = LoadObject<DateTimeNode>(parentNode, "./date"); this.coverpage = LoadElementXml(parentNode, "./coverpage"); this.lang = LoadRequiredElement(parentNode, "./lang"); this.sourceLang = LoadElement(parentNode, "src-lang"); this.translators = LoadObjectList<AuthorInfoNode>(parentNode, "./translator"); this.sequences = LoadObjectList<SequenceInfoNode>(parentNode, "./sequence"); }