The <Agency> Element
Description
<News> article request filter that returns <Article>s based on their agency code. You can be more specific by adding several child elements.
Note By default, only news articles in a single language will be returned: the default language as specified in the <ResponseSettings> section (which defaults to Dutch). To receive articles in a non-default language, use one or more <Language> child nodes, or the new language attribute.
<Agency
id =
string
last-article-id =
integer
max-count =
integer
date-start =
datetime
date-end =
datetime
language =
language id
mode =
"literal"
content-handler =
"literal"
link-handlers =
"literal"
ordering =
string >
</Agency>
Attributes
Attribute name | Data type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id Required | string |
The identifier of the news agency
from which you want data, for example:
| ||||||||||||||||||||||||
last-article-id Optional | integer | The identifier of the very last news article you recieved with your last request, and an indication you don't want to recieve the older articles any more. You will have recieved this id as part of the <MetaData> information. Used in combination with date-start and date-end. See also ordering. | ||||||||||||||||||||||||
max-count Optional | integer | Indicates the maximum number of articles returned through this news request. The collection of the articles can be resumed through the <LastPublishedId> mechanism and last-article-id. | ||||||||||||||||||||||||
date-start Optional | datetime | From which date you wish to recieve the news articles. Used in combination with date-end. When not specified, TBXDS assumes you want last week's news (today minus 7 days). | ||||||||||||||||||||||||
date-end Optional | datetime | Up to which date you wish to recieve the news articles. Used in combination with date-start. When not specified, TBXDS will assume that there's a week between date-end and date-start (start + 7 days). | ||||||||||||||||||||||||
language Required | language id | Indicates which languages you wish to consider for the news articles. This is a comma separated list of ISO language codes, or a "*" indicating there should not be a filter on language. In version 1.0 this was specified through <Language>. | ||||||||||||||||||||||||
mode Optional | literal |
Indicates which type of output is requested:
| ||||||||||||||||||||||||
content-handler Optional | literal | Indicates the component to be used to take care of special formatting. The usage of this attribute is only intended for specific purposes, and not generally supported. By default the value of the response content-type attribute is used, which is usually Normal. Another publicly available content handler is tbxds:cdata-override which emits CDATA-nodes rather than text nodes for news article nodes, much like the "no" value for the omit-cdata parameter (see <Parameter>). For Tijd XML news messages, the handler tbxds:flat-tijd-xml can be used, which strips any XML tags present, and uses newlines instead of <PAR> nodes. Standard behavior for Tijd XML: <PAR>paragraph 1</PAR> <PAR>paragraph 2</PAR> and for the tbxds:flat-tijd-xml override: paragraph 1 paragraph 2 For plain-text news messages the content handler tbxds:force-tijd-xml can be used to simulate the exact oposite of the tbxds:flat-tijd-xml handler, i.e., this handler adds <PAR> and <LIT> tags to a news message. Note however, that these tags are added after an automatic inspection of the actual text, and this process can occasionally be fooled by more advanced tabular mark-up using spaces and newlines.
| ||||||||||||||||||||||||
link-handlers Optional | literal | Indicates a comma separated list of components to be used for building the list of links for a news article. By default, only organisation, category and sector links are returned, but more link types are available.
The setting of the link-handlers attribute
overrides the default setting of "default".
Thus, removing any link information can be accomplished
by setting
If the default links are still required,
but additional links are needed, you can use
the alias default as part of the list
of link components, i.e.,
The available types are:
| ||||||||||||||||||||||||
ordering Optional | string |
Indicates the ordering used for the news queries.
|