Genbox / Wikipedia

A C# API for searching on Wikipedia
MIT License
46 stars 14 forks source link

Fixes #1 by setting root element #2

Closed ghost closed 11 years ago

ghost commented 11 years ago

Seems that the XML format changed and search is now an element twice, so setting root element makes sure the right list gets deserialized. image

ghost commented 11 years ago

The API returns an XML that looks like the following (this has the results shortened):

<api>
    <script/>
    <query-continue>
        <search sroffset="10"/>
    </query-continue>
    <query>
        <searchinfo totalhits="87768"/>
        <search>...</search>
    </query>
</api>
i think its the 2 x search element, that breaks the deserializer.