Hi, i hope somebody can help me a little bit
I want to use the Wikipedia api to get the wiki text into my applikation.
For example, i enter into a edittext word "google" and then a label shows the wiki text --> Google Inc. is an American multinational Internet and software corporation specialized in Internet search, cloud computing, and advertising technologies.
I have this xml code -->
Or this code i have found in the internet -->
I know that i can get the wiki text with the xml parse, but how? :-( or do i have to use httputils?
I hope you can help me a little bit, so that i can go further my self
I want to use the Wikipedia api to get the wiki text into my applikation.
For example, i enter into a edittext word "google" and then a label shows the wiki text --> Google Inc. is an American multinational Internet and software corporation specialized in Internet search, cloud computing, and advertising technologies.
I have this xml code -->
B4X:
<SearchSuggestion version="2.0">
<Query xml:space="preserve">india</Query>
−
<Section>
−
<Item>
<Text xml:space="preserve">India</Text>
−
<Description xml:space="preserve">
India (), officially the Republic of India (, '), is a country in South Asia.
</Description>
<Url xml:space="preserve">http://en.wikipedia.org/wiki/India</Url>
<Image source="http://upload.wikimedia.org/wikipedia/commons/thumb/3/30/Indischer_Maler_des_6._Jahrhunderts_001.jpg/48px-Indischer_Maler_des_6._Jahrhunderts_001.jpg" width="48" height="50"/>
</Item>
−
<Item>
<Text xml:space="preserve">Indiana</Text>
−
<Description xml:space="preserve">
Indiana () is a US state, admitted to the United States as the 19th on December 11, 1816. It is located in the midwestern and Great Lakes regions of North America.
</Description>
<Url xml:space="preserve">http://en.wikipedia.org/wiki/Indiana</Url>
<Image source="http://upload.wikimedia.org/wikipedia/en/thumb/d/d2/Natives_guiding_french_explorers_through_indiana.jpg/50px-Natives_guiding_french_explorers_through_indiana.jpg" width="50" height="31"/>
</Item>
−
<Item>
<Text xml:space="preserve">Indianapolis</Text>
−
<Description xml:space="preserve">
Indianapolis (abbreviated Indy ) is the capital of the U.S.
</Description>
<Url xml:space="preserve">http://en.wikipedia.org/wiki/Indianapolis</Url>
<Image source="http://upload.wikimedia.org/wikipedia/commons/thumb/b/b5/IndianapolisC12.png/34px-IndianapolisC12.png" width="34" height="50"/>
</Item>
−
<Item>
<Text xml:space="preserve">Indian National Congress</Text>
−
<Description xml:space="preserve">
The Indian National Congress () (abbreviated INC, and commonly known as the Congress) is one of the two major political parties in India, the other being the Bharatiya Janata Party (BJP).
</Description>
−
<Url xml:space="preserve">
http://en.wikipedia.org/wiki/Indian_National_Congress
</Url>
<Image source="http://upload.wikimedia.org/wikipedia/commons/thumb/8/80/Jawaharlal_Nehru.jpg/48px-Jawaharlal_Nehru.jpg" width="48" height="50"/>
</Item>
−
<Item>
<Text xml:space="preserve">Indian Ocean</Text>
−
<Description xml:space="preserve">
The Indian Ocean is the third largest of the world's oceanic divisions, covering approximately 20% of the water on the Earth's surface.
</Description>
<Url xml:space="preserve">http://en.wikipedia.org/wiki/Indian_Ocean</Url>
<Image source="http://upload.wikimedia.org/wikipedia/commons/thumb/d/d3/Indian_Ocean-CIA_WFB_Map.png/50px-Indian_Ocean-CIA_WFB_Map.png" width="50" height="50"/>
</Item>
−
<Item>
<Text xml:space="preserve">Indianapolis Colts</Text>
−
<Description xml:space="preserve">
The Indianapolis Colts are a professional American football team based in Indianapolis.
</Description>
<Url xml:space="preserve">http://en.wikipedia.org/wiki/Indianapolis_Colts</Url>
</Item>
−
<Item>
<Text xml:space="preserve">Indiana University</Text>
−
<Description xml:space="preserve">
Indiana University is a multi-campus public university system in the state of Indiana, United States.
</Description>
<Url xml:space="preserve">http://en.wikipedia.org/wiki/Indiana_University</Url>
<Image source="http://upload.wikimedia.org/wikipedia/en/thumb/5/5d/Indiana_University_seal.svg/50px-Indiana_University_seal.svg.png" width="50" height="50"/>
</Item>
−
<Item>
<Text xml:space="preserve">Indian subcontinent</Text>
−
<Description xml:space="preserve">
The Indian subcontinent, sometimes called the Indo-Pak subcontinent in Pakistan, or simply the Subcontinent, is a region of the Asia situated mostly on the Indian tectonic plate.
</Description>
<Url xml:space="preserve">http://en.wikipedia.org/wiki/Indian_subcontinent</Url>
<Image source="http://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Indian_subcontinent.JPG/40px-Indian_subcontinent.JPG" width="40" height="50"/>
</Item>
−
<Item>
<Text xml:space="preserve">Indian Rebellion of 1857</Text>
−
<Description xml:space="preserve">
The Indian Rebellion of 1857 began as a mutiny of sepoys of the British East India Company's army on 10 May 1857, in the town of Meerut, and soon escalated into other mutinies and civilian rebellions largely in the upper Gangetic plain and central India, with the major hostilities confined to present-day Uttar Pradesh, Bihar, northern Madhya Pradesh, and the Delhi region.
</Description>
−
<Url xml:space="preserve">
http://en.wikipedia.org/wiki/Indian_Rebellion_of_1857
</Url>
<Image source="http://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Indian_Rebellion_of_1857.jpg/50px-Indian_Rebellion_of_1857.jpg" width="50" height="42"/>
</Item>
−
<Item>
<Text xml:space="preserve">India national cricket team</Text>
−
<Description xml:space="preserve">
The Indian cricket team is the national cricket team of India.
</Description>
−
<Url xml:space="preserve">
http://en.wikipedia.org/wiki/India_national_cricket_team
</Url>
<Image source="http://upload.wikimedia.org/wikipedia/en/thumb/8/8d/Cricket_India_Crest.svg/50px-Cricket_India_Crest.svg.png" width="50" height="50"/>
</Item>
</Section>
</SearchSuggestion>
Or this code i have found in the internet -->
B4X:
http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=xml&titles=United_States_Bill_of_Rights
I know that i can get the wiki text with the xml parse, but how? :-( or do i have to use httputils?
I hope you can help me a little bit, so that i can go further my self