Normally any XML files can be execute by any web browser such as Microsoft
Internet Explorer, Netscape, Opera, Mozilla Firefox etc.
However, to make XML documents that will be quite understandable format, we need
some XML Style sheet XSL
to transform this XML document for the proper display
like web pages.
Here we have placed two examples for globalguideline employees, as XML documents one is valid XML document and
second one is invalid XML document. Click for validation on below links and
Execute Valid XML
Execute Invalid XML
On above examples we will see that only the
<FirstName> is not proper closed that's why on Execute Invalid XML link we saw
error in browser and on the first link we saw that the
XML document will be displayed with color-coded XML root and its child elements.
A plus (+) or minus sign (-) to the left of the XML elements can be clicked to
expand or collapse the XML element structure. To view the basic XML source without the + and - signs,
select "View Page Source" or "View Source" from the web browser menu of right click
on web browser and then click on view source.
As we already study that an
XML documents do not carry information about how to display the data like web
Now here when we invent some XML tags its up to our requirement and when we
execute this document the web browser do not have any idea how to show the out put
of our defined XML tags such as if we use <b> web browser will show bold content where
we used this tag and if we use <globalGuideLine> then how can web browser recognize
this entity and how to perform its out put what we need.
Without any information about how to display the data, most web browsers will just
display the XML document as it is.
In coming section of XML Tutorial we will learn different solutions to the display an entire
XML document and this problem will be solve. The hint is that we will use
XML Data Islands
to display the content of XML like web page.