There are generally two files that are processed by an XML-compliantapplication to display XML content: the XML document and a style sheet(discussed in this section). In addition, some documents also use a Document Type Definition (DTD) that defines each tag allowed in the document along with its attributes and rules for use. The XML client can use the DTD to "decode" the markup and check it for accuracy.
The software that interprets the information in XML documents is called aparser. Both Microsoft and Netscape have built XML parsers into the latest versions of their browsers (Internet Explorer 5.5 and higher and Netscape 6).
The XML Document
As we've seen at the beginning of this chapter, an XML document contains marked-up content and looks similar to HTML in that regard. While you may think of a document as containing paragraphs and headings, XML documents can contain a vast variety of content. An XML document might be text-based, like a magazine article, or it could contain only numerical data to be transferred from one database or application to another.
An XML document might also contain an abstract structure such as a particular vector graphic shape or a mathematical equation.
It is important to note that an XML document is not limited to one physical file but may be made up of content from multiple files. Markup is used to integrate the contents of different files to form the logical structure of a single XML document. XML documents are comprised of units called elements, which are indicated by tags. These elements may be further described or enhance by attributes. These terms should be familiar to you if you have any experience with HTML. In addition, XML documents may contain entities, placeholders for content which you declare once and use throughout the document. We've seen character entities used in HTML, but in XML, entities have a moreversatile role.
In XML, entities can be used not only for single characters, but for any string of text, even another chunk of XML markup. Entities provide a useful shortcut for adding frequently used information to a document, such company contactinformation or a legal boilerplate. Special external entities are what's used to place parts of the XML document that reside in separate files. Entities may be defined in the document itself (general entities) or in the DTD for the XML application (parameter entities).
Style Sheets and XML
Remember that a markup language only describes the structure of adocument; it is not concerned with how it looks. Documents refer to external style sheets that give instructions on how each element should look when displayed in a browser (or other display device).
Like HTML, XML documents can use Cascading Style Sheets. A more robuststyle sheet language called the Extensible Stylesheet Language (XSL) exists for XML documents. The W3C's general rule for which style sheet to use is "Use CSS whenever you can; use XSL whenever you must."
XSL creates a large overhead in processing, whereas CSS is fast and simple, making it generally preferable.
XSL is useful when the contents of the XML document need to be"transformed" before final display. Transforming generally refers to the process of converting one XML language to another, such as turning a particular XML language into XHTML on the fly, but it can also be used for transformations as simple as replacing words with other words. An XSLT (Extensible Stylesheet Language for Transformations, a subset of XSL) style sheet works as a translator in the transformation process.
Web Designing Related Interview Questions
|HTML Interview Questions||HTML 5 Interview Questions|
|Flash Interview Questions||Graphic Design Interview Questions|
|Illustrator Interview Questions||Dreamweaver Interview Questions|
|UI Developer Interview Questions||Dreamweaver CS3 Interview Questions|
|CSS Advanced Interview Questions||Web Developer Guide Interview Questions|
|Log Shipping Interview Questions||Spring Boot Interview Questions|
|UI Designer Interview Questions||Bootstrap 4 Interview Questions|
Web Designing Related Practice Tests
|HTML Practice Tests||HTML 5 Practice Tests|
|Flash Practice Tests||Graphic Design Practice Tests|
|Illustrator Practice Tests||Dreamweaver Practice Tests|
|UI Developer Practice Tests||Dreamweaver CS3 Practice Tests|
|Web Developer Guide Practice Tests||Advanced jQuery Practice Tests|
Web Designing Tutorial
Designing For A Variety Of Browsers
Designing For A Variety Of Displays
Web Design Principles For Print Designers
A Beginners Guide To The Server
Printing From The Web
Structural Html Tags
Adding Images And Other Page Elements
Specifying Color In Html
Cascading Style Sheets
Server Side Includes
Designing Graphics With The Web Palette
Audio On The Web
Video On The Web
Flash And Shockwave
Introduction To Smil
Introduction To Dhtml
Introduction To Xml
Wap And Wml
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.