Eight whole bits (int) wrote in lj_clients,
Eight whole bits

  • Mood:
  • Music:
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).
  • Post a new comment


    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened