Laboratorium XML
wtorek 11.00—12.30
  »DTD & co.
  »Zadanie 2


Języki XML i okolice


  • lxmlpythonic binding for the libxml2 and libxslt libraries, follows ElementTree API as much as possible.

    lxml 1.0 also contains HTMLParser for parsing (broken) HTML (using libxml2).

  • — Simple and clear API for Python Web applications

  • instalacja lxml i (ostatecznie 920K, szczytowo w czasie kompilacji 3.9M)

    mkdir -p ~/local/src
    export PYTHONPATH=~/local/share/python2.4/site-packages/:~/local/lib/python2.4/site-packages
    # installing Pyrex (required by lxml to compile)
    cd ~/local/src
    tar -zxf Pyrex-
    cd Pyrex-
    python install --prefix ~/local
    cd .. && rm -r Pyrex- # saving place
    # installing
    cd ~/local/src
    tar -zxf lxml-0.9.1.tgz
    cd lxml-0.9.1
    python install --prefix ~/local
    cd .. && rm -r lxml-0.9.1 # 3.9M
    cd /home/pracown/lpankows/local/lib/python2.4/site-packages/
    # 2,6M left
    # we can remove sources and Pyrex living only ~/local/lib with lxml and
    rm -r ~/local/bin/ ~/local/share/ ~/local/src
    # this leaves 920K