XML Assignment by using XML DSO
AIM:
Assignment to display data present in XML by using XML DSO.
THEORY:
Two types of markup languages are present. Specific Markup Language is used to generate code that is specific to a particular application. While Generalized markup language describes the structure & meaning of the text in a document. (Portable) HTML & RTF are used in web document & text document.
XML is developed by W3C (W3 Consortium) to overcome shortcomings of HTML. It is defined as a set of standards to exchange & publish information in a structured manner.
Difference Between HTML & XML
HTML
|
XML
|
Used to display data and to focus on how data looks
|
Used to describe data and to focus on what data is.
|
HTML tags are predefined.
|
XML tags are not predefined user have to define its own tags. XML uses DTD to describe the data.
|
HTML is used to modify the look of web page & formatting of text.
|
XML is used to store & send information.
|
HTML is the foundation of the web
|
XML is a common tool for all data manipulation & data transmission.
|
Data is stored inside HTML files
|
Data can be stored in separate XML files.
|
Xml version=”1.0” ?>
Do Not Forget to meet me at Premi Garden at
User have to write a software to send it, receive it & display it.
XML is free & extensible. XML is a complement to html. XML is not a replacement for html. XML is cross-platform software & hardware independent tool for transmitting information. XML is used to exchange data between systems ( computer systems & database contain data in incompatible formats) over the net. Converting the data to XML can greatly reduce this complexity & create data that can be read by many different types of applications.
With XML financial information can be exchanged over the net.(B2B). XML is independent of Hardware, software & application, data can be available to more than only standard HTML browsers. Other clients & applications can access files as data sources like they are accessing databases. XML is the mother of WAP & WML. (Wireless Markup Language) WML is used to markup internet applications for handheld devices like mobile phones is written in XML. XML is plane text with just addition of some XML tags enclosed in angle brackets. Software that can handle plain text cal also handle XML.
Rules For XML:
- XML have a closing tag. XML can also use HTML tags but closing tags should be present.
- XML tags are case-sensitive.
- XML tags must be properly nested.
- XML document must have a root tag. All other elements must be nested within the root element.
Attributes values must be quoted.
< note date=”12-11-2002 ”>
With XML white space is preserved ( not truncated). With XML CR / LF is converted to LF. A new line is always stored as LF (line feed) ( windows: CR LF / Unix: LF) XML elements are extensible & they have relationships. XML elements have simple naming Rules.
book is the root element. Title & chapter are child elements. Title & chapter are siblings (sister elements) because they have same parent.