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).

  • 302: lj_dev

    In the interests of consolidating all LiveJournal development-related discussion, we're going to be closing down this community. The same…

  • Plain text to LJ

    I have an old blog from xanga that's in html/plain text and I want to move it over here. Which client would be the best to do this? I also want to…

  • ljKlient 0.2.0 Preview Release 1

    Today marks another milestone in the development of ljKlient — as the first preview of the 0.2 series is released.  Please go to the project…

  • Post a new comment


    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened