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">
<body>
<metadata>
<description>Record tonight's news on MSNBC</description>
</metadata>

<!-- 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">
    <program>
        <key field="urn:schemas-microsoft-com:ehome:epg:program#title" match="exact">MSNBC News Live</key>
    </program>
    <service>
        <key field="urn:schemas-microsoft-com:ehome:epg:service#callsign" match="exact">MSNBC</key>
    </service>

    <!-- 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>
    </airing>

    <!-- 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>
    </airing>
</programRecord>
</body>
</clickToRecord>

See Also