KEMBAR78
Loading The XML File Into A Web Browser: Chapter 3 Your First XML Document | PDF | Computers | Technology & Engineering
0% found this document useful (0 votes)
74 views1 page

Loading The XML File Into A Web Browser: Chapter 3 Your First XML Document

The document discusses creating and viewing an XML file. It can be saved as ASCII or UTF-8 in Notepad. UTF-8 is backwards compatible with ASCII. The XML file can then be opened directly in a web browser, though the browser may not know how to display the elements without being told via a style sheet.

Uploaded by

Sai Kuamr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views1 page

Loading The XML File Into A Web Browser: Chapter 3 Your First XML Document

The document discusses creating and viewing an XML file. It can be saved as ASCII or UTF-8 in Notepad. UTF-8 is backwards compatible with ASCII. The XML file can then be opened directly in a web browser, though the browser may not know how to display the elements without being told via a style sheet.

Uploaded by

Sai Kuamr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

3236-7 ch03.F.

qc

6/29/99

1:03 PM

Page 51

Chapter 3 Your First XML Document

Figure 3-1: A saved XML document in Notepad with the file name
in quotes

The Windows NT version of Notepad gives you the option to save the file in Unicode.
Surprisingly this will work too, though for now you should stick to basic ASCII. XML
files may be either Unicode or a compressed version of Unicode called UTF-8, which
is a strict superset of ASCII, so pure ASCII files are also valid XML files.
CrossReference

UTF-8 and ASCII are discussed in more detail in Chapter 7, Foreign Languages and
non-Roman Text.

Loading the XML File into a Web Browser


Now that youve created your first XML document, youre going to want to look at
it. The file can be opened directly in a browser that supports XML such as Internet
Explorer 5.0. Figure 3-2 shows the result.
What you see will vary from browser to browser. In this case its a nicely formatted
and syntax colored view of the documents source code. However, whatever it is,
its likely not to be particularly attractive. The problem is that the browser doesnt
really know what to do with the FOO element. You have to tell the browser what its
expected to do with each element by using a style sheet. Well cover that shortly,
but first lets look a little more closely at your first XML document.

51

You might also like