以下は、私が扱っているXMLバックアップの構造です。私はXMLからすべてのURLを取得するいくつかのコードを書いています - それぞれのURLに対して、XMLをトラバースして表示される方法がありますか?それが表示されるページID(XML構造の2番目のタグ) ?美しいスープでXMLのURLのすべてのページIDを見つける
<page>
<id></id>
<name></name>
<description><a href="http://google.com" target="_self">LINK</a></description>
<boxes>
<box>
</box>
</boxes>
</page>
更新:
<page>
<id></id>
<name></name>
<description></description>
<url></url>
<boxes>
<box>
<id></id>
<name></name>
<type></type>
<column></column>
<position></position>
<hidden></hidden>
<created></created>
<updated></updated>
<assets>
<asset>
<id></id>
<name></name>
<type></type>
<description></description>
<url/>
<owner>
<id></id>
<email></email>
<first_name></first_name>
<last_name></last_name>
</owner>
<map_id></map_id>
<position></position>
<created></created>
<updated></updated>
</asset>
</assets>
</box>
</boxes>
</page>
そして、その構造上のどこに 'url'がありますか? – eLRuLL
URLは説明ボックス内にあります。 – podusmonens
完全な構造で質問を更新できますか? – eLRuLL