Home > SOA Tips > XML Developer > XML tip: I want my XMLTV
SOA Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

XML DEVELOPER

XML tip: I want my XMLTV


Ed Tittel
07.19.2006
Rating: -3.67- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


I stumbled across XMLTV (aka XML TV) while researching and writing a now-nearly-finished book on the Linux based MythTV environment earlier this year. For those not already in the know, MythTV is one of a handful of alternatives to Microsoft's Windows Media Center Edition (MCE) that runs on the "other OS" (namely Linux). In my opinion, MythTV offers MCE serious competition and does an excellent job in helping ordinary users acquire, manage and play back all kinds of media, for everything from TV programs to DVDs to music, photos and more.

As you might guess, XMLTV is an XML technology that helps in processing and working from TV listings. In MythTV and other systems, XMLTV is an integral part of managing TV viewing, where listings stored in XML format are used to schedule and drive unattended recording of TV programs from various sources. XMLTV also provides links to information about those programs for everything from where and when it was recorded, to who directed the program, who acted in it, what kind of show it is and so forth.

Given the foregoing description, you can probably deduce that there's more to XMLTV than just a metadocument that describes a specific type of XML markup. In addition to a nicely documented DTD for TV listings, XMLTV also incorporates open source Perl code from its developer, Edward Avis, that's incorporated right into MythTV, Freevo and other Linux-based media environments that work with television programs. The XMLTV code works with TV listings data stored in XMLTV format to download and refresh listings at regular intervals or on demand, to show such listings to users and to let them use those listing to decide and select what they want to watch and record.

A quick look at the XMLTV DTD shows a simple, but powerful and descriptive markup language for TV listings. Key elements of this syntax include the following items:

  • tv generator-info-name: where listings come from
  • channel id: information about channel names, Internet URLs, display info and more
  • programme: British English for program, wherein individual program data resides
  • title: program title
  • desc: text program description
  • credits: container for credits director and actor elements
  • director: name of director
  • actor: name of actor
  • date: date recorded
  • country: country of origin
  • episode-num: episode number is used to distinguish one show from another and to recognize reruns of shows already recorded
  • video: container for video descriptors, such as aspect (ratio)
  • aspect: aspect ratio for recording (4:3 for SDTV, 16:9 for HDTV)
  • rating: ratings data
  • value: rating value assigned
  • icon: rating icon shown
  • star-rating: quality, interest level indicator, shown by number of stars

Though this listing of elements is incomplete and only sketchily described (see the DTD for incredibly complete details and explanations) it serves to demonstrate how it's possible to capture and store all the information about TV shows one needs to pick and choose what to watch and record.

And, as with all other forms of XML, this data is nothing but plain text and is thus easy to grab, download, parse, interpret, store and manipulate. If you take the time to read through the DTD, you'll also learn that neither structure nor syntax for XMLTV is very complex, either. For those interested in building their own collections of TV programs, it's a real blessing that makes it easy to grab shows off the air, from cable or satellite providers and even from an increasing number of Internet sources and feeds.

About the author

Ed Tittel is a full-time writer and trainer whose interests include XML and development topics, along with IT Certification and information security topics. E-mail Ed at etittel@techtarget.com with comments, questions or suggested topics or tools for review.


Rate this Tip
To rate tips, you must be a member of SearchSOA.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
XML Developer
Use the soapUI software tool to tame WSDL
WSDL 2.0, new messaging for Web services
Using RELAX NG For data integration
Efficient XML Interchange tackles data verbosity
XML to DDL imports, synchronizes database schemata
The basics of MathML 3.0
Migrating to XSLT 2.0
What's up with XML 2.0?
Say hello to XPath 2.0
Podcasting software covers many bases

XML and XML schema
What's the future of XML?
SOA pattern of the week (#7): policy centralization
Try XML-based Extensible Business Reporting Language (XBRL) for accounting reports
What's new at the W3C
Ganymede: Modeling tools target SOA, UML
Data services mashups emerge for SOA
Making sense of data services mashups
XML turns 10
SOA helps save 100-year-old business
Oracle maps heterogeneous data services strategy for SOA

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
class diagram  (SearchSOA.com)
Fast Infoset (FI)  (SearchSOA.com)
GeoRSS  (SearchSOA.com)
Keyhole Markup Language  (SearchSOA.com)
RELAX NG  (SearchSOA.com)
state diagram  (SearchSOA.com)
Universal Business Language  (SearchSOA.com)
Vector Markup Language  (SearchSOA.com)
XML infoset  (SearchSOA.com)
XML pipeline  (SearchSOA.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



SOA Trends and Strategy - SOA Education, SOA Development, SOA Implementations
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts