XML is the Extensible Markup Language. XML uses tags very similar to HTML, instead of describing the structure of the page the tags, XML uses the tags to describe the data. It allows a structured data format extended without breaking previous implementations.
* XML stands for Extensible Markup Language
* XML was designed to describe data
* XML is a markup language much like HTML
* XML tags are not predefined. You must define your tags
* XML uses a Document Type Definition (DTD) or an XML Schema to describe the data
* XML with a DTD or XML Schema is designed to be self-descriptive
Difference Between XML and HTML?
XML was designed to describe data and to focus on what data is, and HTML was designed to display data and to focus on how data looks.
HTML is about displaying information, while XML is about describing information.
In HTML, The tags used to mark up HTML documents, and the structure of HTML documents are predefined, but in XML, XML allows the author to define his tags and his document structure.
XML is becoming a standard way for people to export and import data from different systems. Its simplified markup language makes it easy for different systems to read data in, without knowing the exact structure of the data. If the XML data description correctly created it is possible to add additional information to your XML data files without affecting a system that is already using the information.
If you load XML data into Flash, an object model will create that will allow you to manipulate and extract the data easily. The same object model is available to build XML data and export it to an external system.
XML API, written in Java, is designed to manage H-Sphere services from remote applications via SOAP. It uses the Apache Axis implementation of SOAP and runs under the Apache Tomcat engine.
Remote applications interact with CP services using XML-formatted requests transferred via HTTP (Direct TCP connection can also be set up). Error messages are also processed in XML.
XML schema is based on the SOAP RPC convention.
XML API is helping in communication between remote applications and the Control Panel.
XML API mechanism
First of all, a remote Java application calls CP methods to perform particular actions e.g., to create an account or to return the list of domains.
For this, it invokes its SOAP client to form the corresponding XML request and to HTTP it to the Control Panel.
Then, the CP SOAP server receives this XML request, parses the request and calls a target H-Sphere service.
The target H-Sphere service performs actions according to the received request (for example, creates an account or returns the list of domains), and responds via the SOAP server to the remote application.
If the request is incorrect, the SOAP server returns XML with SOAP fault.
Therefore, though HTTP used for data transfer, H-Sphere XML API services are not called from a Web browser!
XML API Actions
Actions supported by XML API are grouped by services:
- Admin Services – basic admin services: adding new accounts, etc.
- User Services – basic user services: getting account information
- Domain Services – creating/deleting domains and subdomains
- Web Services – managing Web options
- FTP Services – managing FTP options
- User FTP Services – managing user FTP resources: sub users, passwords, etc.
- DNS Services – Managing DNS
- Mail Services – creating/deleting mailboxes, mailing lists, autoresponders, mail forwards, etc.
- MySQL Services – managing MySQL databases and users
- PostgreSQL Services – managing PostgreSQL databases and users
- MSSQL Services – managing MSSQL databases and users
- Support Services – managing trouble tickets (H-Sphere support center)
- Migration Services – migrating users and resellers using corresponding XML forms
- PGP Services – PGP encryption/decryption in H-Sphere trouble tickets
Web browsers only know how to display one type of XML: XHTML. All other XML opened in a Web browser will display as plain markup code unless you tell the browser how to display that markup. In other words, you could markup a complete XML document and never tell it how to display in a browser or a printout. In fact, most XML has no styles attached to it, because they aren't meant to be viewed in Web browsers. Instead, used as data sources for Web applications like with Ajax.
The simplest way to display XML in a beautiful fashion is to include SHTML tags in the markup. It tells Web browsers how to display the content. You can also use CSS style sheets to style XML and have it display in browsers that way.