Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Flattens xml/html documents

Project Description

Flatten documents


xflat turns this html

        <title> Example title </title>
        <meta charset='utf-8'>
    <h1 class="main">Example heading </h1>
    <p id="example-body"  class="class-1 class-2"> Example body, with a class and id
        line break and some text
            <li> List item 1 </li>
            <li> List item 2 </li>
<!--[if lt IE 7]><style type="text/css">body{behavior:url("/w/static/1.26wmf9/skins/Vector/")}</style><![endif]-->


html/head/title Example title
html/head/meta          charset="utf-8"
html/body/h1    Example heading     class="main"
html/body/p Example body, with a class and id       class="class-1 class-2" id="example-body"
html/body/p/br      line break and some text
html/body/div/ol/li List item 1
html/body/div/ol/li List item 2
html/!comment   [if lt IE 7]><style type="text/css">body{behavior:url("/w/static/1.26wmf9/skins/Vector/")}</style><![endif]


All tags on new lines, TAB seperated values

  • Path and name - /html/body/h1
  • Text content - Example heading
  • Footer content (text after the closing of this tag, same level as parent)
  • Attrbutes e.g. id class etc

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.8 kB) Copy SHA256 Hash SHA256
Source None Sep 28, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting