| Author |
XML v/s customtags
|
Shekar Atmakur
Ranch Hand
Joined: Oct 24, 2003
Posts: 36
|
|
Hi, Can any one tell me what the advantage or disadvantage would be in using customtags over XMLs in rendering a dynamic page, where the content changes based on the data from previous pages? thanks, shekar
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
|
What do you mean by "XML" here?
|
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
|
 |
Shekar Atmakur
Ranch Hand
Joined: Oct 24, 2003
Posts: 36
|
|
well, WHat i meant by XML here is to create an XML documents based on data in a table and preload those XMLs and then choose the XML to render to the screen based on user input. WHile with custom tags, i can can choose to display a certain section of the HTML page by havin some kind of an IF logic based on user input? PLease let me know if i'm still noy making sense.
|
 |
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
|
|
Sounds like you're really between server-side scripting and client-side scripting. If that's the case, then I'd say the pros and cons are: Server-side scripting: + You don't have to deal with differences in browser JavaScript implementations - You may need to make more round-trips over the network Client-side scripting: + Snappier interface (less round-trips needed) - Problems with differing browser JavaScript implementations
|
 |
 |
|
|
subject: XML v/s customtags
|
|
|