Hi,
I have one xml looking like this:
=============== ==========
<video>
<shot id="1">
<timestampbegin >000030.90</timestampbegin>
<feature>blabla </feature>
<timestampbegin >000045.20</timestampbegin>
</shot>
<shot id="2">
.....
</video>
=============== ==========
Another xml gives simple information about the clustering of video shots
into scenes looking like that:
=============== ==========
<video>
<scene id="1">
<shot id="1"></shot>
<shot id="4"></shot>
<shot id="5"></shot>
</scene>
<scene id="2">
<shot id="2"></shot>
<shot id="3"></shot>
<shot id="6"></shot>
<shot id="7"></shot>
</scene>
.....
</video>
=============== ==========
I wish to merge both XML into one like:
=============== ==========
<video>
<scene id="1">
<shot id="1">
<timestampbegin >000030.90</timestampbegin>
<feature>blabla </feature>
<timestampbegin >000045.20</timestampbegin>
</shot>
<shot id="4">
............... ........
</shot>
<shot id="5">
............... .......
</shot>
</scene>
<scene id="2">
<shot id="2"> ............... ............... . </shot>
<shot id="3"> ............... ............... . </shot>
<shot id="6"> ............... ............... . </shot>
<shot id="7"> ............... ............... . </shot>
</scene>
........
</video>
=============== ==========
Does anybody know how this kind of simple merging can be done?? using
simple perl with XML::simple or xerces or xalan???
thanks for any hints,
Maƫl
I have one xml looking like this:
=============== ==========
<video>
<shot id="1">
<timestampbegin >000030.90</timestampbegin>
<feature>blabla </feature>
<timestampbegin >000045.20</timestampbegin>
</shot>
<shot id="2">
.....
</video>
=============== ==========
Another xml gives simple information about the clustering of video shots
into scenes looking like that:
=============== ==========
<video>
<scene id="1">
<shot id="1"></shot>
<shot id="4"></shot>
<shot id="5"></shot>
</scene>
<scene id="2">
<shot id="2"></shot>
<shot id="3"></shot>
<shot id="6"></shot>
<shot id="7"></shot>
</scene>
.....
</video>
=============== ==========
I wish to merge both XML into one like:
=============== ==========
<video>
<scene id="1">
<shot id="1">
<timestampbegin >000030.90</timestampbegin>
<feature>blabla </feature>
<timestampbegin >000045.20</timestampbegin>
</shot>
<shot id="4">
............... ........
</shot>
<shot id="5">
............... .......
</shot>
</scene>
<scene id="2">
<shot id="2"> ............... ............... . </shot>
<shot id="3"> ............... ............... . </shot>
<shot id="6"> ............... ............... . </shot>
<shot id="7"> ............... ............... . </shot>
</scene>
........
</video>
=============== ==========
Does anybody know how this kind of simple merging can be done?? using
simple perl with XML::simple or xerces or xalan???
thanks for any hints,
Maƫl
Comment