Metadata-Version: 1.0
Name: xflat
Version: 0.0.3
Summary: Flattens xml/html documents
Home-page: https://github.com/oskarnyqvists/xflat
Author: oskarnyqvist
Author-email: oskarnyqvist@gmail.com
License: The MIT License (MIT)

Copyright (c) 2015 Oskar Nyqvist

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


Description: xflat
        =====
        
        Flatten documents
        
        HTML
        ----
        
        xflat turns this html
        
        .. code:: 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
        
        
Platform: UNKNOWN
