[ 
https://issues.apache.org/jira/browse/AVRO-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15121380#comment-15121380
 ] 

Bram Biesbrouck commented on AVRO-457:
--------------------------------------

Hi Ryan,

(sorry for the delay)

The relevant pieces in the XSD schema are the following:

{code}
<complexType name="audioProgrammeType">
        <sequence>
            <element name="audioContentIDRef" type="IDREF" minOccurs="0" 
maxOccurs="unbounded">
                <annotation>
                    <documentation>A list of reference to audioContents, each 
defining one component
                        of an audioProgramme (e.g. background music), its 
association with an
                        audioPack (e.g. a 2.0 audioPack of audioChannels for 
stereo reproduction),
                        its association with a audioStream, and its set of 
loudness parameters.
                        Notice that loudness values of a program are dependent 
of the associated
                        audioPack mixReproductionFormat.
                    </documentation>
                </annotation>
            </element>
            <element name="loudnessMetadata" 
type="ebucore:loudnessMetadataType" minOccurs="0">
                <annotation>
                    <documentation>A set of loudness parameters proper to the 
audio content of the
                        whole programme.
                    </documentation>
                </annotation>
            </element>
            ...
        </sequence>
    </complexType>
{code}

I'm no JAXB (nor XSD) expert, but I assume JAXB doesn't really know what to do 
with the IDREF type, and just defaults to using an Object type. What do you 
think?

> add tools that read/write xml records from/to avro data files
> -------------------------------------------------------------
>
>                 Key: AVRO-457
>                 URL: https://issues.apache.org/jira/browse/AVRO-457
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>    Affects Versions: 1.7.8
>            Reporter: Doug Cutting
>              Labels: gsoc
>         Attachments: AVRO-457.patch, AVRO-457.patch, AVRO-457.patch, 
> AVRO-457.patch, ebucore.json
>
>
> It might be useful to have command-line tools that can read & write arbitrary 
> XML data from & to Avro data files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to