[daisy] Daisy detachment - xml beans

tim_cranfield at goldenboat.net tim_cranfield at goldenboat.net
Fri Jul 14 01:38:12 CDT 2006


Thankyou Bruno for those previous instructions:
http://lists.cocoondev.org/pipermail/daisy/2006-July/004448.html

What I am trying to do now is instantiate a DocumentDocument 
from an xml file, edit something like a CustomField and save 
back to the file.

DocumentDocument docXml = 
DocumentDocument.Factory.parse(document.xml);
   DocumentDocument.Document docDocXml = docXml.getDocument();
   DocumentDocument.Document.CustomFields customFields = 
docDocXml.getCustomFields();
   CustomField[] customFieldArray = 
customFields.getCustomFieldArray();
   customFieldArray[k].setValue("happy");

I'm not sure how to save the change back to the document.xml 
file, or even if this is correct so far.


I hope to complete a major revision soon. I have been making 
substantial changes so wanted to get something working before 
I commit.

I'm not sure about the jdic issue:
http://lists.cocoondev.org/pipermail/daisy/2006-July/004372.html

jdic is only being used for registering the ddz file type and 
launching default editors. Launching a default editor is less 
than ideal - for example on Windows a jpeg file launches 
Paint.

What about different apps for different operating systems?


More information about the daisy mailing list