Originally posted by Deepti Premkumar:
The problem is that,some set of tags are optional and added at runtime..these set of tags are repetitive,
The one you posted wasn't repetitive, so I don't understand what it means when you say that.
1 solution : Use entities. But we don't want to use entities becoz we don't have a DTD, and the xml file is built runtime.
You're asking what you can change so that you get a solution to your problem. The fact that you don't have a DTD is something that you could change. In other words, you could make a DTD.
Is there any other possible way?
There's XInclude, which might be a solution for your problem.