3

Script to create measure xml from measure json?

I have some measures that are equipped with measure.rb and measure.json, but no measure.xml. Is there a script somewhere I can run to populate a new xml for the measure based on what is in the json (and then I'll be happy to fill in the rest)?

Elaine Hale's avatar
155
Elaine Hale
asked 2016-02-16 17:09:57 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-08-05 13:10:41 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

4

The measure JSON format is being deprecated in preference to the XML one because the BCL accepts XML only. Probably the easiest thing to do is use the OS App to make a new measure, then copy your measure.rb over. You may have to edit a few fields in the XML by hand but it wouldn't be too bad for a few measures.

macumber's avatar
12k
macumber
answered 2016-02-23 17:49:10 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

If it's just a straight format conversion (I should know the answer to this but I don't), then there are a few utilities including this one in my favorite language.

__AmirRoth__'s avatar
4.4k
__AmirRoth__
answered 2016-02-17 20:58:13 -0500
edit flag offensive 0 remove flag delete link

Comments

Looking at a measure with both formats, it looks like that would get me part of the way there, but not all the way to an XML that actually fits the measure XML schema ... What I am really hoping is that Dan has a script sitting somewhere ...

Elaine Hale's avatar Elaine Hale (2016-02-18 16:42:44 -0500) edit
add a comment see more comments