Specifies a driver URI.
This element is primarily intended to include resources from the local file system, though it may be used for remote resources. You should generally use the webd:get element to retrieve content from a web server. Query parameters on relative URLs provided in the href attribute will not work.
Attribute | Description | Type | Default | Options | Use |
---|---|---|---|---|---|
encoding | The character encoding of the content. Has no effect when the parse attribute is set to 'xml'. | xs:string | none | optional | |
href | The URI to retrieve | xs:anyURI | none | required | |
parse | The type of content to parse | xs:string | xml | text, xml | optional |
timeout | The sent to the server and back timeout to apply for HTTP/HTTPS requests in seconds. Overrides any timeout settings in the mcs-config.xml file. | xs:integer | none | optional |
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
xmlns:urid="http://www.volantis.com/xmlns/marlin-uri-driver">
<head>
<title>urid:fetch</title>
</head>
<body>
<p>Latest from NYSE for Jive Sports (VBE):</p>
<urid:fetch href="test.xdinc"/>
</body>
</html>
The test.xdinc file may look like this.
<?xml version="1.0" encoding="UTF-8"?>
<div xmlns="http://www.w3.org/2002/06/xhtml2">
<p> 21.50 (+ 2.25) </p>
</div>