Extensible: Markup Language
Extensible: Markup Language
Rijumone Choudhuri
Jaswinder Singh
Tejaswi
Anu Singh
Features and Advantages
What is XML?
XML is a set of rules for encoding documents in
machine-readable form. XML can represent almost
anything—files, graphics, Web services, etc.
Extensible Markup Language (XML) is a simple,
very flexible text format. Originally designed to
meet the challenges of large-scale electronic
publishing, XML is also playing an increasingly
important role in the exchange of a wide variety of
data on the Web and elsewhere.
XML's design goals emphasize simplicity,
generality, and usability over the Internet. It is
a textual data format, with strong support
via Unicode for the languages of the world.
Although XML's design focuses on documents,
it is widely used for the representation of
arbitrary data structures.
There are many programming interfaces that
software developers may use to access XML
data, and several schema systems designed to
aid in the definition of XML-based languages.
Features
Schema optimization: Efficient XML includes
the most flexible and effective set of schema
optimizations available.
Document optimizations: Efficient XML
includes advanced document optimizations that
leverage knowledge of XML and patterns
detected in a document to reduce file size.
Widely used, standard APIs: Efficient XML
can be used as a stand-alone compression utility
or integrated directly into host applications.
Parsing Optimizations: Applications can parse
and serialize Efficient XML faster than XML.
Incorporating Efficient XML into an existing
application will automatically accelerate the
application.
Fidelity optimizations: Efficient XML allows
applications to preserve or discard white space,
comments and other XML artifacts that may not
be needed by an application
Query results and document fragments: In
addition to representing XML documents,
Efficient XML can efficiently represent any list
of elements extracted from an XML document.
Extensible encoding rules: The set of Efficient
XML encoding rules can be customized, extended
or replaced by third parties to meet application
specific objectives.
Small, mobile and embedded systems: Efficient
XML is optimized for devices with extremely
limited resources, including mass market mobile
handsets.
Streaming support: Efficient XML supports full
streaming enabling applications to begin
generating results before reading the entire
document into memory.
Advantages
XML is fully compatible with applications like
JAVA, and it can be combined with any application
which is capable of processing XML irrespective
of the platform it is being used on.
XML is an extremely portable language to the
extent that it can be used on large networks with
multiple platforms like the internet, and it can be
used on handhelds or palmtops or PDAs.
XML is as easy as HTML.
The Advantages of XML in Java
XML uses the Common Component
Architecture or CCA, and the Common Object
Request Broker Architecture, or CORBA. In
other words, this means that it uses a common
and standard protocol which helps
interoperability for programs.
It also allows RMI, or remote method
invocation in Java and invokes another java
object. It also allows the clients to connect to
the program using the remote procedure
XML Advantages with Tags
The very first advantage with using tags in
XML is that XML allows you to create your
own tags, and you are not limited to a standard
set of tags that have to be used to program
which are predetermined by program vendors.
You can also have the freedom to develop at
your own pace and moreover develop tools that
will be helpful for your programming needs
without a lot of investment of time or money.
Here by defining your own tags you are
Advantages of XML in Format
XML overcomes all the limitations that
HTML has whether it is with the language or
the presentation of data or the structure. XML
is already known to be highly structured data
which solves the problem for users when it
comes to correlation or identifying similar
fields.
In XML the GUI can easily be extracted, and
changes can be made without disturbing the
existing data in any way.
Searching the data is all the more easy in
COMPONENTS OF XML
COMMENTS
ATTRIBUTES
Attributes
XML comments are almost exactly like HTML comments. They begin
with <!-- and end with -->. For example, here’s a comment you might
find in an order document:
<!-- Please make sure this order goes out ASAP! -->
Everything between the <!-- and the --> should be ignored. In fact, most
parsers and APIs do make the comments available to you if you want
them, mostly so you can round trip documents (read them in and then
write them back out again with everything still intact). However, beyond
this use case, you really shouldn’t pay much attention to comments in
your programs. Some HTML systems abuse comments to support server
side includes or editor specific extensions. Since XML is much more
flexible than HTML, however, you can use elements, attributes, or, as a
last resort, processing instructions for these use cases.
How XML works
Using XML to exchange information offers many
benefits, including the following: