Blame doc/XMLinfo.html

Packit 21b7a2
Packit 21b7a2
Packit 21b7a2
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><link rel="SHORTCUT ICON" href="/favicon.ico" /><style type="text/css">
Packit 21b7a2
TD {font-family: Verdana,Arial,Helvetica}
Packit 21b7a2
BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
Packit 21b7a2
H1 {font-family: Verdana,Arial,Helvetica}
Packit 21b7a2
H2 {font-family: Verdana,Arial,Helvetica}
Packit 21b7a2
H3 {font-family: Verdana,Arial,Helvetica}
Packit 21b7a2
A:link, A:visited, A:active { text-decoration: underline }
Packit 21b7a2
</style><title>XML</title></head><body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000">
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

The XML C parser and toolkit of Gnome

XML

<center>Main Menu</center>
<form action="search.php" enctype="application/x-www-form-urlencoded" method="get"><input name="query" type="text" size="20" value="" /><input name="submit" type="submit" value="Search ..." /></form>
<center>Related links</center>

XML is a standard for

Packit 21b7a2
markup-based structured documents. Here is an example XML
Packit 21b7a2
document:

<?xml version="1.0"?>
Packit 21b7a2
<EXAMPLE prop1="gnome is great" prop2="&amp; linux too">
Packit 21b7a2
  <head>
Packit 21b7a2
   <title>Welcome to Gnome</title>
Packit 21b7a2
  </head>
Packit 21b7a2
  <chapter>
Packit 21b7a2
   <title>The Linux adventure</title>
Packit 21b7a2
   <p>bla bla bla ...</p>
Packit 21b7a2
   <image href="linus.gif"/>
Packit 21b7a2
   <p>...</p>
Packit 21b7a2
  </chapter>
Packit 21b7a2
</EXAMPLE>

The first line specifies that it is an XML document and gives useful

Packit 21b7a2
information about its encoding.  Then the rest of the document is a text
Packit 21b7a2
format whose structure is specified by tags between brackets. Each
Packit 21b7a2
tag opened has to be closed. XML is pedantic about this. However, if
Packit 21b7a2
a tag is empty (no content), a single tag can serve as both the opening and
Packit 21b7a2
closing tag if it ends with /> rather than with
Packit 21b7a2
>. Note that, for example, the image tag has no content (just
Packit 21b7a2
an attribute) and is closed by ending the tag with />.

XML can be applied successfully to a wide range of tasks, ranging from

Packit 21b7a2
long term structured document maintenance (where it follows the steps of
Packit 21b7a2
SGML) to simple data encoding mechanisms like configuration file formatting
Packit 21b7a2
(glade), spreadsheets (gnumeric), or even shorter lived documents such as
Packit 21b7a2
WebDAV where it is used to encode remote calls between a client and a
Packit 21b7a2
server.

Daniel Veillard

</body></html>