<VirtualHost 127.0.0.1:80>
ServerAdmin root@localhost
DocumentRoot "/var/www/test.com/public_html"
ServerName test.loc
ServerAlias www.test.loc
DirectoryIndex index.php index.html
ErrorLog "logs/test.loc-error_log"
CustomLog "logs/test.loc-access_log" common
<Directory "/var/www/test.com/public_html">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
$needed = ['Header', 'TextBlock', 'Text', 'Content', 'ToolTip'];
$attr_string = '@' . implode('|@', $needed);
$xaml->registerXPathNamespace('a', 'http://schemas.microsoft.com/winfx/2006/xaml/presentation');
$result = $xaml->xpath("//a:*[$attr_string]");
foreach ($result as $elem) {
foreach ($needed as $n) {
if (isset($elem[$n])) {
echo "$n: ", (string) $elem[$n], "\n";
}
}
}