Java Reference
In-Depth Information
"answer_count": 1,
"score": 0,
"last_activity_date": 1397845222,
"creation_date": 1397844823,
"last_edit_date": 1397845143,
"question_id": 23159737 ,
"link": "http://stackoverflow.com/questions/23159737/javafx-tableview-ordered-by-date" ,
"title": "javafx Tableview ordered by date"
},
...
,"has_more":true
,"quota_max":300,
"quota_remaining":290
}
The StackExchange API only provides JSON-based responses. A number of web services deliver information
in XML, and others provide both JSON and XML. Because we want to show how to process XML responses as well,
we create our own XML-based output for the StackExchange REST Service. Rather than calling an external REST
endpoint, this XML response will be obtained by reading a local file.
Our self-defined XML response is shown in Listing 11-6.
Listing 11-6. Artificial XML Response Obtained from the StackExchange Search API
<?xml version="1.0" encoding="UTF-8"?>
<items>
<item>
<tags>
<tag>java</tag>
<tag>sorting</tag>
<tag>javafx</tag>
<tag>tableview</tag>
</tags>
<owner>Rps</owner>
<creation_date>1397844823</creation_date>
<title>javafx Tableview ordered by date</title>
<item>
</items>
 
Search WWH ::




Custom Search