How to write JTree to a XML file using DOM4J ?

Hi All,Pls show to me how to write JTree to a XML file using DOM4J ?Thanks in advance.Hung Nguyen.
[126 byte] By [HungNguyen_230864a] at [2007-11-27 3:12:28]
# 1

import javax.swing.JTree;

import org.dom4j.Document;

import org.dom4j.swing.BranchTreeNode;

...

Document doc = <your XML document>;

BranchTreeNode btn = new BranchTreeNode(doc);

JTree tree = new JTree(btn);

prgguya at 2007-7-12 8:14:57 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
HiThanks your reply.But I want code in more details: Data that stores in JTree on GUI write to XML file using by dom4j. No XML file --> JTree.Many thanks in advance.Hung Nguyen
HungNguyen_230864a at 2007-7-12 8:14:57 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...