This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML v/s customtags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML v/s customtags" Watch "XML v/s customtags" New topic
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
    
    5
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
    
    5
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