• 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

Own Tags?

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does XML let us to make up our own tags?
Thanks
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am assuming you are talking about custom tags that describe your data. The whole idea behind XML as it indicates in it's name is to be eXtensible meaning you should be able to customize and create your own tags. There are a limited set of predefined tags in XSL namespace which helps you in formatting your xml docs. Hope this helps.
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am a fellow beginner and I posted a similar question somewhere else and no one replied
Isn't XML great? I'm learning as fast as I can.
What's the difference between the Document Type Definition and the Document Type Declaration? Which one is DTD??
 
Lee Xu
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply.
I though DTD is Document Type Definition.
 
Stanley Tan
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, me too. So what is a document type declaration and what is the difference?
 
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
First of all, The main advantage of XML is introducing Custom Tags in it unlike HTML.
DTD is Document Type Definition. XML DTDs are derived from the SGML. DTDs use a formal grammer to describe the structure and syntax of an XML document. This is used by Validating Parsers.
Here comes the confusing part, DTDs are linked to XML documents using markup called the Document Type Declaration (which is never abbreviated as DTD). This declaration is commonly refered to as "the DOCTYPE declaration" to differentiate it from a DTD.
Thanks.

------------------
L Goundalkar
lggoundalkar@hotmail.com
Sun Certified Programmer for Java 2 Platform
 
Stanley Tan
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the clarification.
Ok, I've been doing some reading and here's what I've got. The declaration is in the XML file. The DTD doesn't necessarily have to be in the file as the declaration can point to it. This is correct, I hope.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic