Avere un documento XML come questo:
<?xml version="1.0" encoding="UTF-8"?>
<records type="array">
<record>
<name>svn</name>
<record-type>A</record-type>
<ttl type="integer">86400</ttl>
<zone-id type="integer">69075</zone-id>
<aux type="integer">0</aux>
<id type="integer">xxx</id>
<active>Y</active>
<data>xxx.xxx.xxx.xxx</data>
</record>
<record>
<name>domain.tld.</name>
<record-type>NS</record-type>
<ttl type="integer">86400</ttl>
<zone-id type="integer">xxx</zone-id>
<aux type="integer">0</aux>
<id type="integer">xxx</id>
<active>Y</active>
<data>domain.tld.</data>
</record>
<record>
<name>blog</name>
<record-type>A</record-type>
<ttl type="integer">86400</ttl>
<zone-id type="integer">xxx</zone-id>
<aux type="integer">0</aux>
<id type="integer">xxx</id>
<active>Y</active>
<data>xxx.xxx.xxx.xxx</data>
</record>
</records>
Come abbinare tutto l' /records/record/name
avere come fratello /records/record/record-type
con il valore A
?
record
prima di scenderename
.