Cześć,
Wczytuję dokument XML przy użyciu DOMDocument. Muszę z niego odczytać informacje zawarte w linijce:
<?xml-stylesheet type="text/xsl" href="/xsl/main.xsl"?>
Dokładniej interesuje mnie atrybut href.
Cały dokument wygląda w ten sposób:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="/xsl/main.xsl"?>
<Data>
<Source>
<File>/xml/main.xml</File>
<Title>Strona główna</Title>
</Source>
<Baner>
<File>/www/baners/baner01.jpg</File>
</Baner>
</Data>