XML Example Program
>





The following example illustrates a typical XML document. The following code is stored in a file called penthome with the extension xml.
<?xml-styleshoet href="pentahome.css" type="text/css"?>
<!DOCTYPEpenta
<!ELEMENT penta (pentabody)>
<!ELEMENT pentabody (toptitle weltext)>
<ELEMENT toptitle (#PCDATA)>
<lELEMI5NTweltext(#PCDATA)>
]>
<penta>
<pentabody>
<toptitle> pentabooks dot com </toptitle>
<Weltext> Welcome to PEN T AB 0 OK S, An Online Book Store for Everyone!</weltext>
</pentabody>
</penta>
The following is the code for the pentahome.css the stylesheet. file.
display: block;
font-family: Comic Sans MS;
font-weight-, bold;
font-size: 40pt;
color: Silver;
line-height:, normal;
margin: 1.1 em 25%0px;
text-align: center
}
WELTEXT{
display:block;
font-family: Garamond;
font-weight: bold;
font-size: 25;
font-variant: normal;
font-style: normal;
color: fuchsia; line-height:1.9em;
margin: 1. 1 em 25% 0px;
text-align:center;
Domain Name Search
|