Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] How to add same children element in existing
 XML file?

Normadiah Mahiddin

2007-04-05

Replies:


What I want to do actually is like this...

I already have XML file contain :
<TreatmentPlans>
   <Condition>    
        <PreCondition><PreCondition>
        <CurrentCondition><CurrentCondition>
        <PostCondition><PostCondition>
   </Condition>
</TreatmentPlans>
Now... I want to add the data become like this:
<TreatmentPlans>
   <Condition>    
        <PreCondition>Diabetes<PreCondition>
        <PreCondition>High Blood Pressure<PreCondition>
        <PreCondition>Hypertension<PreCondition>
        <PreCondition>Anaemia<PreCondition>
        <CurrentCondition><CurrentCondition>
        <PostCondition><PostCondition>
   </Condition>
</TreatmentPlans>
I kept the PreCondition value in an array PreCondition[] to be as temporary
file
before success to be add in the XML file.
Currently, I still fail to do that.


normadiah wrote:
>
> Dear all,
> who knows on how to add same children element in existing XML file?
> Thank you very much for your help.
>
> Regards,
> Normadiah Mahiddin
>
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
>

--
Sent from the JDOM - General mailing list archive at Nabble.com.

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.