sshaw / ddex

DDEX metadata serialization for Ruby
https://metadatagui.com
52 stars 41 forks source link

ERN v312 #7

Closed parndt closed 12 months ago

parndt commented 9 years ago

Hi @sshaw,

We have to read the following XML:

<ern:NewReleaseMessage xmlns:ern="http://ddex.net/xml/2010/ern-main/312"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:schemaLocation="http://ddex.net/xml/2010/ern-main/312 http://ddex.net/xml/2010/ern-main/312/ern-main.xsd"
                       MessageSchemaVersionId="2010/ern-main/312">

As you can see, the MessageSchemaVersionId is 2010/ern-main/312.

How much work do you think it'd be for us to write support for this version, and which steps should we follow in doing so?

Thanks! Phil

sshaw commented 9 years ago

The easiest thing to do is to try to have it parsed as ERN 3.3 (the earliest version supported by this library). Obviously there may be some (BIG) downsides to this but it's worth a shot. Checkout this section of the docs to see how.

The better route is full support. This may be easy as 95% of the Ruby code is generated automatically from the schema. See CONTRIBUTING for instructions. Let me know if anything is not clear or if you have any other questions

sshaw commented 9 years ago

Any luck with with the version option @parndt?

parndt commented 9 years ago

Oh yeah!! See #8 :smile:

sshaw commented 9 years ago

Hey great thanks! Would it be possible to add a spec or two?