Verification

After loading a XRD file, you should make sure that it really describes the resource/URL you are looking for. describes() checks both the subject and alias tags:

<?php
require_once 'XML/XRD.php';
$xrd = new XML_XRD();
$xrd->loadFile('http://example.org/.well-known/host-meta');
if (!
$xrd->describes('http://example.org/')) {
    die(
'XRD document is not the correct one for http://example.org/');
}
?>
Loading an XRD file (Previous) Accessing links (Next)
Last updated: Thu, 27 Nov 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.