XMCL Overview and Examples
This section provides an overview and examples of XMCL for a few common use cases. This section is informative. Refer to Processing Rules (section 3) and Core XMCL Syntax (section 4) for the normative definition of the language. XMCL documents are intended to be the interchange that bridges between a back end business system and a specific trusted system. All XMCL documents have the following structure (where "?" denotes zero or one occurrence; "+" denotes one or more occurrences; and "*" denotes zero or more occurrences)
<xmcl>
(clientInfo)?
(license)+
(auth)?
</xmcl>
Ed note: are there any more significant business models that should be included?
Rental Example
For the rental business model a small set of rules need to be specified that simply describe the rental period. The following is an example XMCL document describing a 24-hour rental license for the movie "First Blood". The rental period begins when the movie is first watched and must occur within a week of purchase. For this example, the XMCL document always follows a template with only information regarding the specific customer and date/time information modified.- <xmcl>
- <license>
- <contentInfo>
- <contentId type="GUID">
- 13AC7DE5-8028-42fe-95CE-0DC2221891C7
- </contentID>
- <ds:KeyInfo
- xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
- <ds:KeyName>ContentKey</ds:KeyName>
- <ds:KeyValue>
- <key algorithm="urn:nist-gov:tripledes-ede-cbc">
- 3812A419C63BE771 AD9F61FEFA20CE63 3812A419C63BE771
- </key>
- <ds:KeyValue>
- <ds:KeyInfo>
- <rdf:RDF xmlns:rdf=
- "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:dc="http://purl.org/dc/elements/1.1/">
- <rdf:Description>
- <dc:title>First Blood</dc:title>
- <dc:subject>
- movie, action, adventure
- </dc:subject>
- </rdf:Description>
- </rdf:RDF>
- </contentInfo>
- <validPeriod start="2001614T184300"
- end="2001621T184300"/>
- <usageRights>
- <useDuration length="24h" begin="firstUse"/>
- </usageRights>
- </license>
- </body>
- </xmcl>
© xmcl.org