XML

DTD Entities In XML

XML Entities   • Entity references are references to entities. • Entities as variables used to define shortcuts to common text. • Entities can be declared internal. • Entities can be declared external     Declaring an Internal Entity   Syntax: <!ENTITY entity-name “entity-value”>   DTD Example:   <!ENTITY developer “[email protected]”> <!ENTITY copyright ” Copyright …

DTD Entities In XML Read More »

What is XSL ?

The EXtensible Stylesheet Language (XSL) includes both a formatting language and a transformation language. Each of these, naturally enough, is an XML application. The transformation language provides elements that define rules for how one XML document is transformed into another XML document. The transformed XML document may use the markup and DTD of the original …

What is XSL ? Read More »

Formatting XML with CSS

It is possible to format XML file to format with CSS as we format HTML files. We can write style definitions for XML in the same way we write stylesheet for HTML.   Below is an example of how to use a CSS style sheet to format an XML document:   <?xml version=”1.0″ encoding=”ISO-8859-1″?> <?xml-stylesheet …

Formatting XML with CSS Read More »

Formatting XML with XSL

What is XSL?   The EXtensible Stylesheet Language (XSL) includes both a formatting language and a transformation language. Each of these, naturally enough, is an XML application. The transformation language provides elements that define rules for how one XML document is transformed into another XML document. The transformed XML document may use the markup and …

Formatting XML with XSL Read More »

Mozilla & Opera XML Parser

XML Parser in Mozilla, Firefox, Opera and other browser work little differently from Microsoft XML parser. If you try to open the example of the previous chapter with a browser other then the Microsoft Internet Explorer, you might not be able to see the parser output. Reason is the previous example is optimized for the …

Mozilla & Opera XML Parser Read More »

XML Data island

What is Data Island?   By using the unofficial <xml> tag can embed xml data into HTML file (<xml> tag is non-standard tag and works only with Microsoft Internet Explorer) .As we know HTML is used for presentation of data and XML is used for storage of data and XML does not know anything about …

XML Data island Read More »

Introduction to XML Schema

The definition of an XML document, which includes the XML tags and their interrelationships. Residing within the document itself, an XML schema may be used to verify the integrity of the content. XML schema can be treated as grammar that validates the XML document. Various recommendations for an XML schema were submitted to the W3C, …

Introduction to XML Schema Read More »

Schema vs. DTD IN XML

Schemas make it possible to provide the full “legal” structure of an XML document and to specify type characteristics for data contained within the document. XML based schemas are very quickly emerging as one of the most important facets of the XML revolution. A schema is the set of rules that defines how a document …

Schema vs. DTD IN XML Read More »

XML Schema Elements

A simple element is an XML element that can contain only text. It cannot contain any other elements or attributes. However, the “only text” restriction is quite misleading. The text can be of many different types. It can be one of the types included in the XML Schema definition (boolean, string, date, etc.), or it …

XML Schema Elements Read More »

XML Schema Attributes

Simple elements cannot have attributes. But the attribute itself is always declared as a simple type. If an element has attributes, it is considered to be of a complex type.   Defining a simple XSD attribute   <xs:attribute name=”attbr_name” type=”data_type”/>   In the above declaration attbr_name is the name of the attribute and data_type specifies …

XML Schema Attributes Read More »

XML Schema Facets

Restrictions(facets) are used to define acceptable values for XML elements or attributes. Restrictions on XML elements are called facets. By using these restrictions, we can control the kind of value that can be supplied. For instance suppose eBIZ.com want to place an restriction on the age and the condition is “only those who are above …

XML Schema Facets Read More »

XML Schema Examples

Example 1: csitquestion address demo   Given below is the source code of XML file that is used by csitquestion.com to store the details of it’s associates :   <?xml version=”1.0″ encoding=”UTF-7″?> <csitquestion xmlns=”http://csitquestions.com” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”simple_with_schema.xsd”> <address>      <name>Dharmendra Das</name>      <age>20</age>      <address_str>D 210</address_str>      <city>New Delhi</city>      <state>CG</state>      <pin>110000</pin> </address> <address>      <name>XYZ Kumar</name>      <age>20</age>      <address_str>b 66</address_str>      <city>Noida </city> …

XML Schema Examples Read More »

Namespaces In XML

A method for identifying XML elements and attributes that have the same name, but different meanings. For example, ADDRESS is a tag that can be used to identify totally different data elements such as “street address” and “IP address.”     An XML Namespace is a Prefix   An XML namespace uses a URL as …

Namespaces In XML Read More »

CDATA In XML

CDATA blocks have been provided as a convenience measure when you want to include large blocks of special characters as character data, but you do not want to have to use entity references all the time. CDATA sections are used to escape blocks of text containing characters, which would otherwise be recognized as markup. Whatever …

CDATA In XML Read More »

PCDATA In XML

PCDATA acronyms for Parsed Character Data. Data of this section is parsed by XML Parser and unlike CDATA section we can not use special character in this section. “#PCDATA” is a token used in an element declaration to declare the element as having mixed content (character data, or character data mixed with other elements). The …

PCDATA In XML Read More »

XML and Server

Generating XML with JSP   XML can be generated on a server without any installed XML software.   To generate an XML response from the server – simply write the following code and save it as an JSP file on the Tomcat web server and create a System DSN named “simple” that will be used …

XML and Server Read More »

XML in Real Life

Content Management Content management is an integral part of any enterprise. Content management system everybody has the access to required and allowed information as and when required. The following example shows how an effective content management system can help a company improve customer satisfaction and loyalty, increase revenue and compete with third party and after-market …

XML in Real Life Read More »

XML Technologies

“XML is going to be the future and standard of all web development in coming days.” XML and related technologies are becoming de-facto standard as far as web technologies and B2B(business to business) development is concerned. As we know XML is a simple, flexible and text based language that gives us the freedom to define …

XML Technologies Read More »