Skip to content

Commit

Permalink
Better element docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammyjo20 committed Nov 5, 2023
1 parent 9f8da0a commit d8cd357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8cd357

Please sign in to comment.