From fec0e8e137104d3ff8741c8161aea76fa7242510 Mon Sep 17 00:00:00 2001 From: Ben McKay Date: Mon, 6 Nov 2023 11:16:49 -0600 Subject: [PATCH] Docs update Co-authored-by: Sam C <29132017+Sammyjo20@users.noreply.github.com> --- .github/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/README.md b/.github/README.md index ab0dad9..533149f 100644 --- a/.github/README.md +++ b/.github/README.md @@ -69,7 +69,7 @@ $reader->xpathValue('//food[@bestSeller="true"]/name')->get(); // ['Belgian Waff $reader->element('food.0')->sole()->getAttributes(); // ['soldOut' => false, 'bestSeller' => true] // Use getContent() to get the contents of the elements -$reader->element('breakfast_menu.food')->getContent(); // ['name' => 'Belgian Waffles', 'price' => '$5.95', ...] +$reader->element('food.0')->sole()->getContent(); // ['name' => 'Belgian Waffles', 'price' => '$5.95', ...] ``` ## Writing XML