<?xml version="1.0" encoding="utf-8" ?>

<!-- The root element must include declaration of used namespaces. -->
<feed 
  xmlns="http://www.w3.org/2005/Atom" 
  xmlns:media="http://search.yahoo.com/mrss/" 
  xmlns:mi="http://schemas.ingestion.microsoft.com/common/" 
  xmlns:dcterms="http://purl.org/dc/terms/"  
  xml:lang="en-us">

  <id>https://v3spec.msn.com/myfeed.xml</id>
  <title><![CDATA[Feed title]]></title>
  <subtitle><![CDATA[Feed subtitle]]></subtitle>
  <updated>2017-10-02T13:00:00.52Z</updated>  
  <author>
    <name>Feed author</name>
    <email>author@contoso.com</email>
  </author>
  
  <!-- each individual article is provided in a single <entry> -->
  <entry>

    <!-- REQUIRED: You need to specify an <id> which will be used to uniquely identify
   ﻿      the feed item across all other content items coming in your feeds.
         ﻿The value can be a unique URL -->
    <id>https://v3spec.msn.com/article123.htm</id>

    <!-- REQUIRED: title must be provided inside the <title> element -->
    <title><![CDATA[High-definition video encoding and streaming]]></title>
    
    <!-- REQUIRED: <published> is used to keep track of when the item is published. 
         In case no "modified/updated date" is provided, published date is also used
         to keep track of updates.
         ﻿Dates must be expressed using RFC 3339 or RFC 822 date formats.
         
         examples: 
         2017-10-02T13:00:00Z
         2017-10-02T13:00:00.03Z
         -->
    <published>2017-01-10T10:00:00+0100</published>

    <!-- Use the <updated> element to indicate when was the last time this item was
         updated. If this field is not provided, published will be used for both
         ﻿Published and Updated dates. -->
    <updated>2017-10-02T13:00:00.52Z</updated>

    <!-- REQUIRED: Links or Web URLs point to the document on publisher's site. -->
    <link rel="self" href="https://sample-feeds.rowanmanning.com/examples/222780a7caac12b938dfe09cd7d138f9/feed.xml" />
    
    <!-- RECOMMENDED: provide author name in the author/name element -->
    <author> 
      <name><![CDATA[Joe Gargery]]></name>
    </author>

    <!-- RECOMMENDED: Subtitle can be specified in <dcterms:alternative> -->
    <dcterms:alternative>Article subtitle</dcterms:alternative>

    <!-- Use this element if you want to override the default 1-year expiration.
         ﻿Date formats should follow W3C-DTF https://www.w3.org/TR/NOTE-datetime 
         Currently, we only support specifying "end" as the expiration date
         ﻿and "start" will be ignored.
