wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Please help me! 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 "Please help me!" Watch "Please help me!" New topic
Author

Please help me!

Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277

Hi,
I am a beginner in field of XML. I am trying to understand basic concept or use of XML. I understand properly what is XML, style sheets, Parsing and different ways of parsing.

But still I am not able to understand, how do we use XML in real world of web application? Where does exactly we use XML (server side or client side)? How can we use it with JSP?


Let�s say we have a web-based application with a big database (any oracle, DB2�). So now how does XML help us in this application? What will be the use of XML? Is it going to help us with database access (or we can say on server side)? Or is it going to help us on client side?
Basic question is how and where exactly we use XML?

Hope I am able to express my problem. I know there are lots of XML experts to help me. Please help me to understand all these basic things. This might sound stupid but I really don�t understand
Your time and effort would be appreciated.
vivek

[This message has been edited by Vivek Shrivastava (edited October 29, 2000).]
Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277
Please do help me.
looking forward to hear from u guys.
vivek
Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277
i think Nobody here thinks that i should be help. is it true?
vivek
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Vivek,
Not only xml is useful in web applications, but in the time to come ,xml wud be used for transfering the database across the platforms , I mean platform independent transfer of data.It wud be taking place that of EDI has so far in the market.
More u will learn as & when u grow in XML.
bYE,
Manish
shailesh sonavadekar
Ranch Hand

Joined: Oct 12, 2000
Posts: 1874
Vivek , you are in the right place. Why you think that there is nobody to help you ? everybody is here to help you . Please see the link provided here , I think you will get all the replies to your question.
I hope this will be helpful to you.
SHAILESH.
prabhu palanisamy
Greenhorn

Joined: Oct 30, 2000
Posts: 27
hi vivek,
let me first list down the advantages with which i'll tell the applications,
1.platform independent,with a commom set DTD different set of systems and companies communicate.
**** It does'nt matter what type of database in use,everything will be in xml files,so all our operations will be to that xml files.so the heirarchy will be database->business rules->xml->client pages. so that every function will not go to db,which improves performance.it may hold for any kind of db software.
2.searching,it is definitely going to provide a efficient way out.
*** now since all are user defined tags,there will be some meaning,so searches can be specific and fast
3.then customized web pages,bcoz content and format or separated,so we can give customized ,preferred data to user.
xml and xsl.
4.and much more CDF,OSD,OFX,OTP,EDI
5.some experts predict if xml used properly,it will be the database for the web.
i hope this will be tiny contribution from me,for you to start
bye
Cynthia Yao
Ranch Hand

Joined: Nov 06, 2000
Posts: 92
Currently I am working on using XML for content management. I using XML to present a group of articles, and using jsp tags to display them.
I also heard other company using XML files to help to analyze log files.
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
The biggest advantage of using XML in my opinion, is that, it is portable. Let's consider the web-application you are talking about that talks to a database. In all probability, you would be using the following approach -

  • Retrieve data on the server
  • generate HTML
  • render the web page to the client.

  • Though this approach works perfectly fine, what if you want to exchange some data with another client( a business layer ) written in some other language. Since your application uses your own datastructures to represent data( records ), you will have to go through the ordeal of -

    • Understanding how the other business layer represents data.
    • Converting your representation to their representation.

    • This may be easy( easier than converting your entire app to use XML ) for just one such "external" client. But remember we are in a world of Enterprise Application Integration. Such third-party intergration and interaction will happen in future and you should be ready to handle such requirements. Can you afford to invest hundreds of hours of development( and system study ) time for each such enterprise expansion??
      Any sensible manager would say no. So what is the answer?? XML!! Since XML provides a way to represent data that can be understood by anyone with a standard XML parser, you don't have to worry about future third-party intergrations. Simply give them the XML-ized data and forget it. Similarly when you are expecting some raw data from an external source( again, another application written by another wendor in North Pole, ) ask them to pass on the data as an XML.
      In a nutshell, XML offers seamless inter-exchange of data not only within sub-application components, but also across application, system, and physical network boundaries.
      Among other ( most commonly cited ) benefits of XML, the most important one is the separation of data from presentation so that you can provide different presentation "layers" for different types of clients. Remember when you use HTML you marry the data with presentation logic. Data becomes a part of presentation and they cannot be separated. This results in ( again, ) redundant effort if you have to cater to other kinds of data presentation( WML for wireless devices, for example ).
      Hope that helps,
      Ajith

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Vivek Shrivastava
Ranch Hand

Joined: Jun 03, 2000
Posts: 277

Thanks for putting some time here.
I do agree that portability is the main advantage of using xml. But as far �separation of data from presentation � is concerned that can be well achieved by JSP.
I know people like XML more then JSP. I just want to know is there any particular advantage of using XML over JSP (if we simply talk about �separation of data from presentation �.)?
Your effort would be appreciated.
vivek
 
GeeCON Prague 2014
 
subject: Please help me!