Posted: October 25th, 2020
Extract the Infobox Part and Print the Values of XML Result
Assessment Brief
hi can any one help me with this I want to extract the infobox part and print the values of this xml result ,separated by'= 'sign.
{{about|the Republic of India}}
{{Use dmy dates|date=November 2013}}
{{Use Indian English|date=May 2013}}
{{Infobox country
|conventional_long_name = Republic of India
|leader_title2 = [[Vice President of India|Vice President]]
| National Congress|INC]])}}
|leader_title4 = [[Speaker of the Lok Sabha|Speaker of the House]]
|leader_name4 = {{nowrap|[[Meira Kumar]] (INC)}}
|leader_title5 = [[Chief Justice of India|Chief Justice]]
|cctld = [[.in]]
{{collapsible list
|title = other TLDs
|[[.ভাৰত]] |[[.ভারত]] |[[.ભારત]] |[[.भारत]] |[[.ଭାରତ]] |[[.ਭਾਰਤ]] |[[.இந்தியா]] |[[.భారత్]] |[[بھارت.]]
}}
}}Can I Request a Specific Writer?
Yes, if you have worked with a writer before, you can request them again for consistency and familiarity with your needs. This ensures a smooth, tailored experience. Writer continuity helps maintain consistent style and understanding of your preferences. Browse profiles or contact support to make your choice. Essay writer relationships build over time for increasingly personalized academic support.
this is what I did, I verified the regex expression online it match correct contain of the infobox. the problems is to read from the Json function Result1 and print the values$.getJSON
("http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=xml&titles=india&rvsection=0&callback=?",function
(result1) {
var myvalues = new Array();
var key = 0;
for(i in result1.query.pages){
key = i
content = result.query.pages[key].revisions[0]['*'];
v = content.match(?={Infobox)({([^{}]|(?1))*});
myvalues = v.split("=");
for(var x=0;x