Defining and Including Sections
You can gather one or more Property
or
TriggernInfo
nodes into a group by using the
Section
element. A Section
node can contain
one or more Property
nodes or a single TriggerInfo
node or another Section
node. A Section
node can
be the child of a Device
, or VideoFormat
node.
Using the Include
element, a Section
node can be
indirectly be a child of the root node, Device
,
VideoFormat
, Section
, or TriggerInfo
nodes
.
Section
nodes can simplify an XML file. You can reuse node
definitions without repeating the XML statements. For example, you can define common
elements, such as video formats, that can be shared by several Device
nodes in the XML file.
The following example outlines how to create a Section
node and use
it in an IMDF file. The words in italics represent text you define.
<ImageAcquisitionInfo> <Device device=devicename1> <Section name=sectionname> <Property> </Property> <TriggerInfo> </TriggerInfo </Section> <Property> </Property> </Device> <Device device=devicename2> <Include tag=sectionname/> </Device> . . . </ImageAcquisitionInfo>