Log in

No account? Create an account
A while ago, I posted asking about an XML DTD for saving LiveJournal… - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Apr. 9th, 2004|02:55 am]
LiveJournal Client Discussions


[mood |hyperhyper]
[music |Dance Hall Crashers - Sticky]

A while ago, I posted asking about an XML DTD for saving LiveJournal drafts and entries. evan said he had one for LogJam, but lost it. So I played around with LogJam for a bit and tried to draw one up from the output. Here's what I ended up with.

<!ELEMENT entry (subject?,event,mood?,music?,pickeyword?,preformatted?,backdated?,comments?,time?,security?)>
<!ELEMENT subject (#PCDATA)>
<!ELEMENT event (#PCDATA)>
<!ELEMENT music (#PCDATA)>
<!ELEMENT pickeyword (#PCDATA)>
<!ELEMENT preformatted EMPTY>
<!ELEMENT backdated EMPTY>
<!ELEMENT comments EMPTY>
<!ELEMENT security EMPTY>

<!ATTLIST entry itemid ID>
<!ATTLIST comments type (noemail|disable) #REQUIRED>
<!ATTLIST security type (friends|custom) #REQUIRED>
<!ATTLIST security allowmask CDATA>

I'm not really sure if that's completely right or not, as this is the first XML DTD I've ever written and it's been done from a tutorial on w3schools (which I think only shows Microsoft's implementations of everything). If anyone could help out to perfect this, it'd be great. It's just so people could load drafts from different clients if they felt like doing that for whatever reason (and the client used this format).

[User Picture]From: leprosy
2004-04-08 07:52 pm (UTC)
Yeah, it makes more sense as a three way option.
(Reply) (Parent) (Thread)