The invention discloses an
XML-based video template language definition method and device, and the method comprises the steps: creating a VTL video template, and setting a plurality of
XML attributes for a template element for definition; embedding one or more scene elements in the template element through a parent-child relationship of
XML (
Extensible Markup Language); various content elements are nested in each scene element; and introducing a plurality of logic elements with the same level as the template element, wrapping the template element and the plurality of logic elements by using a
root element, and realizing dynamic logic
processing and
data binding in cooperation with a dynamic calculation expression so as to generate the VTL video template capable of being analyzed and rendered. Through the method provided by the invention, the VTL completely, accurately and flexibly defines a complex video item as a standardized
text file by utilizing the structuralization,
extensibility and self-description characteristics of the XML, so that comprehensive description from static
layout to dynamic
content generation is realized; standardized description of the video content is achieved, high dynamic performance is achieved, secondary editing and cross-terminal unified construction are easy, and the efficiency and flexibility of
video production are improved.