How To Create An XML Manifest File
Creating an XML manifest file:
- All assets must be in a flat directory structure, no subdirectories are permitted. This means that if your HTML page is hosted at http://somedomain.com/somedirectory/index.html, all your assets must be located in the http://somedomain.com/somedirectory/ directory, e.g., http://somedomain.com/somedirectory/someasset.png.
- Spaces in filenames are not supported.
A sample with comments of the XML manifest is shown below:
The rev attribute controls asset refreshing. If an asset changes, it will only be reloaded if the rev attribute value increments.
This is the URL to the source HTML. It will update every time the page is re-viewed, regardless of rev number. This page should reference all resources as if they existed in the same directory as the HTML file (even if they in fact do not).
These are the resources other than the HTML source used to build the page.
<resource>http://cdn.coverstand.com/sample/html5/6/red_circleXsagging_jowls.3.png</resource> <resource>http://cdn.coverstand.com/sample/html5/6/red_circleXnasolabial_folds.3.png</resource> <resource>http://cdn.coverstand.com/sample/html5/6/red_circleXdiscolorations.3.png</resource> <resource>http://cdn.coverstand.com/sample/html5/6/red_circleXflattened_eyebrows.3.png</resource> </HTML5Overlays>
- If only a single HTML file is referenced, it is assumed to be merely a link and is not cached by the 'Download' functionality of the app. It will be shown live from the web.
- If other resources are referenced, the apps will be able to download the HTML and resources and show them offline along with the downloaded issue. The HTML file must reference them as if they are in the same directory as the HTML file.