[rfk-dev] NKI filetype
Thomas Thurman
thomas at thurman.org.uk
Thu Aug 20 23:34:56 PDT 2009
Ysgrifennodd Tim Allen:
> - The ambiguity of "\r\n" or "\n" line-endings grates (especially
> since I discovered there are even more line-ending control-codes
> in Latin-1 and hence Unicode). In practice, I suspect 'read until
> \n then trim white-space' will be what most people will do.
That's probably a better idea, yes.
I wonder whether, given also Steve Pomeroy's suggestion about headers,
we might not be better doing the whole thing in XML. That would take
care of delimiter and charset problems. It wouldn't be very helpful
unless the ports involved had access to an XML processing library,
though.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE nonKittenItems SYSTEM "rfk-nki.dtd">
<nonKittenItems>
<meta name="description" value="kittens of the world"/>
<item name="It's a marzipan dreadnought which seems to have melted
and stuck."/>
<!-- ... -->
</nonKittenItems>
Perhaps that's overkill.
Thomas
More information about the rfk-dev
mailing list