• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

XML

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is xml?
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
XML stands for eXtensible Markup Language and is now a standard used to develop applications. Do not confust XML and HTML, while HTML is used to display data, XML is used to represent it. XML is also a tag based language, where you can develop your own tags to hold custom information. Here is an example of an XML tag
<code>
<Person>
<Name>Greg Georges</Name>
<Address>44 lala boulevard</Address>
<Age>23</Age>
</Person>
</code>
This is a simple example of XML. You can use DTD's to validate your XML. Then, XSL (eXtensible Stylesheet Language) can be used to extract the data from the XML into webpages, HTML can be mixed into the XSL.
Now, what is the use of this great technology. The possibilites are almost endless. I use XML to configure my Java apps instead of property files. All you need is a good XML parser for Java. Sun has JAXP and I use Apache's Xerces. Also, XML files can be used to transfer data from 2 different applications. Example, make a Java app communicate with a legacy system written in C. All you need are parsers on each side and that is it. I suggest learning XML as soon as possible, I read Java and XML by Brett Mclaughhlin, real good book. Anyways, have fun!
 
Greg Georges
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
darn, did not like my XML tags, this is what it should look like
<Person>
<Name>Greg Georges</Name>
<Address>40 lala boul</Address>
<Age>23</Age>
</Person>
------------------
Greg Georges
Sun Certified Java Programmer for the Java2 platform (SCJP)
 
Greg Georges
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, you will have to look up the tags yourself, tags are not accepted . Check out www.xml.com
 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chandran,
Why don't you check out the XML forum. You can do a search for introductory material. the links section of JavaRanch has some excellent XML links - especially if you are just starting out.
Enjoy
regards,
Jyotsna
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic