[872db717] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY pyxml-download-http "http://prdownloads.sourceforge.net/pyxml/PyXML-&pyxml-version;.tar.gz">
|
---|
| 8 | <!ENTITY pyxml-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/PyXML-&pyxml-version;.tar.gz">
|
---|
| 9 | <!ENTITY pyxml-md5sum "1f7655050cebbb664db976405fdba209">
|
---|
| 10 | <!ENTITY pyxml-size "734 KB">
|
---|
| 11 | <!ENTITY pyxml-buildsize "14.6 MB">
|
---|
| 12 | <!ENTITY pyxml-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="pyxml" xreflabel="PyXML-&pyxml-version;">
|
---|
| 16 | <?dbhtml filename="pyxml.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy:$</othername>
|
---|
| 20 | <date>$Date:$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>PyXML-&pyxml-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="pyxml">
|
---|
| 26 | <primary sortas="a-PyXML">PyXML</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to PyXML</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>PyXML</application> package contains a validating
|
---|
| 33 | XML parser, an implementation of the SAX and DOM programming interfaces,
|
---|
| 34 | an interface to the Expat parser, and a C helper module that can speed up
|
---|
| 35 | <filename>xmllib.py</filename> by a factor of five. This is useful for
|
---|
| 36 | validating, parsing and manipulating XML files using Python
|
---|
| 37 | programs.</para>
|
---|
| 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&pyxml-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&pyxml-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &pyxml-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &pyxml-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &pyxml-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &pyxml-time;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
| 60 |
|
---|
| 61 | <bridgehead renderas="sect3">PyXML Dependencies</bridgehead>
|
---|
| 62 |
|
---|
| 63 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 64 | <para><xref linkend="python"/></para>
|
---|
| 65 |
|
---|
| 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | <sect2 role="installation">
|
---|
| 69 | <title>Installation of PyXML</title>
|
---|
| 70 |
|
---|
| 71 | <para>Install <application>PyXML</application> by running the following
|
---|
| 72 | commands:</para>
|
---|
| 73 |
|
---|
| 74 | <screen><userinput>python setup.py build</userinput></screen>
|
---|
| 75 |
|
---|
| 76 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 77 |
|
---|
| 78 | <screen role="root"><userinput>python setup.py install &&
|
---|
| 79 | install -v -m644 doc/man/xmlproc_*.1 /usr/share/man/man1 &&
|
---|
| 80 | install -v -m755 -d /usr/share/doc/PyXML-&pyxml-version; &&
|
---|
| 81 | cp -v -R doc demo test /usr/share/doc/PyXML-&pyxml-version; &&
|
---|
| 82 | install -v -m644 README* /usr/share/doc/PyXML-&pyxml-version;</userinput></screen>
|
---|
| 83 |
|
---|
| 84 | <para>To run the regression tests, the package must first be installed.
|
---|
| 85 | Then, as an unprivileged user, issue the following commands:</para>
|
---|
| 86 |
|
---|
| 87 | <screen><userinput>cd test &&
|
---|
| 88 | python regrtest.py &&
|
---|
| 89 | cd ..</userinput></screen>
|
---|
| 90 |
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2 role="commands">
|
---|
| 94 | <title>Command Explanations</title>
|
---|
| 95 |
|
---|
| 96 | <para><command>python setup.py build</command>: This command copies the
|
---|
| 97 | <filename>*.py</filename> files to a staging area and compiles the C
|
---|
| 98 | extensions.</para>
|
---|
| 99 |
|
---|
| 100 | <para><command>python setup.py install</command>: This command installs
|
---|
| 101 | the package.</para>
|
---|
| 102 |
|
---|
| 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2 role="content">
|
---|
| 106 | <title>Contents</title>
|
---|
| 107 |
|
---|
| 108 | <segmentedlist>
|
---|
| 109 | <segtitle>Installed Programs</segtitle>
|
---|
| 110 | <segtitle>Installed Libraries</segtitle>
|
---|
| 111 | <segtitle>Installed Directories</segtitle>
|
---|
| 112 |
|
---|
| 113 | <seglistitem>
|
---|
| 114 | <seg>xmlproc_parse and xmlproc_val</seg>
|
---|
| 115 | <seg>PyXML Python library modules</seg>
|
---|
| 116 | <seg>/usr/lib/python2.4/site-packages/_xmlplus and
|
---|
| 117 | /usr/share/doc/PyXML-&pyxml-version;</seg>
|
---|
| 118 | </seglistitem>
|
---|
| 119 | </segmentedlist>
|
---|
| 120 |
|
---|
| 121 | <variablelist>
|
---|
| 122 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 123 | <?dbfo list-presentation="list"?>
|
---|
| 124 | <?dbhtml list-presentation="table"?>
|
---|
| 125 |
|
---|
| 126 | <varlistentry id="xmlproc_parse">
|
---|
| 127 | <term><command>xmlproc_parse</command></term>
|
---|
| 128 | <listitem>
|
---|
| 129 | <para>is a simple XML file parser using the xmlproc parser.</para>
|
---|
| 130 | <indexterm zone="pyxml xmlproc_parse">
|
---|
| 131 | <primary sortas="b-xmlproc_parse">xmlproc_parse</primary>
|
---|
| 132 | </indexterm>
|
---|
| 133 | </listitem>
|
---|
| 134 | </varlistentry>
|
---|
| 135 |
|
---|
| 136 | <varlistentry id="xmlproc_val">
|
---|
| 137 | <term><command>xmlproc_val</command></term>
|
---|
| 138 | <listitem>
|
---|
| 139 | <para>is a validating XML file parser using the xmlproc parser.</para>
|
---|
| 140 | <indexterm zone="pyxml xmlproc_val">
|
---|
| 141 | <primary sortas="b-xmlproc_val">xmlproc_val</primary>
|
---|
| 142 | </indexterm>
|
---|
| 143 | </listitem>
|
---|
| 144 | </varlistentry>
|
---|
| 145 | </variablelist>
|
---|
| 146 |
|
---|
| 147 | </sect2>
|
---|
| 148 |
|
---|
| 149 | </sect1>
|
---|