﻿
         Note: If the "start" is specified, it will be taken as the published date time.
        ﻿ And we are checking if the publish time is older than 1 year.

         You can use this element to takedown a piece of content,
         ﻿by specifying an "end" date in the past. 
         ﻿See the takedown example at the end of this example.﻿ -->
    <dcterms:valid>start=2016-10-01T10:00:00+0100; end=2018-10-02T10:00:00+0100; scheme=W3C-DTF</dcterms:valid>

    <!-- Alternatively, you can use special element 'mi:expirationDate' to specify
         ﻿expiration date. You can use any of the formats supported in 'published'. -->
    <mi:expirationDate>2018-10-02T13:00:00.52Z</mi:expirationDate>


    <!-- The “short title” value, also known as a “Web Headline” is used when
         ﻿displaying content on compact settings.
         ﻿The value in this field should be 40 characters or less. -->
    <mi:shortTitle><![CDATA[Short Title]]></mi:shortTitle>

    <!-- RECOMMENDED: Provide keywords associated with this document -->
    <media:keywords>keyword1,keyword2,keyword3</media:keywords>

    <!-- RECOMMENDED: Use <category> element at the item level to tag the document
         with the category it belongs to. 
         Multiple tags are allowed, each under a separate <category>. -->
    <category label="LOL" />
    <category term="Sports" label="LOL" />

    <!-- RECOMMENDED: <summary> is used to specify article's abstract.
         You can only provide plain text in this element. -->
    <summary> 
    <![CDATA[
        Article abstract/description should be plain text, no HTML is allowed
        ]]>
    </summary>

    <!-- REQUIRED: Article body must be  HTML formatted. It is highly recommended 
         you use the CDATA structure to provide article content under <content>, 
         otherwise HTML tags must be escaped.
                              
         You can either use CDATA or escaped HTML, but not both, otherwise the content
         will not be unescaped. -->
    <content type="html">

        <!-- An example of a body that contains references to an inline image and video
             within the HTML. -->
        <![CDATA[

            <img src="https://v3spec.msn.com/_files/assets/azure1.jpg" alt="Image title here." title="Image title"
              data-portal-copyright="Joe Gargery/Fabrikam Images" data-has-syndication-rights="1" data-license-id="698526"
              data-licensor-name="Licensor name" data-focal-region="x1:246,y1:140,x2:246,y2:140" />
                        
            <p>
             Media Services enables you to encode your media files into formats that can be played on a wide variety of browsers and devices.  
             For example, you might want to stream your content in Apple's HLS or MPEG DASH formats. Before streaming, you should encode your high-quality 
             digital media file. For encoding guidance, see <a href="encoding-concept" data-linktype="relative-path">Encoding concept</a>.  
             This tutorial uploads a local video file and encodes the uploaded file. You can also encode content that you make accessible via a HTTPS URL.  
             For more information, see <a href="job-input-from-http-how-to" data-linktype="relative-path">Create a job input from an HTTP(s) URL</a>. 
            </p>

            <p> Here is an example of an embedded 1PP video using the 'video' tag</p>
            <video id="8172818" title="an inline video" poster="https://contoso.com/videothumbnail.jpg" data-description="this is a sample inline video" data-portal-copyright="Joe Gargery/Fabrikam Videos"> 
              <source src="https://contoso.com/video.mp4" type="video/mp4"></source>
            </video>

            <p> And here is an example of an embedded 3PP YouTube video using 'iframe' </p>
            <iframe width="100%" height="100%" frameborder="0" allowfullscreen="true"
              src="https://www.youtube.com/embed/XnZ_J3l_0z4?rel=0" >
            </iframe>

            <p> You can also embed an inline slideshow using html as below.</p>
            <div class="slideshow">
              <cite>Slideshow author</cite>
              <title>Slideshow title</title>
              <figure>
                <img src="https://v3spec.msn.com/image1.jpg" title="slide 1 title" />
                <figcaption>slide 1 caption
                  <span class="copyright">slide 1 copyrights</span>
                </figcaption>
              </figure>
              <figure>
                <img src="https://v3spec.msn.com/image2.jpg" title="slide 2 title" />
                <figcaption>slide 2 caption
                  <span class="copyright">Joe Gargery/Fabrikam Images</span>
                </figcaption>
              </figure>
            </div>
            ]]>
    </content>

    <!-- Here is another example how to add images to content using the 
         ﻿media:content tag. -->
﻿
    <!-- 
         REQUIRED: URL must be provided for media elements. 
         ﻿It is also used to uniquely identify the video.
