Log in

No account? Create an account
I'm looking to be able to add the functionality to save/load drafts… - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

[Feb. 3rd, 2004|01:35 pm]
LiveJournal Client Discussions


I'm looking to be able to add the functionality to save/load drafts as XML files. I was wondering if anyone has already done this, and how they structured their XML files? If someone has already done it, I might as well use their format in case anyone wanted to save/load between clients.

[User Picture]From: otheronetruegod
2004-02-02 09:08 pm (UTC)
I've not done this, but would be happy to work with you to develop something if there isn't something already available.

Feel free to contact me directly at tim at dreaming dot org
(Reply) (Thread)
From: evan
2004-02-03 10:45 am (UTC)


LogJam does it.
I'll comment with a sample.
(Reply) (Parent) (Thread)
From: evan
2004-02-03 10:48 am (UTC)


<?xml version="1.0" encoding="utf-8"?>
<entry itemid="-2">
  <subject>sample draft</subject>
  <event>here is the body.  &lt;b&gt;bold&lt;/b&gt;, etc.</event>
  <music>some music</music>

Pretty straightforward, except for the negative itemid (positive = entry on lj / negative = draft is my convention).
I've got a dtd around here somewhere.
(Reply) (Parent) (Thread)
[User Picture]From: int
2004-02-03 05:26 pm (UTC)


Does it cover posting options and stuff like that too (ie. security, backdate on or off, autoformat, etc)?
(Reply) (Parent) (Thread)
From: evan
2004-02-04 12:44 pm (UTC)


(Reply) (Parent) (Thread)
[User Picture]From: freso
2004-02-05 09:55 am (UTC)
Could you possibly send me a copy of the DTD when you find it? :)
(Reply) (Parent) (Thread)