We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44d9568 commit 41efa44Copy full SHA for 41efa44
README.md
@@ -14,11 +14,11 @@ $reader->open($inputFile);
14
15
$reader->process([
16
// Find all person elements
17
- '(.*/person(?:\[\d*\])?)' => function (SimpleXMLElement $data, $path): void {
+ '(.*/person' => function (SimpleXMLElement $data, $path): void {
18
echo "1) Value for ".$path." is ".PHP_EOL.
19
$data->asXML().PHP_EOL;
20
},
21
- // Find the corresponding element in the hierarchy
+ // Find the /root/person2/firstname element in the document
22
'/root/person2/firstname' => function (string $data): void {
23
echo "3) Value for /root/person2/firstname is ". $data.PHP_EOL;
24
}
0 commit comments