Beispiel #1
0
        public override void Load(XmlElement parentNode)
        {
            if (parentNode == null)
            {
                throw new ArgumentNullException("parentNode");
            }

            this.authors     = LoadObjectList <AuthorInfoNode>(parentNode, "./author");
            this.programUsed = LoadElement(parentNode, "./program-used");
            this.date        = LoadObject <DateTimeNode>(parentNode, "./date");
            this.sourceUrl   = LoadElementsList(parentNode, "./src-url");
            this.sourceOCR   = LoadElement(parentNode, "./src-ocr");
            this.id          = LoadElement(parentNode, "./id");
            this.history     = LoadElementXml(parentNode, "./history");
            this.publishers  = LoadObjectList <AuthorInfoNode>(parentNode, "./publisher");

            try
            {
                this.version = float.Parse(LoadElement(parentNode, "./version"), CultureInfo.InvariantCulture);
            }
            catch
            {
                this.version = null;
            }
        }
Beispiel #2
0
        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");
        }
Beispiel #3
0
        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");
        }
Beispiel #4
0
        public override void Load(XmlElement parentNode)
        {
            if (parentNode == null)
            {
                throw new ArgumentNullException("parentNode");
            }

            this.authors = LoadObjectList<AuthorInfoNode>(parentNode, "./author");
            this.programUsed = LoadElement(parentNode, "./program-used");
            this.date = LoadObject<DateTimeNode>(parentNode, "./date");
            this.sourceUrl = LoadElementsList(parentNode, "./src-url");
            this.sourceOCR = LoadElement(parentNode, "./src-ocr");
            this.id = LoadElement(parentNode, "./id");
            this.history = LoadElementXml(parentNode, "./history");
            this.publishers = LoadObjectList<AuthorInfoNode>(parentNode, "./publisher");

            try
            {
                this.version = float.Parse(LoadElement(parentNode, "./version"), CultureInfo.InvariantCulture);
            }
            catch
            {
                this.version = null;
            }
        }