Thread: Help in XML
View Single Post
  #4 (permalink)  
Old 04-23-2007, 09:13 AM
ims6674 ims6674 is offline
Member
 
Join Date: Apr 2007
Location: India
Posts: 2
ims6674 is on a distinguished road
Hi,
Thanks for your reply.

I have to generate a xml file which includes 45-50 tag elements depending upon the user's input i.e. dynamically. Few of them are having child nodes.

I am able to generate this file by writting each and every tag element, adding its attribute if present then adding the text node.

I want to ask, Is there any way so that I can generalize my code by
calling any method so that to reduce the code length?

I was also able to write one method, to which I am passing the tag element and its text node value, however it fails if that tag element is having some child nodes.

Could you please find some solution to this?

Thanks,
Imran.
Reply With Quote