cancel
Showing results for 
Search instead for 
Did you mean: 

Adding attachment to XML Document

Former Member
0 Kudos

Hi,

i hv an XML document. i need to modify the xml document and add some tags as an attachment. Im using DOM and JDOM parser for building the XML document.'

Is there a way to do this?

Please help.

Thanks n Regards

Akshay

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can modify XML document and tags to the document using DOM and JDOM..

However i will suggest you to use JDOM..

JDOM's memory usage is less than DOM.

JDOM does everything you need and it works quickly enough for you, it will simplify the coding you have to do.

For Sample DOM code, refer

http://www.roseindia.net/xml/dom/createdomchildelement.shtml

Regards,

Tanveer.

Please mark helpful answers