You are looking at the HTML representation of the TXT format.
HTML is good for debugging, but probably is not suitable for your application.
See complete documentation, or API help for more information.
Array
(
    [query] => Array
        (
            [namespaces] => Array
                (
                    [-2] => Array
                        (
                            [id] => -2
                            [case] => first-letter
                            [*] => Media
                            [canonical] => Media
                        )

                    [-1] => Array
                        (
                            [id] => -1
                            [case] => first-letter
                            [*] => Special
                            [canonical] => Special
                        )

                    [0] => Array
                        (
                            [id] => 0
                            [case] => first-letter
                            [*] => 
                            [subpages] => 
                            [content] => 
                        )

                    [1] => Array
                        (
                            [id] => 1
                            [case] => first-letter
                            [*] => Talk
                            [subpages] => 
                            [canonical] => Talk
                        )

                    [2] => Array
                        (
                            [id] => 2
                            [case] => first-letter
                            [*] => User
                            [subpages] => 
                            [canonical] => User
                        )

                    [3] => Array
                        (
                            [id] => 3
                            [case] => first-letter
                            [*] => User talk
                            [subpages] => 
                            [canonical] => User talk
                        )

                    [4] => Array
                        (
                            [id] => 4
                            [case] => first-letter
                            [*] => Pocket Trains Wiki
                            [subpages] => 
                            [canonical] => Project
                        )

                    [5] => Array
                        (
                            [id] => 5
                            [case] => first-letter
                            [*] => Pocket Trains Wiki talk
                            [subpages] => 
                            [canonical] => Project talk
                        )

                    [6] => Array
                        (
                            [id] => 6
                            [case] => first-letter
                            [*] => File
                            [subpages] => 
                            [canonical] => File
                        )

                    [7] => Array
                        (
                            [id] => 7
                            [case] => first-letter
                            [*] => File talk
                            [subpages] => 
                            [canonical] => File talk
                        )

                    [8] => Array
                        (
                            [id] => 8
                            [case] => first-letter
                            [*] => MediaWiki
                            [subpages] => 
                            [canonical] => MediaWiki
                        )

                    [9] => Array
                        (
                            [id] => 9
                            [case] => first-letter
                            [*] => MediaWiki talk
                            [subpages] => 
                            [canonical] => MediaWiki talk
                        )

                    [10] => Array
                        (
                            [id] => 10
                            [case] => first-letter
                            [*] => Template
                            [subpages] => 
                            [canonical] => Template
                        )

                    [11] => Array
                        (
                            [id] => 11
                            [case] => first-letter
                            [*] => Template talk
                            [subpages] => 
                            [canonical] => Template talk
                        )

                    [12] => Array
                        (
                            [id] => 12
                            [case] => first-letter
                            [*] => Help
                            [subpages] => 
                            [canonical] => Help
                        )

                    [13] => Array
                        (
                            [id] => 13
                            [case] => first-letter
                            [*] => Help talk
                            [subpages] => 
                            [canonical] => Help talk
                        )

                    [14] => Array
                        (
                            [id] => 14
                            [case] => first-letter
                            [*] => Category
                            [subpages] => 
                            [canonical] => Category
                        )

                    [15] => Array
                        (
                            [id] => 15
                            [case] => first-letter
                            [*] => Category talk
                            [subpages] => 
                            [canonical] => Category talk
                        )

                    [110] => Array
                        (
                            [id] => 110
                            [case] => first-letter
                            [*] => Forum
                            [subpages] => 
                            [canonical] => Forum
                        )

                    [111] => Array
                        (
                            [id] => 111
                            [case] => first-letter
                            [*] => Forum talk
                            [subpages] => 
                            [canonical] => Forum talk
                        )

                    [500] => Array
                        (
                            [id] => 500
                            [case] => first-letter
                            [*] => User blog
                            [subpages] => 
                            [canonical] => User blog
                        )

                    [501] => Array
                        (
                            [id] => 501
                            [case] => first-letter
                            [*] => User blog comment
                            [subpages] => 
                            [canonical] => User blog comment
                        )

                    [502] => Array
                        (
                            [id] => 502
                            [case] => first-letter
                            [*] => Blog
                            [subpages] => 
                            [canonical] => Blog
                        )

                    [503] => Array
                        (
                            [id] => 503
                            [case] => first-letter
                            [*] => Blog talk
                            [subpages] => 
                            [canonical] => Blog talk
                        )

                    [828] => Array
                        (
                            [id] => 828
                            [case] => first-letter
                            [*] => Module
                            [subpages] => 
                            [canonical] => Module
                        )

                    [829] => Array
                        (
                            [id] => 829
                            [case] => first-letter
                            [*] => Module talk
                            [subpages] => 
                            [canonical] => Module talk
                        )

                    [1200] => Array
                        (
                            [id] => 1200
                            [case] => first-letter
                            [*] => Message Wall
                            [subpages] => 
                            [canonical] => Message Wall
                        )

                    [1201] => Array
                        (
                            [id] => 1201
                            [case] => first-letter
                            [*] => Thread
                            [subpages] => 
                            [canonical] => Thread
                        )

                    [1202] => Array
                        (
                            [id] => 1202
                            [case] => first-letter
                            [*] => Message Wall Greeting
                            [canonical] => Message Wall Greeting
                        )

                )

        )

)