QA


Q&A

Q.

Why isn't it possible to create custom tags in HTML, as you can in XML?

A.

HTML is a markup language that consists of a predefined set of tags that each has a special meaning to web browsers. If you were able to create custom tags in HTML, web browsers wouldn't know what to do with them. XML, on the other hand, isn't necessarily tied to web browsers, and therefore has no notion of a predefined set of tags. When you do tie an XML document to a web browser, you typically couple it with a style sheet that styles or transforms the XML data into a format more easily displayed in the browser.

Q.

Is it necessary to create a new XML-based markup language for any kind of custom data that I'd like to store?

A.

No. Although you may find that your custom data is unique enough to warrant a new markup language, you'll find that a variety of different XML-based languages are already available. In fact, most major industries have developed or are working on standardized markup languages to handle the representation of industry-specific data. OFX (Open Financial eXchange) is a good example of an industry-specific markup language that is already being used widely by the financial industry. Additionally, you may find that your XML needs are so simple that you can format data in XML without the formality of creating your own full-blown XML language.




Sams Teach Yourself XML in 24 Hours
Sams Teach Yourself XML in 24 Hours, Complete Starter Kit (3rd Edition)
ISBN: 067232797X
EAN: 2147483647
Year: 2005
Pages: 266

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net