﻿
﻿        NOTE: you need to specify the medium and set to "image" or "video" depending on
       ﻿ the content type OR the 'type' attribute must indicate a valid video or image
        ﻿content type. ﻿
    ﻿-->
    <media:content url="https://v3spec.msn.com/image1.jpg" type="image/jpeg" medium="image">
      <!-- 
           ﻿RECOMMENDED: Provide image attribution in media:credit.
           Recommended format is: Photographer name/Agency name.
           If not provided, will fallback to "Provided by [PUBLISHER NAME]" 
      -->
      <media:credit>Joe Gargery/Fabrikam Images</media:credit>

      <!-- RECOMMENDED: Image title -->
      <media:title>Image title</media:title>

      <!-- RECOMMENDED: Use the media:text tag to specify alt-text -->
      <media:text>Image alt-text</media:text>

      <!-- RECOMMENDED: You may use Microsoft Ingestion namespace to provide focal
           region information -->
      <mi:focalRegion>
        <mi:x1>120</mi:x1>
        <mi:y1>120</mi:y1>
        <mi:x2>400</mi:x2>
        <mi:y2>400</mi:y2>
      </mi:focalRegion>

      <!-- Following 3 fields are used to specify image rights. -->
      <!-- Image Syndication Rights are required for auto publish. 
           If you have Syndication Rights for your images, 
           ﻿this field will default to True.
           If you do not have Syndication Rights for images there are two options: 
              Case 1: Do not send the images unless you can provide the required
                      ﻿information in Case 2
              Case 2: You’ve licensed the image from one of the image providers listed
                      in Appendix I. 
      -->   
      <mi:hasSyndicationRights>1</mi:hasSyndicationRights>
      <mi:licenseId>698525</mi:licenseId>
      <mi:licensorName>Licensor name</mi:licensorName>
    </media:content>

    <!-- you can also use the media:content tag to add videos to content -->
    <!-- 
        REQUIRED: URL must be provided for media elements.
        It is also used to uniquely identify the video.
        NOTE: you need to specify the medium and set to "image" or "video" depending on
        the content type OR the 'type' attribute must indicate a valid video
       ﻿ or image content type.
    -->
    <media:content url="https://v3spec.msn.com/video.mp4" duration="91" type="video/mp4" medium="video">
      <!-- REQUIRED: a unique video identifier is required if this is a 3PP video
          (other than YouTube and Daily Motion) -->  
      <guid>218736</guid>

      <!-- REQUIRED: video image thumbnail is required if the video is 3PP
          (except YouTube) and recommended for 1PP videos -->
      <media:thumbnail url="https://v3spec.msn.com/image.jpg"/>

      <!-- REQUIRED: video title must be supplied. -->
      <media:title>Video title</media:title>

      <!-- REQUIRED: provides a description/abstract to the video -->
      <media:description>Video description</media:description>
       <!-- RECOMMENDED: attribution/copyrights for the video content -->
      <media:credit>Joe Gargery/Fabrikam Videos</media:credit>
    </media:content>

    <!-- An article might also contain an inline slideshow,
         ﻿use <media:group> for this purpose -->
    <!-- Note that in the case of embedded slideshow,
         t﻿he slideshow title and description will be the same as the parent article's
         unless you explicitly provide them. -->
    <media:group>
      <!-- Inline slideshow title. If you do not specify a title for inline slideshow,
           the slideshow will be ingested with the same title of the parent article. -->       <media:title>Slideshow title</media:title>

        <!-- Inline slideshow author. Similar to title, if you do not specify an author,
             the slideshow will be ingested with the same author of the parent article. -->
        <media:credit role="author">Slideshow author</media:credit>

      <!-- Each slide is provided as a separate <media:content> element -->
      <media:content url="https://v3spec.msn.com/image1.jpg" type="image/jpeg" medium="image">
        <!-- slide image attribution / copyrights -->
        <media:credit>Joe Gargery/Fabrikam Images</media:credit>

        <!-- REQUIRED: slide title must be provided in the following element -->
        <media:title>Slide 1 title</media:title>

        <!-- RECOMMENDED: alt text for slide image-->
        <media:text>Slide 1 alt-text</media:text>

        <!-- RECOMMENDED: slide caption should be added in the description element.
        ﻿HTML is allowed in this field when you wrap content within a CDATA structure. -->
        <media:description>
         <![CDATA[
            <p>Slide 1 description</p>
          ]]>
        </media:description>

        <!-- RECOMMENDED: additional slide image metadata -->
        <mi:focalRegion>
          <mi:x1>245</mi:x1>
          <mi:y1>145</mi:y1>
          <mi:x2>520</mi:x2>
          <mi:y2>320</mi:y2>
        </mi:focalRegion>
        <mi:hasSyndicationRights>1</mi:hasSyndicationRights>
        <mi:licenseId>698525</mi:licenseId>
        <mi:licensorName>Licensor name</mi:licensorName>
      </media:content>

      <!-- a second slide -->
      <media:content url="https://v3spec.msn.com/image2.jpg" type="image/jpeg" medium="image">
        <media:credit>Joe Gargery/Fabrikam Images</media:credit>
        <media:title>Slide 2 title</media:title>
        <media:text>Slide 2 alt-text</media:text>
        <media:description>Slide 2 description</media:description>        
      </media:content>
    </media:group>

    <!--To specify "related links" you must declare the atom namespace and 
          use the Atom's Link element-->

    <!-- Links MUST have valid "href" and "title" attribute values.-->
    <link rel="related" type="text/html" href="https://v3spec.msn.com/news/prop_irs_1.html" title="New IRS proposal">
      <!-- REQUIRED: you must provide a thumbnail image with the link -->
      <media:thumbnail url="https://v3spec.msn.com/related_link_thumbnail1.jpg"  />
    </link>
    <link rel="related" type="text/html" href="https://v3spec.msn.com/news/prop_irs_2.html" title="New IRS proposal">
      <media:thumbnail url="https://v3spec.msn.com/related_link_thumbnail2.jpg" />
    </link>
    <link rel="related" type="text/html" href="https://v3spec.msn.com/news/prop_irs_3.html" title="New IRS proposal">
      <media:thumbnail url="https://v3spec.msn.com/related_link_thumbnail3.jpg" />
    </link>
  </entry>

   <!-- Example of a Takedown request. You must provide an <id> of an existing item,
        an updated datetime and an expiration date in the past -->
  <entry>
     <!-- REQUIRED: You must provide the Unique Identifier of the piece of content
          you want to take down through the feed. 
          The id must belong to an already ingested document -->
    <id>https://v3spec.msn.com/article123.htm</id>

    <!-- REQUIRED: Use the <updated> element to indicate there is a new update for this
        ﻿ content -->
    <updated>2017-10-02T13:00:00.52Z</updated>

    <!-- REQUIRED: You can use this element to takedown a piece of content,
         ﻿by specifying an "end" date in the past. "start" needs to be less than a year
         in the past -->
    <dcterms:valid>start=2019-10-01T10:00:00+0100; end=2018-10-02T10:00:00+0100; scheme=W3C-DTF</dcterms:valid>
  </entry>
</feed>