Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Файл test.xml содержит XML документ с корневым элементом
- // и вложенным элементом title /[root]/title.
- if (file_exists('bad_pers.xml')) {
- $xml = simplexml_load_file('bad_pers.xml');
- $attributes = $xml->title[0]->attributes();
- echo $attributes['nik'];
- echo $attributes['uidd'];
- //var_dump($dom);
- } else {
- exit('Ошибка открытия test.xml.');
- }
- ?>
Add Comment
Please, Sign In to add comment