A method is always executed in the context of a data object. This data object supplies - depending on the data source - any number of views. Each of these views looks at a separate aspect of the data object. You will find further information on views in the respective data source.
The call of the handler “xml.ashx” has the following structure:
http(s)://[Hostname]/(Webanwendung)/xml.ashx?id=[Pfad zum Datenobjekt]&dataView=[Sicht]
In the following example we reference the system root of an onion data source with the view for structural children:
https://server/projects/preview/xml.ashx?id=onion://data/objects/1&dataView=children
The following structure is found in the result as a general rule:
<xml-viewer
id="onion://data/objects/1"
dataView="children"
resolvedType="Onion:http://onionworks.net/2004/schema/systemroot"
>
<!-- Individuelle Daten -->
<onion:children ... />
</xml-viewer>
Execution result
The root of the XML document is formed by the element “xml-viewer”, in which the attributes “id” and “dataView” reflect the specified parameters of the call. In addition, the attribute “resolvedType” informs about the type of the addressed object. The child nodes reflect exactly the data returned by this view.
Note:
The element xml-viewer is only generated for information purposes in this handler. Furthermore, a data source can return an XML fragment with several root nodes. So that your browser can represent this XML, this root node contains the returned data. This element does not exist within a transformation.