Flattens xml/html documents
Project description
Flatten documents
HTML
xflat turns this html
<html>
<head>
<title> Example title </title>
<meta charset='utf-8'>
</head>
<body>
<h1 class="main">Example heading </h1>
<p id="example-body" class="class-1 class-2"> Example body, with a class and id
<br>
line break and some text
</p>
<div>
<ol>
<li> List item 1 </li>
<li> List item 2 </li>
</ol>
</div>
</body>
<!--[if lt IE 7]><style type="text/css">body{behavior:url("/w/static/1.26wmf9/skins/Vector/csshover.min.htc")}</style><![endif]-->
</html>
into
html html/head html/head/title Example title html/head/meta charset="utf-8" html/body 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 html/body/div/ol 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/csshover.min.htc")}</style><![endif]
Format
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xflat-0.0.3.tar.gz
(3.8 kB
view details)
File details
Details for the file xflat-0.0.3.tar.gz
.
File metadata
- Download URL: xflat-0.0.3.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0df774e4cd3ffd3a8eef97d43f65a5cf34162e7748c6cb58b5b5dcbff50de5c |
|
MD5 | e48e686d4011ba69b8159ed829909f54 |
|
BLAKE2b-256 | 98bffe2fcbd3ebe3d0fd53221a114b1edf1a2aba2f95eeb9701d5c60869c730f |