Monday, February 8, 2010

What is the DOM?

DOM is a platform independent, World Wide Web Consortium (W3C) standard form of representation of structured documents as an object-oriented model. It is an application programming interface so as to access HTML and XML documents.

What is the HTML DOM?

The HTML DOM API specializes and adds the functionality to relate to HTML documents and elements. It addresses the issues of backwards compatibility with the Level 0 of DOM and provides mechanisms for common and frequent operations on HTML documents.

What is the XML DOM?

Microsoft’s MSXML DOM provides an API for working with XML data. It also provides a programmatic representation of XML documents, fragments, nodes, or node-sets. It is a W3C standard form of XML representation. XML DOM objects can be used in XML applications written in C/C++, VB, VBScript and JScript.

What is the XMLHttpRequest Object?

The XMLHttpRequest object is used to connect to the server through http. Scripts use it to do so programmatically.

The EventTarget interface needs to be implemented if an object implements the XMLHttpRequest interface. Also, an XMLHttpRequest() constructor needs to be provided by objects that implement the Window interface.

XSL-FO -

What is XSL-FO?

XSL-FO stands for Extensible Stylesheet Language Formatting Objects. It is used to format XML data and is also a W3C recommendation.

What is XSL-FO Documents? Explain XSL-FO Documents structure.

XSL-FO documents are XML files (.fo / .fob OR .xml – for being accessible by XML editors) with output information about the layout and contents.

Document Structure:
As usual they need to start with the version and the encoding declaration:


Namespace attribute can be written as:
-----------------Root element of XSL-FO documents. You can have the whole document within these tags.
----------------Contains page templates
----------------Contains a single page template
------------------------Describes the page contents

What is XSL-FO Processors?

XSL-FO processors (e.g. XSL Formatter, Xinc Beta Release, Scriptura) are programs that format XSL document output.

Most of them can also output PDF documents, quality print, HTML etc.

XML Attributes

Explain XML Attributes with an example.

The attributes in XML provide additional information about elements. Take a look at the following example:

”>

XML Elements vs. Attributes.

XML elements as well as attributes can be used to provide the same information about an entity in an XML database. The only difference lies in the way they are written. For example:

..... is an example of using attributes.
The same information can be provided in the element form as follows:

Da Vinci Code

What are the problems with using XML attributes?

It is preferred storing the data using the XML elemental form as it becomes very convenient to access and modify the data. Also the use of attributes is limited as they cannot contain multiple values, cannot contain tree structures nor are expandable

No comments:

Post a Comment