Exemple #1
0
        /// <summary>
        /// Reads an atom:author element in a feed.
        /// </summary>
        /// <param name="atomFeedMetadata">The feed metadata to augment.</param>
        /// <remarks>
        /// Pre-Condition:  XmlNodeType.Element (atom:author) - the atom:author element to read.
        /// Post-Condition: Any                               - the node after the atom:author element which was read.
        /// </remarks>
        private void ReadAuthorElement(AtomFeedMetadata atomFeedMetadata)
        {
            this.AssertXmlCondition(XmlNodeType.Element);
            Debug.Assert(
                this.XmlReader.LocalName == AtomConstants.AtomAuthorElementName && this.XmlReader.NamespaceURI == AtomConstants.AtomNamespace,
                "Only atom:author elements can be read by this method.");

            AtomMetadataReaderUtils.AddAuthorToFeedMetadata(
                atomFeedMetadata,
                this.ReadAtomPersonConstruct(null));
        }
 private void ReadAuthorElement(AtomFeedMetadata atomFeedMetadata)
 {
     AtomMetadataReaderUtils.AddAuthorToFeedMetadata(atomFeedMetadata, base.ReadAtomPersonConstruct(null));
 }