From d8cd3577b9b1357eccd99228548df7516f2db61f Mon Sep 17 00:00:00 2001 From: Sammyjo20 <29132017+Sammyjo20@users.noreply.github.com> Date: Sun, 5 Nov 2023 22:01:09 +0000 Subject: [PATCH] Better element docs --- .github/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/README.md b/.github/README.md index 3c0bcf8..8b5138f 100644 --- a/.github/README.md +++ b/.github/README.md @@ -182,7 +182,7 @@ $reader->value('song')->get(); // ['Luke Combs - When It Rains It Pours', 'Sam R $reader->value('song.2')->sole(); // 'London Symfony Orchestra - Starfield Suite' ``` #### Reading Specific Elements -You can use the `element` method to search for a specific element. You can use dot-notation to search for child elements. You can also use whole numbers to find specific positions of multiple elements. This method searches through the whole XML body in a memory efficient way. +You can use the `element` method to search for a specific element. This method will return an `Element` class which contains the value and attributes. You can use dot-notation to search for child elements. You can also use whole numbers to find specific positions of multiple elements. This method searches through the whole XML body in a memory efficient way. This method will return a `LazyQuery` class which has different methods to retrieve the data. ```php