valid = 'möglich' === $node->filterXPath('//aenderung')->text(); $bookingUpdate->success = 'erfolgt' === $node->filterXPath('//aenderung')->text(); $bookingUpdate->status = $node->filterXPath('//status')->text(); return $bookingUpdate; } }