Learn > On-device catalogs (device.json) > XML catalogs (WebDAV, OPDS, anything XML) XML CATALOGS (WEBDAV, OPDS, ANYTHING XML) (1/2) "browse": { "format": "xml", "url": "{cfg.server}/remote.php/dav/files/{cfg.user}/Books/", "method": "PROPFIND", "headers": { "Depth": "1", "Authorization": "Basic {cfg.basic}" }, "item": "response", // REQUIRED: local name of the repeating element "container_element": "collection", // an item containing this element is a folder "skip_self": true, // drop the entry whose url is the request url "resolve_urls": true, // "/path" urls -> full urls on the same origin "extensions": [".epub", ".pdf"], // only list files ending in these (folders always shown) "fields": { "title": "displayname", // REQUIRED for XML (no default) "url": "href" } }, "download": { "username": "{cfg.user}", "password": "{cfg.pass}" } // url defaults to "{url}" Selectors (matched by local name, so namespace prefixes don't matter): - "elem": the leading text of the first descendant of the item, - "elem@attr": an attribute of the first descendant (OPDS: "link@href", which takes the first ), - "@attr": an attribute of the item element itself. Next: 02 XML catalogs (WebDAV, OPDS, anything XML) (2/2)