diff --git a/README.md b/README.md index 7a6882c..a80bef3 100644 --- a/README.md +++ b/README.md @@ -74,20 +74,23 @@ following way (taking image as an example): ``` php setLastMod($lastMod); -$url->setChangeFreq($changeFreq); -$url->setPriority($priority); +$url = new Url($loc); $image = new Image('https://image-location.com'); - $url->addExtension($image); -... +$urlset = new Urlset(); +$urlset->add($url); + +$driver = new XmlWriterDriver(); +$urlset->accept($driver); + +echo $driver->output(); ``` ## Advanced Usage