• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Please help me!

 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please do help me.
looking forward to hear from u guys.
vivek
 
Vivek Shrivastava
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i think Nobody here thinks that i should be help. is it true?
vivek
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Vivek Shrivastava
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic