Re: How to add same children element in existing XML file?

normadiah <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
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/[email protected]
> 

-- 
View this message in context: http://www.nabble.com/How-to-add-same-children-element-in-existing-XML-file--tf3529976.html#a9852185
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/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.