On Mar 11, 2007, at 12:07 PM, David Huynh wrote:

> Edzo A. Botjes wrote:
>> Dear mr General,
>>
>> (Sir yes Sir)
>>
> :-)
>
>> Sorry for that. But I do have  serious question, but probably a  
>> dump one.
>> I have an xml file that i want to convert to a jason file using  
>> babel.
>>
>> This XML structure is the one I use, but babel transforms this  
>> into an
>> empty js file.
>>
>> <collection>
>> <items>
>>   <label>  some value   </label>
>>   <type>  some value   </type>
>>   <function>  some value   </function>
>>   <unit>  some value   </unit>
>>   <date>  some value   </date<
>> </items>
>> <items>..</items>
>> <items>..</items>
>> </collection>
>>
>> What structure should I use for babel to understand?
>>
> Unfortunately, Babel can't convert from generic XML. There is a fixed
> list of formats... including RDF/XML, N3, tab separated values,  
> etc. Is
> it easy for you to convert your XML to tab separated values (just a
> spreadsheet)?

Making Babel GRDDL [1] aware would make for a very interesting /  
powerful service.  Edzo, would it be possible to associate a  
transformation with your instance data and/or schema?

--e

[1] http://www.w3.org/TR/grddl/




_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to