|
Packit |
423ecb |
|
|
Packit |
423ecb |
|
|
Packit |
423ecb |
<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 |
423ecb |
TD {font-family: Verdana,Arial,Helvetica}
|
|
Packit |
423ecb |
BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
|
|
Packit |
423ecb |
H1 {font-family: Verdana,Arial,Helvetica}
|
|
Packit |
423ecb |
H2 {font-family: Verdana,Arial,Helvetica}
|
|
Packit |
423ecb |
H3 {font-family: Verdana,Arial,Helvetica}
|
|
Packit |
423ecb |
A:link, A:visited, A:active { text-decoration: underline }
|
|
Packit |
423ecb |
</style><title>XML</title></head><body bgcolor="#8b7765" text="#000000" link="#a06060" vlink="#000000"> | | The XML C parser and toolkit of GnomeXML |
|
|
<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> | |
|
| |
|
|
|
Packit |
423ecb |
markup-based structured documents. Here is an example XML
|
|
Packit |
423ecb |
document:<?xml version="1.0"?>
|
|
Packit |
423ecb |
<EXAMPLE prop1="gnome is great" prop2="& linux too">
|
|
Packit |
423ecb |
<head>
|
|
Packit |
423ecb |
<title>Welcome to Gnome</title>
|
|
Packit |
423ecb |
</head>
|
|
Packit |
423ecb |
<chapter>
|
|
Packit |
423ecb |
<title>The Linux adventure</title>
|
|
Packit |
423ecb |
<p>bla bla bla ...</p>
|
|
Packit |
423ecb |
<image href="linus.gif"/>
|
|
Packit |
423ecb |
<p>...</p>
|
|
Packit |
423ecb |
</chapter>
|
|
Packit |
423ecb |
</EXAMPLE>The first line specifies that it is an XML document and gives useful
|
|
Packit |
423ecb |
information about its encoding. Then the rest of the document is a text
|
|
Packit |
423ecb |
format whose structure is specified by tags between brackets. Each
|
|
Packit |
423ecb |
tag opened has to be closed. XML is pedantic about this. However, if
|
|
Packit |
423ecb |
a tag is empty (no content), a single tag can serve as both the opening and
|
|
Packit |
423ecb |
closing tag if it ends with /> rather than with
|
|
Packit |
423ecb |
> . Note that, for example, the image tag has no content (just
|
|
Packit |
423ecb |
an attribute) and is closed by ending the tag with /> .XML can be applied successfully to a wide range of tasks, ranging from
|
|
Packit |
423ecb |
long term structured document maintenance (where it follows the steps of
|
|
Packit |
423ecb |
SGML) to simple data encoding mechanisms like configuration file formatting
|
|
Packit |
423ecb |
(glade), spreadsheets (gnumeric), or even shorter lived documents such as
|
|
Packit |
423ecb |
WebDAV where it is used to encode remote calls between a client and a
|
|
Packit |
423ecb |
server.Daniel Veillard </body></html>
|