Jump to content

Audio Catalog -- XML Design & Suggestions

Recommended Posts

Hi All,

I am looking at creating a searchable and browsable aggregation of metadata for my audio collection, and to link in what I have to other open-source data sets (musicbrainz being one of several). However, I am also using this as a tutorial exercise, as I have limited experience in anything beyond HTML. Therefore, I am posting looking for comments / critique / suggestions / pointers / etc. What I want to discover is what potential XML can achieve when combined with technologies such as XSL, RDF and others. It's a massive learning curve!

Step 1 is creating the raw XML file, then displaying that in a human-friendly fashion using an XML stylesheet. I've started on this, but I would like to get the foundations on a firm footing before progressing further (I don't want to be retrospectively going back and fundamentally changing my design later). It should not only be 'pretty' and 'informative' for the human, but also be designed for machine parsing. Hence coming here. I am finding it difficult to decide that should be included as a tag, and what info as an attribute -- and how to nest information appropriately.

I have a rough draft available online here, if anyone is willing to take a look and offer some constructive critique. It is nowhere near finished yet -- but shows the direction I am coming from.

The ordering of the tags (specifically with album information at the very end) is very much dictated by the perl script I have written to create this file. Changing this will require a "second pass" with a file re-write to reorder tags if this is necessary (I am hoping not). 




Link to post
Share on other sites

You've got multiple tags that seem similar, like DISC_ID and discid.  It might be better to create an element for identifying it on other services to move those elements out of the root.  So you identify each album however you want to, and have multiple sections to see how it's identified on other services.  e.g.:

	  <externalservice name="musicbrainz">
	    <id>MB ID</id>

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...