Permalink
Browse files

fix examples

  • Loading branch information...
1 parent d72913a commit 4e3e01553b45c343623cbd564852ac87b59782bf @cweiske cweiske committed Feb 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.rst
View
@@ -201,7 +201,7 @@ Get all properties
$xrd = new XML_XRD();
$xrd->loadFile('http://example.org/.well-known/host-meta');
foreach ($xrd->getProperties() as $property) {
- echo $property->type . ': ' . $property->value . "\n",
+ echo $property->type . ': ' . $property->value . "\n";
}
@@ -214,7 +214,7 @@ Get all properties of a type
$xrd = new XML_XRD();
$xrd->loadFile('http://example.org/.well-known/host-meta');
foreach ($xrd->getProperties('http://spec.example.net/type/person') as $property) {
- echo $property->type . ': ' . $property->value . "\n",
+ echo $property->type . ': ' . $property->value . "\n";
}
@@ -295,7 +295,7 @@ LRDD file
Error handling
==============
-When loading a file, exceptions of type ``XML_XRD_Exceptino`` may be thrown.
+When loading a file, exceptions of type ``XML_XRD_Exception`` may be thrown.
All other parts of the code do not throw exceptions but fail gracefully by returning
``null``, e.g. when a property does not exist.

0 comments on commit 4e3e015

Please sign in to comment.