databaseOrdered = """Cname123
Ttype456
Rremark789
A1234567890
D/
Ffile_7
S10
D/example-1
Ffile_1
S5
Ffile_2
S6
D/example-2
Ffile_8
S11
D/example-2/nested_1
Ffile_3
S7
Ffile_4
S7
D/example-2/nested_1/nested_2
Ffile_5
S8
Ffile_6
S9
"""

diskContentListOrdered = [
                ['/',
                    [
                        ['file_7', 10L]
                    ]
                ],
                ['/example-1',
                    [
                        ['file_1', 5L],
                        ['file_2', 6L]
                    ]
                ],
                ['/example-2',
                    [
                        ['file_8', 11L]
                    ]
                ],
                ['/example-2/nested_1',
                    [
                        ['file_3', 7L],
                        ['file_4', 7L]
                    ]
                ],
                ['/example-2/nested_1/nested_2',
                    [
                        ['file_5', 8L],
                        ['file_6', 9L]
                    ]
                ],
            ]

database = """Cname123
Ttype456
Rremark789
A1234567890
D/example-1
Ffile_1
S5
Ffile_2
S6
D/example-2/nested_1/nested_2
Ffile_5
S8
Ffile_6
S9
D/example-2/nested_1
Ffile_3
S7
Ffile_4
S7
D/example-2
Ffile_8
S11
D/
Ffile_7
S10
"""

weirdList = [
                ['/example-1',
                    [
                        ['file_1', 5L],
                        ['file_2', 6L]
                    ]
                ],
                ['/example-2/nested_1/nested_2',
                    [
                        ['file_5', 8L],
                        ['file_6', 9L]
                    ]
                ],
                ['/example-2/nested_1',
                    [
                        ['file_3', 7L],
                        ['file_4', 7L]
                    ]
                ],
                ['/example-2',
                    [
                        ['file_8', 11L]
                    ]
                ],
            ]

diskContentList = [
                ['/example-1',
                    [
                        ['file_1', 5L],
                        ['file_2', 6L]
                    ]
                ],
                ['/example-2/nested_1/nested_2',
                    [
                        ['file_5', 8L],
                        ['file_6', 9L]
                    ]
                ],
                ['/example-2/nested_1',
                    [
                        ['file_3', 7L],
                        ['file_4', 7L]
                    ]
                ],
                ['/example-2',
                    [
                        ['file_8', 11L]
                    ]
                ],
                ['/',
                    [
                        ['file_7', 10L]
                    ]
                ],
            ]

name="name123"
type = "type456"
comment = "comment789\nmultiline\nabc"
exportXmlFlat = """<?xml version="1.0" ?>
<!-- This is  ugly hack, don't try it at home. -->
<?xml-stylesheet type="text/xsl" href="%(path)s"?>
<?xml-stylesheet type="text/xsl" href="file://%(path)s"?>
<root comment="%(comment)s" id="1" name="%(name)s" type="%(type)s">
        <folder id="2" path="/example-1">
                <file id="3" path="file_1" size="5"/>
                <file id="4" path="file_2" size="6"/>
        </folder>
        <folder id="5" path="/example-2/nested_1/nested_2">
                <file id="6" path="file_5" size="8"/>
                <file id="7" path="file_6" size="9"/>
        </folder>
        <folder id="8" path="/example-2/nested_1">
                <file id="9" path="file_3" size="7"/>
                <file id="10" path="file_4" size="7"/>
        </folder>
        <folder id="11" path="/example-2">
                <file id="12" path="file_8" size="11"/>
        </folder>
        <folder id="13" path="/">
                <file id="14" path="file_7" size="10"/>
        </folder>
</root>
"""

exportXmlTree = """<?xml version="1.0" ?>
<!-- This is  ugly hack, don't try it at home. -->
<?xml-stylesheet type="text/xsl" href="%(path)s"?>
<?xml-stylesheet type="text/xsl" href="file://%(path)s"?>
<root comment="%(comment)s" id="1" name="%(name)s" type="%(type)s">
        <folder id="2" path="/">
                <file id="3" path="file_7" size="10"/>
                <folder id="4" path="example-1">
                        <file id="5" path="file_1" size="5"/>
                        <file id="6" path="file_2" size="6"/>
                </folder>
                <folder id="7" path="example-2">
                        <file id="8" path="file_8" size="11"/>
                        <folder id="9" path="nested_1">
                                <file id="10" path="file_3" size="7"/>
                                <file id="11" path="file_4" size="7"/>
                                <folder id="12" path="nested_2">
                                        <file id="13" path="file_5" size="8"/>
                                        <file id="14" path="file_6" size="9"/>
                                </folder>
                        </folder>
                </folder>
        </folder>
</root>
"""

weirdXmlTree = """<?xml version="1.0" ?>
<!-- This is  ugly hack, don't try it at home. -->
<?xml-stylesheet type="text/xsl" href="%(path)s"?>
<?xml-stylesheet type="text/xsl" href="file://%(path)s"?>
<root comment="%(comment)s" id="1" name="%(name)s" type="%(type)s">
        <folder id="2" path="/">
                <folder id="3" path="example-1">
                        <file id="4" path="file_1" size="5"/>
                        <file id="5" path="file_2" size="6"/>
                </folder>
                <folder id="6" path="example-2">
                        <file id="7" path="file_8" size="11"/>
                        <folder id="8" path="nested_1">
                                <file id="9" path="file_3" size="7"/>
                                <file id="10" path="file_4" size="7"/>
                                <folder id="11" path="nested_2">
                                        <file id="12" path="file_5" size="8"/>
                                        <file id="13" path="file_6" size="9"/>
                                </folder>
                        </folder>
                </folder>
        </folder>
</root>
"""
