江湖救急 关于jdom
public static void BuildXML()
throws Exception
{
Element root,rbif,rinm,ricd,rpdt,cttn,catis,cati,
ctif,ctnm,citp,ctid,csnm,ctnt,htdt,htcrs,htcr,crcd,ttnm,tsdts,tsdt,rini
,finn,firc,rltp,fict,finc,catp,ctac,tbif,tbnm,tbit,tbid,tbnt,tsif,tstm,
ticd,tstp,tsct,tsdr,tdrc,trcd,crpp,crtp,crat,tcif,cfin,cfct,cfic,tcnm,tcit,
tcid,tcat,tcac;
root = new Element( "HVTR "); //生成根元素:HVTR
rbif = new Element( "RBIF "); //生成元素:RBIF,该元素中将包含元素rinm,ricd,rpdt,cttn
rinm = new Element( "RINM ");
ricd = new Element( "RICD ");
rpdt = new Element( "RPDT ");
cttn = new Element( "CTTN ");
catis=new Element( "CATIs ");//生成元素:CATIS,该元素中将包含元素CATI
cati=new Element( "CATI ");//生成元素:CATI,该元素中将包含元素CTIF
ctif=new Element( "CTIF ");//生成元素:CTIF,该元素中将包含元素CTNM,CTIP,CTID,CSNM,CTNT
ctnm=new Element( "CTNM ");
citp=new Element( "CITP ");
ctid=new Element( "CTID ");
csnm=new Element( "CSNM ");
ctnt=new Element( "CTNT ");
htdt=new Element( "HTDT ");
htcrs=new Element( "HTCRS ");
htcr=new Element( "HTCR ");
crcd=new Element( "CRCD ");
ttnm=new Element( "TTNM ");
tsdts=new Element( "TSDTS ");
tsdt=new Element( "TSDT ");
rini=new Element( "RINI ");
finn=new Element( "FINN ");