Blame doc/XMLinfo.html

Packit Service a31ea6
Packit Service a31ea6
Packit Service a31ea6
<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 Service a31ea6
TD {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
Packit Service a31ea6
H1 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
H2 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
H3 {font-family: Verdana,Arial,Helvetica}
Packit Service a31ea6
A:link, A:visited, A:active { text-decoration: underline }
Packit Service a31ea6
</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 Service a31ea6
markup-based structured documents. Here is an example XML
Packit Service a31ea6
document:

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

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

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

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

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

Daniel Veillard

</body></html>