Sample Click-To-Record XML Document

The following example shows the contents of an XML document used to request a one-time recording of a single episode of a TV program:

<?xml version="1.0" encoding="utf-8" ?>
<!-- Sample click-to-record (MSNBC Single-Episode Scenario) -->
<clickToRecord xmlns="urn:schemas-microsoft-com:ehome:clicktorecord">
<description>Record tonight's news on MSNBC</description>

<!-- Include 5 minutes of hard prepadding and postpadding. If the
specified airing is not found, allow an alternate to be scheduled. -->
<programRecord prepadding="-300" postpadding="300" allowAlternateAirings="true" allowAlternateService="false">
        <key field="urn:schemas-microsoft-com:ehome:epg:program#title" match="exact">MSNBC News Live</key>
        <key field="urn:schemas-microsoft-com:ehome:epg:service#callsign" match="exact">MSNBC</key>

    <!-- For the EST time zone (-300 minutes from UTC), specify an explicit time. -->
    <airing timeZone="-300">
        <key field="urn:schemas-microsoft-com:ehome:epg:airing#starttime">2004-04-17T18:00:00Z</key>

    <!-- In other time zones, record if the program is found within
         three hours (180 minutes) of the specified UTC time. -->
    <airing searchSpan="180">
        <key field="urn:schemas-microsoft-com:ehome:epg:airing#starttime">2004-04-17T18:00:00Z</key>

See Also