pombreda / python-xmp-toolkit

Automatically exported from code.google.com/p/python-xmp-toolkit
Other
0 stars 1 forks source link

Nested Arrays #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. x = XMPMeta()
2. x.set_property(XMP_NS_DM, 'tracks','',prop_value_is_array = 
XMP_PROP_VALUE_IS_ARRAY,                                                        
                    prop_array_is_unordered = XMP_PROP_ARRAY_IS_UNORDERED)
3. x.set_array_item(XMP_NS_DM, 'tracks', 1, 'markers', 
array_options={'prop_value_is_array':XMP_PROP_VALUE_IS_ARRAY, 
'prop_array_is_ordered':XMP_PROP_ARRAY_IS_ORDERED } )
4. print x

What is the expected output? What do you see instead?
I expect to see something like:

...
 <xmpDM:tracks>
    <rdf:Bag>
     <rdf:li>
      <rdf:Description>
       <xmpDM:markers>
        <rdf:Seq>
        </rdf:Seq>
       </xmpDM:markers>
      </rdf:Description>
     </rdf:li>
    </rdf:Bag>
   </xmpDM:tracks>
...

but I see:

...
 <xmpDM:tracks>
    <rdf:Bag>
     <rdf:li>markers</rdf:li>
    </rdf:Bag>
   </xmpDM:tracks>
...

What version of the product are you using? On what operating system?
1.0.2

Please provide any additional information below.

An example of this kind of tree here: 
http://www.notredam.org/NotreDAM/Documentation_files/2010-crs4-xmp-analysis.pdf

Original issue reported on code.google.com by maurome...@gmail.com on 7 Sep 2011 at 3:44